Skip to content

Commit 708a41b

Browse files
author
tac0turtle
committed
lint and increase node count
1 parent 1a8a6b5 commit 708a41b

4 files changed

Lines changed: 9 additions & 10 deletions

File tree

block/da_includer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ func (m *Manager) incrementDAIncludedHeight(ctx context.Context) error {
8383
}
8484

8585
return nil
86-
}
86+
}

block/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ func (m *Manager) execValidate(lastState types.State, header *types.SignedHeader
806806

807807
// // Verify that the header's timestamp is strictly greater than the last block's time
808808
headerTime := header.Time()
809-
if header.Height() >= 1 && lastState.LastBlockTime.After(headerTime) {
809+
if header.Height() > 1 && lastState.LastBlockTime.After(headerTime) {
810810
return fmt.Errorf("block time must be strictly increasing: got %v, last block time was %v",
811811
headerTime.UnixNano(), lastState.LastBlockTime)
812812
}

scripts/run-evm-nodes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func main() {
6868
// Parse command line arguments
6969
cleanOnExit := flag.Bool("clean-on-exit", true, "Remove node directories on exit")
7070
logLevel := flag.String("log-level", "info", "Log level (debug, info, warn, error)")
71-
numNodes := flag.Int("nodes", 1, "Number of nodes to run (1 = sequencer only, 2+ = sequencer + full nodes)")
71+
numNodes := flag.Int("nodes", 2, "Number of nodes to run (1 = sequencer only, 2+ = sequencer + full nodes)")
7272
flag.Parse()
7373

7474
// Validate number of nodes

test/e2e/evm_test_common.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,14 @@ const (
8282
)
8383

8484
const (
85-
FastPollingInterval = 50 * time.Millisecond // Reduced from 100ms
86-
SlowPollingInterval = 250 * time.Millisecond // Reduced from 500ms
85+
FastPollingInterval = 50 * time.Millisecond
86+
SlowPollingInterval = 250 * time.Millisecond
8787

88-
ContainerReadinessTimeout = 3 * time.Second // Reduced from 5s
89-
P2PDiscoveryTimeout = 3 * time.Second // Reduced from 5s
90-
NodeStartupTimeout = 4 * time.Second // Reduced from 8s
88+
ContainerReadinessTimeout = 3 * time.Second
89+
P2PDiscoveryTimeout = 3 * time.Second
90+
NodeStartupTimeout = 4 * time.Second
9191

92-
// Log optimization - reduce verbosity for faster I/O
93-
LogBufferSize = 1024 // Smaller buffer for faster processing
92+
LogBufferSize = 1024
9493
)
9594

9695
func setupTestRethEngineE2E(t *testing.T) string {

0 commit comments

Comments
 (0)