From b65d718cf56ecadfe0a4b4c47cab5a07842a1f7a Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Fri, 6 Feb 2015 08:54:39 -0700 Subject: [PATCH] debugging --- src/instantx.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/instantx.cpp b/src/instantx.cpp index 1202303cfe..7056c545da 100644 --- a/src/instantx.cpp +++ b/src/instantx.cpp @@ -295,6 +295,11 @@ bool ProcessConsensusVote(CConsensusVote& ctx) { int n = GetMasternodeRank(ctx.vinMasternode, ctx.nBlockHeight, MIN_INSTANTX_PROTO_VERSION); + int x = GetMasternodeByVin(ctx.vinMasternode); + if(x != -1){ + LogPrintf("InstantX::ProcessConsensusVote - Masternode ADDR %s %d\n", vecMasternodes[x].addr.ToString().c_str(), n); + } + if(n == -1) { LogPrintf("InstantX::ProcessConsensusVote - Unknown Masternode\n"); @@ -303,7 +308,7 @@ bool ProcessConsensusVote(CConsensusVote& ctx) if(n > INSTANTX_SIGNATURES_TOTAL) { - LogPrintf("InstantX::ProcessConsensusVote - Masternode not in the top %d (%d)\n", INSTANTX_SIGNATURES_TOTAL, n); + LogPrintf("InstantX::ProcessConsensusVote - Masternode not in the top %d (%d) - %s\n", INSTANTX_SIGNATURES_TOTAL, n, ctx.GetHash().ToString().c_str()); return false; }