Skip to content

Commit a8edc64

Browse files
committed
remove HistoryServeWindow from protocol params
1 parent 0f18f75 commit a8edc64

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

core/verkle_witness_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ import (
4040
"github.com/holiman/uint256"
4141
)
4242

43+
// historyServeWindow is the number of blocks to serve historical block hashes for, as per EIP-2935.
44+
const historyServeWindow = 8191
45+
4346
var (
4447
testVerkleChainConfig = &params.ChainConfig{
4548
ChainID: big.NewInt(1),
@@ -265,7 +268,7 @@ func TestProcessParentBlockHash(t *testing.T) {
265268

266269
// getContractStoredBlockHash is a utility method which reads the stored parent blockhash for block 'number'
267270
func getContractStoredBlockHash(statedb *state.StateDB, number uint64, isVerkle bool) common.Hash {
268-
ringIndex := number % params.HistoryServeWindow
271+
ringIndex := number % historyServeWindow
269272
var key common.Hash
270273
binary.BigEndian.PutUint64(key[24:], ringIndex)
271274
if isVerkle {

params/protocol_params.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,6 @@ const (
173173
BlobTxBlobGasPerBlob = 1 << 17 // Gas consumption of a single data blob (== blob byte size)
174174
BlobTxMinBlobGasprice = 1 // Minimum gas price for data blobs
175175
BlobTxPointEvaluationPrecompileGas = 50000 // Gas price for the point evaluation precompile.
176-
177-
HistoryServeWindow = 8191 // Number of blocks to serve historical block hashes for, EIP-2935.
178176
)
179177

180178
// Bls12381G1MultiExpDiscountTable is the gas discount table for BLS12-381 G1 multi exponentiation operation

0 commit comments

Comments
 (0)