erigon-pulse/erigon-lib/chain/pulsechain_config.go
Shane Bammel 75db06fa1d Add support for PulseChain
Thanks @bretep for the original integration.
2024-02-14 13:10:45 -06:00

26 lines
774 B
Go

package chain
import (
"math/big"
)
type PulseChainConfig struct {
// An optional treasury which will receive allocations during the PrimordialPulseBlock.
Treasury *PulseChainTreasury `json:"treasury,omitempty"`
}
// String implements the stringer interface, returning the consensus engine details.
func (b *PulseChainConfig) String() string {
return "PulseChain"
}
// PulseChainTreasury represents an optional treasury for launching PulseChain testnets.
type PulseChainTreasury struct {
Addr string `json:"addr"`
Balance string `json:"balance"`
}
// PulseChainTTDOffset is a trivially small amount of work added to the Ethereum Mainnet TTD
// to allow for un-merging and merging with the PulseChain beacon chain.
var PulseChainTTDOffset = big.NewInt(131_072)