chore: remove redundant code

This commit is contained in:
healthykim 2025-09-11 19:27:35 +09:00
parent 1618190593
commit 46084fc2a5
3 changed files with 2 additions and 6 deletions

View file

@ -40,7 +40,7 @@ var (
DisablePointerAddresses: true, DisablePointerAddresses: true,
SortKeys: true, SortKeys: true,
} }
timeout = 3 * time.Second timeout = 2 * time.Second
) )
// dial attempts to dial the given node and perform a handshake, returning the // dial attempts to dial the given node and perform a handshake, returning the

View file

@ -22,7 +22,7 @@ import (
type txMetadata struct { type txMetadata struct {
id uint64 // the billy id of transction 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, // lookup maps blob versioned hashes to transaction hashes that include them,

View file

@ -101,10 +101,6 @@ type Claim [32]byte
// useCKZG controls whether the cryptography should use the Go or C backend. // useCKZG controls whether the cryptography should use the Go or C backend.
var useCKZG atomic.Bool var useCKZG atomic.Bool
func init() {
UseCKZG(true)
}
// UseCKZG can be called to switch the default Go implementation of KZG to the C // 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 // library if for some reason the user wishes to do so (e.g. consensus bug in one
// or the other). // or the other).