mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-18 22:54:25 +01:00
amount: use initializers everywhere.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -83,7 +83,7 @@ static void do_generate(int argc, char **argv,
|
||||
|
||||
/* FIXME: support secret and and total_msat */
|
||||
memset(&scid, i, sizeof(scid));
|
||||
amt.millisatoshis = i; /* Raw: test code */
|
||||
amt = amount_msat(i);
|
||||
if (i == num_hops - 1)
|
||||
sphinx_add_hop(sp, &path[i],
|
||||
take(onion_final_hop(NULL,
|
||||
|
||||
Reference in New Issue
Block a user