Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb66eba

Browse files
authored
core: fix comment to reflect function name (ethereum#27070)
1 parent bedf285 commit cb66eba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/blockchain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ func (bc *BlockChain) writeHeadBlock(block *types.Block) {
908908
headBlockGauge.Update(int64(block.NumberU64()))
909909
}
910910

911-
// stop stops the blockchain service. If any imports are currently in progress
911+
// stopWithoutSaving stops the blockchain service. If any imports are currently in progress
912912
// it will abort them using the procInterrupt. This method stops all running
913913
// goroutines, but does not do all the post-stop work of persisting data.
914914
// OBS! It is generally recommended to use the Stop method!

core/state/snapshot/snapshot_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func TestDiskLayerExternalInvalidationFullFlatten(t *testing.T) {
118118
if err := snaps.Cap(common.HexToHash("0x02"), 0); err != nil {
119119
t.Fatalf("failed to merge diff layer onto disk: %v", err)
120120
}
121-
// Since the base layer was modified, ensure that data retrieval on the external reference fail
121+
// Since the base layer was modified, ensure that data retrievals on the external reference fail
122122
if acc, err := ref.Account(common.HexToHash("0x01")); err != ErrSnapshotStale {
123123
t.Errorf("stale reference returned account: %#x (err: %v)", acc, err)
124124
}

0 commit comments

Comments
 (0)