Skip to content

Commit

Permalink
test with 5% OE abort rate
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyding committed Jun 17, 2024
1 parent 3b2ad86 commit b4394bd
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())
// TODO: remove, test only.
baseAppOptions = append(baseAppOptions, baseapp.SetOptimisticExecution(oe.WithAbortRate(
5,
)))
}

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

0 comments on commit b4394bd

Please sign in to comment.