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

@ -122,6 +122,7 @@ func createTestChannel(alicePrivKey, bobPrivKey []byte,
RevocationBasePoint: aliceKeyPub,
PaymentBasePoint: aliceKeyPub,
DelayBasePoint: aliceKeyPub,
HtlcBasePoint: aliceKeyPub,
}
bobCfg := channeldb.ChannelConfig{
ChannelConstraints: channeldb.ChannelConstraints{
@ -132,6 +133,7 @@ func createTestChannel(alicePrivKey, bobPrivKey []byte,
RevocationBasePoint: bobKeyPub,
PaymentBasePoint: bobKeyPub,
DelayBasePoint: bobKeyPub,
HtlcBasePoint: bobKeyPub,
}
bobRoot := lnwallet.DeriveRevocationRoot(bobKeyPriv, hash, aliceKeyPub)