@@ -199,7 +199,7 @@ type BlockChain interface {
199
199
// InsertChain inserts a batch of blocks into the local chain.
200
200
InsertChain (types.Blocks ) (int , error )
201
201
202
- // InterruptInsert whether disables the chain insertion.
202
+ // InterruptInsert disables or enables chain insertion.
203
203
InterruptInsert (on bool )
204
204
205
205
// InsertReceiptChain inserts a batch of blocks along with their receipts
@@ -513,7 +513,7 @@ func (d *Downloader) syncToHead() (err error) {
513
513
//
514
514
// For non-merged networks, if there is a checkpoint available, then calculate
515
515
// 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
517
517
// legacy networks, but should eventually be dropped. TODO(karalabe).
518
518
//
519
519
// Beacon sync, use the latest finalized block as the ancient limit
@@ -946,7 +946,7 @@ func (d *Downloader) processSnapSyncContent() error {
946
946
if ! d .committed .Load () {
947
947
latest := results [len (results )- 1 ].Header
948
948
// 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
950
950
// new pivot.
951
951
//
952
952
// Note, we have `reorgProtHeaderDelay` number of blocks withheld, Those
@@ -1043,7 +1043,7 @@ func (d *Downloader) commitSnapSyncData(results []*fetchResult, stateSync *state
1043
1043
first , last := results [0 ].Header , results [len (results )- 1 ].Header
1044
1044
log .Debug ("Inserting snap-sync blocks" , "items" , len (results ),
1045
1045
"firstnum" , first .Number , "firsthash" , first .Hash (),
1046
- "lastnumn " , last .Number , "lasthash" , last .Hash (),
1046
+ "lastnum " , last .Number , "lasthash" , last .Hash (),
1047
1047
)
1048
1048
blocks := make ([]* types.Block , len (results ))
1049
1049
receipts := make ([]rlp.RawValue , len (results ))
0 commit comments