Fix what is probably *the* bug. We aren't usually in our own UNL, so we

specially mark our validations trusted. But that wasn't properly taken into
account in one case where we decide if a validation is current. This causes
two nodes to each not recognize their own validations, so they tend to
exchange ledgers.

Cleanups, extra logging.
This commit is contained in:
JoelKatz
2012-08-13 23:14:39 -07:00
parent 5eca52497f
commit 227754496e
2 changed files with 28 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ protected:
public:
ValidationCollection() : mWriting(false) { ; }
bool addValidation(SerializedValidation::pointer);
bool addValidation(SerializedValidation::pointer&);
ValidationSet getValidations(const uint256& ledger);
void getValidationCount(const uint256& ledger, bool currentOnly, int& trusted, int& untrusted);