btcd icon indicating copy to clipboard operation
btcd copied to clipboard

Check if input was entirely consumed in `decoderawtransaction`/`btcDecode`

Open brunoerg opened this issue 8 months ago • 2 comments

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.

brunoerg avatar Jun 06 '24 21:06 brunoerg