File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 99#include < primitives/block.h>
1010#include < util/system.h>
1111
12- static const std::string_view DB_ARCHIVED_BY_HASH = " is_a2" ;
13- static const std::string_view DB_ARCHIVED_BY_HEIGHT_AND_HASH = " is_a1" ;
14- static const std::string_view DB_HASH_BY_OUTPOINT = " is_in" ;
15- static const std::string_view DB_HASH_BY_TXID = " is_tx" ;
16- static const std::string_view DB_ISLOCK_BY_HASH = " is_i" ;
17- static const std::string_view DB_MINED_BY_HEIGHT_AND_HASH = " is_m" ;
18- static const std::string_view DB_VERSION = " is_v" ;
12+ static constexpr std::string_view DB_ARCHIVED_BY_HASH{ " is_a2" } ;
13+ static constexpr std::string_view DB_ARCHIVED_BY_HEIGHT_AND_HASH{ " is_a1" } ;
14+ static constexpr std::string_view DB_HASH_BY_OUTPOINT{ " is_in" } ;
15+ static constexpr std::string_view DB_HASH_BY_TXID{ " is_tx" } ;
16+ static constexpr std::string_view DB_ISLOCK_BY_HASH{ " is_i" } ;
17+ static constexpr std::string_view DB_MINED_BY_HEIGHT_AND_HASH{ " is_m" } ;
18+ static constexpr std::string_view DB_VERSION{ " is_v" } ;
1919
2020namespace instantsend {
2121namespace {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ using node::fReindex;
3434using node::GetTransaction;
3535
3636namespace llmq {
37- static const std::string_view INPUTLOCK_REQUESTID_PREFIX = " inlock" ;
37+ static constexpr std::string_view INPUTLOCK_REQUESTID_PREFIX{ " inlock" } ;
3838
3939namespace {
4040template <typename T>
Original file line number Diff line number Diff line change 1010#include < set>
1111#include < string>
1212
13- static const std::string_view ISLOCK_REQUESTID_PREFIX = " islock" ;
13+ static constexpr std::string_view ISLOCK_REQUESTID_PREFIX{ " islock" } ;
1414
1515namespace instantsend {
1616uint256 InstantSendLock::GetRequestId () const
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ using node::fReindex;
2828using node::GetTransaction;
2929
3030namespace instantsend {
31- static const std::string_view INPUTLOCK_REQUESTID_PREFIX = " inlock" ;
31+ static constexpr std::string_view INPUTLOCK_REQUESTID_PREFIX{ " inlock" } ;
3232
3333InstantSendSigner::InstantSendSigner (CChainState& chainstate, llmq::CChainLocksHandler& clhandler,
3434 llmq::CInstantSendManager& isman, llmq::CSigningManager& sigman,
You can’t perform that action at this time.
0 commit comments