Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
durkmurder committed Oct 29, 2024
1 parent 4ec8daf commit 1a74303
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion engine/consensus/dkg/reactor_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func (e *ReactorEngine) end(nextEpochCounter uint64) func() error {
if privateShare != nil {
// we only store our key if one was computed
err = e.dkgState.InsertMyBeaconPrivateKey(nextEpochCounter, privateShare)
if err != nil {
if err != nil && !errors.Is(err, storage.ErrAlreadyExists) {
return fmt.Errorf("could not save beacon private key in db: %w", err)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ func (m *FallbackStateMachine) ProcessEpochRecover(epochRecover *flow.EpochRecov
// if we have processed a valid EpochRecover event, we should exit EFM.
m.state.NextEpoch = nextEpoch
m.state.EpochFallbackTriggered = false

m.telemetry.OnServiceEventProcessed(epochRecover.ServiceEvent())
return true, nil
}
Expand Down

0 comments on commit 1a74303

Please sign in to comment.