mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-03 19:53:58 +00:00
evidence: create proof of lock change and implement it in evidence store (#4746)
creates a proof of lock change which is an array of votes that proves the validator was permitted to change locked block and vote again. This proof is stored in the evidence pool and is used as a part of amnesia evidence
This commit is contained in:
@@ -48,9 +48,11 @@ const (
|
||||
type cleanupFunc func()
|
||||
|
||||
// genesis, chain_id, priv_val
|
||||
var config *cfg.Config // NOTE: must be reset for each _test.go file
|
||||
var consensusReplayConfig *cfg.Config
|
||||
var ensureTimeout = time.Millisecond * 100
|
||||
var (
|
||||
config *cfg.Config // NOTE: must be reset for each _test.go file
|
||||
consensusReplayConfig *cfg.Config
|
||||
ensureTimeout = time.Millisecond * 100
|
||||
)
|
||||
|
||||
func ensureDir(dir string, mode os.FileMode) {
|
||||
if err := tmos.EnsureDir(dir, mode); err != nil {
|
||||
@@ -300,7 +302,6 @@ func validatePrecommit(
|
||||
lockedBlockHash))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func validatePrevoteAndPrecommit(
|
||||
|
||||
Reference in New Issue
Block a user