Review report

core: PR #36503

1 suggestion

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

Optional improvements

Link

[suggestion] · Pruned-node rollback tests cover only rejection

The new pruned-node dumptxoutset tests only expect errors, so they would miss rejection of rollbacks whose required block and undo data are available.

Location: test/functional/feature_assumeutxo.py:686 (head).

Details and suggested fix

The existing successful rollback tests use unpruned nodes, so none checks acceptance through the changed prune-mode guard. Before invalidateblock(first_snapshot_child), n1 is at height 359 and the snapshot base at 299 still lacks undo. A rollback to PAUSE_HEIGHT - 1 (358) needs only block 359, whose normal connection wrote undo. GetPruneHeight returns 299, below the target, so this call should succeed. Add it after n1.submitblock(snapshot_block), assert the returned base_height and base_hash, compare txoutset_hash with an n0 rollback dump at the same height, and check that n1's best block hash is unchanged.


Coverage details

Earlier concerns

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