forked from LBRYCommunity/lbry-sdk
Removed unnecessary yield and inlineCallbacks, rectified command behaviour (#1421)
* wallet_prefill_addresses command follows specifications(docs) * unnecessary to document bugs in changelog which were created and fixed without having ever been released
This commit is contained in:
parent
a7f34e2913
commit
1c6ce49b7b
1 changed files with 1 additions and 2 deletions
|
@ -2432,7 +2432,6 @@ class Daemon(AuthJSONRPCServer):
|
||||||
defer.returnValue(result)
|
defer.returnValue(result)
|
||||||
|
|
||||||
@requires(WALLET_COMPONENT, conditions=[WALLET_IS_UNLOCKED])
|
@requires(WALLET_COMPONENT, conditions=[WALLET_IS_UNLOCKED])
|
||||||
@defer.inlineCallbacks
|
|
||||||
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 UTXOs, each containing `amount` credits
|
Create new UTXOs, each containing `amount` credits
|
||||||
|
@ -2453,7 +2452,7 @@ class Daemon(AuthJSONRPCServer):
|
||||||
broadcast = not no_broadcast
|
broadcast = not no_broadcast
|
||||||
return self.jsonrpc_fund(self.wallet.default_account.name,
|
return self.jsonrpc_fund(self.wallet.default_account.name,
|
||||||
self.wallet.default_account.name,
|
self.wallet.default_account.name,
|
||||||
amount=amount,
|
amount=amount * num_addresses,
|
||||||
outputs=num_addresses,
|
outputs=num_addresses,
|
||||||
broadcast=broadcast)
|
broadcast=broadcast)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue