@@ -1390,7 +1390,7 @@ void CBudgetProposal::SyncVotes(CNode* pfrom, bool fPartial, int& nInvCount) con
13901390bool CBudgetProposal::IsHeavilyDownvoted ()
13911391{
13921392 if (GetNays () - GetYeas () > mnodeman.CountEnabled (ActiveProtocol ()) / 10 ) {
1393- strInvalid = " Proposal " + strProposalName + " : Active removal" ;
1393+ strInvalid = " Active removal" ;
13941394 return true ;
13951395 }
13961396 return false ;
@@ -1404,13 +1404,13 @@ bool CBudgetProposal::CheckStartEnd()
14041404 }
14051405
14061406 if (nBlockEnd < nBlockStart) {
1407- strInvalid = " Proposal " + strProposalName + " : Invalid nBlockEnd (end before start)" ;
1407+ strInvalid = " Invalid nBlockEnd (end before start)" ;
14081408 return false ;
14091409 }
14101410
14111411 int nProposalEnd = nBlockStart + (Params ().GetConsensus ().nBudgetCycleBlocks + 1 ) * GetTotalPaymentCount ();
14121412 if (nBlockEnd != nProposalEnd) {
1413- strInvalid = " Proposal " + strProposalName + " : Invalid nBlockEnd (mismatch with payments count)" ;
1413+ strInvalid = " Invalid nBlockEnd (mismatch with payments count)" ;
14141414 return false ;
14151415 }
14161416
@@ -1421,14 +1421,14 @@ bool CBudgetProposal::CheckAmount(const CAmount& nTotalBudget)
14211421{
14221422 // check minimum amount
14231423 if (nAmount < 10 * COIN) {
1424- strInvalid = " Proposal " + strProposalName + " : Invalid nAmount (too low)" ;
1424+ strInvalid = " Invalid nAmount (too low)" ;
14251425 return false ;
14261426 }
14271427
14281428 // check maximum amount
14291429 // can only pay out 10% of the possible coins (min value of coins)
14301430 if (nAmount > nTotalBudget) {
1431- strInvalid = " Proposal " + strProposalName + " : Invalid nAmount (too high)" ;
1431+ strInvalid = " Invalid nAmount (too high)" ;
14321432 return false ;
14331433 }
14341434
@@ -1440,18 +1440,18 @@ bool CBudgetProposal::CheckAddress()
14401440 // !TODO: There might be an issue with multisig in the coinbase on mainnet
14411441 // we will add support for it in a future release.
14421442 if (address.IsPayToScriptHash ()) {
1443- strInvalid = " Proposal " + strProposalName + " : Multisig is not currently supported." ;
1443+ strInvalid = " Multisig is not currently supported." ;
14441444 return false ;
14451445 }
14461446
14471447 // Check address
14481448 CTxDestination dest;
14491449 if (!ExtractDestination (address, dest, false )) {
1450- strInvalid = " Proposal " + strProposalName + " : Invalid script" ;
1450+ strInvalid = " Invalid script" ;
14511451 return false ;
14521452 }
14531453 if (!IsValidDestination (dest)) {
1454- strInvalid = " Proposal " + strProposalName + " : Invalid recipient address" ;
1454+ strInvalid = " Invalid recipient address" ;
14551455 return false ;
14561456 }
14571457
@@ -1466,7 +1466,7 @@ bool CBudgetProposal::IsWellFormed(const CAmount& nTotalBudget)
14661466bool CBudgetProposal::IsExpired (int nCurrentHeight)
14671467{
14681468 if (nBlockEnd < nCurrentHeight) {
1469- strInvalid = " Proposal " + strProposalName + " : Proposal expired" ;
1469+ strInvalid = " Proposal expired" ;
14701470 return true ;
14711471 }
14721472 return false ;
@@ -1493,7 +1493,7 @@ bool CBudgetProposal::UpdateValid(int nCurrentHeight, bool fCheckCollateral)
14931493 int nConf = 0 ;
14941494 std::string strError;
14951495 if (!IsBudgetCollateralValid (nFeeTXHash, GetHash (), strError, nTime, nConf)) {
1496- strInvalid = " Proposal " + strProposalName + " : Invalid collateral (" + strError + " )" ;
1496+ strInvalid = " Invalid collateral (" + strError + " )" ;
14971497 return false ;
14981498 }
14991499 }
0 commit comments