mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
lightningd: no longer forward failures to gossipd, let caller do it.
We fix up the test by using pay, instead of sendpay (and making pay log the expected message). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Changed: sendpay no longer extracts updates from errors, the caller should do it from the `raw_message`.
This commit is contained in:
committed by
Christian Decker
parent
780fc25413
commit
1a85edd207
@@ -1470,6 +1470,10 @@ payment_waitsendpay_finished(struct command *cmd, const char *buffer,
|
||||
update = channel_update_from_onion_error(tmpctx, p->result->raw_message);
|
||||
if (update) {
|
||||
struct out_req *req;
|
||||
paymod_log(p, LOG_DBG,
|
||||
"Extracted channel_update %s from onionreply %s",
|
||||
tal_hex(tmpctx, update),
|
||||
tal_hex(tmpctx, p->result->raw_message));
|
||||
req = jsonrpc_request_start(p->plugin, NULL, "addgossip",
|
||||
payment_addgossip_success,
|
||||
payment_addgossip_failure, p);
|
||||
|
||||
Reference in New Issue
Block a user