Skip to content

Commit

Permalink
improvements to configurable evil validators
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Nov 1, 2023
1 parent 3dfdeb7 commit ae34d92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arbos/block_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ func WithInterceptDepositSize(depositGwei *big.Int) ProduceOpt {
}
}

// By default, intercept and modify any Arbitrum deposits with a value of a 1M gwei.
var DefaultEvilInterceptDepositGweiAmount = big.NewInt(1_000_000 * params.GWei)
// By default, intercept and modify any Arbitrum deposits with a value of a 1M gwei, or 0.001 ETH.
var DefaultEvilInterceptDepositGweiAmount = big.NewInt(1_000_000 * params.GWei) // 0.001 ETH

func ProduceBlock(
message *arbostypes.L1IncomingMessage,
Expand Down
4 changes: 2 additions & 2 deletions staker/block_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ var DefaultBlockValidatorConfig = BlockValidatorConfig{
PendingUpgradeModuleRoot: "latest",
FailureIsFatal: true,
Dangerous: DefaultBlockValidatorDangerousConfig,
EvilInterceptDepositGwei: 1_000_000,
EvilInterceptDepositGwei: 1_000_000, // 1M gwei or 0.001 ETH
}

var TestBlockValidatorConfig = BlockValidatorConfig{
Expand All @@ -139,7 +139,7 @@ var TestBlockValidatorConfig = BlockValidatorConfig{
PendingUpgradeModuleRoot: "latest",
FailureIsFatal: true,
Dangerous: DefaultBlockValidatorDangerousConfig,
EvilInterceptDepositGwei: 1_000_000,
EvilInterceptDepositGwei: 1_000_000, // 1M gwei or 0.001 ETH
}

var DefaultBlockValidatorDangerousConfig = BlockValidatorDangerousConfig{
Expand Down

0 comments on commit ae34d92

Please sign in to comment.