core/txpool/blobpool: add test config back

This commit is contained in:
Manav Darji 2025-03-26 11:06:37 +05:30
parent c65177c035
commit a648256a74
No known key found for this signature in database
GPG key ID: A426F0124435F36E

View file

@ -51,7 +51,18 @@ var (
testBlobVHashes [][32]byte testBlobVHashes [][32]byte
) )
var testChainConfig *params.ChainConfig
func init() { 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++ { for i := 0; i < 10; i++ {
testBlob := &kzg4844.Blob{byte(i)} testBlob := &kzg4844.Blob{byte(i)}
testBlobs = append(testBlobs, testBlob) testBlobs = append(testBlobs, testBlob)