From 20e65d4a8e199adcaedc9fc8a4808fa222bb7ad9 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sat, 14 Jan 2017 12:06:47 +0300 Subject: [PATCH] Comment clarification --- src/cypherpunks.ru/nncp/sp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cypherpunks.ru/nncp/sp.go b/src/cypherpunks.ru/nncp/sp.go index 979dd9e..59f912f 100644 --- a/src/cypherpunks.ru/nncp/sp.go +++ b/src/cypherpunks.ru/nncp/sp.go @@ -299,7 +299,7 @@ func (ctx *Ctx) StartI(conn net.Conn, nodeId *NodeId, nice uint8, xxOnly *TRxTx) if len(infosPayloads) > 0 { firstPayload = infosPayloads[0] } - // Pad first payload, to hide actual existing files + // Pad first payload, to hide actual number of existing files for i := 0; i < (MaxSPSize-len(firstPayload))/SPHeadOverhead; i++ { firstPayload = append(firstPayload, SPHaltMarshalized...) } @@ -419,7 +419,7 @@ func (ctx *Ctx) StartR(conn net.Conn, nice uint8, xxOnly *TRxTx) (*SPState, erro if len(infosPayloads) > 0 { firstPayload = infosPayloads[0] } - // Pad first payload, to hide actual existing files + // Pad first payload, to hide actual number of existing files for i := 0; i < (MaxSPSize-len(firstPayload))/SPHeadOverhead; i++ { firstPayload = append(firstPayload, SPHaltMarshalized...) } -- 2.44.0