diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2021-06-14 17:06:00 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2021-09-16 14:17:01 -0400 |
commit | 7e88f61b285e6a356ea4f6ba384858f109559985 (patch) | |
tree | 86f1ed399bfb44c6bde11b165eaa00b0b682de4c /src/interfaces | |
parent | 6ef84e0503994c53f77093e7ea5951a7b0edea7a (diff) |
multiprocess: Make interfaces::Chain::isTaprootActive non-const
interfaces::Chain is an abstract class, so declaring the method const
would be exposing internal implementation details of subclasses to
interface callers. And specifically this doesn't work because the
multiprocess implementation of the interfaces::Chain::isTaprootActive
method can't be const because IPC connection state and request state is
not constant during the call.
Diffstat (limited to 'src/interfaces')
-rw-r--r-- | src/interfaces/chain.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h index eceede3c8f..a134174078 100644 --- a/src/interfaces/chain.h +++ b/src/interfaces/chain.h @@ -289,7 +289,7 @@ public: virtual void requestMempoolTransactions(Notifications& notifications) = 0; //! Check if Taproot has activated - virtual bool isTaprootActive() const = 0; + virtual bool isTaprootActive() = 0; }; //! Interface to let node manage chain clients (wallets, or maybe tools for |