mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04: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
@@ -1211,9 +1211,9 @@ def test_bcli(node_factory, bitcoind, chainparams):
|
||||
|
||||
l1.fundwallet(10**5)
|
||||
l1.connect(l2)
|
||||
fc = l1.rpc.fundchannel(l2.info["id"], 10**4 * 2)
|
||||
fc = l1.rpc.fundchannel(l2.info["id"], 10**4 * 3)
|
||||
txo = l1.rpc.call("getutxout", {"txid": fc['txid'], "vout": fc['outnum']})
|
||||
assert (Millisatoshi(txo["amount"]) == Millisatoshi(10**4 * 2 * 10**3)
|
||||
assert (Millisatoshi(txo["amount"]) == Millisatoshi(10**4 * 3 * 10**3)
|
||||
and txo["script"].startswith("0020"))
|
||||
l1.rpc.close(l2.info["id"])
|
||||
# When output is spent, it should give us null !
|
||||
|
||||
Reference in New Issue
Block a user