From 0592cee56730392f19bcf1d4c53e2b669892d3af Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sun, 24 Mar 2019 23:12:57 -0400 Subject: [PATCH] claim integration test fixes --- lbrynet/wallet/manager.py | 3 +++ tests/integration/test_claim_commands.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lbrynet/wallet/manager.py b/lbrynet/wallet/manager.py index 6aae71188..1f3dbc940 100644 --- a/lbrynet/wallet/manager.py +++ b/lbrynet/wallet/manager.py @@ -314,5 +314,8 @@ class LbryWalletManager(BaseWalletManager): block_hash = self.ledger.headers.hash(height).decode() return self.ledger.network.get_block(block_hash) + def get_claim_by_claim_id(self, claim_id): + return self.ledger.get_claim_by_claim_id(claim_id) + def get_claim_by_outpoint(self, txid, nout): return self.ledger.get_claim_by_outpoint(txid, nout) diff --git a/tests/integration/test_claim_commands.py b/tests/integration/test_claim_commands.py index ab2d78307..2d729889b 100644 --- a/tests/integration/test_claim_commands.py +++ b/tests/integration/test_claim_commands.py @@ -300,7 +300,7 @@ class ClaimCommands(CommandTestCase): await self.out(self.create_channel('@spam', '1.0')) self.assertEqual('8.989893', await self.daemon.jsonrpc_account_balance()) - result = await self.out(self.daemon.jsonrpc_wallet_send( + result = await self.out(self.daemon.jsonrpc_account_send( '5.0', await self.daemon.jsonrpc_address_unused(account2_id) )) await self.confirm_tx(result['txid'])