mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-09 20:23:24 +02:00
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:
committed by
Olaoluwa Osuntokun
parent
a6be939bfa
commit
20e7e801c0
@@ -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) {
|
||||
|
Reference in New Issue
Block a user