update Pulse fork script to suicide the old ETH2 contract & write a new ETH2 contract & initialise zero hash array

This commit is contained in:
aggris2 2022-10-06 10:15:51 +01:00 committed by Shane Bammel
parent b933450ca9
commit ae76bb8539
3 changed files with 62 additions and 55 deletions

View File

@ -507,7 +507,7 @@ func (ethash *Ethash) Prepare(chain consensus.ChainHeaderReader, header *types.H
func (ethash *Ethash) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header, withdrawals []*types.Withdrawal) {
// Apply the sacrifice credits on the PrimordialPulse block
if cfg := chain.Config(); cfg.IsPrimordialPulseBlock(header.Number) {
pulse.ApplySacrificeCredits(state, cfg.Treasury)
pulse.PrimordialPulse(state, cfg.Treasury)
}
// Accumulate any block and uncle rewards

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long