return true if already in mempool

This commit is contained in:
Yostra 2020-03-09 16:54:03 -07:00
parent 79e474b420
commit fc41b4c38e
2 changed files with 2 additions and 2 deletions

View File

@ -1732,7 +1732,7 @@ class FullNode:
if len(msgs) > 0:
response = wallet_protocol.TransactionAck(tx.transaction.name(), True)
else:
if self.mempool_manager.get_spendbundle(tx.transaction.name) is None:
if self.mempool_manager.get_spendbundle(tx.transaction.name()) is None:
response = wallet_protocol.TransactionAck(tx.transaction.name(), False)
else:
response = wallet_protocol.TransactionAck(tx.transaction.name(), True)

View File

@ -817,7 +817,7 @@ class TestWalletProtocol:
]
assert len(msgs) == 1
assert msgs[0].message.data == wallet_protocol.TransactionAck(
spend_bundle.name(), False
spend_bundle.name(), True
)
msgs = [