From 3b6f27d5db88a8046acd8fb27c9921547f77a819 Mon Sep 17 00:00:00 2001
From: Silas Davis <silas@monax.io>
Date: Wed, 14 Mar 2018 12:20:33 +0000
Subject: [PATCH] Hotfix BlockCache accumulating writes when it shouldn't

Signed-off-by: Silas Davis <silas@monax.io>
---
 consensus/tendermint/abci/app.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/consensus/tendermint/abci/app.go b/consensus/tendermint/abci/app.go
index 6a5627aa..74be6be9 100644
--- a/consensus/tendermint/abci/app.go
+++ b/consensus/tendermint/abci/app.go
@@ -178,6 +178,8 @@ func (app *abciApp) Commit() abci_types.ResponseCommit {
 			Log:  fmt.Sprintf("Could not commit block: %s", err),
 		}
 	}
+	// Just kill the cache - it is badly implemented
+	app.committer.Reset()
 
 	logging.InfoMsg(app.logger, "Resetting transaction check cache")
 	app.checker.Reset()
-- 
GitLab