It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
//At the top of command.py I added this which I stole from the "network" file that also seems to use the get_hash() function I have no idea if this is the right way to import and initiate a class so it's methods can be used
from . import blockchain
from .blockchain import Blockchain, HEADER_SIZE
//Then in the at the top of the command Class definition right below self.network = network I added this. I assume it extends the command class with the Blockchain class? Thats how it works in PHP anyway
self.blockchain = Blockchain
//Then in the get_info() function below net_params = self.network.get_parameters() I added this, but I dont know why "blockchain" is a needed argument since the function itself only has "height" as the argument
height = 707983
header_hash = self.blockchain.get_hash(blockchain, height)
//And finally I added this to the results portion right below 'blockchain_height': self.network.get_local_height(),
'header_hash_for_707983' : header_hash,
self.blockchain = Blockchain(config=config,
forkpoint=0,
parent=None,
forkpoint_hash='000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f',
prev_hash=None)
@command('n')
async def get_block_hash(self, height):
"""Get block hash"""
header_hash = self.blockchain.get_hash(height)
response = { 'block_hash': header_hash, }
return response