From e36610d63c0d5952b690b882eb9640b896923575 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Wed, 20 Jun 2018 17:25:32 -0400 Subject: [PATCH] fix resolve --- lbrynet/tests/integration/wallet/test_transactions.py | 3 ++- lbrynet/wallet/network.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lbrynet/tests/integration/wallet/test_transactions.py b/lbrynet/tests/integration/wallet/test_transactions.py index 8cfac6bf5..3aa59abcd 100644 --- a/lbrynet/tests/integration/wallet/test_transactions.py +++ b/lbrynet/tests/integration/wallet/test_transactions.py @@ -59,7 +59,8 @@ class ClaimTransactionTests(IntegrationTestCase): self.assertEqual(round(await self.get_balance(self.account)/COIN, 1), 10.0) - response = await self.resolve('lbry://foo') + header = self.ledger.headers[len(self.ledger.headers)-1] + response = await self.resolve(self.ledger.headers._hash_header(header), 'lbry://foo') print(response) diff --git a/lbrynet/wallet/network.py b/lbrynet/wallet/network.py index e2f832bc1..1f9de19dc 100644 --- a/lbrynet/wallet/network.py +++ b/lbrynet/wallet/network.py @@ -3,5 +3,5 @@ from torba.basenetwork import BaseNetwork class Network(BaseNetwork): - def get_values_for_uris(self, uris): - return self.rpc('blockchain.claimtrie.getvaluesforuris', uris) + def get_values_for_uris(self, block_hash, uris): + return self.rpc('blockchain.claimtrie.getvaluesforuris', block_hash, uris)