mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: use reth-ethereum-primitives (#13830)
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
use crate::BeaconSidecarConfig;
|
||||
use alloy_consensus::{
|
||||
transaction::PooledTransaction, BlockHeader, Signed, Transaction as _, TxEip4844WithSidecar,
|
||||
Typed2718,
|
||||
};
|
||||
use alloy_primitives::B256;
|
||||
use alloy_rpc_types_beacon::sidecar::{BeaconBlobBundle, SidecarIterator};
|
||||
@ -8,6 +9,7 @@ use eyre::Result;
|
||||
use futures_util::{stream::FuturesUnordered, Future, Stream, StreamExt};
|
||||
use reqwest::{Error, StatusCode};
|
||||
use reth::{
|
||||
core::primitives::SignedTransaction,
|
||||
primitives::RecoveredBlock,
|
||||
providers::CanonStateNotification,
|
||||
transaction_pool::{BlobStoreError, TransactionPoolExt},
|
||||
@ -112,7 +114,7 @@ where
|
||||
return
|
||||
}
|
||||
|
||||
match self.pool.get_all_blobs_exact(txs.iter().map(|(tx, _)| tx.hash()).collect()) {
|
||||
match self.pool.get_all_blobs_exact(txs.iter().map(|(tx, _)| *tx.tx_hash()).collect()) {
|
||||
Ok(blobs) => {
|
||||
actions_to_queue.reserve_exact(txs.len());
|
||||
for ((tx, _), sidecar) in txs.iter().zip(blobs.into_iter()) {
|
||||
@ -199,7 +201,7 @@ where
|
||||
.transactions()
|
||||
.filter(|tx| tx.is_eip4844())
|
||||
.map(|tx| {
|
||||
let transaction_hash = tx.hash();
|
||||
let transaction_hash = *tx.tx_hash();
|
||||
let block_metadata = BlockMetadata {
|
||||
block_hash: new.tip().hash(),
|
||||
block_number: new.tip().number(),
|
||||
|
||||
Reference in New Issue
Block a user