clightning4j / btcli4j

It is a core lightning plugin to override Bitcoin backend plugin with esplora by Blockstream and give the possibility to make the running process with bitcoind in pruning mode more solid.
GNU General Public License v2.0
9 stars 7 forks source link

Bad raw block #29

Closed vincenzopalazzo closed 3 years ago

vincenzopalazzo commented 3 years ago

During a retry call, the block receives the following error to c-lightning and it is a good error because it contains a wrong raw block

2021-03-23T22:09:39.786Z DEBUG   plugin-btcli4j-gen.sh: During http request to URL http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/testnet/api/block/0000000000000971dc0b16c2050d1910ef278d14eae048571c6da5efcf3bf066/raw
2021-03-23T22:09:39.786Z DEBUG   plugin-btcli4j-gen.sh: With error message: Block not found
2021-03-23T22:09:39.786Z DEBUG   plugin-btcli4j-gen.sh: retry time 0
2021-03-23T22:09:39.786Z UNUSUAL plugin-btcli4j-gen.sh: Response from server: Block not found
2021-03-23T22:09:39.787Z **BROKEN** lightningd: /home/vincent/github/btcli4j/btcli4j-gen.sh error: bad response to getrawblockbyheight (bad block), response was {"id":4066,"jsonrpc":"2.0","result":{"blockhash":"0000000000000971dc0b16c2050d1910ef278d14eae048571c6da5efcf3bf066","block":"426c6f636b206e6f7420666f756e64"}}
vincenzopalazzo commented 3 years ago

Same error on two different server, I need to check if the block is the same

2021-03-23T23:08:16.398Z UNUSUAL plugin-btcli4j-gen.sh: }
2021-03-23T23:08:16.846Z DEBUG   plugin-btcli4j-gen.sh: Request{method=GET, url=http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/testnet/api/block-height/1947376} Hash 0000000000003c68a463bb4057cc9a9301841870e64485f26f7221e9308dab49
2021-03-23T23:08:17.319Z DEBUG   plugin-btcli4j-gen.sh: During http request to URL http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/testnet/api/block/0000000000003c68a463bb4057cc9a9301841870e64485f26f7221e9308dab49/raw
2021-03-23T23:08:17.319Z DEBUG   plugin-btcli4j-gen.sh: With error message: Block not found
2021-03-23T23:08:17.319Z DEBUG   plugin-btcli4j-gen.sh: retry time 0
2021-03-23T23:08:17.319Z UNUSUAL plugin-btcli4j-gen.sh: Response from server: Block not found
2021-03-23T23:08:17.319Z **BROKEN** lightningd: /root/github/btcli4j/btcli4j-gen.sh error: bad response to getrawblockbyheight (bad block), response was {"id":7470,"jsonrpc":"2.0","result":{"blockhash":"0000000000003c68a463bb4057cc9a9301841870e64485f26f7221e9308dab49","block":"426c6f636b206e6f7420666f756e64"}}