File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -146,9 +146,6 @@ bool CBudgetProposal::CheckAddress(const int nCurrentHeight)
146
146
return true ;
147
147
}
148
148
149
- /* TODO: Add this to IsWellFormed() for the next hard-fork
150
- * This will networkly reject malformed proposal names and URLs
151
- */
152
149
bool CBudgetProposal::CheckStrings ()
153
150
{
154
151
if (strProposalName != SanitizeString (strProposalName)) {
@@ -162,6 +159,10 @@ bool CBudgetProposal::CheckStrings()
162
159
163
160
bool CBudgetProposal::IsWellFormed (const CAmount& nTotalBudget, const int nCurrentHeight)
164
161
{
162
+ bool isV6Enforced = Params ().GetConsensus ().NetworkUpgradeActive (nCurrentHeight, Consensus::UPGRADE_V6_0);
163
+ if (isV6Enforced && !CheckStrings ()) {
164
+ return false ;
165
+ }
165
166
return CheckStartEnd () && CheckAmount (nTotalBudget) && CheckAddress (nCurrentHeight);
166
167
}
167
168
You can’t perform that action at this time.
0 commit comments