The wallet should not be able to directly access global configuration
from the node. Remove access of "-limitancestorcount" and
"-limitdescendantcount".
https://github.com/bitcoin/bitcoin/pull/17138/commits/eea462de9c652dca556ad241d2126b10790f67f8
---
Partial backport of Core [[https://github.com/bitcoin/bitcoin/pull/17138 | PR17138]]