@@ -333,7 +333,7 @@ func (d *Downloader) Synchronise(id string, head common.Hash, td *big.Int, mode
333
333
}
334
334
335
335
// synchronise will select the peer and use it for synchronising. If an empty string is given
336
- // it will use the best peer possible and synchronize if it's TD is higher than our own. If any of the
336
+ // it will use the best peer possible and synchronize if its TD is higher than our own. If any of the
337
337
// checks fail an error will be returned. This method is synchronous
338
338
func (d * Downloader ) synchronise (id string , hash common.Hash , td * big.Int , mode SyncMode ) error {
339
339
// Mock out the synchronisation if testing
@@ -1003,8 +1003,8 @@ func (d *Downloader) fetchParts(errCancel error, deliveryCh chan dataPack, deliv
1003
1003
return errCancel
1004
1004
1005
1005
case packet := <- deliveryCh :
1006
- // If the peer was previously banned and failed to deliver it's pack
1007
- // in a reasonable time frame, ignore it's message.
1006
+ // If the peer was previously banned and failed to deliver its pack
1007
+ // in a reasonable time frame, ignore its message.
1008
1008
if peer := d .peers .Peer (packet .PeerId ()); peer != nil {
1009
1009
// Deliver the received chunk of data and check chain validity
1010
1010
accepted , err := deliver (packet )
@@ -1205,8 +1205,8 @@ func (d *Downloader) processHeaders(origin uint64, td *big.Int) error {
1205
1205
case <- d .cancelCh :
1206
1206
}
1207
1207
}
1208
- // If no headers were retrieved at all, the peer violated it's TD promise that it had a
1209
- // better chain compared to ours. The only exception is if it's promised blocks were
1208
+ // If no headers were retrieved at all, the peer violated its TD promise that it had a
1209
+ // better chain compared to ours. The only exception is if its promised blocks were
1210
1210
// already imported by other means (e.g. fecher):
1211
1211
//
1212
1212
// R <remote peer>, L <local node>: Both at block 10
0 commit comments