We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d49cd4e commit 7864bcdCopy full SHA for 7864bcd
tx-pool/src/process.rs
@@ -696,7 +696,6 @@ impl TxPoolService {
696
declared_cycles: Option<Cycle>,
697
command_rx: Option<&mut watch::Receiver<ChunkCommand>>,
698
) -> Option<(Result<Completed, Reject>, Arc<Snapshot>)> {
699
- let wtx_hash = tx.witness_hash();
700
let instant = Instant::now();
701
let is_sync_process = command_rx.is_none();
702
@@ -751,6 +750,10 @@ impl TxPoolService {
751
750
752
if verify_cache.is_none() {
753
// update cache
+ let TransactionView {
754
+ witness_hash: wtx_hash,
755
+ ..
756
+ } = tx;
757
let txs_verify_cache = Arc::clone(&self.txs_verify_cache);
758
tokio::spawn(async move {
759
let mut guard = txs_verify_cache.write().await;
0 commit comments