Skip to content
Merged
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,9 @@ private void sendNodeStatsReport() {
final boolean isSyncing = syncState.isInSync();
final long gasPrice = suggestGasPrice(blockchainQueries.getBlockchain().getChainHeadBlock());
final long hashrate = miningCoordinator.hashesPerSecond().orElse(0L);
final int peersNumber = protocolManager.ethContext().getEthPeers().peerCount();
// safe to cast to int since it isn't realistic to have more than max int peers
final int peersNumber =
(int) protocolManager.ethContext().getEthPeers().streamAvailablePeers().count();

final NodeStatsReport nodeStatsReport =
ImmutableNodeStatsReport.builder()
Expand Down