From 1c6ce49b7bf3ceb7d8b59bceb46cb6af90705c2c Mon Sep 17 00:00:00 2001 From: hackrush Date: Fri, 31 Aug 2018 00:56:04 +0530 Subject: [PATCH] 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 --- lbrynet/daemon/Daemon.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index b605c73e0..a326cac81 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -2432,7 +2432,6 @@ class Daemon(AuthJSONRPCServer): defer.returnValue(result) @requires(WALLET_COMPONENT, conditions=[WALLET_IS_UNLOCKED]) - @defer.inlineCallbacks def jsonrpc_wallet_prefill_addresses(self, num_addresses, amount, no_broadcast=False): """ Create new UTXOs, each containing `amount` credits @@ -2453,7 +2452,7 @@ class Daemon(AuthJSONRPCServer): broadcast = not no_broadcast return self.jsonrpc_fund(self.wallet.default_account.name, self.wallet.default_account.name, - amount=amount, + amount=amount * num_addresses, outputs=num_addresses, broadcast=broadcast)