@@ -453,6 +453,9 @@ completed.
453
453
2 . data:
454
454
* [ ` s64 ` :` satoshis ` ]
455
455
1 . type: 2 (` require_confirmed_inputs ` )
456
+ 1 . type: 5 (` request_funding ` )
457
+ 2 . data:
458
+ * [ ` request_funds ` :` request_funds ` ]
456
459
457
460
#### Requirements
458
461
@@ -463,6 +466,12 @@ The sender:
463
466
- MUST set ` funding_output_contribution `
464
467
- If it requires the receiving node to only use confirmed inputs:
465
468
- MUST set ` require_confirmed_inputs `
469
+ - If it wants the receiving node to contribute to the funding transaction
470
+ using ` option_will_fund ` :
471
+ - MUST send ` request_funding ` containing one of the funding rates and
472
+ ` payment_type ` s supported by the receiving node.
473
+ - If the previous transaction included ` request_funding ` :
474
+ - SHOULD include ` request_funding ` .
466
475
467
476
The recipient:
468
477
- MUST respond either with ` tx_abort ` or with ` tx_ack_rbf `
@@ -472,6 +481,8 @@ The recipient:
472
481
- MAY send ` tx_abort ` for any reason
473
482
- MUST fail the negotiation if:
474
483
- ` require_confirmed_inputs ` is set but it cannot provide confirmed inputs
484
+ - ` request_funding ` was included in the previous transaction but is not
485
+ included in ` tx_init_rbf ` .
475
486
476
487
#### Rationale
477
488
@@ -505,6 +516,9 @@ not contributing to the funding output.
505
516
2 . data:
506
517
* [ ` s64 ` :` satoshis ` ]
507
518
1 . type: 2 (` require_confirmed_inputs ` )
519
+ 1 . type: 5 (` provide_funding ` )
520
+ 2 . data:
521
+ * [ ` will_fund ` :` will_fund ` ]
508
522
509
523
#### Requirements
510
524
@@ -513,12 +527,16 @@ The sender:
513
527
- MUST set ` funding_output_contribution `
514
528
- If it requires the receiving node to only use confirmed inputs:
515
529
- MUST set ` require_confirmed_inputs `
530
+ - If the ` request_funding ` TLV was sent in ` tx_init_rbf ` :
531
+ - MUST apply the same requirements as ` accept_channel2 `
516
532
517
533
The recipient:
518
534
- MUST respond with ` tx_abort ` or with a ` tx_add_input ` message,
519
535
restarting the interactive tx collaboration protocol.
520
536
- MUST fail the negotiation if:
521
537
- ` require_confirmed_inputs ` is set but it cannot provide confirmed inputs
538
+ - MAY fail the negotiation if ` provide_funding ` does not match what it
539
+ expects, similar to the requirements for ` accept_channel2 ` .
522
540
523
541
#### Rationale
524
542
@@ -1163,7 +1181,7 @@ This message initiates the v2 channel establishment workflow.
1163
1181
2 . data:
1164
1182
* [ ` ...*byte ` :` type ` ]
1165
1183
1 . type: 2 (` require_confirmed_inputs ` )
1166
- 1 . type: 3 (` request_funding ` )
1184
+ 1 . type: 5 (` request_funding ` )
1167
1185
2 . data:
1168
1186
* [ ` request_funds ` :` request_funds ` ]
1169
1187
@@ -1260,7 +1278,7 @@ acceptance of the new channel.
1260
1278
2 . data:
1261
1279
* [ ` ...*byte ` :` type ` ]
1262
1280
1 . type: 2 (` require_confirmed_inputs ` )
1263
- 1 . type: 3 (` provide_funding ` )
1281
+ 1 . type: 5 (` provide_funding ` )
1264
1282
2 . data:
1265
1283
* [ ` will_fund ` :` will_fund ` ]
1266
1284
0 commit comments