@@ -1279,16 +1279,23 @@ func testCustomChannelsGroupTranchesForceClose(ctx context.Context,
12791279	// that transports assets from two tranches. 
12801280	// ------------ 
12811281	const  (
1282- 		keySendAmount   =  5000 
1283- 		numSends        =  6 
1284- 		totalFirstSend  =  keySendAmount  *  numSends 
1282+ 		keySendAmount     =  5000 
1283+ 		keySendSatAmount  =  5000 
1284+ 		numSends          =  6 
1285+ 		totalFirstSend    =  keySendAmount  *  numSends 
12851286	)
12861287	for  i  :=  0 ; i  <  numSends ; i ++  {
12871288		sendAssetKeySendPayment (
12881289			t .t , charlie , dave , keySendAmount , nil ,
12891290			fn .None [int64 ](), withGroupKey (groupKey ),
12901291		)
12911292	}
1293+ 
1294+ 	// With noop HTLCs implemented the sats balance of Dave will only 
1295+ 	// increase up to the reserve amount. Let's make a direct non-asset 
1296+ 	// keysend to make sure the sats balance is also enough. 
1297+ 	sendKeySendPayment (t .t , charlie , dave , keySendSatAmount )
1298+ 
12921299	logBalanceGroup (t .t , nodes , groupIDs , "after keysend Charlie->Dave" )
12931300
12941301	// ------------ 
@@ -1528,8 +1535,9 @@ func testCustomChannelsGroupTranchesHtlcForceClose(ctx context.Context,
15281535	// First, we'll send over some funds from Charlie to Dave, as we want 
15291536	// Dave to be able to extend HTLCs in the other direction. 
15301537	const  (
1531- 		numPayments    =  10 
1532- 		keySendAmount  =  2_500 
1538+ 		numPayments       =  10 
1539+ 		keySendAmount     =  2_500 
1540+ 		keySendSatAmount  =  5000 
15331541	)
15341542	for  i  :=  0 ; i  <  numPayments ; i ++  {
15351543		sendAssetKeySendPayment (
@@ -1538,6 +1546,11 @@ func testCustomChannelsGroupTranchesHtlcForceClose(ctx context.Context,
15381546		)
15391547	}
15401548
1549+ 	// With noop HTLCs implemented the sats balance of Dave will only 
1550+ 	// increase up to the reserve amount. Let's make a direct non-asset 
1551+ 	// keysend to make sure the sats balance is also enough. 
1552+ 	sendKeySendPayment (t .t , charlie , dave , keySendSatAmount )
1553+ 
15411554	// Now that both parties have some funds, we'll move onto the main test. 
15421555	// 
15431556	// We'll make 2 hodl invoice for each peer, so 4 total. From Charlie's 
@@ -4119,16 +4132,24 @@ func runCustomChannelsHtlcForceClose(ctx context.Context, t *harnessTest,
41194132	// First, we'll send over some funds from Alice to Bob, as we want Bob 
41204133	// to be able to extend HTLCs in the other direction. 
41214134	const  (
4122- 		numPayments    =  10 
4123- 		keySendAmount  =  2_500 
4135+ 		numPayments         =  10 
4136+ 		keySendAssetAmount  =  2_500 
4137+ 		keySendSatAmount    =  5_000 
41244138	)
41254139	for  i  :=  0 ; i  <  numPayments ; i ++  {
41264140		sendAssetKeySendPayment (
4127- 			t .t , alice , bob , keySendAmount , assetID ,
4141+ 			t .t , alice , bob , keySendAssetAmount , assetID ,
41284142			fn .None [int64 ](),
41294143		)
41304144	}
41314145
4146+ 	// With noop HTLCs implemented the sats balance of Bob will only 
4147+ 	// increase up to the reserve amount. Let's make a direct non-asset 
4148+ 	// keysend to make sure the sats balance is also enough. 
4149+ 	sendKeySendPayment (t .t , alice , bob , keySendSatAmount )
4150+ 
4151+ 	logBalance (t .t , nodes , assetID , "after keysends to Bob" )
4152+ 
41324153	// Now that both parties have some funds, we'll move onto the main test. 
41334154	// 
41344155	// We'll make 2 hodl invoice for each peer, so 4 total. From Alice's 
0 commit comments