Giter Club home page Giter Club logo

esplora_clnd_plugin's People

Contributors

darosior avatar jsarenik avatar lvaccaro avatar rsbondi avatar vincenzopalazzo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

esplora_clnd_plugin's Issues

estimatefees: had no feerate for block in testnet

Estimate fees should return required values.

estimatefees in testnet: https://blockstream.info/testnet/api/fee-estimates

{
"144": 31.674,
"504": 31.674,
"1008": 31.674
}

estimatefees in mainnet: https://blockstream.info/api/fee-estimates

{
"1": 95.88799999999999,
"2": 95.88799999999999,
"3": 95.88799999999999,
"4": 90.777,
...
"25": 83.243,
"144": 1.249,
"504": 1.249,
"1008": 1.249
}

Lightning crash error log:

2020-08-26T18:50:57.240Z INFO plugin-esplora: esplora initialized.
2020-08-26T18:50:57.240Z DEBUG lightningd: All Bitcoin plugin commands registered
2020-08-26T18:50:57.240Z DEBUG hsmd: new_client: 0
2020-08-26T18:50:57.241Z DEBUG gossipd: total store load time: 0 msec
2020-08-26T18:50:57.241Z DEBUG gossipd: gossip_store: Read 0/0/0/0 cannounce/cupdate/nannounce/cdelete from store (0 deleted) in 1 bytes
2020-08-26T18:50:57.241Z DEBUG gossipd: seeker: state = STARTING_UP New seeker
2020-08-26T18:50:57.618Z INFO plugin-esplora: getchaininfo
2020-08-26T18:50:57.618Z INFO plugin-esplora: block_genesis: 000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943
2020-08-26T18:50:57.618Z INFO plugin-esplora: blockcount: 1824494
2020-08-26T18:50:57.629Z INFO plugin-esplora: err: estimatefees: had no feerate for block 5 ({\"14)?
/usr/local/bin/../libexec/c-lightning/plugins/esplora error: bad response to estimatefees (bad 'result' field), response was {"jsonrpc":"2.0","id":7,"error":{"code":400,"message":"estimatefees: had no feerate for block 5 ({\"14)?"} }

Updates
Some times the response of https://blockstream.info/testnet/api/fee-estimates is an empty json

Crash on Odroid arm32 at plugin startup

I am testing esplora plugin using lightning v0.9.0-1 on odroid arm32.
About 1 on 15 starts of lightningd, the entire system crash and it gets rebooted.
After reconnected, I check the new uptime counter is 0 min.

$ lightningd --testnet --log-level=debug --disable-plugin bcli --esplora-api-endpoint=https://blockstream.info/testnet/api
2020-08-30T21:36:02.673Z DEBUG plugin-manager: blacklist for bcli
2020-08-30T21:36:02.673Z INFO plugin-manager: /usr/local/bin/../libexec/c-lightning/plugins/bcli: disabled via disable-plugin
2020-08-30T21:36:02.673Z DEBUG plugin-manager: blacklist for bcli
2020-08-30T21:36:02.673Z INFO plugin-manager: /usr/local/bin/../libexec/c-lightning/plugins/bcli: disabled via disable-plugin
2020-08-30T21:36:02.679Z DEBUG plugin-manager: started(660) /usr/local/bin/../libexec/c-lightning/plugins/autoclean
2020-08-30T21:36:02.683Z DEBUG plugin-manager: started(661) /usr/local/bin/../libexec/c-lightning/plugins/fundchannel
2020-08-30T21:36:02.687Z DEBUG plugin-manager: started(662) /usr/local/bin/../libexec/c-lightning/plugins/esplora
2020-08-30T21:36:02.703Z DEBUG plugin-manager: started(663) /usr/local/bin/../libexec/c-lightning/plugins/pay
2020-08-30T21:36:02.707Z DEBUG plugin-manager: started(664) /usr/local/bin/../libexec/c-lightning/plugins/keysend
packet_write_wait: Connection to 192.168.xxx.xxx port 22: Broken pipe

High traffic on getutxoset

After funding a channel, lightningd makes a large number of getutxoset requests.
Esplora don't support so many requests and plugin could fail.

object does not have member

$ lightningd --testnet --disable-plugin bcli --esplora-api-endpoint=https://blockstream.info/testnet/api --proxy=127.0.0.1:9050
...
2021-03-28T17:52:36.545Z INFO    plugin-esplora: getutxout
2021-03-28T17:52:38.374Z INFO    plugin-esplora: getutxout
2021-03-28T17:52:40.264Z INFO    plugin-esplora: getutxout
2021-03-28T17:52:41.884Z INFO    plugin-esplora: getutxout
2021-03-28T17:52:44.060Z INFO    plugin-esplora: getutxout
2021-03-28T17:52:45.857Z INFO    plugin-esplora: getutxout
2021-03-28T17:52:47.590Z INFO    plugin-esplora: getutxout
/home/nsm/lightning-my/bin/../libexec/c-lightning/plugins/esplora error: bad response to getutxout (bad 'result' field: Parsing '{result:': object does not have member result), response was {"jsonrpc":"2.0","id":115,"error":{"code":400,"message":"getutxout: json error ({\"txid\":)?"} }
2021-03-28T17:52:47.591Z **BROKEN** lightningd: /home/nsm/lightning-my/bin/../libexec/c-lightning/plugins/esplora error: bad response to getutxout (bad 'result' field: Parsing '{result:': object does not have member result), response was {"jsonrpc":"2.0","id":115,"error":{"code":400,"message":"getutxout: json error ({\"txid\":)?"} }
lightningd: FATAL SIGNAL 6 (version v0.10.0rc2-1-gda918b6)
0x563c1c054bd7 send_backtrace
	common/daemon.c:39
0x563c1c054c81 crashdump
	common/daemon.c:52
0x7f8fd129420f ???
	???:0
0x7f8fd129418b ???
	???:0
0x7f8fd1273858 ???
	???:0
0x563c1c002721 fatal
	lightningd/log.c:803
0x563c1bfda5c3 bitcoin_plugin_error
	lightningd/bitcoind.c:120
0x563c1bfdb2e4 getutxout_callback
	lightningd/bitcoind.c:534
0x563c1c025100 plugin_response_handle
	lightningd/plugin.c:460
0x563c1c025310 plugin_read_json_one
	lightningd/plugin.c:566
0x563c1c0254da plugin_read_json
	lightningd/plugin.c:611
0x563c1c0a93bc next_plan
	ccan/ccan/io/io.c:59
0x563c1c0a9fa1 do_plan
	ccan/ccan/io/io.c:407
0x563c1c0a9fe3 io_ready
	ccan/ccan/io/io.c:417
0x563c1c0ac27b io_loop
	ccan/ccan/io/poll.c:445
0x563c1bffa0d8 io_loop_with_timers
	lightningd/io_loop_with_timers.c:24
0x563c1bfffc99 main
	lightningd/lightningd.c:1102
0x7f8fd12750b2 ???
	???:0
0x563c1bfd9ffd ???
	???:0
0xffffffffffffffff ???
	???:0
2021-03-28T17:52:47.611Z **BROKEN** lightningd: FATAL SIGNAL 6 (version v0.10.0rc2-1-gda918b6)
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: common/daemon.c:44 (send_backtrace) 0x563c1c054c2d
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: common/daemon.c:52 (crashdump) 0x563c1c054c81
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7f8fd129420f
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7f8fd129418b
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7f8fd1273858
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: lightningd/log.c:803 (fatal) 0x563c1c002721
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: lightningd/bitcoind.c:120 (bitcoin_plugin_error) 0x563c1bfda5c3
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: lightningd/bitcoind.c:534 (getutxout_callback) 0x563c1bfdb2e4
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:460 (plugin_response_handle) 0x563c1c025100
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:566 (plugin_read_json_one) 0x563c1c025310
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:611 (plugin_read_json) 0x563c1c0254da
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:59 (next_plan) 0x563c1c0a93bc
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:407 (do_plan) 0x563c1c0a9fa1
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:417 (io_ready) 0x563c1c0a9fe3
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: ccan/ccan/io/poll.c:445 (io_loop) 0x563c1c0ac27b
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: lightningd/io_loop_with_timers.c:24 (io_loop_with_timers) 0x563c1bffa0d8
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: lightningd/lightningd.c:1102 (main) 0x563c1bfffc99
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7f8fd12750b2
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x563c1bfd9ffd
2021-03-28T17:52:47.611Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0xffffffffffffffff
Log dumped in crash.log.20210328175247
autoclean: txprepare: spenderp: pay: Lost connection to the RPC socket.Lost connection to the RPC socket.Lost connection to the RPC socket.Lost connection to the RPC socket.



keysend: Lost connection to the RPC socket.
Aborted

One thing I just realized is that I am using wrong codebase in jsarenik/lightning#1 so I will update from https://github.com/lvaccaro/esplora_clnd_plugin to https://github.com/lightningamp/esplora_clnd_plugin

Feature discussion: Retry HTTP request in cases of bad response from esplora

Hi,

Before all, I want say if this issue contains some stupid affirmation, please close it :)

Today I pass several time to test esplora on my "server" and I received an error descrived inside this issue #15.

before to open the issue I made some test on my branch and I make some consideration, such as:

  • esplora plugin is designed to fetch all data from esplora, it mean that it should make a lot of http connection. In most of the cases and at this moment this plugin is very useful to permit to run c-lightning on small devices, such as raspberry (without some special configuration) or Android devices. With this introduction, I list the possible problem that I can happenend:
    • Small devices can be connected to not good connections, this event can cause some errors such as connection error (i.e. switch network on devices, lost connection on devices for few seconds). Wiht this problem and c-lightning marked some plugin such as important plugin with this PR ElementsProject/lightning#3890.
      At this point some error inside the http request can bring the lightningd to crash. This is not a big problem because you can restart it but this can be frustrating in some cases.

The solution that I want propose, is the same that bcli has inside the code when the bitcoind is not ready. It wait a few second and retries the connection. I think is good to have this function also in esplora plugin?

What do you think?

Report crash during the estimation fee

During the test to support tor I receive this crash!

I will look inside it

This is the stacktrace

2020-09-04T20:00:47.842Z INFO plugin-esplora: err: estimatefees: json error ({\"3\":147)?
/media/vincent/VincentHDD/SandBoxDev/lightning/lightningd/../plugins/esplora error: bad response to estimatefees (bad 'result' field), response was {"jsonrpc":"2.0","id":322,"error":{"code":400,"message":"estimatefees: json error ({\"3\":147)?"} }
2020-09-04T20:00:47.843Z **BROKEN** lightningd: /media/vincent/VincentHDD/SandBoxDev/lightning/lightningd/../plugins/esplora error: bad response to estimatefees (bad 'result' field), response was {"jsonrpc":"2.0","id":322,"error":{"code":400,"message":"estimatefees: json error ({\"3\":147)?"} }
lightningd: FATAL SIGNAL 6 (version v0.9.0-1-modded)
0x55eede8ae5d0 send_backtrace
	common/daemon.c:38
0x55eede8ae676 crashdump
	common/daemon.c:51
0x7fc6b51ecfcf ???
	???:0
0x7fc6b51ecf47 ???
	???:0
0x7fc6b51ee8b0 ???
	???:0
0x55eede87d764 fatal
	lightningd/log.c:820
0x55eede860c93 bitcoin_plugin_error
	lightningd/bitcoind.c:119
0x55eede860d89 estimatefees_callback
	lightningd/bitcoind.c:179
0x55eede89cf1c plugin_response_handle
	lightningd/plugin.c:335
0x55eede89d0d8 plugin_read_json_one
	lightningd/plugin.c:444
0x55eede89d231 plugin_read_json
	lightningd/plugin.c:477
0x55eede90efc8 next_plan
	ccan/ccan/io/io.c:59
0x55eede90fb45 do_plan
	ccan/ccan/io/io.c:407
0x55eede90fb83 io_ready
	ccan/ccan/io/io.c:417
0x55eede911d49 io_loop
	ccan/ccan/io/poll.c:445
0x55eede8756e4 io_loop_with_timers
	lightningd/io_loop_with_timers.c:24
0x55eede87ad06 main
	lightningd/lightningd.c:997
0x7fc6b51cfb96 ???
	???:0
0x55eede8606c9 ???
	???:0
0xffffffffffffffff ???
	???:0
2020-09-04T20:00:50.459Z **BROKEN** lightningd: FATAL SIGNAL 6 (version v0.9.0-1-modded)
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: common/daemon.c:43 (send_backtrace) 0x55eede8ae626
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: common/daemon.c:51 (crashdump) 0x55eede8ae676
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7fc6b51ecfcf
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7fc6b51ecf47
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7fc6b51ee8b0
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: lightningd/log.c:820 (fatal) 0x55eede87d764
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: lightningd/bitcoind.c:119 (bitcoin_plugin_error) 0x55eede860c93
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: lightningd/bitcoind.c:179 (estimatefees_callback) 0x55eede860d89
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:335 (plugin_response_handle) 0x55eede89cf1c
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:444 (plugin_read_json_one) 0x55eede89d0d8
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:477 (plugin_read_json) 0x55eede89d231
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:59 (next_plan) 0x55eede90efc8
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:407 (do_plan) 0x55eede90fb45
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:417 (io_ready) 0x55eede90fb83
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: ccan/ccan/io/poll.c:445 (io_loop) 0x55eede911d49
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: lightningd/io_loop_with_timers.c:24 (io_loop_with_timers) 0x55eede8756e4
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: lightningd/lightningd.c:997 (main) 0x55eede87ad06
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7fc6b51cfb96
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x55eede8606c9
2020-09-04T20:00:50.459Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0xffffffffffffffff
Log dumped in crash.log.20200904200050
fundchannel: autoclean: Lost connection to the RPC socket.Lost connection to the RPC socket.

Feature esplora loggin

Hi.

This feature request is discussed inside this lamp PR.

Sometimes the log is too much, such as the example below.

In my opinion, block hex doesn't have a lot of sens in production to see the hex for each block, the normal user could not understand the meaning of this line, also the plugin makes possible run c-lightning in small devices without bitcoin core, and have a small log result should be a good option.

2020-08-16T14:48:43.091Z INFO plugin-esplora: getrawblockbyheight 7527
2020-08-16T14:48:43.091Z INFO plugin-esplora: blockhash: 00000000460acaf3de600a7a70cd266ca615190130b336bcf2804d9d5546d527 from https://blockstream.info/api/block-height/7527
2020-08-16T14:48:43.091Z DEBUG lightningd: Adding block 7527: 00000000460acaf3de600a7a70cd266ca615190130b336bcf2804d9d5546d527
2020-08-16T14:48:43.159Z plugin-esplora: [IN] 7b226a736f6e727063223a22322e30222c226d6574686f64223a226c6f67222c22706172616d73223a7b226c6576656c223a22696e666f222c226d657373616765223a22676574726177626c6f636b62796865696768742037353238227d207d0a0a7b226a736f6e727063223a22322e30222c226d6574686f64223a226c6f67222c22706172616d73223a7b226c6576656c223a22696e666f222c226d657373616765223a22626c6f636b686173683a20303030303030303034623065313537616138376561633063353666373466383132363761353836346561616530353036346330613062623165396535333239642066726f6d2068747470733a2f2f626c6f636b73747265616d2e696e666f2f6170692f626c6f636b2d6865696768742f37353238227d207d0a0a7b226a736f6e727063223a22322e30222c226964223a3634382c22726573756c74223a7b22626c6f636b68617368223a2230303030303030303462306531353761613837656163306335366637346638313236376135383634656161653035303634633061306262316539653533323964222c22626c6f636b223a22303130303030303032376435343635353964346438306632626333366233333030313139313561363663323663643730376130613630646566336361306134363030303030303030346236663663656164316264366164636236633331366165333638323861303232616432383436323934363733303461646164393938623236636332383265313337663162633439666666663030316433316639376435303031303130303030303030313030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303066666666666666663038303466666666303031643032373530316666666666666666303130306632303532613031303030303030343334313034636236356232346236323332386638396664356563353339373335393462383135663864323766623231393731656533613533623736383665393335636363306433666436343964353230653062303836646336636161383262633035383437353334653961336664666561343033666466383462376536303663653939613461633030303030303030227d207d0a0a

Suggestion

In my opinion is good to have the possibility to enable this line of log from the command line, of instance --debug-esplora=true

There are more exhaustive debug lines before printing all hexadecimal value, these are good if you are testing the lightningd, In cases, the people need to test esplora plugin, they can enable the esplora plugin by command line with debug mode.

Maybe, this can be, "good first issue"? :)

blockhash: trailing characters

Some time blockhash has a wrong dimension > 64.

2020-08-26T20:34:09.535Z INFO plugin-esplora: getrawblockbyheight 1824830
2020-08-26T20:34:09.535Z INFO plugin-esplora: blockhash: 000000000000df921a1bc51e5aed86aa9a213289017aa05731e6a79914580a1f from https://blockstream.info/testnet/api/block-height/1824830
2020-08-26T20:34:09.536Z DEBUG lightningd: Adding block 1824830: 000000000000df921a1bc51e5aed86aa9a213289017aa05731e6a79914580a1f
2020-08-26T20:34:09.751Z INFO plugin-esplora: getrawblockbyheight 1824831
2020-08-26T20:34:09.751Z INFO plugin-esplora: blockhash: 000000000000ed8a9b12a262649ae4b46ecd3ec225d79b9e747d71eed04ee4de\u0011 from https://blockstream.info/testnet/api/block-height/1824831
2020-08-26T20:34:09.751Z INFO plugin-esplora: getrawblockbyheight: request error on https://blockstream.info/testnet/api/block/000000000000ed8a9b12a262649ae4b46ecd3ec225d79b9e747d71eed04ee4de?\u0007/raw

This looks a '\0' errors.

A cache for a quicker initial catch-up with bitcoind

On Lamp the startup sync with bitcoind takes approximatively 2 orders of magnitudes more time using my Esplora instance or bs.info than using a local bitcoind RPC.

I think we should detect by how much block is lightningd far from the tip and cache blocks from Esplora so that the biggest above bottleneck (bandwidth) is compensated.

This is halfly a self-assignment and remainder but if someone wants to work on this feel free (just comment here).

Q: Alternatives to polling last+1 block

My bitcoind -testnet replies to bitcoin-cli -testnet getblockheight with 1969804 but lightningd with esplora_clnd_plugin repeatedly tries to get block 1969805. Are there other options than polling last+1 block repeatedly? (/me thinks about bitcoind message Synchronizing blockheaders, height: 1969804 (~100.00%))

Just wondering, maybe it is not worth the time but here it is, waiting for ideas.

esplora error: bad response to getutxout (bad 'amount' field)

Hi @lvaccaro,

I try to using esplora plugin to work with lightningd on my desktop to test the plugin.

I run lightnind several time and I receive this error from lightnind at different points.

I will try to resproduce this bug with my personal esplora plugin version, maybe with more debug print :)

/root/github/lightning/lightningd/../plugins/esplora` error: bad response to getutxout (bad 'amount' field), response was {"jsonrpc":"2.0","id":8426,"result":{"script":"00200fb4a46ec4c5"} }
2020-08-16T23:52:07.979Z **BROKEN** lightningd: /root/github/lightning/lightningd/../plugins/esplora error: bad response to getutxout (bad 'amount' field), response was {"jsonrpc":"2.0","id":8426,"result":{"script":"00200fb4a46ec4c5"} }
lightningd: FATAL SIGNAL 6 (version v0.8.2-625-ga3da02a)
0x55b88875dd91 send_backtrace
	common/daemon.c:38
0x55b88875de2b crashdump
	common/daemon.c:51
0x7f2bf1cd820f ???
	???:0
0x7f2bf1cd818b ???
	???:0
0x7f2bf1cb7858 ???
	???:0
0x55b88873e51f fatal
	lightningd/log.c:820
0x55b88872b119 bitcoin_plugin_error
	lightningd/bitcoind.c:119
0x55b88872ba7d getutxout_callback
	lightningd/bitcoind.c:559
0x55b888754322 plugin_response_handle
	lightningd/plugin.c:366
0x55b88875442e plugin_read_json_one
	lightningd/plugin.c:475
0x55b888754569 plugin_read_json
	lightningd/plugin.c:508
0x55b8887a35e1 next_plan
	ccan/ccan/io/io.c:59
0x55b8887a3a8c do_plan
	ccan/ccan/io/io.c:407
0x55b8887a3b29 io_ready
	ccan/ccan/io/io.c:417
0x55b8887a546d io_loop
	ccan/ccan/io/poll.c:445
0x55b888738c9d io_loop_with_timers
	lightningd/io_loop_with_timers.c:24
0x55b88873c459 main
	lightningd/lightningd.c:1014
0x7f2bf1cb90b2 ???
	???:0
0x55b88872ae6d ???
	???:0
0xffffffffffffffff ???
	???:0
2020-08-16T23:52:08.019Z **BROKEN** lightningd: FATAL SIGNAL 6 (version v0.8.2-625-ga3da02a)
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: common/daemon.c:43 (send_backtrace) 0x55b88875ddd9
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: common/daemon.c:51 (crashdump) 0x55b88875de2b
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7f2bf1cd820f
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7f2bf1cd818b
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7f2bf1cb7858
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: lightningd/log.c:820 (fatal) 0x55b88873e51f
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: lightningd/bitcoind.c:119 (bitcoin_plugin_error) 0x55b88872b119
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: lightningd/bitcoind.c:559 (getutxout_callback) 0x55b88872ba7d
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:366 (plugin_response_handle) 0x55b888754322
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:475 (plugin_read_json_one) 0x55b88875442e
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:508 (plugin_read_json) 0x55b888754569
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:59 (next_plan) 0x55b8887a35e1
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:407 (do_plan) 0x55b8887a3a8c
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:417 (io_ready) 0x55b8887a3b29
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: ccan/ccan/io/poll.c:445 (io_loop) 0x55b8887a546d
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: lightningd/io_loop_with_timers.c:24 (io_loop_with_timers) 0x55b888738c9d
2020-08-16T23:52:08.019Z **BROKEN** lightningd: backtrace: lightningd/lightningd.c:1014 (main) 0x55b88873c459
2020-08-16T23:52:08.020Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7f2bf1cb90b2
2020-08-16T23:52:08.020Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x55b88872ae6d
2020-08-16T23:52:08.020Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0xffffffffffffffff
Log dumped in crash.log.20200816235208

getutxout empty request

it is well clear to be because at startup time, the plugin receive a getutxout request with an empty buffer. I locally try to print the buffer in the error message (= null):

$ lightningd --testnet --log-level=debug --disable-plugin bcli --disable-plugin keysend --esplora-api-endpoint=https://blockstream.info/testnet/api
2020-08-29T07:36:04.705Z DEBUG plugin-manager: blacklist for bcli
2020-08-29T07:36:04.705Z INFO plugin-manager: /usr/local/bin/../libexec/c-lightning/plugins/bcli: disabled via disable-plugin
2020-08-29T07:36:04.705Z DEBUG plugin-manager: blacklist for bcli
2020-08-29T07:36:04.705Z INFO plugin-manager: /usr/local/bin/../libexec/c-lightning/plugins/bcli: disabled via disable-plugin
2020-08-29T07:36:04.712Z DEBUG plugin-manager: started(1359) /usr/local/bin/../libexec/c-lightning/plugins/autoclean
2020-08-29T07:36:04.716Z DEBUG plugin-manager: started(1360) /usr/local/bin/../libexec/c-lightning/plugins/fundchannel
2020-08-29T07:36:04.720Z DEBUG plugin-manager: started(1361) /usr/local/bin/../libexec/c-lightning/plugins/esplora
2020-08-29T07:36:04.736Z DEBUG plugin-manager: started(1362) /usr/local/bin/../libexec/c-lightning/plugins/pay
2020-08-29T07:36:04.766Z INFO plugin-esplora: getutxout
2020-08-29T07:36:04.766Z INFO plugin-esplora: getutxout: txid or vout error: (null)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.