blockbook icon indicating copy to clipboard operation
blockbook copied to clipboard

BTC/ testBTC stopped syncing

Open TheTrunk opened this issue 2 years ago • 6 comments

Both Bitcoin and Testnet Bitcoin seemed to contain a transaction in a block that prevents further blockbook syncing.

resyncIndex 757922 0000000000000000000400a35a007e223a7fb8a622dc7b5aa5eaace6824291fb: readScript: script witness item is larger than the max allowed size [count 33970, max 11000]

TheTrunk avatar Oct 10 '22 00:10 TheTrunk

Oct 10 09:44:39 blockbook[28613]: E1010 09:44:39.894816   28613 blockbook.go:544] syncIndexLoop readScript: script witness item is larger than the max allowed size [count 33970, max 11000]
Oct 10 09:44:39 blockbook[28613]: /go/src/github.com/trezor/blockbook/bchain/coins/btc/bitcoinrpc.go:597: 757922 0000000000000000000400a35a007e223a7fb8a622dc7b5aa5eaace6824291fb

I'm getting the same error on mine too.

wakiyamap avatar Oct 10 '22 00:10 wakiyamap

I see it is being worked on and perhaps that even fixes it. Will rebuild our solutions asap https://github.com/martinboehm/btcd/commit/987348babe731d73e0b70dda98da70f50ab1c541

TheTrunk avatar Oct 10 '22 00:10 TheTrunk

I see it is being worked on and perhaps that even fixes it. Will rebuild our solutions asap martinboehm/btcd@987348b

Was it resolved successfully? We also encountered the same problem

qinheqing avatar Oct 10 '22 02:10 qinheqing

I see it is being worked on and perhaps that even fixes it. Will rebuild our solutions asap martinboehm/btcd@987348b

Was it resolved successfully? We also encountered the same problem

For us the rebuilt blockbook is crashing after couple of seconds with no information in the logs on both mainnet and testnet

TheTrunk avatar Oct 10 '22 02:10 TheTrunk

It worked fine with v0.4.0 branch. https://mainnet-explorer.wakiyamap.dev/

wakiyamap avatar Oct 10 '22 02:10 wakiyamap

And now the fix is in the master too.

martinboehm avatar Oct 10 '22 05:10 martinboehm

It appears there is another issue with a transaction over the size limit as of this morning that will require another btcd update:

blockbook.go:294] resyncIndex 761249 000000000000000000070742427fa10ec3c66d006160155a704d9f56d090a3ea: MsgTx.BtcDecode: to │
│ o many witness items to fit into max message size [count 500003, max 500000]

kaladinlight avatar Nov 01 '22 13:11 kaladinlight

Nevermind, it looks like you are already on it: https://github.com/martinboehm/btcd/commit/408689e15809b9f8100a860ab293cb8800c1807f https://github.com/trezor/blockbook/commit/95eb699ccbaeef0ec6d8fd0486de3445b8405e8a

kaladinlight avatar Nov 01 '22 13:11 kaladinlight

There was a similar issue with an additional btcd constant being too small. Already fixed.

martinboehm avatar Nov 01 '22 13:11 martinboehm