Merge branch 'master' of https://github.com/darkcoin/darkcoin into v0.11.2.x
This commit is contained in:
commit
831b281a7d
@ -3,7 +3,7 @@ AC_PREREQ([2.60])
|
||||
define(_CLIENT_VERSION_MAJOR, 0)
|
||||
define(_CLIENT_VERSION_MINOR, 11)
|
||||
define(_CLIENT_VERSION_REVISION, 1)
|
||||
define(_CLIENT_VERSION_BUILD, 22)
|
||||
define(_CLIENT_VERSION_BUILD, 23)
|
||||
define(_CLIENT_VERSION_IS_RELEASE, true)
|
||||
define(_COPYRIGHT_YEAR, 2015)
|
||||
AC_INIT([Darkcoin Core],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[info@darkcoin.io],[darkcoin])
|
||||
|
@ -12,7 +12,7 @@
|
||||
#define CLIENT_VERSION_MAJOR 0
|
||||
#define CLIENT_VERSION_MINOR 11
|
||||
#define CLIENT_VERSION_REVISION 1
|
||||
#define CLIENT_VERSION_BUILD 22
|
||||
#define CLIENT_VERSION_BUILD 23
|
||||
|
||||
|
||||
|
||||
|
@ -4053,8 +4053,9 @@ void static ProcessGetData(CNode* pfrom)
|
||||
if (!pushed && inv.type == MSG_MASTERNODE_WINNER) {
|
||||
if(mapSeenMasternodeVotes.count(inv.hash)){
|
||||
CDataStream ss(SER_NETWORK, PROTOCOL_VERSION);
|
||||
int a = 0;
|
||||
ss.reserve(1000);
|
||||
ss << mapSeenMasternodeVotes[inv.hash];
|
||||
ss << mapSeenMasternodeVotes[inv.hash] << a;
|
||||
pfrom->PushMessage("mnw", ss);
|
||||
pushed = true;
|
||||
}
|
||||
|
@ -331,7 +331,8 @@ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream
|
||||
else if (strCommand == "mnw") { //Masternode Payments Declare Winner
|
||||
//this is required in litemode
|
||||
CMasternodePaymentWinner winner;
|
||||
vRecv >> winner;
|
||||
int a = 0;
|
||||
vRecv >> winner >> a;
|
||||
|
||||
if(chainActive.Tip() == NULL) return;
|
||||
|
||||
@ -600,7 +601,7 @@ void CMasterNode::Check()
|
||||
bool CMasternodePayments::CheckSignature(CMasternodePaymentWinner& winner)
|
||||
{
|
||||
//note: need to investigate why this is failing
|
||||
std::string strMessage = winner.vin.ToString().c_str() + boost::lexical_cast<std::string>(winner.nBlockHeight);
|
||||
std::string strMessage = winner.vin.ToString().c_str() + boost::lexical_cast<std::string>(winner.nBlockHeight) + winner.payee.ToString();
|
||||
std::string strPubKey = (Params().NetworkID() == CChainParams::MAIN) ? strMainPubKey : strTestPubKey;
|
||||
CPubKey pubkey(ParseHex(strPubKey));
|
||||
|
||||
@ -614,7 +615,7 @@ bool CMasternodePayments::CheckSignature(CMasternodePaymentWinner& winner)
|
||||
|
||||
bool CMasternodePayments::Sign(CMasternodePaymentWinner& winner)
|
||||
{
|
||||
std::string strMessage = winner.vin.ToString().c_str() + boost::lexical_cast<std::string>(winner.nBlockHeight);
|
||||
std::string strMessage = winner.vin.ToString().c_str() + boost::lexical_cast<std::string>(winner.nBlockHeight) + winner.payee.ToString();
|
||||
|
||||
CKey key2;
|
||||
CPubKey pubkey2;
|
||||
|
Loading…
Reference in New Issue
Block a user