trezor / blockbook

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

Issue when starting blockbook: readScript: script witness item is larger than the max allowed size #811

Closed rikardwissing closed 2 years ago

rikardwissing commented 2 years ago

I get the following issue when starting up blockbook. Any idea how to fix it?

I1010 16:09:49.629818    3479 blockbook.go:138] Blockbook: {Version:0.3.6 GitCommit:dcc770b BuildTime:2022-06-19T22:04:34+00:00 GoVersion:go1.17.1 OSArch:linux/amd64}, debug mode false
I1010 16:09:49.678678    3479 bitcoinrpc.go:136] rpc: block chain mainnet
I1010 16:09:49.678736    3479 mempool_bitcoin_type.go:56] mempool: starting with 8*2 sync workers
I1010 16:09:49.678755    3479 rocksdb.go:148] rocksdb: opening /opt/coins/data/bitcoin/blockbook/db, required data version 5, cache size 0, max open files 16384
I1010 16:10:56.821773    3479 rocksdb.go:1696] loaded 757922 block times
I1010 16:10:56.958855    3479 worker.go:1845] GetSystemInfo, 122.32602ms
I1010 16:10:56.959053    3479 internal.go:68] internal server: starting to listen on https://:9030
I1010 16:10:57.037850    3479 public.go:123] public server starting to listen on https://:9130
I1010 16:10:57.077625    3479 sync.go:142] resync: local at 757921 is behind
E1010 16:10:57.224127    3479 blockbook.go:294] resyncIndex 757922 0000000000000000000400a35a007e223a7fb8a622dc7b5aa5eaace6824291fb: readScript: script witness item is larger than the max allowed size [count 33970, max 11000]
I1010 16:10:57.236070    3479 rocksdb.go:287] rocksdb: close
rikardwissing commented 2 years ago

Never mind, I saw your most recent commit @martinboehm which should fix this.

https://github.com/trezor/blockbook/commit/6e0a045d35f97695488db4f32ecb58e0e4b4da35

Thanks for maintaining this project!