Skip to content

Commit

Permalink
Merge pull request #2837 from Taraxa-project/trx_prd_prn
Browse files Browse the repository at this point in the history
fix: disable trx_period column prune
  • Loading branch information
MatusKysel authored Aug 21, 2024
2 parents 475bf79 + 7162f8d commit 9c480ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
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

0 comments on commit 9c480ad

Please sign in to comment.