work on new block system

This commit is contained in:
Kevin Froman 2018-06-07 03:15:01 -05:00
parent 9e9595b4ec
commit 8a16c972fd
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
3 changed files with 14 additions and 11 deletions

View file

@ -201,7 +201,9 @@ class Onionr:
'importblocks': self.onionrUtils.importNewBlocks,
'introduce': self.onionrCore.introduceNode,
'connect': self.addAddress
'connect': self.addAddress,
'getpassword': self.getWebPassword
}
self.cmdhelp = {
@ -211,6 +213,7 @@ class Onionr:
'start': 'Starts the Onionr daemon',
'stop': 'Stops the Onionr daemon',
'stats': 'Displays node statistics',
'getpassword': 'Displays the web password',
'enable-plugin': 'Enables and starts a plugin',
'disable-plugin': 'Disables and stops a plugin',
'reload-plugin': 'Reloads a plugin',
@ -249,6 +252,9 @@ class Onionr:
def getCommands(self):
return self.cmds
def getWebPassword(self):
return config.get('client')['client_hmac']
def getHelp(self):
return self.cmdhelp