mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
refactor: move ChainLocksSigningEnabled from header to cpp file as static function
This commit is contained in:
parent
cab700aae3
commit
d54b3eeb7b
@ -23,6 +23,11 @@
|
||||
#include <validation.h>
|
||||
#include <validationinterface.h>
|
||||
|
||||
static bool ChainLocksSigningEnabled(const CSporkManager& sporkman)
|
||||
{
|
||||
return sporkman.GetSporkValue(SPORK_19_CHAINLOCKS_ENABLED) == 0;
|
||||
}
|
||||
|
||||
namespace llmq
|
||||
{
|
||||
std::unique_ptr<CChainLocksHandler> 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
|
||||
|
@ -132,8 +132,6 @@ private:
|
||||
extern std::unique_ptr<CChainLocksHandler> chainLocksHandler;
|
||||
|
||||
bool AreChainLocksEnabled(const CSporkManager& sporkman);
|
||||
bool ChainLocksSigningEnabled(const CSporkManager& sporkman);
|
||||
|
||||
} // namespace llmq
|
||||
|
||||
#endif // BITCOIN_LLMQ_CHAINLOCKS_H
|
||||
|
Loading…
Reference in New Issue
Block a user