Skip to content

Commit

Permalink
Renamed genesisInit function in Slice to init
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers authored and wizeguyy committed Jan 25, 2023
1 parent ed3a6ef commit 0a75b75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func NewSlice(db ethdb.Database, config *Config, txConfig *TxPoolConfig, isLocal
}()
}

if err := sl.genesisInit(genesis); err != nil {
if err := sl.init(genesis); err != nil {
return nil, err
}

Expand Down Expand Up @@ -416,9 +416,9 @@ func (sl *Slice) updateCurrentPendingHeader(externPendingHeader types.PendingHea
}
}

// genesisInit checks if the headerchain is empty and if it's empty appends the Knot
// init checks if the headerchain is empty and if it's empty appends the Knot
// otherwise loads the last stored state of the chain.
func (sl *Slice) genesisInit(genesis *Genesis) error {
func (sl *Slice) init(genesis *Genesis) error {
nodeCtx := common.NodeLocation.Context()
// If the headerchain is empty start from genesis
if sl.hc.Empty() {
Expand Down

0 comments on commit 0a75b75

Please sign in to comment.