+ added secrets.py

* work on communicator2, syncing blocks
* modify insertblock to use new pow metadata (may need more work for new
spec)
This commit is contained in:
Kevin Froman 2018-06-16 15:54:56 -05:00
parent a4824d9b8c
commit 7864677498
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
5 changed files with 391 additions and 33 deletions

View file

@ -486,6 +486,7 @@ class Core:
trust int 6
pubkeyExchanged int 7
hashID text 8
pow text 9
'''
conn = sqlite3.connect(self.peerDB)
c = conn.cursor()
@ -672,7 +673,6 @@ class Core:
if powToken == False:
time.sleep(0.3)
continue
powHash = powToken[0]
powToken = base64.b64encode(powToken[1])
try:
powToken = powToken.decode()
@ -693,8 +693,7 @@ class Core:
retData = ''
metadata['type'] = header
metadata['powHash'] = powHash
metadata['powToken'] = powToken
metadata['powRandomToken'] = powToken
sig = {}