mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-08 16:44:22 +01:00
Update to lightning-rfc to dc0b529161561c6be3ff53c5f8574b23c3305a04
Only minor changes, but I add some more spec text to lightningd/test/run-commit_tx.c to be sure to catch if it changes again. One reference isn't upstream yet, so had to be commented out. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -358,6 +358,22 @@ static u64 increase(u64 feerate_per_kw)
|
||||
#else
|
||||
static u64 increase(u64 feerate_per_kw)
|
||||
{
|
||||
/* BOLT #3:
|
||||
*
|
||||
* local_feerate_per_kw: 0
|
||||
* ...
|
||||
* local_feerate_per_kw: 677
|
||||
* ...
|
||||
* local_feerate_per_kw: 2162
|
||||
* ...
|
||||
* local_feerate_per_kw: 2292
|
||||
* ...
|
||||
* local_feerate_per_kw: 3867
|
||||
* ...
|
||||
* local_feerate_per_kw: 5134
|
||||
* ...
|
||||
* local_feerate_per_kw: 9651181
|
||||
*/
|
||||
const u64 rates[] = { 0, 677, 2162, 2292, 3867, 5134, 9651181 };
|
||||
size_t i;
|
||||
|
||||
@@ -876,6 +892,15 @@ int main(void)
|
||||
continue;
|
||||
}
|
||||
|
||||
/* BOLT #3:
|
||||
*
|
||||
* name: commitment tx with fee greater than funder amount
|
||||
* to_local_msat: 6988000000
|
||||
* to_remote_msat: 3000000000
|
||||
* local_feerate_per_kw: 9651936
|
||||
*/
|
||||
assert(feerate_per_kw == 9651936);
|
||||
|
||||
printf("\n"
|
||||
"name: commitment tx with fee greater than funder amount\n"
|
||||
"to_local_msat: %"PRIu64"\n"
|
||||
|
||||
Reference in New Issue
Block a user