mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +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
@@ -462,11 +462,11 @@ def test_routing_gossip_reconnect(node_factory):
|
||||
{'may_reconnect': True},
|
||||
{}])
|
||||
l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
|
||||
l1.openchannel(l2, 20000)
|
||||
l1.openchannel(l2, 25000)
|
||||
|
||||
# Now open new channels and everybody should sync
|
||||
l2.rpc.connect(l3.info['id'], 'localhost', l3.port)
|
||||
l2.openchannel(l3, 20000)
|
||||
l2.openchannel(l3, 25000)
|
||||
|
||||
# Settle the gossip
|
||||
for n in [l1, l2, l3]:
|
||||
@@ -508,7 +508,7 @@ def test_routing_gossip(node_factory, bitcoind):
|
||||
for i in range(len(nodes) - 1):
|
||||
src, dst = nodes[i], nodes[i + 1]
|
||||
src.rpc.connect(dst.info['id'], 'localhost', dst.port)
|
||||
src.openchannel(dst, 20000)
|
||||
src.openchannel(dst, 25000)
|
||||
|
||||
# Allow announce messages.
|
||||
bitcoind.generate_block(5)
|
||||
|
||||
Reference in New Issue
Block a user