Skip to content

Commit

Permalink
Add TransactionMemos to purge_special_columns_exact
Browse files Browse the repository at this point in the history
  • Loading branch information
CriesofCarrots committed Oct 6, 2023
1 parent c0ded45 commit fd14a5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ledger/src/blockstore/blockstore_purge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,12 @@ impl Blockstore {
if let Some(&signature) = transaction.signatures.get(0) {
if delete_new_column_key {
batch.delete::<cf::TransactionStatus>((signature, slot))?;
batch.delete::<cf::TransactionMemos>((signature, slot))?;
}
if !primary_indexes.is_empty() {
batch.delete_raw::<cf::TransactionMemos>(
&cf::TransactionMemos::deprecated_key(signature),
)?;
}
for primary_index in &primary_indexes {
batch.delete_raw::<cf::TransactionStatus>(
Expand Down

0 comments on commit fd14a5e

Please sign in to comment.