From c92f77df6bbb98477d97a4cefb28f99265e3316b Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 26 Apr 2012 17:45:48 -0700 Subject: [PATCH] Bugfix. --- src/LedgerIndex.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/LedgerIndex.cpp b/src/LedgerIndex.cpp index f058cc1dd..b5fbdfb22 100644 --- a/src/LedgerIndex.cpp +++ b/src/LedgerIndex.cpp @@ -3,7 +3,9 @@ uint256 Ledger::getAccountRootIndex(const uint160& accountID) { // Index is accountID extended to 256 bits - return accountID.to256(); + uint256 index; + memcpy(index.begin() + (index.size() - accountID.size()), accountID.begin(), accountID.size()); + return index; } uint256 Ledger::getRippleIndex(const uint160& accountID, const uint160& extendTo, const uint160& currency)