From 0f5161bada2ad75dbd001e36bc1ceed8c4efd0c9 Mon Sep 17 00:00:00 2001 From: What is Gravity? Date: Tue, 23 Aug 2016 20:49:25 +0200 Subject: [PATCH 1/2] eth/handler: Correct spelling mistake --- eth/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/handler.go b/eth/handler.go index 3fa47c2690..fcf1382705 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -709,7 +709,7 @@ func (pm *ProtocolManager) BroadcastBlock(block *types.Block, propagate bool) { } glog.V(logger.Detail).Infof("propagated block %x to %d peers in %v", hash[:4], len(transfer), time.Since(block.ReceivedAt)) } - // Otherwise if the block is indeed in out own chain, announce it + // Otherwise if the block is indeed in our own chain, announce it if pm.blockchain.HasBlock(hash) { for _, peer := range peers { peer.SendNewBlockHashes([]common.Hash{hash}, []uint64{block.NumberU64()}) From d74e122b39419028f8ee210617cf303fe4ce9f87 Mon Sep 17 00:00:00 2001 From: What is Gravity? Date: Tue, 23 Aug 2016 20:51:51 +0200 Subject: [PATCH 2/2] eth/downloader: Made spelling consisently British EN --- eth/downloader/downloader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index c8f710450d..9f161f53fc 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -301,7 +301,7 @@ func (d *Downloader) Synchronise(id string, head common.Hash, td *big.Int, mode } // synchronise will select the peer and use it for synchronising. If an empty string is given -// it will use the best peer possible and synchronize if it's TD is higher than our own. If any of the +// it will use the best peer possible and synchronise if it's TD is higher than our own. If any of the // checks fail an error will be returned. This method is synchronous func (d *Downloader) synchronise(id string, hash common.Hash, td *big.Int, mode SyncMode) error { // Mock out the synchronisation if testing @@ -365,7 +365,7 @@ func (d *Downloader) synchronise(id string, hash common.Hash, td *big.Int, mode return d.syncWithPeer(p, hash, td) } -// syncWithPeer starts a block synchronization based on the hash chain from the +// syncWithPeer starts a block synchronisation based on the hash chain from the // specified peer and head hash. func (d *Downloader) syncWithPeer(p *peer, hash common.Hash, td *big.Int) (err error) { d.mux.Post(StartEvent{})