feat: make validator key injectable by application developers (backport #21608) (#21802)

Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
This commit is contained in:
mergify[bot]
2024-09-18 16:09:44 +02:00
committed by GitHub
co-authored by Marko marbar3778
parent 2174a3d9e5
commit fea175a70b
6 changed files with 35 additions and 8 deletions
+4
View File
@@ -5,6 +5,7 @@ import (
"io"
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
cmtcrypto "github.com/cometbft/cometbft/crypto"
cmttypes "github.com/cometbft/cometbft/types"
"github.com/cosmos/gogoproto/grpc"
@@ -57,6 +58,9 @@ type (
// SnapshotManager return the snapshot manager
SnapshotManager() *snapshots.Manager
// ValidatorKeyProvider returns a function that generates a validator key
ValidatorKeyProvider() func() (cmtcrypto.PrivKey, error)
// Close is called in start cmd to gracefully cleanup resources.
// Must be safe to be called multiple times.
Close() error