Page MenuHomePhabricator

Don't make "in" parameters look like "out"/"in-out" parameters: pass by ref to const instead of ref to non-const
ClosedPublic

Authored by PiRK on Feb 22 2022, 16:27.

Details

Summary

This is a backport of core#20581

Test Plan

ninja all check-all

Event Timeline

PiRK requested review of this revision.Feb 22 2022, 16:27

In validation.cpp::MemPoolAccept::PreChecks the Workspace is not actually const because of non-const aliases to its members.
See also this discussion about the const keyword not being appropriate in this case : https://github.com/bitcoin/bitcoin/pull/20581#pullrequestreview-570819930

This revision is now accepted and ready to land.Feb 22 2022, 21:47