Skip to content

Commit

Permalink
5 abort rate
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyding committed Jul 16, 2024
1 parent cfcf8de commit af41028
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion protocol/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/baseapp/oe"
"github.com/cosmos/cosmos-sdk/client"
cosmosflags "github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/grpc/cmtservice"
Expand Down Expand Up @@ -385,7 +386,10 @@ func New(

// Enable optimistic block execution.
if appFlags.OptimisticExecutionEnabled {
baseAppOptions = append(baseAppOptions, baseapp.SetOptimisticExecution())
baseAppOptions = append(baseAppOptions, baseapp.SetOptimisticExecution(
// TESTING
oe.WithAbortRate(5),
))
}

bApp := baseapp.NewBaseApp(appconstants.AppName, logger, db, txConfig.TxDecoder(), baseAppOptions...)
Expand Down

0 comments on commit af41028

Please sign in to comment.