From 7216363d2e8b2c29e4f5409362203a18233f0da6 Mon Sep 17 00:00:00 2001 From: Lucas Molas Date: Thu, 6 Aug 2020 12:40:01 -0300 Subject: [PATCH] log success fixme --- chain/blocksync/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chain/blocksync/client.go b/chain/blocksync/client.go index 579d40f8e..87cb41d44 100644 --- a/chain/blocksync/client.go +++ b/chain/blocksync/client.go @@ -407,6 +407,8 @@ func (client *BlockSync) sendRequestToPeer( } client.peerTracker.logSuccess(peer, build.Clock.Since(connectionStart)) + // FIXME: We should really log a success only after we validate the response. + // It might be a bit hard to do. return &res, nil }