adds get_claims_by_ids and fix a test name
This commit is contained in:
parent
b62321689d
commit
036663ae62
2 changed files with 4 additions and 1 deletions
|
@ -5,3 +5,6 @@ class Network(BaseNetwork):
|
|||
|
||||
def get_values_for_uris(self, block_hash, *uris):
|
||||
return self.rpc('blockchain.claimtrie.getvaluesforuris', block_hash, *uris)
|
||||
|
||||
def get_claims_by_ids(self, *claim_ids):
|
||||
return self.rpc("blockchain.claimtrie.getclaimsbyids", *claim_ids)
|
||||
|
|
|
@ -78,7 +78,7 @@ def get_test_daemon(data_rate=None, generous=True, with_fee=False):
|
|||
if with_fee:
|
||||
metadata.update(
|
||||
{"fee": {"USD": {"address": "bQ6BGboPV2SpTMEP7wLNiAcnsZiH8ye6eA", "amount": 0.75}}})
|
||||
daemon._resolve_name = lambda _: defer.succeed(metadata)
|
||||
daemon._resolve = lambda _: defer.succeed(metadata)
|
||||
migrated = smart_decode(json.dumps(metadata))
|
||||
daemon.wallet.resolve = lambda *_: defer.succeed(
|
||||
{"test": {'claim': {'value': migrated.claim_dict}}})
|
||||
|
|
Loading…
Add table
Reference in a new issue