mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-08 14:57:38 +02:00
multi: unexport session key and add constructor for htlc attempt info
This commit is contained in:
@@ -70,7 +70,7 @@ func makeFakeInfo() (*PaymentCreationInfo, *HTLCAttemptInfo) {
|
||||
|
||||
a := &HTLCAttemptInfo{
|
||||
AttemptID: 44,
|
||||
SessionKey: priv,
|
||||
sessionKey: priv,
|
||||
Route: testRoute,
|
||||
AttemptTime: time.Unix(100, 0),
|
||||
Hash: &hash,
|
||||
@@ -124,8 +124,6 @@ func TestSentPaymentSerialization(t *testing.T) {
|
||||
s.Route = route.Route{}
|
||||
|
||||
if !reflect.DeepEqual(s, newWireInfo) {
|
||||
s.SessionKey.Curve = nil
|
||||
newWireInfo.SessionKey.Curve = nil
|
||||
t.Fatalf("Payments do not match after "+
|
||||
"serialization/deserialization %v vs %v",
|
||||
spew.Sdump(s), spew.Sdump(newWireInfo),
|
||||
|
Reference in New Issue
Block a user