It's only needed for a hardcoded int, which we can define locally.
https://github.com/bitcoin/bitcoin/pull/17342/commits/d9957623b48a7c3eff0ac750d1245fabfb1843a2
---
Partial backport of Core [[https://github.com/bitcoin/bitcoin/pull/17342 | PR17342]]