You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rpcrawtransaction.cpp contains two places that use heuristic transaction
lookups by txid: One in the spent index to see if there are transations
spending its outputs, and one in sendrawtransaction to check the UTXO set
as a cheap heuristic on whether or not the transaction is already contained
in the blockchain.
This extends both places to try looking up both the txid and also the
bare txid. At most one of them can ever match (unless there is a collision
in SHA-256), so it doesn't hurt, but it will ensure that the code works
independent of the state of segwit light.
0 commit comments