From 90fc8b089d591cabff60ee829a33f96c37fd27ba Mon Sep 17 00:00:00 2001 From: Russell Yanofsky Date: Fri, 12 Nov 2021 10:06:00 -0500 Subject: Add src/node/* code to node:: namespace --- src/node/interfaces.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/node/interfaces.cpp') diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp index a0ee52f8e6..1a48957f0f 100644 --- a/src/node/interfaces.cpp +++ b/src/node/interfaces.cpp @@ -249,8 +249,8 @@ public: bool isInitialBlockDownload() override { return chainman().ActiveChainstate().IsInitialBlockDownload(); } - bool getReindex() override { return ::fReindex; } - bool getImporting() override { return ::fImporting; } + bool getReindex() override { return node::fReindex; } + bool getImporting() override { return node::fImporting; } void setNetworkActive(bool active) override { if (m_context->connman) { @@ -649,9 +649,9 @@ public: bool havePruned() override { LOCK(cs_main); - return ::fHavePruned; + return node::fHavePruned; } - bool isReadyToBroadcast() override { return !::fImporting && !::fReindex && !isInitialBlockDownload(); } + bool isReadyToBroadcast() override { return !node::fImporting && !node::fReindex && !isInitialBlockDownload(); } bool isInitialBlockDownload() override { return chainman().ActiveChainstate().IsInitialBlockDownload(); } @@ -729,6 +729,6 @@ public: } // namespace node namespace interfaces { -std::unique_ptr MakeNode(NodeContext& context) { return std::make_unique(context); } -std::unique_ptr MakeChain(NodeContext& context) { return std::make_unique(context); } +std::unique_ptr MakeNode(node::NodeContext& context) { return std::make_unique(context); } +std::unique_ptr MakeChain(node::NodeContext& context) { return std::make_unique(context); } } // namespace interfaces -- cgit v1.2.3