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 <validation.h>
|
||||||
#include <validationinterface.h>
|
#include <validationinterface.h>
|
||||||
|
|
||||||
|
static bool ChainLocksSigningEnabled(const CSporkManager& sporkman)
|
||||||
|
{
|
||||||
|
return sporkman.GetSporkValue(SPORK_19_CHAINLOCKS_ENABLED) == 0;
|
||||||
|
}
|
||||||
|
|
||||||
namespace llmq
|
namespace llmq
|
||||||
{
|
{
|
||||||
std::unique_ptr<CChainLocksHandler> chainLocksHandler;
|
std::unique_ptr<CChainLocksHandler> chainLocksHandler;
|
||||||
@ -678,9 +683,4 @@ bool AreChainLocksEnabled(const CSporkManager& sporkman)
|
|||||||
return sporkman.IsSporkActive(SPORK_19_CHAINLOCKS_ENABLED);
|
return sporkman.IsSporkActive(SPORK_19_CHAINLOCKS_ENABLED);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ChainLocksSigningEnabled(const CSporkManager& sporkman)
|
|
||||||
{
|
|
||||||
return sporkman.GetSporkValue(SPORK_19_CHAINLOCKS_ENABLED) == 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace llmq
|
} // namespace llmq
|
||||||
|
@ -132,8 +132,6 @@ private:
|
|||||||
extern std::unique_ptr<CChainLocksHandler> chainLocksHandler;
|
extern std::unique_ptr<CChainLocksHandler> chainLocksHandler;
|
||||||
|
|
||||||
bool AreChainLocksEnabled(const CSporkManager& sporkman);
|
bool AreChainLocksEnabled(const CSporkManager& sporkman);
|
||||||
bool ChainLocksSigningEnabled(const CSporkManager& sporkman);
|
|
||||||
|
|
||||||
} // namespace llmq
|
} // namespace llmq
|
||||||
|
|
||||||
#endif // BITCOIN_LLMQ_CHAINLOCKS_H
|
#endif // BITCOIN_LLMQ_CHAINLOCKS_H
|
||||||
|
Loading…
Reference in New Issue
Block a user