Fix a bug where validations weren't passed to the consensus handler.

Change 'suppress' to 'isNew' to better reflect the meaning of its return value.
This commit is contained in:
JoelKatz
2012-06-23 21:54:34 -07:00
parent 9db52a232a
commit a4b66042c5
3 changed files with 23 additions and 16 deletions

View File

@@ -83,8 +83,8 @@ public:
NodeCache& getNodeCache() { return mNodeCache; }
HashedObjectStore& getHashedObjectStore() { return mHashedObjectStore; }
ValidationCollection& getValidations() { return mValidations; }
bool suppress(const uint256& s) { return mSuppressions.addSuppression(s); }
bool suppress(const uint160& s) { return mSuppressions.addSuppression(s); }
bool isNew(const uint256& s) { return mSuppressions.addSuppression(s); }
bool isNew(const uint160& s) { return mSuppressions.addSuppression(s); }
DatabaseCon* getTxnDB() { return mTxnDB; }
DatabaseCon* getLedgerDB() { return mLedgerDB; }