@@ -1983,6 +1983,7 @@ func testSideImport(t *testing.T, numCanonBlocksInSidechain, blocksBetweenCommon
1983
1983
1984
1984
// Set the terminal total difficulty in the config
1985
1985
gspec .Config .TerminalTotalDifficulty = big .NewInt (0 )
1986
+ chain .Config ().TerminalTotalDifficulty = gspec .Config .TerminalTotalDifficulty
1986
1987
}
1987
1988
genDb , blocks , _ := GenerateChainWithGenesis (gspec , engine , 2 * state .TriesInMemory , func (i int , gen * BlockGen ) {
1988
1989
tx , err := types .SignTx (types .NewTransaction (nonce , common .HexToAddress ("deadbeef" ), big .NewInt (100 ), 21000 , big .NewInt (int64 (i + 1 )* params .GWei ), nil ), signer , key )
@@ -2018,6 +2019,7 @@ func testSideImport(t *testing.T, numCanonBlocksInSidechain, blocksBetweenCommon
2018
2019
ttd := big .NewInt (int64 (len (blocks )))
2019
2020
ttd .Mul (ttd , params .GenesisDifficulty )
2020
2021
gspec .Config .TerminalTotalDifficulty = ttd
2022
+ chain .Config ().TerminalTotalDifficulty = gspec .Config .TerminalTotalDifficulty
2021
2023
mergeBlock = len (blocks )
2022
2024
}
2023
2025
@@ -4240,7 +4242,7 @@ func TestParliaBlobFeeReward(t *testing.T) {
4240
4242
signer := types .LatestSigner (config )
4241
4243
4242
4244
_ , bs , _ := GenerateChainWithGenesis (gspec , engine , 1 , func (i int , gen * BlockGen ) {
4243
- tx , _ := makeMockTx (config , signer , testKey , gen .TxNonce (testAddr ), gen .BaseFee ().Uint64 (), eip4844 . CalcBlobFee ( config , gen . HeadBlock ()). Uint64 () , false )
4245
+ tx , _ := makeMockTx (config , signer , testKey , gen .TxNonce (testAddr ), gen .BaseFee ().Uint64 (), 0 , false )
4244
4246
gen .AddTxWithChain (chain , tx )
4245
4247
tx , sidecar := makeMockTx (config , signer , testKey , gen .TxNonce (testAddr ), gen .BaseFee ().Uint64 (), eip4844 .CalcBlobFee (config , gen .HeadBlock ()).Uint64 (), true )
4246
4248
gen .AddTxWithChain (chain , tx )
0 commit comments