Skip to content

Commit

Permalink
Fix unexpect coin flow if tx is out of gas
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoyangLiu committed Mar 5, 2019
1 parent 60b668f commit 68adcc4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 68adcc4

Please # to comment.