mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-24 18:50:02 +02:00
htlcswitch: properly set HtlcBasePoint in createTestChannel
This commit is contained in:
parent
e874922286
commit
b31e94573b
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user