Block operation if a feature we don't support is enabled in the ledger.

This commit is contained in:
JoelKatz
2013-05-30 14:30:06 -07:00
parent a38e80eb6b
commit 69a904133f
8 changed files with 37 additions and 7 deletions

View File

@@ -85,6 +85,10 @@ TER ChangeTransactor::applyFeature()
featureObject->setFieldV256(sfFeatures, features);
mEngine->entryModify(featureObject);
theApp->getFeatureTable().enableFeature(feature);
if (!theApp->getFeatureTable().isFeatureSupported(feature))
theApp->getOPs().setFeatureBlocked();
return tesSUCCESS;
}