Skip to content

Commit

Permalink
Change SignerTypeDefs to a local array (dashpay#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
wagerr-builder authored Feb 17, 2023
1 parent b7ce3b8 commit 9b6bdf4
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/evo/verifiable.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,17 @@ enum SignerType : uint8_t {
};
template<> struct is_serializable_enum<SignerType> : std::true_type {};

[[maybe_unused]] static constexpr std::array<std::string_view, SignerType::LAST+1> signerTypeDefs = {
"UNKNOWN",
"MGT",
"ORAT",
"LLMQ"
};
constexpr std::array<std::string_view, SignerType::LAST+1> makeSignerTypeDefs() {
std::array<std::string_view, SignerType::LAST+1> arr = {
"UNKNOWN",
"MGT",
"ORAT",
"LLMQ"
};
return arr;
}

[[maybe_unused]] static constexpr auto signerTypeDefs = makeSignerTypeDefs();

class Verifiable {
public:
Expand Down

0 comments on commit 9b6bdf4

Please sign in to comment.