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 Apr 24, 2023
1 parent e1564f4 commit fdad133
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 fdad133

Please sign in to comment.