diff --git a/src/Ledger.h b/src/Ledger.h index 41ac04b86..9811a8351 100644 --- a/src/Ledger.h +++ b/src/Ledger.h @@ -233,6 +233,7 @@ public: // static uint256 getQualityIndex(const uint256& uBase, const uint64 uNodeDir=0); + static uint256 getQualityNext(const uint256& uBase); // // Ripple functions : credit lines diff --git a/src/LedgerIndex.cpp b/src/LedgerIndex.cpp index 0d2071a0f..79ec76bd3 100644 --- a/src/LedgerIndex.cpp +++ b/src/LedgerIndex.cpp @@ -15,6 +15,17 @@ uint256 Ledger::getQualityIndex(const uint256& uBase, const uint64 uNodeDir) return uNode; } +uint256 Ledger::getQualityNext(const uint256& uBase) +{ + static uint256 uNext("10000000000000000"); + + uint256 uResult = uBase; + + uResult += uNext; + + return uResult; +} + uint256 Ledger::getAccountRootIndex(const uint160& uAccountID) { Serializer s(22);