forked from LBRYCommunity/lbry-sdk
is_change bug fix
This commit is contained in:
parent
dc72a1e58d
commit
1b0d802941
2 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
))
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue