Skip to content

Commit

Permalink
Explicit runtime stop call in dot/state/initialize.go
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jul 20, 2022
1 parent 2cebc65 commit 649b9ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dot/state/initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func (s *Service) Initialise(gen *genesis.Genesis, header *types.Header, t *trie
if err != nil {
return err
}
rt.Stop()

// write initial genesis values to database
if err = s.storeInitialValues(gen.GenesisData(), t); err != nil {
Expand Down Expand Up @@ -116,8 +117,6 @@ func (s *Service) loadBabeConfigurationFromRuntime(r runtime.Instance) (*types.B
return nil, fmt.Errorf("failed to fetch genesis babe configuration: %w", err)
}

r.Stop()

if s.BabeThresholdDenominator != 0 {
babeCfg.C1 = s.BabeThresholdNumerator
babeCfg.C2 = s.BabeThresholdDenominator
Expand Down

0 comments on commit 649b9ad

Please sign in to comment.