mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 03:30:35 +00:00
update Pulse fork script to suicide the old ETH2 contract & write a new ETH2 contract & initialise zero hash array
This commit is contained in:
parent
b933450ca9
commit
ae76bb8539
@ -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
Loading…
Reference in New Issue
Block a user