Merge pull request #1139 from lbryio/no-short-flags
Remove flags decorator from server.py as short flags are no longer used
This commit is contained in:
commit
1aeba976da
3 changed files with 1 additions and 11 deletions
|
@ -29,7 +29,7 @@ at anytime.
|
||||||
*
|
*
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
*
|
* `flags` decorator from server.py as short flags are no longer used when using api/cli methods
|
||||||
*
|
*
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2730,7 +2730,6 @@ class Daemon(AuthJSONRPCServer):
|
||||||
|
|
||||||
@AuthJSONRPCServer.auth_required
|
@AuthJSONRPCServer.auth_required
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
@AuthJSONRPCServer.flags(no_broadcast='--no_broadcast')
|
|
||||||
def jsonrpc_wallet_prefill_addresses(self, num_addresses, amount, no_broadcast=False):
|
def jsonrpc_wallet_prefill_addresses(self, num_addresses, amount, no_broadcast=False):
|
||||||
"""
|
"""
|
||||||
Create new addresses, each containing `amount` credits
|
Create new addresses, each containing `amount` credits
|
||||||
|
|
|
@ -149,15 +149,6 @@ class AuthorizedBase(object):
|
||||||
return f
|
return f
|
||||||
return _deprecated_wrapper
|
return _deprecated_wrapper
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def flags(**kwargs):
|
|
||||||
def _flag_wrapper(f):
|
|
||||||
f._flags = {}
|
|
||||||
for k, v in kwargs.iteritems():
|
|
||||||
f._flags[v] = k
|
|
||||||
return f
|
|
||||||
return _flag_wrapper
|
|
||||||
|
|
||||||
|
|
||||||
class AuthJSONRPCServer(AuthorizedBase):
|
class AuthJSONRPCServer(AuthorizedBase):
|
||||||
"""Authorized JSONRPC server used as the base class for the LBRY API
|
"""Authorized JSONRPC server used as the base class for the LBRY API
|
||||||
|
|
Loading…
Add table
Reference in a new issue