fix resolve

This commit is contained in:
Lex Berezhny 2018-06-20 17:25:32 -04:00 committed by Jack Robison
parent c4273fbef0
commit e36610d63c
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 4 additions and 3 deletions

View file

@ -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)

View file

@ -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)