htlcswitch: properly set HtlcBasePoint in createTestChannel
This commit is contained in:
1 file changed
+2
@@ -122,6 +122,7 @@ func createTestChannel(alicePrivKey, bobPrivKey []byte,
|
|||||||
RevocationBasePoint: aliceKeyPub,
|
RevocationBasePoint: aliceKeyPub,
|
||||||
PaymentBasePoint: aliceKeyPub,
|
PaymentBasePoint: aliceKeyPub,
|
||||||
DelayBasePoint: aliceKeyPub,
|
DelayBasePoint: aliceKeyPub,
|
||||||
|
HtlcBasePoint: aliceKeyPub,
|
||||||
}
|
}
|
||||||
bobCfg := channeldb.ChannelConfig{
|
bobCfg := channeldb.ChannelConfig{
|
||||||
ChannelConstraints: channeldb.ChannelConstraints{
|
ChannelConstraints: channeldb.ChannelConstraints{
|
||||||
@@ -132,6 +133,7 @@ func createTestChannel(alicePrivKey, bobPrivKey []byte,
|
|||||||
RevocationBasePoint: bobKeyPub,
|
RevocationBasePoint: bobKeyPub,
|
||||||
PaymentBasePoint: bobKeyPub,
|
PaymentBasePoint: bobKeyPub,
|
||||||
DelayBasePoint: bobKeyPub,
|
DelayBasePoint: bobKeyPub,
|
||||||
|
HtlcBasePoint: bobKeyPub,
|
||||||
}
|
}
|
||||||
|
|
||||||
bobRoot := lnwallet.DeriveRevocationRoot(bobKeyPriv, hash, aliceKeyPub)
|
bobRoot := lnwallet.DeriveRevocationRoot(bobKeyPriv, hash, aliceKeyPub)
|
||||||
|
|||||||
Reference in new issue
Block a user