phase1: legacy claim format, ability to decode new format

This commit is contained in:
Victor Shyba 2019-01-18 00:50:43 -03:00 committed by Lex Berezhny
parent be6448b74f
commit 6ed3207cb7
2 changed files with 3 additions and 3 deletions

View file

@ -414,7 +414,7 @@ class LbryWalletManager(BaseWalletManager):
if certificate:
claim = claim.sign(
certificate.private_key, claim_address, certificate.claim_id, curve=SECP256k1, name=name,
force_detached=True
force_detached=False # TODO: delete it and make True default everywhere when its out
)
existing_claims = await account.get_claims(
claim_name_type__any={'is_claim': 1, 'is_update': 1}, # exclude is_supports

View file

@ -247,7 +247,7 @@ class EpicAdventuresOfChris45(CommandTestCase):
# After abandoning he just waits for his LBCs to be returned to his account
await self.generate(5)
result = await self.daemon.jsonrpc_account_balance()
self.assertEqual(result, '8.969363')
self.assertEqual(result, '8.9693585')
# Amidst all this Chris receives a call from his friend Ramsey
# who says that it is of utmost urgency that Chris transfer him
@ -264,7 +264,7 @@ class EpicAdventuresOfChris45(CommandTestCase):
await self.generate(5)
result = await self.daemon.jsonrpc_account_balance()
# Chris' balance was correct
self.assertEqual(result, '7.969239')
self.assertEqual(result, '7.9692345')
# Ramsey too assured him that he had received the 1 LBC and thanks him
result = await self.daemon.jsonrpc_account_balance(ramsey_account_id)