From e33798ff90ec69fc563b2d849c38656c3d2aaa80 Mon Sep 17 00:00:00 2001 From: vyzo Date: Mon, 7 Sep 2020 15:55:01 +0300 Subject: [PATCH] rename variable for better semantics --- node/modules/services.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/modules/services.go b/node/modules/services.go index e3ec01503..e8e5c648a 100644 --- a/node/modules/services.go +++ b/node/modules/services.go @@ -79,8 +79,8 @@ func RunBlockSync(h host.Host, svc *blocksync.BlockSyncService) { h.SetStreamHandler(blocksync.BlockSyncProtocolID, svc.HandleStream) } -func waitForSync(stmgr *stmgr.StateManager, blocks int, subscribe func()) { - nearsync := uint64(blocks) * uint64(build.BlockDelaySecs) * uint64(time.Second) //nolint +func waitForSync(stmgr *stmgr.StateManager, epochs int, subscribe func()) { + nearsync := uint64(epochs) * uint64(build.BlockDelaySecs) * uint64(time.Second) //nolint // early check, are we synced at start up? ts := stmgr.ChainStore().GetHeaviestTipSet()