On terminal 1
ninja && ./src/bitcoind -debug=chronik -chronik -chronikscripthashindex -chronikelectrumbind="127.0.0.1:50001:t"
On terminal 2
echo '{"jsonrpc": "2.0", "method": "blockchain.scripthash.get_history", "params": ["44f2ccb974231cfc9d13e4badc782868e1248e8d6dbb202a3a3b854484628dd2"], "id": "test"}' | nc 127.0.0.1 50001 | jq
Check that terminal 1 does not print this message
```
thread 'tokio-runtime-worker' panicked at chronik/chronik-http/src/electrum_codec.rs:26:12:
range end index 15220560 out of range for slice of length 1048576
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
Reproduced on master, fixed with this diff.