Allow a lot more commands to take advantage of the immutable SLE acceleration.

Allow faster operations on the open ledger by using many smaller freezes rather than one big one.
This commit is contained in:
JoelKatz
2013-02-21 09:57:42 -08:00
parent 53b622db75
commit 2e12ffac57
4 changed files with 23 additions and 45 deletions

View File

@@ -24,11 +24,9 @@ void AccountItems::fillItems(const uint160& accountID, Ledger::ref ledger)
uint256 rootIndex = Ledger::getOwnerDirIndex(accountID);
uint256 currentIndex = rootIndex;
LedgerStateParms lspNode = lepNONE;
while (1)
{
SLE::pointer ownerDir = ledger->getDirNode(lspNode, currentIndex);
SLE::pointer ownerDir = ledger->getDirNode(currentIndex);
if (!ownerDir) return;
STVector256 svOwnerNodes = ownerDir->getFieldV256(sfIndexes);