From f4816de88d61f012ce34138f7cb57304376d6418 Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Sun, 5 Oct 2014 07:28:13 -0700 Subject: [PATCH] added fulfillment tracking --- src/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 8afe2b6a89..fcd300b7b7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4178,6 +4178,14 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) LogPrintf("peer=%d says we are misbehaving %d\n", pfrom->id, howmuch); } else if (strCommand == "mnget") { //Masternode Payments Request Sync + + if(pfrom->HasFulfilledRequest("mnget")) { + printf("mnget -- peer already asked me for the list\n"); + pfrom->Misbehaving(20); + return false; + } + + pfrom->FulfilledRequest("mnget"); masternodePayments.Sync(pfrom); } else if (strCommand == "mnw") { //Masternode Payments Declare Winner