pay: remove route when a payment fails partway.

It's a bit harsh, but I'm assuming they'll get refreshed eventually.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-08-31 16:10:17 +09:30
parent d8af789bbb
commit 7bebfe265c
4 changed files with 103 additions and 9 deletions

View File

@@ -51,6 +51,9 @@ struct node_connection *add_connection(struct lightningd_state *dstate,
u32 base_fee, s32 proportional_fee,
u32 delay, u32 min_blocks);
void remove_connection(struct lightningd_state *dstate,
const struct pubkey *src, const struct pubkey *dst);
struct peer *find_route(struct lightningd_state *dstate,
const struct pubkey *to,
u64 msatoshi, s64 *fee,