Skip to content

Commit b977953

Browse files
aaronbuchwaldtsachiherman
authored andcommitted
Update stale comment on commitToDB (#3627)
1 parent 0ed260e commit b977953

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x/merkledb/view.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ func (v *view) CommitToDB(ctx context.Context) error {
486486
return v.commitToDB(ctx)
487487
}
488488

489-
// Commits the changes from [trieToCommit] to this view,
490-
// this view to its parent, and so on until committing to the db.
489+
// Commits the changes from [trieToCommit] to the db.
490+
// Assumes that its parent view has already been committed to the db.
491491
// Assumes [v.db.commitLock] is held.
492492
func (v *view) commitToDB(ctx context.Context) error {
493493
v.commitLock.Lock()

0 commit comments

Comments
 (0)