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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user