diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h --- a/src/interfaces/chain.h +++ b/src/interfaces/chain.h @@ -272,6 +272,9 @@ //! to be prepared to handle this by ignoring notifications about unknown //! removed transactions and already added new transactions. virtual void requestMempoolTransactions(Notifications ¬ifications) = 0; + + //! This Chain's parameters + virtual const CChainParams ¶ms() const = 0; }; //! Interface to let node manage chain clients (wallets, or maybe tools for diff --git a/src/interfaces/chain.cpp b/src/interfaces/chain.cpp --- a/src/interfaces/chain.cpp +++ b/src/interfaces/chain.cpp @@ -408,6 +408,7 @@ notifications.TransactionAddedToMempool(entry.GetSharedTx()); } } + const CChainParams ¶ms() const override { return m_params; } NodeContext &m_node; const CChainParams &m_params; };