Skip to content

Commit

Permalink
chore: make function comments match function names (#1209)
Browse files Browse the repository at this point in the history
Signed-off-by: piguagua <piguagua@aliyun.com>
  • Loading branch information
piguagua authored Jun 10, 2024
1 parent cc0c311 commit 51f48bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/rawdb/accessors_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func ReadSnapshotBlockHash(db ethdb.KeyValueReader) common.Hash {
return common.BytesToHash(data)
}

// WriteSnapshotRoot stores the root of the block whose state is contained in
// WriteSnapshotBlockHash stores the root of the block whose state is contained in
// the persisted snapshot.
func WriteSnapshotBlockHash(db ethdb.KeyValueWriter, blockHash common.Hash) {
if err := db.Put(snapshotBlockHashKey, blockHash[:]); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion core/rawdb/accessors_state_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func WriteSyncSegment(db ethdb.KeyValueWriter, root common.Hash, start []byte) e
return db.Put(packSyncSegmentKey(root, start), []byte{0x01})
}

// ClearSegment removes segment markers for root from db
// ClearSyncSegments removes segment markers for root from db
func ClearSyncSegments(db ethdb.KeyValueStore, root common.Hash) error {
segmentsPrefix := make([]byte, len(syncSegmentsPrefix)+common.HashLength)
copy(segmentsPrefix, syncSegmentsPrefix)
Expand Down
2 changes: 1 addition & 1 deletion core/state/snapshot/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func TestDiffLayerExternalInvalidationPartialFlatten(t *testing.T) {
}
}

// TestPostCapBasicDataAccess tests some functionality regarding capping/flattening.
// TestPostFlattenBasicDataAccess tests some functionality regarding capping/flattening.
func TestPostFlattenBasicDataAccess(t *testing.T) {
// setAccount is a helper to construct a random account entry and assign it to
// an account slot in a snapshot
Expand Down

0 comments on commit 51f48bc

Please sign in to comment.