feat: rename reth_primitives::RecoveredTx functions to match alloy::Recovered (#13663)

This commit is contained in:
Tuan Tran
2025-01-06 21:27:43 +07:00
committed by GitHub
parent d10af50e45
commit 20d3fa6bbb
27 changed files with 48 additions and 49 deletions

View File

@ -64,7 +64,7 @@ pub fn broadcast_ingress_bench(c: &mut Criterion) {
tx.sender(),
ExtendedAccount::new(0, U256::from(100_000_000)),
);
txs.push(Arc::new(tx.transaction().clone().into_signed()));
txs.push(Arc::new(tx.transaction().clone().into_tx()));
peer1.send_transactions(peer0_id, txs);
}
}

View File

@ -1538,7 +1538,7 @@ impl<T: SignedTransaction> PropagateTransaction<T> {
{
let size = tx.encoded_length();
let transaction = tx.transaction.clone_into_consensus();
let transaction = Arc::new(transaction.into_signed());
let transaction = Arc::new(transaction.into_tx());
Self { size, transaction }
}

View File

@ -80,7 +80,7 @@ async fn test_4844_tx_gossip_penalization() {
}
let signed_txs: Vec<Arc<TransactionSigned>> =
txs.iter().map(|tx| Arc::new(tx.transaction().clone().into_signed())).collect();
txs.iter().map(|tx| Arc::new(tx.transaction().clone().into_tx())).collect();
let network_handle = peer0.network();