mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add support for generator map ledger entries.
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
|
||||
#include "Ledger.h"
|
||||
|
||||
uint256 Ledger::getAccountRootIndex(const uint160& accountID)
|
||||
{ // Index is accountID extended to 256 bits
|
||||
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)
|
||||
{ // Index is 160-bit account credit extended to, 96-bit XOR of extending account and currency
|
||||
uint256 base=getAccountRootIndex(extendTo);
|
||||
|
||||
Reference in New Issue
Block a user