trezor / blockbook

:blue_book: Trezor address/account balance backend
https://trezor.io
GNU Affero General Public License v3.0
651 stars 647 forks source link

BTC/ testBTC stopped syncing #810

Closed TheTrunk closed 1 year ago

TheTrunk commented 1 year ago

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]
wakiyamap commented 1 year ago
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.

TheTrunk commented 1 year ago

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

qinheqing commented 1 year ago

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

TheTrunk commented 1 year ago

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

wakiyamap commented 1 year ago

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

martinboehm commented 1 year ago

And now the fix is in the master too.

kaladinlight commented 1 year ago

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 commented 1 year ago

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

martinboehm commented 1 year ago

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