onionr now waits for a block to be uploaded to share it, unless the node exits

This commit is contained in:
Kevin Froman 2018-11-13 11:07:46 -06:00
parent 1303edc2fa
commit 851b2bef76
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
5 changed files with 51 additions and 24 deletions

View file

@ -728,6 +728,8 @@ class Core:
payload = proof.waitForResult()
if payload != False:
retData = self.setData(payload)
# Tell the api server through localCommand to wait for the daemon to upload this block to make stastical analysis more difficult
self._utils.localCommand('waitForShare', data=retData)
self.addToBlockDB(retData, selfInsert=True, dataSaved=True)
#self.setBlockType(retData, meta['type'])
self._utils.processBlockMetadata(retData)