Modify AnteHandler to take a simulate boolean parameter

This commit is contained in:
Alessio Treglia
2018-08-25 20:12:14 +01:00
parent 7e8feec738
commit 76a16ab288
9 changed files with 93 additions and 52 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ func tx2Decoder(cdc *wire.Codec) sdk.TxDecoder {
// Simple anteHandler that ensures msg signers have signed.
// Provides no replay protection.
func antehandler(ctx sdk.Context, tx sdk.Tx) (_ sdk.Context, _ sdk.Result, abort bool) {
func antehandler(ctx sdk.Context, tx sdk.Tx, simulate bool) (_ sdk.Context, _ sdk.Result, abort bool) {
appTx, ok := tx.(app2Tx)
if !ok {
// set abort boolean to true so that we don't continue to process failed tx