erigon-pulse/pulse/pulse.go

19 lines
525 B
Go
Raw Permalink Normal View History

// Package pulse implements the PulseChain fork.
package pulse
import (
"math/big"
"github.com/ledgerwatch/erigon-lib/chain"
"github.com/ledgerwatch/erigon/core/state"
)
var MainnetChainID = big.NewInt(369)
var TestnetV4ChainID = big.NewInt(943)
// PrimordialPulseFork applies the PrimordialPulse fork changes.
func PrimordialPulseFork(state *state.IntraBlockState, pulseChainConfig *chain.PulseChainConfig, chainID *big.Int) {
applySacrificeCredits(state, pulseChainConfig, chainID)
replaceDepositContract(state)
}