1
0

(follow-up) wallet: add option to merge duplicate tx outputs

This commit is contained in:
SomberNight
2023-10-23 19:06:42 +00:00
parent ae8a546bb9
commit 227e257444
7 changed files with 107 additions and 10 deletions

View File

@@ -416,6 +416,8 @@ class AddressSynchronizer(Logger, EventListener):
return children
def receive_tx_callback(self, tx_hash: str, tx: Transaction, tx_height: int) -> None:
# TODO ^ don't pass tx_hash, just calculate it.
assert tx_hash == tx.txid(), f"inconsistent txids! given: {tx_hash}, calc: {tx.txid()}"
self.add_unverified_or_unconfirmed_tx(tx_hash, tx_height)
self.add_transaction(tx, allow_unrelated=True)