Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Minor change that fix merged code #1879

Merged
merged 2 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions consensus/polybft/consensus_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,16 +386,6 @@ func (c *consensusRuntime) OnBlockInserted(fullBlock *types.FullBlock) {
c.logger.Error("failed to post block in governance manager", "err", err)
}

// handle governance events that happened in block
if err := c.governanceManager.PostBlock(postBlock); err != nil {
c.logger.Error("failed to post block in governance manager", "err", err)
}

// handle governance events that happened in block
if err := c.governanceManager.PostBlock(postBlock); err != nil {
c.logger.Error("failed to post block in governance manager", "err", err)
}

if isEndOfEpoch {
if epoch, err = c.restartEpoch(fullBlock.Block.Header); err != nil {
c.logger.Error("failed to restart epoch after block inserted", "error", err)
Expand Down
Loading
Loading