Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blockbook fails to parse transactions with non-standard version #1111

Open
screw opened this issue Jul 11, 2024 · 0 comments
Open

Blockbook fails to parse transactions with non-standard version #1111

screw opened this issue Jul 11, 2024 · 0 comments

Comments

@screw
Copy link

screw commented Jul 11, 2024

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)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant