multi: unexport session key and add constructor for htlc attempt info

This commit is contained in:
carla
2021-05-19 09:03:46 +02:00
parent 6c330d3121
commit eb068bf666
7 changed files with 35 additions and 24 deletions

View File

@@ -331,11 +331,9 @@ func genInfo() (*channeldb.PaymentCreationInfo, *channeldb.HTLCAttemptInfo,
CreationTime: time.Unix(time.Now().Unix(), 0),
PaymentRequest: []byte("hola"),
},
&channeldb.HTLCAttemptInfo{
AttemptID: 1,
SessionKey: priv,
Route: testRoute,
}, preimage, nil
channeldb.NewHtlcAttemptInfo(
1, priv, testRoute, time.Time{}, nil,
), preimage, nil
}
func genPreimage() ([32]byte, error) {