mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2025-01-03 01:07:39 +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
339b9b318b
commit
ef2a702648
@ -605,7 +605,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