Skip to content

Commit

Permalink
fix: remove cfg from undo block tool (#8943)
Browse files Browse the repository at this point in the history
There was a minor conflict while merging #8681 and #8761. Removing cfg(feature) because feature is stabilized now.
  • Loading branch information
Longarithm authored and nikurt committed Apr 28, 2023
1 parent 98b4a4b commit 8022305
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions chain/chain/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2271,11 +2271,9 @@ impl<'a> ChainStoreUpdate<'a> {
}

// delete flat storage columns: FlatStateChanges and FlatStateDeltaMetadata
if cfg!(feature = "protocol_feature_flat_state") {
let mut store_update = self.store().store_update();
store_helper::remove_delta(&mut store_update, shard_uid, block_hash);
self.merge(store_update);
}
let mut store_update = self.store().store_update();
store_helper::remove_delta(&mut store_update, shard_uid, block_hash);
self.merge(store_update);
}

// 2. Delete block_hash-indexed data
Expand Down

0 comments on commit 8022305

Please sign in to comment.