mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-02 20:54:23 +01:00
invoice: a cleanup for the json of struct sha256
Here should't be accessed directly to the underlying of struct sha256.
This commit is contained in:
committed by
ZmnSCPxj, ZmnSCPxj jxPCSmnZ
parent
5ac02907bb
commit
31e2e70f17
@@ -514,7 +514,7 @@ static void gossipd_incoming_channels_reply(struct subd *gossipd,
|
||||
details = wallet_invoice_details(info, wallet, invoice);
|
||||
|
||||
response = json_stream_success(info->cmd);
|
||||
json_add_hex(response, "payment_hash", details->rhash.u.u8,
|
||||
json_add_hex(response, "payment_hash", &details->rhash,
|
||||
sizeof(details->rhash));
|
||||
json_add_u64(response, "expires_at", details->expiry_time);
|
||||
json_add_string(response, "bolt11", details->bolt11);
|
||||
|
||||
Reference in New Issue
Block a user