From 745ee6e3761ac32d93201d4e30553c5a95e3b955 Mon Sep 17 00:00:00 2001 From: Matthew Little Date: Tue, 6 May 2014 21:01:49 -0600 Subject: [PATCH] Fixed off-by-one error causing payee tx detection failures --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index b8446607bc3e1..5a3159ecd1848 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2624,7 +2624,7 @@ bool CBlock::CheckBlock(CValidationState &state, bool fCheckPOW, bool fCheckMerk } if(mv1.GetVotes() == MASTERNODE_PAYMENTS_MIN_VOTES-1 && foundMasterNodePaymentPrev <= MASTERNODE_PAYMENTS_MAX) { - for (unsigned int i = 1; i < vtx[0].vout.size(); i++) + for (unsigned int i = 0; i < vtx[0].vout.size(); i++) if(vtx[0].vout[i].nValue == masternodePaymentAmount && mv1.GetPubKey() == vtx[0].vout[i].scriptPubKey) foundMasterNodePayment++; foundMasterNodePaymentPrev++;