Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
BedrockSquirrel committed Oct 13, 2023
1 parent 2334aec commit 3f727b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion go/enclave/components/batch_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (executor *batchExecutor) refundL1Fees(stateDB *state.StateDB, context *Bat
}
}

func (executor *batchExecutor) ComputeBatch(context *BatchExecutionContext, failForEmptyBatch bool) (*ComputedBatch, error) {
func (executor *batchExecutor) ComputeBatch(context *BatchExecutionContext, failForEmptyBatch bool) (*ComputedBatch, error) { //nolint:gocognit
defer core.LogMethodDuration(executor.logger, measure.NewStopwatch(), "Batch context processed")

// sanity check that the l1 block exists. We don't have to execute batches of forks.
Expand Down
9 changes: 5 additions & 4 deletions go/node/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ type Config struct {

func NewNodeConfig(opts ...Option) *Config {
defaultConfig := &Config{
batchInterval: "1s",
rollupInterval: "3s",
l1ChainID: 1337,
obscuroGenesis: "{}",
batchInterval: "1s",
maxBatchInterval: "1s",
rollupInterval: "3s",
l1ChainID: 1337,
obscuroGenesis: "{}",
}

for _, opt := range opts {
Expand Down
6 changes: 0 additions & 6 deletions testnet/launcher/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ func (t *Testnet) Start() error {
node.WithDebugNamespaceEnabled(true),
node.WithLogLevel(4),
node.WithEdgelessDBImage("ghcr.io/edgelesssys/edgelessdb-sgx-4gb:v0.3.2"), // default edgeless db value
node.WithBatchInterval("1s"),
node.WithMaxBatchInterval("1s"),
node.WithRollupInterval("3s"),
)

sequencerNode := node.NewDockerNode(sequencerNodeConfig)
Expand Down Expand Up @@ -105,9 +102,6 @@ func (t *Testnet) Start() error {
node.WithDebugNamespaceEnabled(true),
node.WithLogLevel(4),
node.WithEdgelessDBImage("ghcr.io/edgelesssys/edgelessdb-sgx-4gb:v0.3.2"), // default edgeless db value
node.WithBatchInterval("1s"),
node.WithMaxBatchInterval("1s"),
node.WithRollupInterval("3s"),
)

validatorNode := node.NewDockerNode(validatorNodeConfig)
Expand Down

0 comments on commit 3f727b6

Please sign in to comment.