Skip to content

Commit 34ddd64

Browse files
Cleanup
1 parent 24cc5ec commit 34ddd64

4 files changed

Lines changed: 9 additions & 40 deletions

File tree

block/manager.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -691,9 +691,6 @@ func (m *Manager) publishBlockInternal(ctx context.Context) error {
691691

692692
g, ctx := errgroup.WithContext(ctx)
693693
g.Go(func() error { return m.headerBroadcaster.WriteToStoreAndBroadcast(ctx, header) })
694-
if len(data.Txs) > 0 {
695-
m.logger.Debug("broadcasting data", "height", data.Metadata.Height, "txs", len(data.Txs))
696-
}
697694
g.Go(func() error { return m.dataBroadcaster.WriteToStoreAndBroadcast(ctx, data) })
698695
if err := g.Wait(); err != nil {
699696
return err

execution/evm/docker/chain/genesis.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,11 @@
1212
"berlinBlock": 0,
1313
"londonBlock": 0,
1414
"mergeNetsplitBlock": 0,
15-
"bedrockBlock":0,
16-
"regolithTime":0,
17-
"canyonTime":0,
1815
"terminalTotalDifficulty": 0,
1916
"terminalTotalDifficultyPassed": true,
20-
"ecotoneTime": 0,
21-
"fjordTime": 0,
22-
"graniteTime": 0,
2317
"shanghaiTime": 0,
2418
"cancunTime": 0,
25-
"pragueTime": 0,
26-
"optimism": {
27-
"eip1559Elasticity": 6,
28-
"eip1559Denominator": 50,
29-
"eip1559DenominatorCanyon": 250
30-
}
19+
"pragueTime": 0
3120
},
3221
"nonce": "0x0",
3322
"timestamp": "0x0",

execution/evm/execution_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build evm
2+
// +build evm
3+
14
package evm
25

36
import (
@@ -83,9 +86,7 @@ func TestEngineExecution(t *testing.T) {
8386
lastHeight, lastHash, lastTxs := checkLatestBlock(tt, ctx)
8487
log.Println("lastTxs", lastTxs)
8588

86-
// Clear transaction pool and get proper starting nonce
87-
lastNonce := ClearTransactionPool(tt, TEST_PRIVATE_KEY)
88-
tt.Logf("Starting with nonce: %d", lastNonce)
89+
lastNonce := uint64(0)
8990

9091
// Use a base timestamp and increment for each block to ensure proper ordering
9192
baseTimestamp := time.Now()
@@ -158,8 +159,6 @@ func TestEngineExecution(t *testing.T) {
158159

159160
// start new container and try to sync
160161
t.Run("Sync chain", func(tt *testing.T) {
161-
//tt.Skip("Skip sync chain")
162-
tt.Logf("Starting Sync_chain test...")
163162
jwtSecret := SetupTestRethEngine(t, DOCKER_PATH, JWT_FILENAME)
164163

165164
executionClient, err := NewEngineExecutionClient(

execution/evm/test_helpers.go

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build evm
2+
// +build evm
3+
14
package evm
25

36
import (
@@ -126,7 +129,7 @@ func GetRandomTransaction(t *testing.T, privateKeyHex, toAddressHex, chainID str
126129
chainId, ok := new(big.Int).SetString(chainID, 10)
127130
require.True(t, ok)
128131
txValue := big.NewInt(1000000000000000000)
129-
gasPrice := big.NewInt(100000000000) // Increased to 100 Gwei to handle replacement scenarios and ensure acceptance
132+
gasPrice := big.NewInt(30000000000)
130133
toAddress := common.HexToAddress(toAddressHex)
131134
data := make([]byte, 16)
132135
_, err = rand.Read(data)
@@ -156,25 +159,6 @@ func SubmitTransaction(t *testing.T, tx *types.Transaction) {
156159
require.NoError(t, err)
157160
}
158161

159-
// ClearTransactionPool attempts to clear the transaction pool by getting current nonce from blockchain
160-
func ClearTransactionPool(t *testing.T, privateKeyHex string) uint64 {
161-
t.Helper()
162-
rpcClient, err := ethclient.Dial("http://localhost:8545")
163-
require.NoError(t, err)
164-
defer rpcClient.Close()
165-
166-
privateKey, err := crypto.HexToECDSA(privateKeyHex)
167-
require.NoError(t, err)
168-
address := crypto.PubkeyToAddress(privateKey.PublicKey)
169-
170-
// Get the current nonce from the latest block (not pending)
171-
nonce, err := rpcClient.NonceAt(context.Background(), address, nil)
172-
require.NoError(t, err)
173-
174-
t.Logf("Current nonce for address %s: %d", address.Hex(), nonce)
175-
return nonce
176-
}
177-
178162
// CheckTxIncluded checks if a transaction with the given hash was included in a block and succeeded.
179163
func CheckTxIncluded(t *testing.T, txHash common.Hash) bool {
180164
t.Helper()

0 commit comments

Comments
 (0)