Skip to content

Commit

Permalink
Remove redundant genesisBlockNumber field
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Nov 27, 2024
1 parent 7e14fc0 commit 3387e2e
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions cmd/nodegenesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ type l1Config struct {
}

type nodeGenesis struct {
L1Config l1Config `json:"l1Config"`
RollupCreationBlockNumberUsedByRollup uint64 `json:"genesisBlockNumber"`
RollupCreationBlockNumberUsedByValidium uint64 `json:"rollupCreationBlockNumber"`
UpdateToULxLyBlockNumber uint64 `json:"rollupManagerCreationBlockNumber"`
Genesis interface{} `json:"genesis"`
Root common.Hash `json:"root"`
L1Config l1Config `json:"l1Config"`
RollupCreationBlockNumber uint64 `json:"rollupCreationBlockNumber"`
RollupManagerCreationBlockNumber uint64 `json:"rollupManagerCreationBlockNumber"`
Genesis interface{} `json:"genesis"`
Root common.Hash `json:"root"`
}

func createNodeGenesis(cliCtx *cli.Context) error {
Expand Down Expand Up @@ -96,11 +95,10 @@ func createNodeGenesis(cliCtx *cli.Context) error {
POL: rm.POLAddr,
GER: rm.GERAddr,
},
RollupCreationBlockNumberUsedByRollup: r.CreationBlock,
RollupCreationBlockNumberUsedByValidium: r.CreationBlock,
UpdateToULxLyBlockNumber: rm.UpdateToULxLyBlock,
Genesis: genesis,
Root: r.GenesisRoot,
RollupCreationBlockNumber: r.CreationBlock,
RollupManagerCreationBlockNumber: rm.UpdateToULxLyBlock,
Genesis: genesis,
Root: r.GenesisRoot,
}

data, err := json.MarshalIndent(&ng, "", " ")
Expand Down

0 comments on commit 3387e2e

Please sign in to comment.