|
|
@ -35,7 +35,7 @@ import ( |
|
|
|
"github.com/tendermint/tendermint/state/txindex/kv" |
|
|
|
"github.com/tendermint/tendermint/state/txindex/null" |
|
|
|
"github.com/tendermint/tendermint/types" |
|
|
|
privval "github.com/tendermint/tendermint/types/priv_validator" |
|
|
|
pvm "github.com/tendermint/tendermint/types/priv_validator" |
|
|
|
"github.com/tendermint/tendermint/version" |
|
|
|
|
|
|
|
_ "net/http/pprof" |
|
|
@ -80,7 +80,7 @@ type NodeProvider func(*cfg.Config, log.Logger) (*Node, error) |
|
|
|
// It implements NodeProvider.
|
|
|
|
func DefaultNewNode(config *cfg.Config, logger log.Logger) (*Node, error) { |
|
|
|
return NewNode(config, |
|
|
|
privval.LoadOrGenFilePV(config.PrivValidatorFile()), |
|
|
|
pvm.LoadOrGenFilePV(config.PrivValidatorFile()), |
|
|
|
proxy.DefaultClientCreator(config.ProxyApp, config.ABCI, config.DBDir()), |
|
|
|
DefaultGenesisDocProviderFunc(config), |
|
|
|
DefaultDBProvider, |
|
|
@ -181,8 +181,8 @@ func NewNode(config *cfg.Config, |
|
|
|
// TODO: persist this key so external signer
|
|
|
|
// can actually authenticate us
|
|
|
|
privKey = crypto.GenPrivKeyEd25519() |
|
|
|
pvsc = privval.NewSocketPV( |
|
|
|
logger.With("module", "privval"), |
|
|
|
pvsc = pvm.NewSocketPV( |
|
|
|
logger.With("module", "pvm"), |
|
|
|
config.PrivValidatorListenAddr, |
|
|
|
privKey, |
|
|
|
) |
|
|
@ -446,7 +446,7 @@ func (n *Node) OnStop() { |
|
|
|
n.eventBus.Stop() |
|
|
|
n.indexerService.Stop() |
|
|
|
|
|
|
|
if pvsc, ok := n.privValidator.(*privval.SocketPV); ok { |
|
|
|
if pvsc, ok := n.privValidator.(*pvm.SocketPV); ok { |
|
|
|
if err := pvsc.Stop(); err != nil { |
|
|
|
n.Logger.Error("Error stopping priv validator socket client", "err", err) |
|
|
|
} |
|
|
|