From 68adcc4991608c7714b312eddf89a0c324663055 Mon Sep 17 00:00:00 2001 From: HaoyangLiu Date: Tue, 5 Mar 2019 11:15:09 +0800 Subject: [PATCH] Fix unexpect coin flow if tx is out of gas --- app/baseapp.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/baseapp.go b/app/baseapp.go index 17db9c9ee..fc24ee916 100644 --- a/app/baseapp.go +++ b/app/baseapp.go @@ -736,7 +736,7 @@ func (app *BaseApp) runTx(mode RunTxMode, txBytes []byte, tx sdk.Tx) (result sdk result = sdk.ErrInternal(log).Result() } } - + ctx.CoinFlowTags().TagClean() result.GasWanted = gasWanted result.GasUsed = ctx.GasMeter().GasConsumed() }() @@ -836,8 +836,6 @@ func (app *BaseApp) runTx(mode RunTxMode, txBytes []byte, tx sdk.Tx) (result sdk if result.IsOK() { msCache.Write() ctx.CoinFlowTags().TagWrite() - } else { - ctx.CoinFlowTags().TagClean() } return