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
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,7 @@ func createTestPeer(notifier chainntnfs.ChainNotifier,
RevocationBasePoint: aliceKeyPub,
PaymentBasePoint: aliceKeyPub,
DelayBasePoint: aliceKeyPub,
HtlcBasePoint: aliceKeyPub,
}
bobCfg := channeldb.ChannelConfig{
ChannelConstraints: channeldb.ChannelConstraints{
@ -97,6 +98,7 @@ func createTestPeer(notifier chainntnfs.ChainNotifier,
RevocationBasePoint: bobKeyPub,
PaymentBasePoint: bobKeyPub,
DelayBasePoint: bobKeyPub,
HtlcBasePoint: bobKeyPub,
}
bobRoot := lnwallet.DeriveRevocationRoot(bobKeyPriv, testHdSeed, aliceKeyPub)