mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix the need to call setIndex after creating a new SLE.
Finish the ledger skip list code. (Note that this will cause ledger divergence if old code talks to new code.)
This commit is contained in:
@@ -72,8 +72,7 @@ SLE::pointer LedgerEntrySet::getEntry(const uint256& index, LedgerEntryAction& a
|
||||
SLE::pointer LedgerEntrySet::entryCreate(LedgerEntryType letType, const uint256& index)
|
||||
{
|
||||
assert(index.isNonZero());
|
||||
SLE::pointer sleNew = boost::make_shared<SLE>(letType);
|
||||
sleNew->setIndex(index);
|
||||
SLE::pointer sleNew = boost::make_shared<SLE>(letType, index);
|
||||
entryCreate(sleNew);
|
||||
return sleNew;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user