Skip to content

Commit 14c4584

Browse files
committed
Fixed typo
1 parent 146a5b6 commit 14c4584

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

node/src/effects.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,10 @@ fn p2p_request_transactions_if_needed<S: Service>(store: &mut Store<S>) {
173173
.ready_peers_iter()
174174
.filter(|(_, p)| p.channels.transaction.can_send_request())
175175
.map(|(peer_id, _)| {
176-
let pending_txs = state.snark_pool.candidates.peer_work_count(peer_id);
176+
let pending_txs = state
177+
.transaction_pool
178+
.candidates
179+
.peer_transaction_count(peer_id);
177180
(peer_id, MAX_PEER_PENDING_TXS.saturating_sub(pending_txs))
178181
})
179182
.filter(|(_, limit)| *limit > 0)

0 commit comments

Comments
 (0)