work on new block system
This commit is contained in:
parent
9e9595b4ec
commit
8a16c972fd
3 changed files with 14 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue