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:
Rusty Russell
2021-02-02 15:46:22 +10:30
committed by Christian Decker
parent 780fc25413
commit 1a85edd207
8 changed files with 7 additions and 145 deletions

View File

@@ -490,12 +490,6 @@ remote_routing_failure(const tal_t *ctx,
erring_node = &route_nodes[origin_index];
}
/* Tell gossipd; it will try to extract channel_update */
/* FIXME: sendonion caller should do this, and inform gossipd of any
* permanent errors. */
subd_send_msg(ld->gossip,
take(towire_gossipd_payment_failure(NULL, failuremsg)));
routing_failure->erring_index = (unsigned int) (origin_index + 1);
routing_failure->failcode = failcode;
routing_failure->msg = tal_dup_talarr(routing_failure, u8, failuremsg);