Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions magicblock-ledger/src/store/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ impl Ledger {
let previous_blockhash = self.get_block_hash(previous_slot)?;

let transactions = {
let _lock = self.check_lowest_cleanup_slot(slot);
let _lock = self.check_lowest_cleanup_slot(slot)?;
let index_iterator = self
.slot_signatures_cf
.iter_current_index_filtered(IteratorMode::From(
Expand All @@ -422,9 +422,17 @@ impl Ledger {
.transaction_status_cf
.get_protobuf((tx_signature, slot))?
.ok_or(LedgerError::TransactionStatusMetaNotFound)?;
let meta = TransactionStatusMeta::try_from(meta).map_err(
|e| {
LedgerError::TransactionConversionError(format!(
"failed to convert transaction status meta at slot {}: {}",
slot, e
))
},
)?;
Ok(VersionedTransactionWithStatusMeta {
transaction,
meta: TransactionStatusMeta::try_from(meta).unwrap(),
meta,
})
})
.collect::<LedgerResult<Vec<_>>>()
Expand Down