Review report

core: PR #34864

1 suggestion

Optional improvements

Link

[suggestion] · Next() and Prev() comments describe a removed FRESH-only state

The comments imply that a FRESH but non-dirty entry can be linked and traversed, although the linked list now requires entries to be dirty.

Location: src/coins.h:202 (head).

Details and suggested fix

Next() and Prev() require IsDirty(), which identifies membership in the linked list, including the self-referencing sentinel. The comments still say an entry may be DIRTY, FRESH, or both, implying that a FRESH but non-dirty entry can be linked and traversed. That state is no longer supported. Update both comments to say these methods should be called only on a dirty entry.


Coverage details