blockbook icon indicating copy to clipboard operation
blockbook copied to clipboard

Blockbook fails to parse transactions with non-standard version

Open screw opened this issue 7 months ago • 0 comments

There are few transactions in Bitcoin blockchain that have non-standard/invalid tx-version.

Here is a project that collected all the transactions: https://codeberg.org/bitcoincash/CHIP-MilliSatoshi/raw/branch/master/tx-versions.csv

For example:

256818, c659729a7fea5071361c2c1a68551ca2bf77679b27086cc415adeeb03852e369, -1703168784
256818, 637dd1a3418386a418ceeac7bb58633a904dbf127fa47bbea9cc8f86fef7413f, -2107285824
257644, 35e79ee733fad376e76d16d1f10088273c2f4c2eaba1374a837378a88e530005, -2130706433

If you try to get transaction 637dd1a3418386a418ceeac7bb58633a904dbf127fa47bbea9cc8f86fef7413f

via https://btc1.trezor.io/api/v2/tx/637dd1a3418386a418ceeac7bb58633a904dbf127fa47bbea9cc8f86fef7413f

you'll get

{
"error": "Transaction '637dd1a3418386a418ceeac7bb58633a904dbf127fa47bbea9cc8f86fef7413f' not found (txid 637dd1a3418386a418ceeac7bb58633a904dbf127fa47bbea9cc8f86fef7413f: json: cannot unmarshal number 2187681472 into Go struct field Tx.version of type int32)"
}

screw avatar Jul 11 '24 16:07 screw