chore: add traces for blob sidecar ops (#11284)

This commit is contained in:
Matthias Seitz
2024-09-27 14:56:52 +02:00
committed by GitHub
parent 6757ab8190
commit 247f029e2d

View File

@ -463,6 +463,7 @@ where
}
if let Some(replaced) = added.replaced_blob_transaction() {
debug!(target: "txpool", "[{:?}] delete replaced blob sidecar", replaced);
// delete the replaced transaction from the blob store
self.delete_blob(replaced);
}
@ -798,6 +799,7 @@ where
/// Inserts a blob transaction into the blob store
fn insert_blob(&self, hash: TxHash, blob: BlobTransactionSidecar) {
debug!(target: "txpool", "[{:?}] storing blob sidecar", hash);
if let Err(err) = self.blob_store.insert(hash, blob) {
warn!(target: "txpool", %err, "[{:?}] failed to insert blob", hash);
self.blob_store_metrics.blobstore_failed_inserts.increment(1);