waitsendpay: indicate which channel direction the error was.

You can figure this yourself by knowing the route, but it's better to report
it directly here.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-01-15 14:32:27 +10:30
committed by Christian Decker
parent c0cfddfa95
commit be64dd84ca
8 changed files with 59 additions and 19 deletions

View File

@@ -354,6 +354,8 @@ char *dbmigrations[] = {
", state INTEGER"
", UNIQUE(in_htlc_id, out_htlc_id)"
");",
/* Add a direction for failed payments. */
"ALTER TABLE payments ADD faildirection INTEGER;", /* erring_direction */
NULL,
};