Clean up the checkAccept path to use the ledger sequence

This commit is contained in:
JoelKatz
2014-01-22 17:09:52 -08:00
parent f88ddc947c
commit 07d16f280c
3 changed files with 9 additions and 3 deletions

View File

@@ -126,7 +126,7 @@ private:
<< " added " << (val->isTrusted () ? "trusted/" : "UNtrusted/") << (isCurrent ? "current" : "stale");
if (val->isTrusted () && isCurrent)
getApp().getLedgerMaster ().checkAccept (hash);
getApp().getLedgerMaster ().checkAccept (hash, val->getFieldU32 (sfLedgerSequence));
// FIXME: This never forwards untrusted validations
return isCurrent;