fixed local mn error

This commit is contained in:
Evan Duffield 2014-08-05 09:36:54 -07:00
parent b770f344b6
commit dfe76916dd
3 changed files with 7 additions and 3 deletions

View File

@ -2583,7 +2583,7 @@ static const int64 DARKSEND_FEE = 0.001*COIN;
class CDarkSendPool
{
public:
static const int MIN_PEER_PROTO_VERSION = 70025;
static const int MIN_PEER_PROTO_VERSION = 70026;
std::vector<CDarkSendEntry> myEntries;
std::vector<CDarkSendEntry> entries;

View File

@ -1924,9 +1924,13 @@ void RelayDarkSendFinalTransaction(const CTransaction& txNew)
void RelayDarkSendIn(const std::vector<CTxIn>& in, const int64& nAmount, const CTransaction& txCollateral, const std::vector<CTxOut>& out)
{
LOCK(cs_vNodes);
int i = darkSendPool.GetCurrentMasterNode(1);
if(i < 0) return;
BOOST_FOREACH(CNode* pnode, vNodes)
{
if(!pnode->fDarkSendMaster) continue;
if(darkSendMasterNodes[i].addr != pnode->addr) continue;
printf("RelayDarkSendIn - found master, relaying message - %s \n", pnode->addr.ToString().c_str());
pnode->PushMessage("dsi", in, nAmount, txCollateral, out);
}

View File

@ -25,7 +25,7 @@ extern const std::string CLIENT_DATE;
// network protocol versioning
//
static const int PROTOCOL_VERSION = 70025;
static const int PROTOCOL_VERSION = 70026;
// intial proto version, to be increased after version/verack negotiation
static const int INIT_PROTO_VERSION = 209;