From 0d6775fd95c986de1c5c18fafff4e9c0bb7c0fe6 Mon Sep 17 00:00:00 2001
From: Alex Sharov <AskAlexSharov@gmail.com>
Date: Fri, 22 Apr 2022 17:37:35 +0700
Subject: [PATCH] torrent: print peers amount in logs (#3942)

---
 eth/stagedsync/stage_headers.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eth/stagedsync/stage_headers.go b/eth/stagedsync/stage_headers.go
index f081fce994..9e381b4520 100644
--- a/eth/stagedsync/stage_headers.go
+++ b/eth/stagedsync/stage_headers.go
@@ -1224,6 +1224,7 @@ Loop:
 				readiness := 100 * (float64(reply.BytesCompleted) / float64(reply.BytesTotal))
 				log.Info("[Snapshots] download", "progress", fmt.Sprintf("%.2f%%", readiness),
 					"download", libcommon.ByteCount(readBytesPerSec)+"/s",
+					"torrent_peers", reply.Peers,
 					// "upload", libcommon.ByteCount(writeBytesPerSec)+"/s",
 				)
 				prevBytesCompleted = reply.BytesCompleted
-- 
GitLab