updatePrivValidatorPubKey get's the private validator public key and memoizes it. This func returns an error if the private validator is not responding or responds with an error.
()
| 2256 | // memoizes it. This func returns an error if the private validator is not |
| 2257 | // responding or responds with an error. |
| 2258 | func (cs *State) updatePrivValidatorPubKey() error { |
| 2259 | if cs.privValidator == nil { |
| 2260 | return nil |
| 2261 | } |
| 2262 | |
| 2263 | pubKey, err := cs.privValidator.GetPubKey() |
| 2264 | if err != nil { |
| 2265 | return err |
| 2266 | } |
| 2267 | cs.privValidatorPubKey = pubKey |
| 2268 | return nil |
| 2269 | } |
| 2270 | |
| 2271 | // look back to check existence of the node's consensus votes before joining consensus |
| 2272 | func (cs *State) checkDoubleSigningRisk(height int64) error { |
no test coverage detected