|
@ -25,6 +25,7 @@ import ( |
|
|
"github.com/tendermint/tendermint/libs/service" |
|
|
"github.com/tendermint/tendermint/libs/service" |
|
|
tmtime "github.com/tendermint/tendermint/libs/time" |
|
|
tmtime "github.com/tendermint/tendermint/libs/time" |
|
|
"github.com/tendermint/tendermint/privval" |
|
|
"github.com/tendermint/tendermint/privval" |
|
|
|
|
|
tmgrpc "github.com/tendermint/tendermint/privval/grpc" |
|
|
tmproto "github.com/tendermint/tendermint/proto/tendermint/types" |
|
|
tmproto "github.com/tendermint/tendermint/proto/tendermint/types" |
|
|
sm "github.com/tendermint/tendermint/state" |
|
|
sm "github.com/tendermint/tendermint/state" |
|
|
"github.com/tendermint/tendermint/types" |
|
|
"github.com/tendermint/tendermint/types" |
|
@ -281,7 +282,9 @@ func (cs *State) SetPrivValidator(priv types.PrivValidator) { |
|
|
case *privval.FilePV: |
|
|
case *privval.FilePV: |
|
|
cs.privValidatorType = types.FileSignerClient |
|
|
cs.privValidatorType = types.FileSignerClient |
|
|
case *privval.SignerClient: |
|
|
case *privval.SignerClient: |
|
|
cs.privValidatorType = types.SignerClient |
|
|
|
|
|
|
|
|
cs.privValidatorType = types.SignerSocketClient |
|
|
|
|
|
case *tmgrpc.SignerClient: |
|
|
|
|
|
cs.privValidatorType = types.SignerGRPCClient |
|
|
case types.MockPV: |
|
|
case types.MockPV: |
|
|
cs.privValidatorType = types.MockSignerClient |
|
|
cs.privValidatorType = types.MockSignerClient |
|
|
case *types.ErroringMockPV: |
|
|
case *types.ErroringMockPV: |
|
|