mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
Update gen_genesis.go
This commit is contained in:
parent
f3b6ca3ec3
commit
780eba4a11
1 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ import (
|
|||
|
||||
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) {
|
||||
type Genesis struct {
|
||||
Config *params.ChainConfig `json:"config"`
|
||||
|
|
@ -52,7 +52,7 @@ func (g Genesis) MarshalJSON() ([]byte, error) {
|
|||
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 {
|
||||
type Genesis struct {
|
||||
Config *params.ChainConfig `json:"config"`
|
||||
|
|
|
|||
Loading…
Reference in a new issue