itest: add fundMax with maxChanSize test

Add integration test to verify that fundMax uses the protocol-level
maximum channel size instead of the user-configured maxChanSize. The
test uses a table-driven approach to cover both non-wumbo and wumbo
scenarios, creating nodes with restrictive maxChanSize (5M sats) and
verifying that fundMax still creates channels at the protocol maximum.
This commit is contained in:
Yash Bhutwala committed 2026-01-13 10:54:55 -05:00
1 parent 0764f27b6f
commit 73e7708f15
2 files changed
+81

No files matched your search

+4
View File
@@ -567,6 +567,10 @@ var allTestCases = []*lntest.TestCase{
Name: "channel fundmax anchor reserve",
TestFunc: testChannelFundMaxAnchorReserve,
},
{
Name: "channel fundmax maxchansize",
TestFunc: testChannelFundMaxMaxChanSize,
},
{
Name: "htlc timeout resolver extract preimage remote",
TestFunc: testHtlcTimeoutResolverExtractPreimageRemote,