erigon-pulse/pulse/pulse.go
2024-02-14 13:10:46 -06:00

19 lines
525 B
Go

// 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)
}