lnwire+htlcswitch: report height for invalid payment details failure
Extends the invalid payment details failure with the new accept height field. This allows sender to distinguish between a genuine invalid details situation and a delay caused by intermediate nodes.
This commit is contained in:
9 files changed
+212
-118
No files matched your search
@@ -61,7 +61,7 @@ func TestMissionControlStore(t *testing.T) {
|
||||
|
||||
result1 := paymentResult{
|
||||
route: &testRoute,
|
||||
failure: lnwire.NewFailIncorrectDetails(100),
|
||||
failure: lnwire.NewFailIncorrectDetails(100, 1000),
|
||||
failureSourceIdx: &failureSourceIdx,
|
||||
id: 99,
|
||||
timeReply: testTime,
|
||||
|
||||
@@ -103,7 +103,7 @@ var resultTestCases = []resultTestCase{
|
||||
name: "fail incorrect details",
|
||||
route: &routeTwoHop,
|
||||
failureSrcIdx: 2,
|
||||
failure: lnwire.NewFailIncorrectDetails(97),
|
||||
failure: lnwire.NewFailIncorrectDetails(97, 0),
|
||||
|
||||
expectedResult: &interpretedResult{
|
||||
pairResults: map[DirectedNodePair]pairResult{
|
||||
|
||||
Reference in new issue
Block a user