mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
fixed dsee fake-signing vulnerability & reduced spam logging
This commit is contained in:
parent
25a07f1054
commit
018c91022a
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -937,8 +937,6 @@ void ThreadSocketHandler()
|
||||
if (pnode->fInbound)
|
||||
nInbound++;
|
||||
}
|
||||
|
||||
LogPrintf("maxconnections check %d\n", nMaxConnections - MAX_OUTBOUND_CONNECTIONS);
|
||||
|
||||
if (hSocket == INVALID_SOCKET)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user