Skip to content

Commit

Permalink
less frequent mn list
Browse files Browse the repository at this point in the history
  • Loading branch information
zPools committed May 8, 2018
1 parent d60f715 commit fdc2888
Show file tree
Hide file tree
Showing 8 changed files with 598 additions and 14,371 deletions.
14,927 changes: 565 additions & 14,362 deletions Makefile

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sono-qt.pro
@@ -1,6 +1,6 @@
TEMPLATE = app
TARGET = SONO-qt
VERSION = 1.3.0.1
VERSION = 1.3.0.3
INCLUDEPATH += src src/json src/qt src/qt/plugins/mrichtexteditor
DEFINES += ENABLE_WALLET
DEFINES += BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE
Expand Down
22 changes: 22 additions & 0 deletions src/clientversion.h.autosave
@@ -0,0 +1,22 @@
#ifndef CLIENTVERSION_H
#define CLIENTVERSION_H


// client versioning


// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 3
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD 3

// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true

// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
#define STRINGIZE(X) DO_STRINGIZE(X)
#define DO_STRINGIZE(X) #X

#endif // CLIENTVERSION_H
4 changes: 3 additions & 1 deletion src/darksend.cpp
Expand Up @@ -2170,8 +2170,10 @@ void ThreadCheckDarkSendPool()
CleanTransactionLocksList();
}

int mnRefresh = 90; //(5*5)

//try to sync the masternode list and payment list every 5 seconds from at least 3 nodes
if(c % 5 == 0 && RequestedMasterNodeList < 3){
if(c % mnRefresh == 0 && RequestedMasterNodeList < 3){
bool fIsInitialDownload = IsInitialBlockDownload();
if(!fIsInitialDownload) {
LOCK(cs_vNodes);
Expand Down
6 changes: 3 additions & 3 deletions src/main.h
Expand Up @@ -48,12 +48,12 @@ static const int64_t DARKSEND_POOL_MAX = (1999999.99*COIN);
#define MASTERNODE_REMOTELY_ENABLED 9

#define MASTERNODE_MIN_CONFIRMATIONS 7
#define MASTERNODE_MIN_DSEEP_SECONDS (30*60)
#define MASTERNODE_MIN_DSEEP_SECONDS (10*60)
#define MASTERNODE_MIN_DSEE_SECONDS (5*60)
#define MASTERNODE_PING_SECONDS (1*60) //(1*60)
#define MASTERNODE_PING_WAIT_SECONDS (5*60)
#define MASTERNODE_EXPIRATION_SECONDS (65*60) //Old 65*60
#define MASTERNODE_REMOVAL_SECONDS (70*60) //Old 70*60
#define MASTERNODE_EXPIRATION_SECONDS (120*60) //Old 65*60
#define MASTERNODE_REMOVAL_SECONDS (130*60) //Old 70*60


class CBlock;
Expand Down
6 changes: 3 additions & 3 deletions src/masternode.h
Expand Up @@ -31,12 +31,12 @@ class uint256;
#define MASTERNODE_REMOTELY_ENABLED 9

#define MASTERNODE_MIN_CONFIRMATIONS 7
#define MASTERNODE_MIN_DSEEP_SECONDS (30*60)
#define MASTERNODE_MIN_DSEEP_SECONDS (10*60)
#define MASTERNODE_MIN_DSEE_SECONDS (5*60)
#define MASTERNODE_PING_SECONDS (1*60) //(1*60)
#define MASTERNODE_PING_WAIT_SECONDS (5*60)
#define MASTERNODE_EXPIRATION_SECONDS (65*60) //Old 65*60
#define MASTERNODE_REMOVAL_SECONDS (70*60) //Old 70*60
#define MASTERNODE_EXPIRATION_SECONDS (120*60) //Old 65*60
#define MASTERNODE_REMOVAL_SECONDS (130*60) //Old 70*60

using namespace std;

Expand Down
Binary file removed src/qt/locale/bitcoin_en.qm
Binary file not shown.
2 changes: 1 addition & 1 deletion src/version.h
Expand Up @@ -30,7 +30,7 @@ static const int DATABASE_VERSION = 70510;
// network protocol versioning
//

static const int PROTOCOL_VERSION = 70011;
static const int PROTOCOL_VERSION = 70012;

// intial proto version, to be increased after version/verack negotiation
static const int INIT_PROTO_VERSION = 209;
Expand Down

0 comments on commit fdc2888

Please sign in to comment.