Skip to content

Commit e8bf891

Browse files
committed
itest: don't modify HTLC amount in testForwardInterceptorWireRecords
The goal of the test is just to make sure that we can pick up the wire records. With the prior bug fix, if we also modify the outgoing amount here, the normal checks to ensure that the fee has been paid will trigger with this larger amount, which wasn't factored in during initial route creation.
1 parent 4f2c75f commit e8bf891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

itest/lnd_forward_interceptor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ func testForwardInterceptorWireRecords(ht *lntest.HarnessTest) {
539539
require.Equal(ht, []byte("test"), val)
540540

541541
action := routerrpc.ResolveHoldForwardAction_RESUME_MODIFIED
542-
newOutgoingAmountMsat := packet.OutgoingAmountMsat + 800
542+
newOutgoingAmountMsat := packet.OutgoingAmountMsat
543543

544544
err := bobInterceptor.Send(&routerrpc.ForwardHtlcInterceptResponse{
545545
IncomingCircuitKey: packet.IncomingCircuitKey,

0 commit comments

Comments
 (0)