From a9293ad039e7da9242883abfc89b6f8a289a1622 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Fri, 3 Nov 2017 14:19:13 +0300 Subject: [PATCH] update setAskFor on TXLOCKVOTE (#1713) --- src/instantx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/instantx.cpp b/src/instantx.cpp index 5a44381c7..09e275b18 100644 --- a/src/instantx.cpp +++ b/src/instantx.cpp @@ -64,9 +64,10 @@ void CInstantSend::ProcessMessage(CNode* pfrom, std::string& strCommand, CDataSt #endif LOCK(cs_instantsend); - uint256 nVoteHash = vote.GetHash(); + pfrom->setAskFor.erase(nVoteHash); + if(mapTxLockVotes.count(nVoteHash)) return; mapTxLockVotes.insert(std::make_pair(nVoteHash, vote));