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
8 stars 7 forks source link

Crash with wrong block value #6

Closed vincenzopalazzo closed 3 years ago

vincenzopalazzo commented 4 years ago
2020-09-09T02:24:07.933Z DEBUG   plugin-btcli4j-gen.sh: Request{method=GET, url=http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/api/block-height/647402} Hash 00000000000000000009e2c5bd5b35372ee0d5fff540e3783e50b38ec87f800d
2020-09-09T02:24:08.848Z DEBUG   plugin-btcli4j-gen.sh: During http request to URL http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/api/block/00000000000000000009e2c5bd5b35372ee0d5fff540e3783e50b38ec87f800d/raw
2020-09-09T02:24:08.849Z DEBUG   plugin-btcli4j-gen.sh: With error message: Block not found
2020-09-09T02:24:08.849Z DEBUG   plugin-btcli4j-gen.sh: retry time 0
2020-09-09T02:24:08.849Z **BROKEN** lightningd: /root/github/btcli4j/btcli4j-gen.sh error: bad response to getrawblockbyheight (bad block), response was {"id":900,"jsonrpc":"2.0","result":{"blockhash":"00000000000000000009e2c5bd5b35372ee0d5fff540e3783e50b38ec87f800d","block":"426c6f636b206e6f7420666f756e64"}}
2020-09-09T02:24:08.879Z **BROKEN** lightningd: FATAL SIGNAL 6 (version v0.9.0-287-g62f80f7)
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: common/daemon.c:43 (send_backtrace) 0x55b70f545a2d
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: common/daemon.c:51 (crashdump) 0x55b70f545a7f
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7fce917d120f
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7fce917d118b
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7fce917b0858
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: lightningd/log.c:820 (fatal) 0x55b70f51650b
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: lightningd/bitcoind.c:119 (bitcoin_plugin_error) 0x55b70f50311c
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: lightningd/bitcoind.c:381 (getrawblockbyheight_callback) 0x55b70f50367e
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:367 (plugin_response_handle) 0x55b70f52c594
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:473 (plugin_read_json_one) 0x55b70f52c6a7
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:518 (plugin_read_json) 0x55b70f52c81c
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:59 (next_plan) 0x55b70f57a2b6
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:407 (do_plan) 0x55b70f57a761
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:417 (io_ready) 0x55b70f57a7fe
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: ccan/ccan/io/poll.c:445 (io_loop) 0x55b70f57c142
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: lightningd/io_loop_with_timers.c:24 (io_loop_with_timers) 0x55b70f510c6d
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: lightningd/lightningd.c:1015 (main) 0x55b70f514444
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7fce917b20b2
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x55b70f502e6d
2020-09-09T02:24:08.879Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0xffffffffffffffff
vincenzopalazzo commented 3 years ago

Fixed https://github.com/clightning4j/btcli4j/commit/d5686bbd76227c1a262887f2518422d28d61c38c