Skip to content

Commit

Permalink
splice: Add funding outnum
Browse files Browse the repository at this point in the history
Fixes #7005

Changelog-Changed: Added outnum of new funding output to splice_signed RPC command
  • Loading branch information
ddustin authored and niftynei committed Jul 15, 2024
1 parent d77301c commit 21bc89f
Show file tree
Hide file tree
Showing 9 changed files with 337 additions and 312 deletions.
5 changes: 5 additions & 0 deletions .msggen.json
Original file line number Diff line number Diff line change
Expand Up @@ -3113,6 +3113,7 @@
"Splice_Signed.sign_first": 3
},
"Splice_signedResponse": {
"Splice_Signed.outnum": 3,
"Splice_Signed.tx": 1,
"Splice_Signed.txid": 2
},
Expand Down Expand Up @@ -10788,6 +10789,10 @@
"added": "pre-v0.10.1",
"deprecated": false
},
"Splice_Signed.outnum": {
"added": "v24.08",
"deprecated": false
},
"Splice_Signed.psbt": {
"added": "pre-v0.10.1",
"deprecated": false
Expand Down
1 change: 1 addition & 0 deletions cln-grpc/proto/node.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cln-grpc/src/convert.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions cln-rpc/src/model.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions contrib/msggen/msggen/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -28150,6 +28150,13 @@
"description": [
"The txid is of the final transaction."
]
},
"outnum": {
"added": "v24.08",
"type": "u32",
"description": [
"The index of the new funding output."
]
}
}
},
Expand Down
624 changes: 312 additions & 312 deletions contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions contrib/pyln-testing/pyln/testing/grpc2py.py
Original file line number Diff line number Diff line change
Expand Up @@ -1947,6 +1947,7 @@ def splice_init2py(m):

def splice_signed2py(m):
return remove_default({
"outnum": m.outnum, # PrimitiveField in generate_composite
"tx": hexlify(m.tx), # PrimitiveField in generate_composite
"txid": hexlify(m.txid), # PrimitiveField in generate_composite
})
Expand Down
7 changes: 7 additions & 0 deletions doc/schemas/lightning-splice_signed.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@
"description": [
"The txid is of the final transaction."
]
},
"outnum": {
"added": "v24.08",
"type": "u32",
"description": [
"The index of the new funding output."
]
}
}
},
Expand Down
1 change: 1 addition & 0 deletions lightningd/channel_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ static void handle_tx_broadcast(struct send_splice_info *info)

json_add_hex(response, "tx", tx_bytes, tal_bytelen(tx_bytes));
json_add_txid(response, "txid", &txid);
json_add_u32(response, "outnum", info->output_index);

was_pending(command_success(info->cc->cmd, response));
}
Expand Down

0 comments on commit 21bc89f

Please sign in to comment.