Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Thegaram committed Aug 27, 2024
1 parent 1103c8b commit 90c49e5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions eth/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,12 @@ func (h *handler) BroadcastTransactions(txs types.Transactions) {
"announce packs", annoPeers, "announced hashes", annoCount,
"tx packs", directPeers, "broadcast txs", directCount)

directTxsLenGauge.Update(int64(directCount / directPeers))
annoTxsLenGauge.Update(int64(annoCount / annoPeers))
if directPeers > 0 {
directTxsLenGauge.Update(int64(directCount / directPeers))
}
if annoPeers > 0 {
annoTxsLenGauge.Update(int64(annoCount / annoPeers))
}
}

// minedBroadcastLoop sends mined blocks to connected peers.
Expand Down

0 comments on commit 90c49e5

Please sign in to comment.