coffee-tools / folgore

Universal Bitcoin backend for core lightning with BIP 157 support full based on the btcli4j Kotlin plugin! Ah, yes it is written in Rust
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

increasing the waiting time in the try logic #74

Open vincenzopalazzo opened 2 months ago

vincenzopalazzo commented 2 months ago
2024-04-29T14:14:27.556Z INFO    plugin-folgore_plugin: running into retry logic due a request failing. Time `4` waiting `960` secs
2024-04-29T14:14:27.557Z INFO    plugin-folgore_plugin: we try 4 times the request but the error persist
2024-04-29T14:14:27.558Z DEBUG   plugin-folgore_plugin: Error during the recovery strategy: `Some(PluginError { code: -1, msg: \"[404] Unknown error (Block not found)\", data: None })`
2024-04-29T14:14:27.558Z UNUSUAL plugin-folgore_plugin: client `esplora` return an error: code: -1, msg: Recovery strategy (TimeoutRety) fails: `code: -1, msg: [404] Unknown error (Block not found)`
2024-04-29T14:14:27.559Z **BROKEN** lightningd: /home/vincent/.coffee/testnet/plugins/folgore/target/release/folgore_plugin error: bad response to getrawblockbyheight (bad 'result' field: Parsing '{result:': object does not have member result), response was {"error":{"code":-1,"data":null,"message":"Recovery strategy (TimeoutRety) fails: `code: -1, msg: [404] Unknown error (Block not found)`"},"id":"cln:getrawblockbyheight#88390","jsonrpc":"2.0"}

This should be done with the the command line option