test: properly set new HtlcBasePoint in createTestPeer

This commit is contained in:
Olaoluwa Osuntokun 2017-11-16 19:48:03 -08:00
parent 6afebfba5d
commit e874922286
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -83,6 +83,7 @@ func createTestPeer(notifier chainntnfs.ChainNotifier,
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{
@ -97,6 +98,7 @@ func createTestPeer(notifier chainntnfs.ChainNotifier,
RevocationBasePoint: bobKeyPub, RevocationBasePoint: bobKeyPub,
PaymentBasePoint: bobKeyPub, PaymentBasePoint: bobKeyPub,
DelayBasePoint: bobKeyPub, DelayBasePoint: bobKeyPub,
HtlcBasePoint: bobKeyPub,
} }
bobRoot := lnwallet.DeriveRevocationRoot(bobKeyPriv, testHdSeed, aliceKeyPub) bobRoot := lnwallet.DeriveRevocationRoot(bobKeyPriv, testHdSeed, aliceKeyPub)