From d54b3eeb7b4bb7dc2f60b022b676fec1a8c28750 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Thu, 26 Sep 2024 19:25:12 +0700 Subject: [PATCH] refactor: move ChainLocksSigningEnabled from header to cpp file as static function --- src/llmq/chainlocks.cpp | 10 +++++----- src/llmq/chainlocks.h | 2 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/llmq/chainlocks.cpp b/src/llmq/chainlocks.cpp index cfd2938935..36c8ce83c1 100644 --- a/src/llmq/chainlocks.cpp +++ b/src/llmq/chainlocks.cpp @@ -23,6 +23,11 @@ #include #include +static bool ChainLocksSigningEnabled(const CSporkManager& sporkman) +{ + return sporkman.GetSporkValue(SPORK_19_CHAINLOCKS_ENABLED) == 0; +} + namespace llmq { std::unique_ptr chainLocksHandler; @@ -678,9 +683,4 @@ bool AreChainLocksEnabled(const CSporkManager& sporkman) return sporkman.IsSporkActive(SPORK_19_CHAINLOCKS_ENABLED); } -bool ChainLocksSigningEnabled(const CSporkManager& sporkman) -{ - return sporkman.GetSporkValue(SPORK_19_CHAINLOCKS_ENABLED) == 0; -} - } // namespace llmq diff --git a/src/llmq/chainlocks.h b/src/llmq/chainlocks.h index 79f96ccb68..3cfc7ce801 100644 --- a/src/llmq/chainlocks.h +++ b/src/llmq/chainlocks.h @@ -132,8 +132,6 @@ private: extern std::unique_ptr chainLocksHandler; bool AreChainLocksEnabled(const CSporkManager& sporkman); -bool ChainLocksSigningEnabled(const CSporkManager& sporkman); - } // namespace llmq #endif // BITCOIN_LLMQ_CHAINLOCKS_H