You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/scroll/rpc/src/eth/transaction.rs
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -49,26 +49,25 @@ where
49
49
ifself.inner.propagate_local_transactions{
50
50
// Forward to remote sequencer RPC asynchronously (fire and forget)
51
51
let client = client.clone();
52
-
let tx_clone = tx.clone();
53
-
let hash_clone = hash;
52
+
let tx = tx.clone();
54
53
tokio::spawn(asyncmove{
55
-
match client.forward_raw_transaction(&tx_clone).await{
54
+
match client.forward_raw_transaction(&tx).await{
56
55
Ok(sequencer_hash) => {
57
-
tracing::debug!(target:"scroll::rpc::eth", local_hash=%hash_clone, sequencer_hash=%sequencer_hash,"successfully forwarded transaction to sequencer");
56
+
tracing::debug!(target:"scroll::rpc::eth", local_hash=%hash,%sequencer_hash,"successfully forwarded transaction to sequencer");
58
57
}
59
58
Err(err) => {
60
-
tracing::warn!(target:"scroll::rpc::eth", %err,%hash_clone,"failed to forward transaction to sequencer, but transaction is in local pool and will be propagated");
59
+
tracing::warn!(target:"scroll::rpc::eth", %err,local_hash=%hash,"failed to forward transaction to sequencer, but transaction is in local pool and will be propagated");
61
60
}
62
61
}
63
62
});
64
63
}else{
65
64
// Forward to remote sequencer RPC synchronously
66
65
match client.forward_raw_transaction(&tx).await{
67
66
Ok(sequencer_hash) => {
68
-
tracing::debug!(target:"scroll::rpc::eth", local_hash=%hash,sequencer_hash=%sequencer_hash,"successfully forwarded transaction to sequencer");
67
+
tracing::debug!(target:"scroll::rpc::eth", local_hash=%hash, %sequencer_hash,"successfully forwarded transaction to sequencer");
69
68
}
70
69
Err(err) => {
71
-
tracing::warn!(target:"scroll::rpc::eth", %err, %hash,"failed to forward transaction to sequencer");
70
+
tracing::warn!(target:"scroll::rpc::eth", %err,local_hash=%hash,"failed to forward transaction to sequencer");
0 commit comments