Structurally, the wallet class shouldn’t access the global ArgsManager
class, its internal behavior shouldn’t be coupled to a global command line args parsing object.
So this PR migrates the only two places where we depend on it: (1) the keypool size, and (2) the “-walletnotify” script. And cleans up the, now unneeded, wallet ArgsManager
ref member.
Extra note:
In the process of removing the args ref member, discovered and fixed files that were invalidly depending on the wallet header including util/system.h
.