A more comprehensive fix for the issue described in #837.
Since the WalletModel
class is unavailable when compiling without wallet support
(-DENABLE_WALLET=0)
, the RPC executor class should not be coupled to it.
This decoupling ensures GUI compatibility with builds that omit wallet support.
This also drops an extra #ifdef ENABLE_WALLET
block which is always good.