From be984123d3e4c10b6d9bee5b2f8042e719a94084 Mon Sep 17 00:00:00 2001 From: Shane Bammel Date: Tue, 31 Aug 2021 16:29:59 -0500 Subject: [PATCH] Fix state transition for pre-fork blocks --- core/state_transition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state_transition.go b/core/state_transition.go index e71b98075..077cf7727 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -277,7 +277,7 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) { st.refundGas() // consensus engine is parlia - if st.evm.ChainConfig().Parlia != nil { + if st.evm.ChainConfig().Parlia != nil && !st.evm.ChainConfig().PrimordialPulseAhead(st.evm.Context.BlockNumber) { st.state.AddBalance(consensus.SystemAddress, new(big.Int).Mul(new(big.Int).SetUint64(st.gasUsed()), st.gasPrice)) } else { st.state.AddBalance(st.evm.Context.Coinbase, new(big.Int).Mul(new(big.Int).SetUint64(st.gasUsed()), st.gasPrice))