bolt11: handle r value fee spec change.

We don't use it yet, but now we'll decode correctly.

See: https://github.com/lightningnetwork/lightning-rfc/pull/317
lightning-rfc commit: ef053c09431442697ab46e83f9d3f86e3510a18e

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-12-12 11:04:07 +10:30
committed by Christian Decker
parent e9f9721ed3
commit 0610f66c34
7 changed files with 36 additions and 26 deletions

View File

@@ -142,12 +142,13 @@ int main(int argc, char *argv[])
for (i = 0; i < tal_count(b11->routes); i++) {
printf("route: (node/chanid/fee/expirydelta) ");
for (size_t n = 0; n < tal_count(b11->routes[i]); n++) {
printf(" %s/%s/%"PRIu64"/%u",
printf(" %s/%s/%u/%u/%u",
type_to_string(ctx, struct pubkey,
&b11->routes[i][n].pubkey),
type_to_string(ctx, struct short_channel_id,
&b11->routes[i][n].short_channel_id),
b11->routes[i][n].fee,
b11->routes[i][n].fee_base_msat,
b11->routes[i][n].fee_proportional_millionths,
b11->routes[i][n].cltv_expiry_delta);
}
printf("\n");