update to latest torba

This commit is contained in:
Lex Berezhny 2018-11-19 19:26:08 -05:00
parent dd1d1be994
commit b2d1bddcfe

View file

@ -31,15 +31,17 @@ class BasicAccountingTests(LedgerTestCase):
tx = Transaction(is_verified=True)\
.add_outputs([Output.pay_pubkey_hash(100, hash160)])
await self.ledger.db.insert_transaction(tx)
await self.ledger.db.save_transaction_io(
'insert', tx, address, hash160, '{}:{}:'.format(tx.id, 1)
tx, address, hash160, '{}:{}:'.format(tx.id, 1)
)
self.assertEqual(await self.account.get_balance(), 100)
tx = Transaction(is_verified=True)\
.add_outputs([Output.pay_claim_name_pubkey_hash(100, 'foo', b'', hash160)])
await self.ledger.db.insert_transaction(tx)
await self.ledger.db.save_transaction_io(
'insert', tx, address, hash160, '{}:{}:'.format(tx.id, 1)
tx, address, hash160, '{}:{}:'.format(tx.id, 1)
)
self.assertEqual(await self.account.get_balance(), 100) # claim names don't count towards balance
self.assertEqual(await self.account.get_balance(include_claims=True), 200)