mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 15:28:01 -05:00
chore: swap order for canon stream (#19242)
This commit is contained in:
@@ -95,8 +95,8 @@ where
|
||||
let this = self.clone();
|
||||
let timeout_duration = self.send_raw_transaction_sync_timeout();
|
||||
async move {
|
||||
let hash = EthTransactions::send_raw_transaction(&this, tx).await?;
|
||||
let mut canonical_stream = this.provider().canonical_state_stream();
|
||||
let hash = EthTransactions::send_raw_transaction(&this, tx).await?;
|
||||
let flashblock_rx = this.pending_block_rx();
|
||||
let mut flashblock_stream = flashblock_rx.map(WatchStream::new);
|
||||
|
||||
|
||||
@@ -91,8 +91,8 @@ pub trait EthTransactions: LoadTransaction<Provider: BlockReaderIdExt> {
|
||||
let this = self.clone();
|
||||
let timeout_duration = self.send_raw_transaction_sync_timeout();
|
||||
async move {
|
||||
let hash = EthTransactions::send_raw_transaction(&this, tx).await?;
|
||||
let mut stream = this.provider().canonical_state_stream();
|
||||
let hash = EthTransactions::send_raw_transaction(&this, tx).await?;
|
||||
tokio::time::timeout(timeout_duration, async {
|
||||
while let Some(notification) = stream.next().await {
|
||||
let chain = notification.committed();
|
||||
|
||||
Reference in New Issue
Block a user