Update gen_genesis.go

This commit is contained in:
kiel barry 2018-05-07 19:05:19 -07:00 committed by GitHub
parent f3b6ca3ec3
commit 780eba4a11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ import (
var _ = (*genesisSpecMarshaling)(nil) var _ = (*genesisSpecMarshaling)(nil)
//MarshalJSON assigns receiver values to the Genesis struct and returns its JSON encoding. // MarshalJSON assigns receiver values to the Genesis struct and returns its JSON encoding.
func (g Genesis) MarshalJSON() ([]byte, error) { func (g Genesis) MarshalJSON() ([]byte, error) {
type Genesis struct { type Genesis struct {
Config *params.ChainConfig `json:"config"` Config *params.ChainConfig `json:"config"`
@ -52,7 +52,7 @@ func (g Genesis) MarshalJSON() ([]byte, error) {
return json.Marshal(&enc) return json.Marshal(&enc)
} }
//UnmarshalJSON parses JSON-encoded input and assigns resulting values to the receiver. // UnmarshalJSON parses JSON-encoded input and assigns resulting values to the receiver.
func (g *Genesis) UnmarshalJSON(input []byte) error { func (g *Genesis) UnmarshalJSON(input []byte) error {
type Genesis struct { type Genesis struct {
Config *params.ChainConfig `json:"config"` Config *params.ChainConfig `json:"config"`