Skip to content

Commit

Permalink
Added Hot BucketList support to History Archive
Browse files Browse the repository at this point in the history
  • Loading branch information
SirTyson committed Jan 15, 2025
1 parent 9ff6133 commit 05be852
Show file tree
Hide file tree
Showing 7 changed files with 322 additions and 141 deletions.
5 changes: 3 additions & 2 deletions src/bucket/BucketManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,8 @@ BucketManager::loadCompleteLedgerState(HistoryArchiveState const& has)
std::vector<std::pair<Hash, std::string>> hashes;
for (uint32_t i = LiveBucketList::kNumLevels; i > 0; --i)
{
HistoryStateBucket const& hsb = has.currentBuckets.at(i - 1);
HistoryStateBucket<LiveBucket> const& hsb =
has.currentBuckets.at(i - 1);
hashes.emplace_back(hexToBin256(hsb.snap),
fmt::format(FMT_STRING("snap {:d}"), i - 1));
hashes.emplace_back(hexToBin256(hsb.curr),
Expand Down Expand Up @@ -1526,7 +1527,7 @@ BucketManager::visitLedgerEntries(
std::vector<std::pair<Hash, std::string>> hashes;
for (uint32_t i = 0; i < LiveBucketList::kNumLevels; ++i)
{
HistoryStateBucket const& hsb = has.currentBuckets.at(i);
HistoryStateBucket<LiveBucket> const& hsb = has.currentBuckets.at(i);
hashes.emplace_back(hexToBin256(hsb.curr),
fmt::format(FMT_STRING("curr {:d}"), i));
hashes.emplace_back(hexToBin256(hsb.snap),
Expand Down
Loading

0 comments on commit 05be852

Please sign in to comment.