Skip to content

Commit

Permalink
chore: add CONTRACT for mem.proxyAppConn.CheckTxAsync()
Browse files Browse the repository at this point in the history
  • Loading branch information
jinsan-line committed Jan 4, 2021
1 parent 9c1066e commit e2145e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mempool/clist_mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ func (mem *CListMempool) CheckTx(tx types.Tx, cb func(*abci.Response), txInfo Tx
return err
}

// CONTRACT: `app.CheckTxAsync()` should check whether `GasWanted` is valid (0 <= GasWanted <= block.masGas)
reqRes := mem.proxyAppConn.CheckTxAsync(abci.RequestCheckTx{Tx: tx})
reqRes.SetCallback(mem.reqResCb(tx, txInfo.SenderID, txInfo.SenderP2PID, cb))

Expand Down

0 comments on commit e2145e4

Please sign in to comment.