Delegate code in onionrproofs

This commit is contained in:
0Gitnick 2019-08-13 19:12:45 -05:00
parent 34c00069f5
commit 26b1cc5d87
2 changed files with 7 additions and 15 deletions

View file

@ -65,7 +65,7 @@ def announce_node(daemon):
data['random'] = existingRand
else:
daemon.announceProgress[peer] = True
proof = onionrproofs.DataPOW(combinedNodes, forceDifficulty=onionrvalues.ANNOUNCE_POW)
proof = onionrproofs.DataPOW(combinedNodes, minDifficulty=onionrvalues.ANNOUNCE_POW)
del daemon.announceProgress[peer]
try:
data['random'] = base64.b64encode(proof.waitForResult()[1])