fixed dsee fake-signing vulnerability & reduced spam logging

This commit is contained in:
Evan Duffield 2014-12-05 21:09:06 -07:00
parent 25a07f1054
commit 018c91022a
4 changed files with 5 additions and 7 deletions

View File

@ -9,7 +9,7 @@
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 10
#define CLIENT_VERSION_REVISION 17
#define CLIENT_VERSION_BUILD 20
#define CLIENT_VERSION_BUILD 21
// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true

View File

@ -1399,7 +1399,7 @@ bool CDarkSendPool::DoAutomaticDenominating(bool fDryRun, bool ready)
return false;
}
if(!fEnableDarksend) {
LogPrintf("CDarkSendPool::DoAutomaticDenominating - Darksend is disabled\n");
if(fDebug) LogPrintf("CDarkSendPool::DoAutomaticDenominating - Darksend is disabled\n");
return false;
}

View File

@ -108,7 +108,9 @@ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream
if(mn.vin.prevout == vin.prevout) {
//count == -1 when it's a new entry
// e.g. We don't want the entry relayed/time updated when we're syncing the list
if(count == -1 && !mn.UpdatedWithin(MASTERNODE_MIN_DSEE_SECONDS)){
// mn.pubkey = pubkey, IsVinAssociatedWithPubkey is validated once below,
// after that they just need to match
if(count == -1 && mn.pubkey == pubkey && !mn.UpdatedWithin(MASTERNODE_MIN_DSEE_SECONDS)){
mn.UpdateLastSeen();
if(mn.now < sigTime){ //take the newest entry
@ -269,8 +271,6 @@ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream
int count = darkSendMasterNodes.size()-1;
int i = 0;
if(vin == CTxIn()) LogPrintf("dseg - Sending %d masternode entries\n", count);
BOOST_FOREACH(CMasterNode mn, darkSendMasterNodes) {
if(mn.addr.IsRFC1918()) continue; //local network

View File

@ -937,8 +937,6 @@ void ThreadSocketHandler()
if (pnode->fInbound)
nInbound++;
}
LogPrintf("maxconnections check %d\n", nMaxConnections - MAX_OUTBOUND_CONNECTIONS);
if (hSocket == INVALID_SOCKET)
{