consensus: handshake replay test using wal

This commit is contained in:
Ethan Buchman
2017-02-17 19:12:05 -05:00
parent 3c5adebcd3
commit 0bec99fbd4
11 changed files with 496 additions and 262 deletions
+3 -3
View File
@@ -6,15 +6,15 @@ import (
"github.com/tendermint/tendermint/types"
)
// NOTE: this is totally unsafe.
// XXX: this is totally unsafe.
// it's only suitable for testnets.
func reset_all() {
reset_priv_validator()
os.RemoveAll(config.GetString("db_dir"))
os.RemoveAll(config.GetString("cs_wal_dir"))
os.Remove(config.GetString("cs_wal_file"))
}
// NOTE: this is totally unsafe.
// XXX: this is totally unsafe.
// it's only suitable for testnets.
func reset_priv_validator() {
// Get PrivValidator