add get_start_notice to return startup messages
This commit is contained in:
parent
a4c83a08c7
commit
f4fe730dc9
1 changed files with 7 additions and 1 deletions
|
@ -113,7 +113,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
|||
if not self.announced_startup:
|
||||
if functionPath not in ['is_running', 'is_first_run',
|
||||
'get_time_behind_blockchain', 'stop',
|
||||
'daemon_status']:
|
||||
'daemon_status', 'get_start_notice']:
|
||||
return server.failure
|
||||
|
||||
try:
|
||||
|
@ -883,6 +883,12 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
|||
|
||||
return d
|
||||
|
||||
def jsonrpc_get_start_notice(self):
|
||||
if self.startup_message:
|
||||
return self._render_response(self.startup_message, OK_CODE)
|
||||
else:
|
||||
return defer.fail(None)
|
||||
|
||||
def jsonrpc_get_settings(self):
|
||||
"""
|
||||
Get LBRY payment settings
|
||||
|
|
Loading…
Reference in a new issue