From 46084fc2a5195cbb525c2396b1612b4d19f4b574 Mon Sep 17 00:00:00 2001 From: healthykim Date: Thu, 11 Sep 2025 19:27:35 +0900 Subject: [PATCH] chore: remove redundant code --- cmd/devp2p/internal/ethtest/conn.go | 2 +- core/txpool/blobpool/lookup.go | 2 +- crypto/kzg4844/kzg4844.go | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/cmd/devp2p/internal/ethtest/conn.go b/cmd/devp2p/internal/ethtest/conn.go index 92fb5d6aad..5182d71ce1 100644 --- a/cmd/devp2p/internal/ethtest/conn.go +++ b/cmd/devp2p/internal/ethtest/conn.go @@ -40,7 +40,7 @@ var ( DisablePointerAddresses: true, SortKeys: true, } - timeout = 3 * time.Second + timeout = 2 * time.Second ) // dial attempts to dial the given node and perform a handshake, returning the diff --git a/core/txpool/blobpool/lookup.go b/core/txpool/blobpool/lookup.go index 68817fa99d..7607cd487a 100644 --- a/core/txpool/blobpool/lookup.go +++ b/core/txpool/blobpool/lookup.go @@ -22,7 +22,7 @@ import ( type txMetadata struct { id uint64 // the billy id of transction - size uint64 // the RLP encoded size of transaction (blobs are excluded) + size uint64 // the RLP encoded size of transaction (blobs are included) } // lookup maps blob versioned hashes to transaction hashes that include them, diff --git a/crypto/kzg4844/kzg4844.go b/crypto/kzg4844/kzg4844.go index b8c7f87b8b..7b65d8dbb9 100644 --- a/crypto/kzg4844/kzg4844.go +++ b/crypto/kzg4844/kzg4844.go @@ -101,10 +101,6 @@ type Claim [32]byte // useCKZG controls whether the cryptography should use the Go or C backend. var useCKZG atomic.Bool -func init() { - UseCKZG(true) -} - // UseCKZG can be called to switch the default Go implementation of KZG to the C // library if for some reason the user wishes to do so (e.g. consensus bug in one // or the other).