Skip to content

Commit

Permalink
Keep app hash integration conforming to protocol v4
Browse files Browse the repository at this point in the history
Revert "Fix negative fee problem"
This reverts commit 2ce5ed2.

This is required to keep the app hash integration when processing older
blocks.
  • Loading branch information
Lbird committed May 20, 2021
1 parent d45d718 commit de858e7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions amo/amo.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,16 +529,6 @@ func (app *AMOApp) DeliverTx(req abci.RequestDeliverTx) abci.ResponseDeliverTx {
}

fee := t.GetFee()

if fee.LessThan(types.Zero) {
return abci.ResponseDeliverTx{
Code: code.TxCodeInvalidAmount,
Log: "negative fee",
Info: "negative fee",
Codespace: "amo",
}
}

balance := app.store.GetBalance(t.GetSender(), false)

if balance.LessThan(&fee) {
Expand Down

0 comments on commit de858e7

Please sign in to comment.