From 536504177edaa4100e0117cbccde5dd523d76102 Mon Sep 17 00:00:00 2001 From: dkrym Date: Mon, 12 Mar 2018 11:19:03 +1100 Subject: [PATCH] Update masternode.cpp Fix for correct last paid timestamp --- src/masternode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/masternode.cpp b/src/masternode.cpp index f4e7dbc..191e2d4 100644 --- a/src/masternode.cpp +++ b/src/masternode.cpp @@ -117,7 +117,6 @@ CMasternode::CMasternode(const CMasternode& other) nScanningErrorCount = other.nScanningErrorCount; nLastScanningErrorBlockHeight = other.nLastScanningErrorBlockHeight; nLastPaid = other.nLastPaid; - nLastPaid = GetAdjustedTime(); isPortOpen = other.isPortOpen; } @@ -145,6 +144,7 @@ CMasternode::CMasternode(CService newAddr, CTxIn newVin, CPubKey newPubkey, std: lastVote = 0; nScanningErrorCount = 0; nLastScanningErrorBlockHeight = 0; + nLastPaid = GetAdjustedTime(); isPortOpen = true; } @@ -206,4 +206,4 @@ void CMasternode::Check() } activeState = MASTERNODE_ENABLED; // OK -} \ No newline at end of file +}