Skip to content

Commit

Permalink
keychain: add missing KeyFamily type
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed Sep 17, 2020
1 parent d4d7533 commit 6efeee4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion keychain/derivation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions keychain/interface_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ var versionZeroKeyFamilies = []KeyFamily{
KeyFamilyDelayBase,
KeyFamilyRevocationRoot,
KeyFamilyNodeKey,
KeyFamilyStaticBackup,
KeyFamilyTowerSession,
KeyFamilyTowerID,
}

var (
Expand Down

0 comments on commit 6efeee4

Please sign in to comment.