From 7162f8d9763fa9092b035286c0f6618815cef355 Mon Sep 17 00:00:00 2001 From: mfrankovi Date: Wed, 21 Aug 2024 07:54:43 +0200 Subject: [PATCH] fix: disable trx_period column prune --- CMakeLists.txt | 2 +- libraries/core_libs/storage/src/storage.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 821c700f64..f6614691c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/libraries/core_libs/storage/src/storage.cpp b/libraries/core_libs/storage/src/storage.cpp index 0ef686f139..fc5d2c1a62 100644 --- a/libraries/core_libs/storage/src/storage.cpp +++ b/libraries/core_libs/storage/src/storage.cpp @@ -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())); @@ -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); }