mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
remove HistoryServeWindow from protocol params
This commit is contained in:
parent
0f18f75ec4
commit
a8edc64718
2 changed files with 4 additions and 3 deletions
|
|
@ -40,6 +40,9 @@ import (
|
|||
"github.com/holiman/uint256"
|
||||
)
|
||||
|
||||
// historyServeWindow is the number of blocks to serve historical block hashes for, as per EIP-2935.
|
||||
const historyServeWindow = 8191
|
||||
|
||||
var (
|
||||
testVerkleChainConfig = ¶ms.ChainConfig{
|
||||
ChainID: big.NewInt(1),
|
||||
|
|
@ -265,7 +268,7 @@ func TestProcessParentBlockHash(t *testing.T) {
|
|||
|
||||
// getContractStoredBlockHash is a utility method which reads the stored parent blockhash for block 'number'
|
||||
func getContractStoredBlockHash(statedb *state.StateDB, number uint64, isVerkle bool) common.Hash {
|
||||
ringIndex := number % params.HistoryServeWindow
|
||||
ringIndex := number % historyServeWindow
|
||||
var key common.Hash
|
||||
binary.BigEndian.PutUint64(key[24:], ringIndex)
|
||||
if isVerkle {
|
||||
|
|
|
|||
|
|
@ -173,8 +173,6 @@ const (
|
|||
BlobTxBlobGasPerBlob = 1 << 17 // Gas consumption of a single data blob (== blob byte size)
|
||||
BlobTxMinBlobGasprice = 1 // Minimum gas price for data blobs
|
||||
BlobTxPointEvaluationPrecompileGas = 50000 // Gas price for the point evaluation precompile.
|
||||
|
||||
HistoryServeWindow = 8191 // Number of blocks to serve historical block hashes for, EIP-2935.
|
||||
)
|
||||
|
||||
// Bls12381G1MultiExpDiscountTable is the gas discount table for BLS12-381 G1 multi exponentiation operation
|
||||
|
|
|
|||
Loading…
Reference in a new issue