fixed addToBlockDB and added selfInsert flag, addmessage command

This commit is contained in:
Kevin Froman 2018-01-27 20:18:38 -06:00
parent da6729adc9
commit 963fab821b
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
3 changed files with 10 additions and 4 deletions

View file

@ -114,7 +114,8 @@ class Onionr:
messageToAdd = input('Broadcast message to network: ')
if len(messageToAdd) >= 1:
break
self.onionrCore.setData(messageToAdd)
addedHash = self.onionrCore.setData(messageToAdd)
self.onionrCore.addToBlockDB(addedHash, selfInsert=True)
elif command == 'stats':
self.showStats()
elif command == 'help' or command == '--help':