Skip to content
Permalink
Browse files

clean log

Signed-off-by: crptec <crptec.fr@gmail.com>
  • Loading branch information...
crptec committed Jun 9, 2019
1 parent 9bf5a8a commit 78500e8f5081581a71a7afe752721543bc04efe9
Showing with 7 additions and 7 deletions.
  1. +1 −1 src/chainparams.cpp
  2. +5 −5 src/masternode-payments.cpp
  3. +1 −1 src/validation.cpp
@@ -118,7 +118,7 @@ class CMainParams : public CChainParams {
consensus.devAddress = "SZLafuDjnjqh2tAfTrG9ZAGzbP8HkzNXvB";
consensus.cBurnAddress = "SinBurnAddress123456789SuqaXbx3AMC";
consensus.cBurnAddressPubKey = "ebaf5ec74cb2e2342dfda0229111738ff4dc742d";
strSporkPubKey = "045EB51EB748C6EB7A53531DF71BE998F3E77F4AFF801978D4AED543F21E224E49E10D679E8A99A001E93ADE704F761F2B8822D967F19DC3B50603797F344CBB58";
strSporkPubKey = "0449434681D96595AC04470E5613475D259489CAA79C260814D22D4F29F7361D84A85F1F535F7B11F51B87F4E7B8E168AA68747A6E7465DCF34ABDD25570430573";

consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = NEVER;
@@ -667,7 +667,7 @@ bool CMasternodeBlockPayees::IsTransactionValid(const CTransactionRef txNew)
nMaxSignatures = payee.GetVoteCount();
}
}
LogPrintf("*T CMasternodeBlockPayees::IsTransactionValid -- nMaxSignatures: %d\n", nMaxSignatures);
LogPrintf("CMasternodeBlockPayees::IsTransactionValid -- nMaxSignatures: %d\n", nMaxSignatures);
// if we don't have at least MNPAYMENTS_SIGNATURES_REQUIRED signatures on a payee, approve whichever is the longest chain
if(nMaxSignatures < MNPAYMENTS_SIGNATURES_REQUIRED) return true;

@@ -685,7 +685,7 @@ bool CMasternodeBlockPayees::IsTransactionValid(const CTransactionRef txNew)
for (auto& payee : vecPayees) {
CAmount nMasternodePayment = GetMasternodePayment(nBlockHeight, payee.GetSinType());
if (payee.GetPayee() == txout.scriptPubKey && nMasternodePayment == txout.nValue){
LogPrintf("*T CMasternodeBlockPayees::IsTransactionValid -- Found required payment\n");
LogPrintf("CMasternodeBlockPayees::IsTransactionValid -- Found required payment\n");
counterNodePayment ++;
}

@@ -712,12 +712,12 @@ bool CMasternodeBlockPayees::IsTransactionValid(const CTransactionRef txNew)
}
}
}
LogPrintf("*T CMasternodeBlockPayees::IsTransactionValid -- 3 payments in coinbaseTx: %s\n", strPayeesInTx);
LogPrintf("CMasternodeBlockPayees::IsTransactionValid -- 3 payments in coinbaseTx: %s\n", strPayeesInTx);
if ( counterNodePayment == 3 ) {
LogPrintf("*T CMasternodeBlockPayees::IsTransactionValid -- 3 payments are valided\n");
LogPrintf("CMasternodeBlockPayees::IsTransactionValid -- 3 payments are valided\n");
return true;
} else {
LogPrintf("*T CMasternodeBlockPayees::IsTransactionValid -- ERROR: Missing required payment, possible payees: '%s'\n", strPayeesPossible);
LogPrintf("CMasternodeBlockPayees::IsTransactionValid -- ERROR: Missing required payment, possible payees: '%s'\n", strPayeesPossible);
return false;
}
}
@@ -2228,7 +2228,7 @@ bool CChainState::ConnectBlock(const CBlock& block, CValidationState& state, CBl

// Basic testing to ensure pays go to correct sinnode tiers
int forkInfinityNode = 170000;
int enforceHeight = 185500; //observation - change it later
int enforceHeight = 176500; //observation - change it later
if (pindex->nHeight > forkInfinityNode)
{
if (!IsBlockPayeeValid(block.vtx[0], pindex->nHeight, block.vtx[0]->GetValueOut(), pindex->GetBlockHeader())) {

0 comments on commit 78500e8

Please sign in to comment.
You can’t perform that action at this time.