Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable trx_period column prune #2837

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.20)
# Set current version of the project
set(TARAXA_MAJOR_VERSION 1)
set(TARAXA_MINOR_VERSION 11)
set(TARAXA_PATCH_VERSION 2)
set(TARAXA_PATCH_VERSION 3)
set(TARAXA_VERSION ${TARAXA_MAJOR_VERSION}.${TARAXA_MINOR_VERSION}.${TARAXA_PATCH_VERSION})

# Any time a change in the network protocol is introduced this version should be increased
Expand Down
2 changes: 0 additions & 2 deletions libraries/core_libs/storage/src/storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,6 @@ void DbStorage::clearPeriodDataHistory(PbftPeriod end_period, uint64_t dag_level
for (const auto& dag_block : dag_blocks) {
for (const auto& trx_hash : dag_block->getTrxs()) {
remove(write_batch, Columns::final_chain_receipt_by_trx_hash, trx_hash);
remove(write_batch, Columns::trx_period, toSlice(trx_hash.asBytes()));
}
}
remove(write_batch, Columns::pbft_block_period, toSlice(pbft_block_hash.asBytes()));
Expand All @@ -646,7 +645,6 @@ void DbStorage::clearPeriodDataHistory(PbftPeriod end_period, uint64_t dag_level
db_->CompactRange({}, handle(Columns::period_data), &start_slice, &end_slice);
db_->CompactRange({}, handle(Columns::pillar_block), &start_slice, &end_slice);
db_->CompactRange({}, handle(Columns::final_chain_receipt_by_trx_hash), nullptr, nullptr);
db_->CompactRange({}, handle(Columns::trx_period), nullptr, nullptr);
db_->CompactRange({}, handle(Columns::pbft_block_period), nullptr, nullptr);
db_->CompactRange({}, handle(Columns::final_chain_log_blooms_index), nullptr, nullptr);
}
Expand Down
Loading