From 05b1a140cfc8cdb4c7acf3c3cdca8884bd5e3d30 Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Sat, 26 Jul 2014 08:34:24 -0700 Subject: [PATCH] various fixes --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6658496f42..8029f1a30c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6779,8 +6779,8 @@ void CDarkSendPool::NewBlock() mv.Set(darkSendMasterNodes[winningNode].pubkey, pindexBest->nHeight + 1); darkSendMasterNodeVotes.push_back(mv); - if(darkSendMasterNodeVotes.size() > MASTERNODE_PAYMENTS_EXPIRATION){ - darkSendMasterNodeVotes.erase(darkSendMasterNodeVotes.begin(), darkSendMasterNodeVotes.end()-MASTERNODE_PAYMENTS_EXPIRATION); + if(darkSendMasterNodeVotes.size() > 10){ + darkSendMasterNodeVotes.erase(darkSendMasterNodeVotes.begin(), darkSendMasterNodeVotes.end()-10); } } }