rename variable for better semantics

This commit is contained in:
vyzo 2020-09-07 15:55:01 +03:00
parent d9faff19a5
commit e33798ff90

View File

@ -79,8 +79,8 @@ func RunBlockSync(h host.Host, svc *blocksync.BlockSyncService) {
h.SetStreamHandler(blocksync.BlockSyncProtocolID, svc.HandleStream) h.SetStreamHandler(blocksync.BlockSyncProtocolID, svc.HandleStream)
} }
func waitForSync(stmgr *stmgr.StateManager, blocks int, subscribe func()) { func waitForSync(stmgr *stmgr.StateManager, epochs int, subscribe func()) {
nearsync := uint64(blocks) * uint64(build.BlockDelaySecs) * uint64(time.Second) //nolint nearsync := uint64(epochs) * uint64(build.BlockDelaySecs) * uint64(time.Second) //nolint
// early check, are we synced at start up? // early check, are we synced at start up?
ts := stmgr.ChainStore().GetHeaviestTipSet() ts := stmgr.ChainStore().GetHeaviestTipSet()