mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
rpc: have fundchannel_start also return scriptpubkey
Easier to pass it back than dig it out of the address, since we have it. Needed for extracting fundchannel
This commit is contained in:
committed by
Rusty Russell
parent
19e65068a9
commit
b1f05795a8
@@ -343,8 +343,10 @@ static void funding_started_success(struct funding_channel *fc,
|
||||
out = encode_scriptpubkey_to_addr(cmd,
|
||||
get_chainparams(cmd->ld)->bip173_name,
|
||||
scriptPubkey);
|
||||
if (out)
|
||||
if (out) {
|
||||
json_add_string(response, "funding_address", out);
|
||||
json_add_hex_talarr(response, "scriptpubkey", scriptPubkey);
|
||||
}
|
||||
|
||||
/* Clear this so cancel doesn't think it's still in progress */
|
||||
fc->cmd = NULL;
|
||||
|
||||
Reference in New Issue
Block a user