remove empty tx records in substPrepareTx

This commit is contained in:
William Banfield
2022-03-11 11:27:27 -05:00
parent 62665fe2c5
commit 3c35f894f3
+4
View File
@@ -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,