mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-12 15:17:32 +01:00
routing/test: set outgoing timelock on non-legacy test cases
Provide valid hop payloads for tests cases that use TLV onion format.
This commit is contained in:
@@ -3474,6 +3474,7 @@ func TestSendToRouteSkipTempErrSuccess(t *testing.T) {
|
|||||||
ChannelID: 1,
|
ChannelID: 1,
|
||||||
PubKeyBytes: node.PubKeyBytes,
|
PubKeyBytes: node.PubKeyBytes,
|
||||||
AmtToForward: payAmt,
|
AmtToForward: payAmt,
|
||||||
|
OutgoingTimeLock: 120,
|
||||||
MPP: record.NewMPP(payAmt, [32]byte{}),
|
MPP: record.NewMPP(payAmt, [32]byte{}),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -3610,6 +3611,7 @@ func TestSendToRouteSkipTempErrTempFailure(t *testing.T) {
|
|||||||
ChannelID: 1,
|
ChannelID: 1,
|
||||||
PubKeyBytes: node.PubKeyBytes,
|
PubKeyBytes: node.PubKeyBytes,
|
||||||
AmtToForward: payAmt,
|
AmtToForward: payAmt,
|
||||||
|
OutgoingTimeLock: 120,
|
||||||
MPP: record.NewMPP(payAmt, [32]byte{}),
|
MPP: record.NewMPP(payAmt, [32]byte{}),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -3691,6 +3693,7 @@ func TestSendToRouteSkipTempErrPermanentFailure(t *testing.T) {
|
|||||||
ChannelID: 1,
|
ChannelID: 1,
|
||||||
PubKeyBytes: node.PubKeyBytes,
|
PubKeyBytes: node.PubKeyBytes,
|
||||||
AmtToForward: payAmt,
|
AmtToForward: payAmt,
|
||||||
|
OutgoingTimeLock: 120,
|
||||||
MPP: record.NewMPP(payAmt, [32]byte{}),
|
MPP: record.NewMPP(payAmt, [32]byte{}),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -3776,6 +3779,7 @@ func TestSendToRouteTempFailure(t *testing.T) {
|
|||||||
ChannelID: 1,
|
ChannelID: 1,
|
||||||
PubKeyBytes: node.PubKeyBytes,
|
PubKeyBytes: node.PubKeyBytes,
|
||||||
AmtToForward: payAmt,
|
AmtToForward: payAmt,
|
||||||
|
OutgoingTimeLock: 120,
|
||||||
MPP: record.NewMPP(payAmt, [32]byte{}),
|
MPP: record.NewMPP(payAmt, [32]byte{}),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user