From 3c35f894f3e1f63910c5b767947527bb97259cce Mon Sep 17 00:00:00 2001 From: William Banfield Date: Fri, 11 Mar 2022 11:27:27 -0500 Subject: [PATCH] remove empty tx records in substPrepareTx --- abci/example/kvstore/kvstore.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/abci/example/kvstore/kvstore.go b/abci/example/kvstore/kvstore.go index 98fdcdcda..1bc102cf4 100644 --- a/abci/example/kvstore/kvstore.go +++ b/abci/example/kvstore/kvstore.go @@ -436,6 +436,10 @@ func (app *Application) substPrepareTx(blockData [][]byte) []*types.TxRecord { trs := make([]*types.TxRecord, len(blockData)) for i, tx := range blockData { if isPrepareTx(tx) { + trs = append(trs, &types.TxRecord{ + Tx: tx, + Action: types.TxRecord_REMOVED, + }) trs[i] = &types.TxRecord{ Tx: make([]byte, len(tx)), Action: types.TxRecord_ADDED,