is_change bug fix

This commit is contained in:
Lex Berezhny 2019-09-23 13:43:29 -04:00
parent dc72a1e58d
commit 1b0d802941
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ class BasicTransactionTests(IntegrationTestCase):
await self.assertBalance(account1, '0.0')
await self.assertBalance(account2, '0.0')
addresses = await self.account.receiving.get_addresses()
addresses = await account1.receiving.get_addresses()
txids = await asyncio.gather(*(
self.blockchain.send_to_address(address, 1.1) for address in addresses[:5]
))

View file

@ -558,7 +558,7 @@ class BaseDatabase(SQLiteMixin):
account_match = set(row_accounts) & my_accounts
if account_match:
txo.is_my_account = True
txo.is_change = row_accounts[account_match.pop()] == 1
txo.is_change = row_accounts[account_match.pop()] == '1'
else:
txo.is_change = txo.is_my_account = False
txos.append(txo)