From 5bda5314ca9549a589e63d7b2e6104492a0d5328 Mon Sep 17 00:00:00 2001 From: Shuai Qi Date: Wed, 9 Jan 2019 12:07:09 +0800 Subject: [PATCH] netsync+blockchain: fix typos --- blockchain/mediantime.go | 2 +- netsync/manager.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blockchain/mediantime.go b/blockchain/mediantime.go index ac0689e2..f9c15a23 100644 --- a/blockchain/mediantime.go +++ b/blockchain/mediantime.go @@ -18,7 +18,7 @@ const ( maxAllowedOffsetSecs = 70 * 60 // 1 hour 10 minutes // similarTimeSecs is the number of seconds in either direction from the - // local clock that is used to determine that it is likley wrong and + // local clock that is used to determine that it is likely wrong and // hence to show a warning. similarTimeSecs = 5 * 60 // 5 minutes ) diff --git a/netsync/manager.go b/netsync/manager.go index d75dd961..2a940edb 100644 --- a/netsync/manager.go +++ b/netsync/manager.go @@ -592,14 +592,14 @@ func (sm *SyncManager) handleBlockMsg(bmsg *blockMsg) { } // Meta-data about the new block this peer is reporting. We use this - // below to update this peer's lastest block height and the heights of + // below to update this peer's latest block height and the heights of // other peers based on their last announced block hash. This allows us // to dynamically update the block heights of peers, avoiding stale // heights when looking for a new sync peer. Upon acceptance of a block // or recognition of an orphan, we also use this information to update // the block heights over other peers who's invs may have been ignored // if we are actively syncing while the chain is not yet current or - // who may have lost the lock announcment race. + // who may have lost the lock announcement race. var heightUpdate int32 var blkHashUpdate *chainhash.Hash