Skip to content

Commit 3bb90e6

Browse files
authored
fix(beacon-api-sidecar): use correct block metadata for reorged blobs (#19424)
1 parent ecd49ae commit 3bb90e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/beacon-api-sidecar-fetcher/src/mined_sidecar.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::BeaconSidecarConfig;
2-
use alloy_consensus::{BlockHeader, Signed, Transaction as _, TxEip4844WithSidecar, Typed2718};
2+
use alloy_consensus::{Signed, Transaction as _, TxEip4844WithSidecar, Typed2718};
33
use alloy_eips::eip7594::BlobTransactionSidecarVariant;
44
use alloy_primitives::B256;
55
use alloy_rpc_types_beacon::sidecar::{BeaconBlobBundle, SidecarIterator};
@@ -202,9 +202,9 @@ where
202202
.map(|tx| {
203203
let transaction_hash = *tx.tx_hash();
204204
let block_metadata = BlockMetadata {
205-
block_hash: new.tip().hash(),
206-
block_number: new.tip().number(),
207-
gas_used: new.tip().gas_used(),
205+
block_hash: block.hash(),
206+
block_number: block.number,
207+
gas_used: block.gas_used,
208208
};
209209
BlobTransactionEvent::Reorged(ReorgedBlob {
210210
transaction_hash,

0 commit comments

Comments
 (0)