work on gui, blocks now have identifiers, work on crypto

This commit is contained in:
Kevin Froman 2018-02-01 23:39:55 -06:00
parent 14d1fec3f3
commit 70bc131aa6
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
5 changed files with 79 additions and 5 deletions

View file

@ -123,13 +123,16 @@ class Onionr:
logger.info(i)
elif command in ('addmsg', 'addmessage'):
while True:
messageToAdd = logger.readline('Broadcast message to network: ')
messageToAdd = '-txt-' + logger.readline('Broadcast message to network: ')
if len(messageToAdd) >= 1:
break
addedHash = self.onionrCore.setData(messageToAdd)
self.onionrCore.addToBlockDB(addedHash, selfInsert=True)
self.onionrCore.setBlockType(addedHash, 'txt')
elif command == 'stats':
self.showStats()
elif command == 'gui':
gui.OnionrGUI(self.onionrCore)
elif command == 'help' or command == '--help':
self.showHelp()
elif command == '':