From a648256a74e4d76f56d5bbb0cb45ab376f6fc5bd Mon Sep 17 00:00:00 2001 From: Manav Darji Date: Wed, 26 Mar 2025 11:06:37 +0530 Subject: [PATCH] core/txpool/blobpool: add test config back --- core/txpool/blobpool/blobpool_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/txpool/blobpool/blobpool_test.go b/core/txpool/blobpool/blobpool_test.go index 248c5336a5..dc90f7bd4f 100644 --- a/core/txpool/blobpool/blobpool_test.go +++ b/core/txpool/blobpool/blobpool_test.go @@ -51,7 +51,18 @@ var ( testBlobVHashes [][32]byte ) +var testChainConfig *params.ChainConfig + func init() { + testChainConfig = new(params.ChainConfig) + *testChainConfig = *params.TestChainConfig + + testChainConfig.ShanghaiBlock = big.NewInt(0) + *testChainConfig.ShanghaiBlock = *big.NewInt(0) + + testChainConfig.CancunBlock = big.NewInt(0) + *testChainConfig.CancunBlock = *big.NewInt(0) + for i := 0; i < 10; i++ { testBlob := &kzg4844.Blob{byte(i)} testBlobs = append(testBlobs, testBlob)