Skip to content

Commit

Permalink
Add strings for Sv2MsgType
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed Nov 22, 2024
1 parent 19bba1a commit 6b590f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sv2/messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ enum class Sv2MsgType : uint8_t {
COINBASE_OUTPUT_DATA_SIZE = 0x70,
};

static const std::map<Sv2MsgType, std::string> SV2_MSG_NAMES{
{Sv2MsgType::SETUP_CONNECTION, "SetupConnection"},
{Sv2MsgType::SETUP_CONNECTION_SUCCESS, "SetupConnectionSuccess"},
{Sv2MsgType::SETUP_CONNECTION_ERROR, "SetupConnectionError"},
{Sv2MsgType::COINBASE_OUTPUT_DATA_SIZE, "CoinbaseOutputDataSize"},
};

struct Sv2SetupConnectionMsg
{
/**
Expand Down

0 comments on commit 6b590f4

Please sign in to comment.