htlcswitch: return FEE_INSUFFICIENT before checking balance

This commit is contained in:
yyforyongyu committed 2023-03-16 08:30:38 +08:00
1 parent 098bb36114
commit 4054ace4e1
3 files changed
+27 -12

No files matched your search

+1
View File
@@ -5339,6 +5339,7 @@ func testSwitchHandlePacketForward(t *testing.T, zeroConf, private,
ogPacket := &htlcPacket{
incomingChanID: bobLink.ShortChanID(),
incomingHTLCID: 0,
incomingAmount: 1000,
obfuscator: NewMockObfuscator(),
htlc: &lnwire.UpdateAddHTLC{
PaymentHash: rhash,