forked from LBRYCommunity/lbry-sdk
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
|
||||
*
|
||||
* `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
|
||||
@defer.inlineCallbacks
|
||||
@AuthJSONRPCServer.flags(no_broadcast='--no_broadcast')
|
||||
def jsonrpc_wallet_prefill_addresses(self, num_addresses, amount, no_broadcast=False):
|
||||
"""
|
||||
Create new addresses, each containing `amount` credits
|
||||
|
|
|
@ -149,15 +149,6 @@ class AuthorizedBase(object):
|
|||
return f
|
||||
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):
|
||||
"""Authorized JSONRPC server used as the base class for the LBRY API
|
||||
|
|
Loading…
Reference in a new issue