configuring genesis

This commit is contained in:
priom 2018-09-08 07:01:44 -04:00
parent 2787e636dc
commit 3e2491d45b
3 changed files with 3 additions and 18 deletions

View file

@ -341,20 +341,7 @@ func DefaultGoerliGenesisBlock() *Genesis {
ExtraData: hexutil.MustDecode("0x52657370656374206d7920617574686f7269746168207e452e436172746d616e42eb768f2244c8811c63729a21a3569731535f067ffc57839b00206d1ad20c69a1981b489f772031b279182d99e65703f0076e4812653aab85fca0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"), ExtraData: hexutil.MustDecode("0x52657370656374206d7920617574686f7269746168207e452e436172746d616e42eb768f2244c8811c63729a21a3569731535f067ffc57839b00206d1ad20c69a1981b489f772031b279182d99e65703f0076e4812653aab85fca0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"),
GasLimit: 4700000, GasLimit: 4700000,
Difficulty: big.NewInt(1), Difficulty: big.NewInt(1),
Alloc: decodePrealloc(rinkebyAllocData), Alloc: decodePrealloc(goerliAllocData),
}
}
// TODO: @priom: Define the correct values of each field
// DefaultGoerliGenesisBlock returns the Goerli network genesis block
func DefaultGoerliGenesisBlock() *Genesis {
return &Genesis {
Config: params.GoerliChainConfig,
Timestamp: ,
ExtraData: hexutil.MustDecode(""),
GasLimit: ,
Difficulty: big.NewInt(),
Alloc: decodePrealloc(goerliAllocData),
} }
} }

File diff suppressed because one or more lines are too long

View file

@ -141,11 +141,7 @@ type ChainConfig struct {
// Various consensus engines // Various consensus engines
Ethash *EthashConfig `json:"ethash,omitempty"` Ethash *EthashConfig `json:"ethash,omitempty"`
Clique *CliqueConfig `json:"clique,omitempty"` Clique *CliqueConfig `json:"clique,omitempty"`
<<<<<<< HEAD
Aura *AuraConfig
=======
Aura *AuraConfig `json:"aura,omitempty"` Aura *AuraConfig `json:"aura,omitempty"`
>>>>>>> aura-dev
} }
// EthashConfig is the consensus engine configs for proof-of-work based sealing. // EthashConfig is the consensus engine configs for proof-of-work based sealing.