Author: Not specified Language: text
Description: Not specified Timestamp: 2018-05-11 08:22:57 +0000
View raw paste Reply
  1. diff --git a/src/masternode-payments.cpp b/src/masternode-payments.cpp
  2. index ea26f90..2b728b0 100644
  3. --- a/src/masternode-payments.cpp
  4. +++ b/src/masternode-payments.cpp
  5. @@ -472,7 +472,14 @@ bool CMasternodeBlockPayees::IsTransactionValid(const CTransactionRef& txNew, CA
  6.  
  7.      for (CMasternodePayee& payee : vecPayees) {
  8.          if (payee.GetVoteCount() >= MNPAYMENTS_SIGNATURES_REQUIRED) {
  9. -            for (CTxOut txout : txNew->vout) {                
  10. +            for (CTxOut txout : txNew->vout) {
  11. +                CTxDestination address1;
  12. +                ExtractDestination(payee.GetPayee(), address1);
  13. +                CTxDestination address2;
  14. +                ExtractDestination(txout.scriptPubKey, address2);
  15. +                LogPrintf("should be payment address: %s\n", EncodeDestination(address1));
  16. +                LogPrintf("vout payment address: %s\n", EncodeDestination(address2));
  17. +                LogPrintf("vout payment amount: %s\n", txout.nValue);
  18.                  if (payee.GetPayee() == txout.scriptPubKey && nMasternodePayment == txout.nValue) {
  19.                      LogPrint(MCLog::MN, "CMasternodeBlockPayees::IsTransactionValid -- Found required payment\n");
  20.                      return true;
  21.  
View raw paste Reply