moved processblocks to communicator and fixed bool error in validatehash
This commit is contained in:
parent
3c692f1060
commit
63b4c88d06
4 changed files with 16 additions and 10 deletions
|
@ -280,15 +280,6 @@ class Core:
|
|||
conn.close()
|
||||
return peerList
|
||||
|
||||
def processBlocks(self):
|
||||
'''
|
||||
Work with the block database and download any missing blocks
|
||||
This is meant to be called from the communicator daemon on its timer.
|
||||
'''
|
||||
for i in self.getBlockList(True).split("\n"):
|
||||
if i != "":
|
||||
print('UNSAVED BLOCK:', i)
|
||||
return
|
||||
def getPeerInfo(self, peer, info):
|
||||
'''
|
||||
get info about a peer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue