@@ -751,7 +751,7 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
751
751
// make sure the vout that was signed is related to the transaction that spawned the Masternode
752
752
// - this is expensive, so it's only done once per Masternode
753
753
if (!obfuScationSigner.IsVinAssociatedWithPubkey (mnb.vin , mnb.pubKeyCollateralAddress )) {
754
- LogPrint ( " masternode " , " mnb - Got mismatched pubkey and vin\n " );
754
+ LogPrintf ( " CMasternodeMan::ProcessMessage() : mnb - Got mismatched pubkey and vin\n " );
755
755
Misbehaving (pfrom->GetId (), 33 );
756
756
return ;
757
757
}
@@ -810,8 +810,8 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
810
810
if (i != mAskedUsForMasternodeList .end ()) {
811
811
int64_t t = (*i).second ;
812
812
if (GetTime () < t) {
813
+ LogPrintf (" CMasternodeMan::ProcessMessage() : dseg - peer already asked me for the list\n " );
813
814
Misbehaving (pfrom->GetId (), 34 );
814
- LogPrint (" masternode" ," dseg - peer already asked me for the list\n " );
815
815
return ;
816
816
}
817
817
}
@@ -877,7 +877,7 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
877
877
878
878
// make sure signature isn't in the future (past is OK)
879
879
if (sigTime > GetAdjustedTime () + 60 * 60 ) {
880
- LogPrint ( " masternode " , " dsee - Signature rejected, too far into the future %s\n " , vin.prevout .hash .ToString ());
880
+ LogPrintf ( " CMasternodeMan::ProcessMessage() : dsee - Signature rejected, too far into the future %s\n " , vin.prevout .hash .ToString ());
881
881
Misbehaving (pfrom->GetId (), 1 );
882
882
return ;
883
883
}
@@ -888,7 +888,7 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
888
888
strMessage = addr.ToString () + boost::lexical_cast<std::string>(sigTime) + vchPubKey + vchPubKey2 + boost::lexical_cast<std::string>(protocolVersion) + donationAddress.ToString () + boost::lexical_cast<std::string>(donationPercentage);
889
889
890
890
if (protocolVersion < masternodePayments.GetMinMasternodePaymentsProto ()) {
891
- LogPrint ( " masternode " , " dsee - ignoring outdated Masternode %s protocol version %d < %d\n " , vin.prevout .hash .ToString (), protocolVersion, masternodePayments.GetMinMasternodePaymentsProto ());
891
+ LogPrintf ( " CMasternodeMan::ProcessMessage() : dsee - ignoring outdated Masternode %s protocol version %d < %d\n " , vin.prevout .hash .ToString (), protocolVersion, masternodePayments.GetMinMasternodePaymentsProto ());
892
892
Misbehaving (pfrom->GetId (), 1 );
893
893
return ;
894
894
}
@@ -897,7 +897,7 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
897
897
pubkeyScript = GetScriptForDestination (pubkey.GetID ());
898
898
899
899
if (pubkeyScript.size () != 25 ) {
900
- LogPrint ( " masternode " , " dsee - pubkey the wrong size\n " );
900
+ LogPrintf ( " CMasternodeMan::ProcessMessage() : dsee - pubkey the wrong size\n " );
901
901
Misbehaving (pfrom->GetId (), 100 );
902
902
return ;
903
903
}
@@ -906,20 +906,20 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
906
906
pubkeyScript2 = GetScriptForDestination (pubkey2.GetID ());
907
907
908
908
if (pubkeyScript2.size () != 25 ) {
909
- LogPrint ( " masternode " , " dsee - pubkey2 the wrong size\n " );
909
+ LogPrintf ( " CMasternodeMan::ProcessMessage() : dsee - pubkey2 the wrong size\n " );
910
910
Misbehaving (pfrom->GetId (), 100 );
911
911
return ;
912
912
}
913
913
914
914
if (!vin.scriptSig .empty ()) {
915
- LogPrint ( " masternode " , " dsee - Ignore Not Empty ScriptSig %s\n " , vin.prevout .hash .ToString ());
915
+ LogPrintf ( " CMasternodeMan::ProcessMessage() : dsee - Ignore Not Empty ScriptSig %s\n " , vin.prevout .hash .ToString ());
916
916
Misbehaving (pfrom->GetId (), 100 );
917
917
return ;
918
918
}
919
919
920
920
std::string errorMessage = " " ;
921
921
if (!obfuScationSigner.VerifyMessage (pubkey, vchSig, strMessage, errorMessage)) {
922
- LogPrint ( " masternode " , " dsee - Got bad Masternode address signature\n " );
922
+ LogPrintf ( " CMasternodeMan::ProcessMessage() : dsee - Got bad Masternode address signature\n " );
923
923
Misbehaving (pfrom->GetId (), 100 );
924
924
return ;
925
925
}
@@ -973,7 +973,7 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
973
973
// make sure the vout that was signed is related to the transaction that spawned the Masternode
974
974
// - this is expensive, so it's only done once per Masternode
975
975
if (!obfuScationSigner.IsVinAssociatedWithPubkey (vin, pubkey)) {
976
- LogPrint ( " masternode " , " dsee - Got mismatched pubkey and vin\n " );
976
+ LogPrintf ( " CMasternodeMan::ProcessMessage() : dsee - Got mismatched pubkey and vin\n " );
977
977
Misbehaving (pfrom->GetId (), 100 );
978
978
return ;
979
979
}
@@ -999,7 +999,7 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
999
999
1000
1000
if (fAcceptable ) {
1001
1001
if (GetInputAge (vin) < MASTERNODE_MIN_CONFIRMATIONS) {
1002
- LogPrint ( " masternode " , " dsee - Input must have least %d confirmations\n " , MASTERNODE_MIN_CONFIRMATIONS);
1002
+ LogPrintf ( " CMasternodeMan::ProcessMessage() : dsee - Input must have least %d confirmations\n " , MASTERNODE_MIN_CONFIRMATIONS);
1003
1003
Misbehaving (pfrom->GetId (), 20 );
1004
1004
return ;
1005
1005
}
@@ -1073,13 +1073,13 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
1073
1073
// LogPrint("masternode","dseep - Received: vin: %s sigTime: %lld stop: %s\n", vin.ToString().c_str(), sigTime, stop ? "true" : "false");
1074
1074
1075
1075
if (sigTime > GetAdjustedTime () + 60 * 60 ) {
1076
- LogPrint ( " masternode " , " dseep - Signature rejected, too far into the future %s\n " , vin.prevout .hash .ToString ());
1076
+ LogPrintf ( " CMasternodeMan::ProcessMessage() : dseep - Signature rejected, too far into the future %s\n " , vin.prevout .hash .ToString ());
1077
1077
Misbehaving (pfrom->GetId (), 1 );
1078
1078
return ;
1079
1079
}
1080
1080
1081
1081
if (sigTime <= GetAdjustedTime () - 60 * 60 ) {
1082
- LogPrint ( " masternode " , " dseep - Signature rejected, too far into the past %s - %d %d \n " , vin.prevout .hash .ToString (), sigTime, GetAdjustedTime ());
1082
+ LogPrintf ( " CMasternodeMan::ProcessMessage() : dseep - Signature rejected, too far into the past %s - %d %d \n " , vin.prevout .hash .ToString (), sigTime, GetAdjustedTime ());
1083
1083
Misbehaving (pfrom->GetId (), 1 );
1084
1084
return ;
1085
1085
}
0 commit comments