Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cmd/seid/cmd/blocktest.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (

ethtests "github.com/ethereum/go-ethereum/tests"
"github.com/sei-protocol/sei-chain/app"
gigaconfig "github.com/sei-protocol/sei-chain/giga/executor/config"
"github.com/sei-protocol/sei-chain/sei-cosmos/baseapp"
"github.com/sei-protocol/sei-chain/sei-cosmos/client/flags"
"github.com/sei-protocol/sei-chain/sei-cosmos/server"
Expand Down Expand Up @@ -45,6 +46,14 @@ func BlocktestCmd(defaultNodeHome string) *cobra.Command {
if err := serverCtx.Viper.BindPFlags(cmd.Flags()); err != nil {
return err
}
// The block test harness drives FinalizeBlock directly and verifies
// state through the standard EvmKeeper. The Giga executor is a
// separate parallel execution engine (and falls back to v2 for the
// unassociated raw-eth addresses these tests use), so force it off
// here to keep blocktests on the reference EVM path regardless of
// the node's default Giga configuration.
serverCtx.Viper.Set(gigaconfig.FlagEnabled, false)
serverCtx.Viper.Set(gigaconfig.FlagOCCEnabled, false)
home := serverCtx.Viper.GetString(flags.FlagHome)

cache := store.NewCommitKVStoreCacheManager()
Expand Down
8 changes: 4 additions & 4 deletions giga/executor/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type Config struct {
}

var DefaultConfig = Config{
Enabled: false, // disabled by default, opt-in
OCCEnabled: false, // OCC disabled by default
Enabled: true,
OCCEnabled: true,
}

const (
Expand Down Expand Up @@ -47,11 +47,11 @@ const ConfigTemplate = `

[giga_executor]
# enabled controls whether to use the Giga executor for improved EVM throughput.
# Default: false
# Default: true
enabled = {{ .GigaExecutor.Enabled }}

# occ_enabled controls whether to use OCC (Optimistic Concurrency Control) with the Giga executor.
# When true, transactions are executed in parallel with conflict detection and retry.
# Default: false
# Default: true
occ_enabled = {{ .GigaExecutor.OCCEnabled }}
`
Loading