cmd: add integration test for rollback functionality (backport #7315) (#7368)

* cmd: add integration test and fix bug in rollback command (#7315)

(cherry picked from commit bca2080c01)

Co-authored-by: Callum Waters <cmwaters19@gmail.com>
This commit is contained in:
mergify[bot]
2021-12-02 08:30:57 -08:00
committed by GitHub
co-authored by Callum Waters
parent 9994396e59
commit 05340ca069
10 changed files with 202 additions and 118 deletions
+4
View File
@@ -256,6 +256,10 @@ func (evpool *Pool) State() sm.State {
return evpool.state
}
func (evpool *Pool) Close() error {
return evpool.evidenceStore.Close()
}
// IsExpired checks whether evidence or a polc is expired by checking whether a height and time is older
// than set by the evidence consensus parameters
func (evpool *Pool) isExpired(height int64, time time.Time) bool {