diff options
author | TheCharlatan <seb.kung@gmail.com> | 2024-01-24 14:12:33 +0100 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2024-02-15 14:45:51 +0100 |
commit | 06069b3913dda048f5d640a662b0852f86346ace (patch) | |
tree | e27a51702495364ef686f3e9b1d9b83d269196b3 /src/node | |
parent | 0d6d2b650d1017691f48c9109a6cd020ab46aa73 (diff) | |
download | bitcoin-06069b3913dda048f5d640a662b0852f86346ace.tar.xz |
scripted-diff: Rename MainSignals to ValidationSignals
-BEGIN VERIFY SCRIPT-
s() { git grep -l "$1" src | xargs sed -i "s/$1/$2/g"; }
s 'CMainSignals' 'ValidationSignals'
s 'MainSignalsImpl' 'ValidationSignalsImpl'
-END VERIFY SCRIPT-
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/context.h | 4 | ||||
-rw-r--r-- | src/node/interfaces.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/node/context.h b/src/node/context.h index 189e5e6ae4..245f230aec 100644 --- a/src/node/context.h +++ b/src/node/context.h @@ -20,7 +20,7 @@ class BanMan; class BaseIndex; class CBlockPolicyEstimator; class CConnman; -class CMainSignals; +class ValidationSignals; class CScheduler; class CTxMemPool; class ChainstateManager; @@ -74,7 +74,7 @@ struct NodeContext { //! Issues blocking calls about sync status, errors and warnings std::unique_ptr<KernelNotifications> notifications; //! Issues calls about blocks and transactions - std::unique_ptr<CMainSignals> validation_signals; + std::unique_ptr<ValidationSignals> validation_signals; std::atomic<int> exit_status{EXIT_SUCCESS}; //! Declare default constructor and destructor that are not inline, so code diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp index 1814834f35..f9a372e3de 100644 --- a/src/node/interfaces.cpp +++ b/src/node/interfaces.cpp @@ -460,7 +460,7 @@ public: class NotificationsHandlerImpl : public Handler { public: - explicit NotificationsHandlerImpl(CMainSignals& signals, std::shared_ptr<Chain::Notifications> notifications) + explicit NotificationsHandlerImpl(ValidationSignals& signals, std::shared_ptr<Chain::Notifications> notifications) : m_signals{signals}, m_proxy{std::make_shared<NotificationsProxy>(std::move(notifications))} { m_signals.RegisterSharedValidationInterface(m_proxy); @@ -473,7 +473,7 @@ public: m_proxy.reset(); } } - CMainSignals& m_signals; + ValidationSignals& m_signals; std::shared_ptr<NotificationsProxy> m_proxy; }; @@ -823,7 +823,7 @@ public: NodeContext* context() override { return &m_node; } ArgsManager& args() { return *Assert(m_node.args); } ChainstateManager& chainman() { return *Assert(m_node.chainman); } - CMainSignals& validation_signals() { return *Assert(m_node.validation_signals); } + ValidationSignals& validation_signals() { return *Assert(m_node.validation_signals); } NodeContext& m_node; }; } // namespace |