htlcswitch: properly set HtlcBasePoint in createTestChannel

This commit is contained in:
Olaoluwa Osuntokun 2017-11-16 19:48:55 -08:00
parent e874922286
commit b31e94573b
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
1 changed files with 2 additions and 0 deletions

View File

@ -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)