Add support for incrementally updating owner count.

This commit is contained in:
Arthur Britto
2012-12-14 20:40:25 -08:00
parent 704b31e0f6
commit 12a4ce88ec
6 changed files with 111 additions and 16 deletions

View File

@@ -399,6 +399,12 @@ TER OfferCreateTransactor::doApply()
boost::bind(&Ledger::qualityDirDescriber, _1, saTakerPays.getCurrency(), uPaysIssuerID,
saTakerGets.getCurrency(), uGetsIssuerID, uRate));
// Update owner count.
if (tesSUCCESS == terResult)
{
terResult = mEngine->getNodes().ownerCountAdjust(mTxnAccountID, 1, mTxnAccount);
}
if (tesSUCCESS == terResult)
{
uint256 uBookBase = Ledger::getBookBase(uPaysCurrency, uPaysIssuerID, uGetsCurrency, uGetsIssuerID);