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 146a5b6 commit 14c4584Copy full SHA for 14c4584
node/src/effects.rs
@@ -173,7 +173,10 @@ fn p2p_request_transactions_if_needed<S: Service>(store: &mut Store<S>) {
173
.ready_peers_iter()
174
.filter(|(_, p)| p.channels.transaction.can_send_request())
175
.map(|(peer_id, _)| {
176
- let pending_txs = state.snark_pool.candidates.peer_work_count(peer_id);
+ let pending_txs = state
177
+ .transaction_pool
178
+ .candidates
179
+ .peer_transaction_count(peer_id);
180
(peer_id, MAX_PEER_PENDING_TXS.saturating_sub(pending_txs))
181
})
182
.filter(|(_, limit)| *limit > 0)
0 commit comments