Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepatta committed Nov 7, 2024
1 parent 1662242 commit 1a0a77a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion consensus/istanbul/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ func (c *core) setState(state State) {
oldState := c.state
c.state = state
c.currentLogger(false, nil).Trace("[Consensus]: State changed", "from", oldState.String(), "to", state.String())

}
if state == StateAcceptRequest {
c.processPendingRequests()
Expand Down
1 change: 0 additions & 1 deletion consensus/istanbul/core/preprepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ func (c *core) sendPreprepareMsg(request *Request) {

// If I'm the proposer and I have the same sequence with the proposal
if c.current.Sequence().Cmp(request.Proposal.Number()) == 0 && c.IsProposer() {

// Creates PRE-PREPARE message
curView := c.currentView()
preprepare := qbfttypes.NewPreprepare(curView.Sequence, curView.Round, request.Proposal)
Expand Down
2 changes: 1 addition & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ func (w *worker) resultLoop() {
log.Error("Failed writing block to chain", "err", err)
continue
}
log.Info("🔨 Successfully sealed new block", "number", block.Number(), "txs", block.Transactions().Len(), "hash", hash,
log.Info("🔨 Successfully sealed new block", "number", block.Number(), "txs", block.Transactions().Len(), "fees", totalFees(block, receipts), "hash", hash,
"elapsed", common.PrettyDuration(time.Since(task.createdAt)))

// Broadcast the block and announce chain insertion event
Expand Down

0 comments on commit 1a0a77a

Please sign in to comment.