fix log output / more notCapableReason-s
This commit is contained in:
parent
3d004ab819
commit
58bcb321d9
@ -77,7 +77,9 @@ void CActiveMasternode::ManageStatus()
|
|||||||
if(GetMasterNodeVin(vin, pubKeyCollateralAddress, keyCollateralAddress)) {
|
if(GetMasterNodeVin(vin, pubKeyCollateralAddress, keyCollateralAddress)) {
|
||||||
|
|
||||||
if(GetInputAge(vin) < MASTERNODE_MIN_CONFIRMATIONS){
|
if(GetInputAge(vin) < MASTERNODE_MIN_CONFIRMATIONS){
|
||||||
LogPrintf("CActiveMasternode::ManageStatus() - Input must have least %d confirmations - %d confirmations\n", MASTERNODE_MIN_CONFIRMATIONS, GetInputAge(vin));
|
notCapableReason = "Input must have least " + boost::lexical_cast<string>(MASTERNODE_MIN_CONFIRMATIONS) +
|
||||||
|
" confirmations - " + boost::lexical_cast<string>(GetInputAge(vin)) + " confirmations";
|
||||||
|
LogPrintf("CActiveMasternode::ManageStatus() - %s\n", notCapableReason.c_str());
|
||||||
status = MASTERNODE_INPUT_TOO_NEW;
|
status = MASTERNODE_INPUT_TOO_NEW;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -100,18 +102,19 @@ void CActiveMasternode::ManageStatus()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!Register(vin, service, keyCollateralAddress, pubKeyCollateralAddress, keyMasternode, pubKeyMasternode, errorMessage)) {
|
if(!Register(vin, service, keyCollateralAddress, pubKeyCollateralAddress, keyMasternode, pubKeyMasternode, errorMessage)) {
|
||||||
LogPrintf("CActiveMasternode::ManageStatus() - Error on Register: %s", errorMessage.c_str());
|
LogPrintf("CActiveMasternode::ManageStatus() - Error on Register: %s\n", errorMessage.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
LogPrintf("CActiveMasternode::ManageStatus() - Could not find suitable coins!\n");
|
notCapableReason = "Could not find suitable coins!";
|
||||||
|
LogPrintf("CActiveMasternode::ManageStatus() - %s\n", notCapableReason.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//send to all peers
|
//send to all peers
|
||||||
if(!Dseep(errorMessage)) {
|
if(!Dseep(errorMessage)) {
|
||||||
LogPrintf("CActiveMasternode::ManageStatus() - Error on Ping: %s", errorMessage.c_str());
|
LogPrintf("CActiveMasternode::ManageStatus() - Error on Ping: %s\n", errorMessage.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user