From fb3b2f1853fadec6801b63ad40af716e7cdb2021 Mon Sep 17 00:00:00 2001 From: TheLazieR Yip Date: Mon, 31 Oct 2016 16:11:57 +0700 Subject: [PATCH] Fix errors in DBG when compile with ENABLE_DASH_DEBUG defined. (#1111) --- src/masternode-payments.cpp | 2 +- src/rpcgovernance.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/masternode-payments.cpp b/src/masternode-payments.cpp index ee8c790b7..8f551e762 100644 --- a/src/masternode-payments.cpp +++ b/src/masternode-payments.cpp @@ -808,7 +808,7 @@ void CMasternodePayments::RequestLowDataPaymentBlocks(CNode* pnode) // Let's see why this failed BOOST_FOREACH(CMasternodePayee& payee, it->second.vecPayees) { CTxDestination address1; - ExtractDestination(payee.scriptPubKey, address1); + ExtractDestination(payee.GetPayee(), address1); CBitcoinAddress address2(address1); printf("payee %s votes %d\n", address2.ToString().c_str(), payee.GetVoteCount()); } diff --git a/src/rpcgovernance.cpp b/src/rpcgovernance.cpp index 59a2c2770..53f925569 100644 --- a/src/rpcgovernance.cpp +++ b/src/rpcgovernance.cpp @@ -154,7 +154,7 @@ UniValue gobject(const UniValue& params, bool fHelp) bool mnFound = mnodeman.Get(activeMasternode.vin, mn); DBG( cout << "gobject: submit activeMasternode.pubKeyMasternode = " << activeMasternode.pubKeyMasternode.GetHash().ToString() - << ", vin = " << vin.prevout.ToStringShort() + << ", vin = " << activeMasternode.vin.prevout.ToStringShort() << ", params.size() = " << params.size() << ", mnFound = " << mnFound << endl; );