mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
pytest: increase channel sizes so they reach min capacity with option_anchor_outputs
With a feerate of 7500perkw and subtracting 660 sats for anchors, a 20,000 sat channel has capacity about 9800 sat, below our default: You gave bad parameters: channel capacity with funding 20000sat, reserves 546sat/546sat, max_htlc_value_in_flight_msat is 18446744073709551615msat, channel capacity is 9818sat, which is below 10000000msat So bump channel amounts. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
9fabf614f4
commit
74e960c20b
@@ -467,7 +467,7 @@ def test_bech32_funding(node_factory, chainparams):
|
||||
l1, l2 = node_factory.line_graph(2, opts={'random_hsm': True}, fundchannel=False)
|
||||
|
||||
# fund a bech32 address and then open a channel with it
|
||||
res = l1.openchannel(l2, 20000, 'bech32')
|
||||
res = l1.openchannel(l2, 25000, 'bech32')
|
||||
address = res['address']
|
||||
assert address.startswith(chainparams['bip173_prefix'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user