Skip to content

Commit af0fc0c

Browse files
committed
ln_init: space out channel open tx fee rates more
1 parent 6d4aff6 commit af0fc0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/scenarios/ln_init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,11 @@ def open_channel(self, ch, fee_rate):
240240

241241
channels = sorted(ch_by_block[target_block], key=lambda ch: ch["id"]["index"])
242242
index = 0
243-
fee_rate = 5006 # s/vB, decreases by 5 per tx for up to 1000 txs per block
243+
fee_rate = 5006 # s/vB, decreases by 20 per tx for up to 250 txs per block
244244
ch_threads = []
245245
for ch in channels:
246246
index += 1 # noqa
247-
fee_rate -= 5
247+
fee_rate -= 20
248248
assert index == ch["id"]["index"], "Channel ID indexes are not consecutive"
249249
assert fee_rate >= 1, "Too many TXs in block, out of fee range"
250250
t = threading.Thread(target=open_channel, args=(self, ch, fee_rate))

0 commit comments

Comments
 (0)