Fix inv messages, revert part of #806 (#823)

If we want to be compatible to 12.0 on network layer we need them back in ppszTypeName[] to keep inv type consistent (allNetMessageTypes[] should not have them, we shouldn't accept non-implmented messages)
This commit is contained in:
UdjinM6 2016-05-29 15:46:39 +04:00 committed by Holger Schinzel
parent a4954bf0fd
commit 6323c91cb0
2 changed files with 6 additions and 2 deletions

View File

@ -42,11 +42,13 @@ const char *SPORK="spork";
const char *GETSPORKS="getsporks";
const char *MNWINNER="mnw";
const char *MNWINNERSSYNC="mnget";
const char *MNSCANERROR="mn scan error"; // not implemented
const char *MNGOVERNANCEVOTESYNC="mnvs";
const char *MNGOVERNANCEVOTE="mvote";
const char *MNGOVERNANCEPROPOSAL="mprop";
const char *MNGOVERNANCEFINAL="fbs";
const char *MNGOVERNANCEFINALVOTE="fbvote";
const char *MNQUORUM="mn quorum"; // not implemented
const char *MNANNOUNCE="mnb";
const char *MNPING="mnp";
const char *DSACCEPT="dsa";
@ -72,10 +74,12 @@ static const char* ppszTypeName[] =
NetMsgType::IXLOCKVOTE,
NetMsgType::SPORK,
NetMsgType::MNWINNER,
NetMsgType::MNSCANERROR, // not implemented
NetMsgType::MNGOVERNANCEVOTE,
NetMsgType::MNGOVERNANCEPROPOSAL,
NetMsgType::MNGOVERNANCEFINAL,
NetMsgType::MNGOVERNANCEFINALVOTE,
NetMsgType::MNQUORUM, // not implemented
NetMsgType::MNANNOUNCE,
NetMsgType::MNPING,
NetMsgType::DSTX

View File

@ -345,12 +345,12 @@ enum {
MSG_TXLOCK_VOTE,
MSG_SPORK,
MSG_MASTERNODE_WINNER,
MSG_MASTERNODE_SCANNING_ERROR,
MSG_MASTERNODE_SCANNING_ERROR, // not implemented
MSG_BUDGET_VOTE,
MSG_BUDGET_PROPOSAL,
MSG_BUDGET_FINALIZED,
MSG_BUDGET_FINALIZED_VOTE,
MSG_MASTERNODE_QUORUM,
MSG_MASTERNODE_QUORUM, // not implemented
MSG_MASTERNODE_ANNOUNCE,
MSG_MASTERNODE_PING,
MSG_DSTX