invoice: handle bolt12 strings if EXPERIMENTAL_FEATURES.

The database still calls them `bolt11`, but we treat them depending on
prefix.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-12-14 11:53:07 +10:30
committed by Christian Decker
parent fab0842d31
commit 4c4288e3e5
8 changed files with 21 additions and 9 deletions

View File

@@ -107,8 +107,8 @@ static struct invoice_details *wallet_stmt2invoice_details(const tal_t *ctx,
dtl->paid_timestamp = db_column_u64(stmt, 8);
}
dtl->bolt11 = tal_strndup(dtl, db_column_blob(stmt, 9),
db_column_bytes(stmt, 9));
dtl->invstring = tal_strndup(dtl, db_column_blob(stmt, 9),
db_column_bytes(stmt, 9));
if (!db_column_is_null(stmt, 10))
dtl->description = tal_strdup(