|
@ -9,8 +9,8 @@ import ( |
|
|
"time" |
|
|
"time" |
|
|
|
|
|
|
|
|
"github.com/tendermint/tendermint/crypto" |
|
|
"github.com/tendermint/tendermint/crypto" |
|
|
"github.com/tendermint/tendermint/types" |
|
|
|
|
|
cmn "github.com/tendermint/tendermint/libs/common" |
|
|
cmn "github.com/tendermint/tendermint/libs/common" |
|
|
|
|
|
"github.com/tendermint/tendermint/types" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
// TODO: type ?
|
|
|
// TODO: type ?
|
|
@ -91,6 +91,10 @@ func LoadFilePV(filePath string) *FilePV { |
|
|
cmn.Exit(cmn.Fmt("Error reading PrivValidator from %v: %v\n", filePath, err)) |
|
|
cmn.Exit(cmn.Fmt("Error reading PrivValidator from %v: %v\n", filePath, err)) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// overwrite pubkey and address for convenience
|
|
|
|
|
|
pv.PubKey = pv.PrivKey.PubKey() |
|
|
|
|
|
pv.Address = pv.PubKey.Address() |
|
|
|
|
|
|
|
|
pv.filePath = filePath |
|
|
pv.filePath = filePath |
|
|
return pv |
|
|
return pv |
|
|
} |
|
|
} |
|
|