Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(electrum): Don't ignore multiple coinbase txs
We would previously insert just one coinbase transaction in the database if we caught multiple in the same sync. When we sync with electrum, before committing to the database, we remove from the update conflicting transactions, using the `make_txs_consistent` function. This function considers two txs to be conflicting if they spend from the same outpoint - but every coinbase transaction spends from the same outpoint! Here we make sure to avoid filtering out coinbase transactions, by adding a check on the txid just before we do the filtering. Fixes bitcoindevkit#1051
- Loading branch information