btcd
btcd copied to clipboard
Check if input was entirely consumed in `decoderawtransaction`/`btcDecode`
Using the decoderawtransaction
command (btcDecode
function?) we noticed that it does not check if the entire input was successfully consumed when decoding which is important to keep it consistent.
To reproduce:
decoderawtransaction "0a9a9e0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010100000000010001010101a09a"
Obs.: Running same command on Bitcoin Core fails.