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

Pruning mode crash during block indexing #40

Open vincenzopalazzo opened 3 years ago

vincenzopalazzo commented 3 years ago

During the block indexing, the plugin will crash because it shares the info with esplora in get info chain, but in the next command that the plugin receives it will crash because we have no method to check that the bitcoin core is not ready.

So a possible solution is to check the type of exception and if the exception is like fo following one, check the bitcoin status in downloading mode or adding a new proprieties in the plugin manager.

Return command example

error code: -28
error message:
Loading block index...