Closed asoltys closed 6 years ago
@asoltys interesting!
This module relies on the RPC, so if the RPC can't decode that TX, we can't either.
Have you reported this to https://github.com/bitcoin/bitcoin ?
Wow, it is a 500KiB transaction.
{
"txId": "22e08a53aff6cb0680758036e09f792dac56e4813de81c9be1b4b1ae3cda0ab0",
"txHex": "01000000015300a4bd8000a2b1bf083c72fc65b74e1699da78904451fc9f01626135c1775e010000006b48304502200cc2be5c057d81a78d1eb880aa0c76ada27c52e900adbb8c99a12dc36b97613402210095b3a9d662dc8ce6acac336ff0e17ef82c1e7fc38cf3978444dc1351897ef230012102dfeb96b4296fadef124dfdbe898c50f27126219fa0151e9ea90dc9f1affd659affffffff010000000000000000fe90d00300ffffffff... snipped 499986*f ...ffffff00000000",
"blockId": "00000000003ba174fd77250a04eba0e15134da0b4edfb9996bfedffdd235f97c",
"blockHeight": 54504
}
OK, the RPC isn't choking here, we are.
I made an assumption that has backfired.
https://github.com/bitcoinjs/indexd/blob/7c0c12526ae6ed9a6874878138cbec16dfe671c5/indexes/txo.js#L23
Specifically, I thought 16-bits would be enough for the size of the script. Apparently not!
Ah ha :) and yeah sorry I had just mispasted the raw transaction hex into bitcoin-cli, too big for my clipboard or terminal I guess
Added 3e37c1e and then 49372a3, this problem should resolve. I hadn't released this version yet, but thanks for testing!
I'll add a script to https://github.com/bitcoinjs/private-bitcoin which you can use to drop the tip for the TXO index which should mean it re-syncs.
Alternatively, wipe your indexd
data directory...
Closing as fixed :+1: (re-open if not)
Thanks for the quick fix! Drop script worked like a charm. Indexing now.
Running indexd master (7c0c12526ae6ed9a6874878138cbec16dfe671c5) against testnet:
I think it's choking on tx 22e08a53aff6cb0680758036e09f792dac56e4813de81c9be1b4b1ae3cda0ab0 which seems to be some sort of crazy non-standard tx. I couldn't decode it with bitcoin-cli