@@ -199,7 +199,7 @@ type BlockChain interface {
199199 // InsertChain inserts a batch of blocks into the local chain.
200200 InsertChain (types.Blocks ) (int , error )
201201
202- // InterruptInsert whether disables the chain insertion.
202+ // InterruptInsert disables or enables chain insertion.
203203 InterruptInsert (on bool )
204204
205205 // InsertReceiptChain inserts a batch of blocks along with their receipts
@@ -513,7 +513,7 @@ func (d *Downloader) syncToHead() (err error) {
513513 //
514514 // For non-merged networks, if there is a checkpoint available, then calculate
515515 // the ancientLimit through that. Otherwise calculate the ancient limit through
516- // the advertised height of the remote peer. This most is mostly a fallback for
516+ // the advertised height of the remote peer. This is mostly a fallback for
517517 // legacy networks, but should eventually be dropped. TODO(karalabe).
518518 //
519519 // Beacon sync, use the latest finalized block as the ancient limit
@@ -946,7 +946,7 @@ func (d *Downloader) processSnapSyncContent() error {
946946 if ! d .committed .Load () {
947947 latest := results [len (results )- 1 ].Header
948948 // If the height is above the pivot block by 2 sets, it means the pivot
949- // become stale in the network, and it was garbage collected, move to a
949+ // became stale in the network, and it was garbage collected, move to a
950950 // new pivot.
951951 //
952952 // Note, we have `reorgProtHeaderDelay` number of blocks withheld, Those
@@ -1043,7 +1043,7 @@ func (d *Downloader) commitSnapSyncData(results []*fetchResult, stateSync *state
10431043 first , last := results [0 ].Header , results [len (results )- 1 ].Header
10441044 log .Debug ("Inserting snap-sync blocks" , "items" , len (results ),
10451045 "firstnum" , first .Number , "firsthash" , first .Hash (),
1046- "lastnumn " , last .Number , "lasthash" , last .Hash (),
1046+ "lastnum " , last .Number , "lasthash" , last .Hash (),
10471047 )
10481048 blocks := make ([]* types.Block , len (results ))
10491049 receipts := make ([]rlp.RawValue , len (results ))
0 commit comments