From 6efeee4d88b15a7ab30f0e3113c03117f1ffc04a Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Sat, 4 Jul 2020 09:39:22 +0800 Subject: [PATCH] keychain: add missing KeyFamily type --- keychain/derivation.go | 2 +- keychain/interface_test.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/keychain/derivation.go b/keychain/derivation.go index 4e416c2d..b22d8f70 100644 --- a/keychain/derivation.go +++ b/keychain/derivation.go @@ -55,7 +55,7 @@ const ( // KeyFamilyRevocationBase are keys that are used within channels to // create revocation basepoints that the remote party will use to // create revocation keys for us. - KeyFamilyRevocationBase = 1 + KeyFamilyRevocationBase KeyFamily = 1 // KeyFamilyHtlcBase are keys used within channels that will be // combined with per-state randomness to produce public keys that will diff --git a/keychain/interface_test.go b/keychain/interface_test.go index 345754db..2f394577 100644 --- a/keychain/interface_test.go +++ b/keychain/interface_test.go @@ -30,6 +30,9 @@ var versionZeroKeyFamilies = []KeyFamily{ KeyFamilyDelayBase, KeyFamilyRevocationRoot, KeyFamilyNodeKey, + KeyFamilyStaticBackup, + KeyFamilyTowerSession, + KeyFamilyTowerID, } var (