routing+channeldb: use HTLCAttempt instead of HTLCAttemptInfo

This commit refactors the params used in lifecycle to prefer
`HTLCAttempt` over `HTLCAttemptInfo`. This change is needed as
`HTLCAttempt` also wraps settled and failure info, which is useful in
the following commits.
This commit is contained in:
yyforyongyu authored and Olaoluwa Osuntokun committed 2023-10-06 16:38:33 -07:00
1 parent a6be939bfa
commit 20e7e801c0
5 files changed
+30 -27

No files matched your search

+2 -2
View File
@@ -560,9 +560,9 @@ func genInfo() (*channeldb.PaymentCreationInfo, *channeldb.HTLCAttemptInfo,
CreationTime: time.Unix(time.Now().Unix(), 0),
PaymentRequest: []byte("hola"),
},
channeldb.NewHtlcAttemptInfo(
&channeldb.NewHtlcAttempt(
1, priv, testRoute, time.Time{}, nil,
), preimage, nil
).HTLCAttemptInfo, preimage, nil
}
func genPreimage() ([32]byte, error) {