Skip to content

Commit

Permalink
make masternode votes last 30 days
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Duffield committed May 6, 2015
1 parent 01526a8 commit e7557f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -3,7 +3,7 @@ AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 0)
define(_CLIENT_VERSION_MINOR, 11)
define(_CLIENT_VERSION_REVISION, 2)
define(_CLIENT_VERSION_BUILD, 22)
define(_CLIENT_VERSION_BUILD, 23)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2015)
AC_INIT([Dash Core],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[info@dashpay.io],[dash])
Expand Down
2 changes: 1 addition & 1 deletion src/clientversion.h
Expand Up @@ -12,7 +12,7 @@
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 11
#define CLIENT_VERSION_REVISION 2
#define CLIENT_VERSION_BUILD 22
#define CLIENT_VERSION_BUILD 23



Expand Down
6 changes: 3 additions & 3 deletions src/rpcdarksend.cpp
Expand Up @@ -606,7 +606,7 @@ Value masternode(const Array& params, bool fHelp)
failed++;
continue;
}

CMasternode* pmn = mnodeman.Find(pubKeyMasternode);
if(pmn == NULL)
{
Expand Down Expand Up @@ -802,8 +802,8 @@ Value masternodelist(const Array& params, bool fHelp)
} else if(strMode == "votes"){
std::string strStatus = "ABSTAIN";

//voting lasts 7 days, ignore the last vote if it was older than that
if((GetAdjustedTime() - mn.lastVote) < (60*60*8))
//voting lasts 30 days, ignore the last vote if it was older than that
if((GetAdjustedTime() - mn.lastVote) < (60*60*30*24))
{
if(mn.nVote == -1) strStatus = "NAY";
if(mn.nVote == 1) strStatus = "YEA";
Expand Down

0 comments on commit e7557f2

Please sign in to comment.