mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
common/bolt11: use struct amount_msat
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <ccan/str/str.h>
|
||||
#include <ccan/tal/str/str.h>
|
||||
#include <ccan/time/time.h>
|
||||
#include <common/amount.h>
|
||||
#include <common/bech32.h>
|
||||
#include <common/bolt11.h>
|
||||
#include <common/type_to_string.h>
|
||||
@@ -104,8 +105,11 @@ int main(int argc, char *argv[])
|
||||
printf("payment_hash: %s\n",
|
||||
tal_hexstr(ctx, &b11->payment_hash, sizeof(b11->payment_hash)));
|
||||
printf("min_final_cltv_expiry: %u\n", b11->min_final_cltv_expiry);
|
||||
if (b11->msatoshi)
|
||||
printf("msatoshi: %"PRIu64"\n", *b11->msatoshi);
|
||||
if (b11->msat) {
|
||||
printf("msatoshi: %"PRIu64"\n", b11->msat->millisatoshis);
|
||||
printf("amount_msat: %s\n",
|
||||
type_to_string(tmpctx, struct amount_msat, b11->msat));
|
||||
}
|
||||
if (b11->description)
|
||||
printf("description: '%s'\n", b11->description);
|
||||
if (b11->description_hash)
|
||||
|
||||
Reference in New Issue
Block a user