Review report

bitcoin/bitcoin: PR #35026

1 suggestion

Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.

Optional improvements

Link

[suggestion] · The time-based test's MTP comment omits the block itself

The six-block timestamp setup relies on MTP including the queried tip, but the new test comment describes a window that excludes it.

Location: test/functional/feature_bip68_sequence.py:442 (head).

Details and suggested fix

For the getblockheader queries here, mediantime comes from GetMedianTimePast(), which starts at the queried block and collects 11 timestamps. After six high-timestamp blocks, that window contains six high timestamps and five low ones. Reading "previous 11" literally would instead give five high and six low, contradicting the median-increase assertion and making the block counts harder to maintain. Change the comment to "The MTP of a block is the median timestamp of that block and its 10 predecessors." No setup or assertion changes are needed.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.