Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
See issue [#1464](https://github.com/o1-labs/mina-rust/issues/1464).
Fixed in [#1546](https://github.com/o1-labs/mina-rust/pull/1546/)
([#1546](https://github.com/o1-labs/mina-rust/pull/1546))
- **transactions**: fixed a typo in `p2p_request_transactions_if_needed` where snark count was used instead of transaction count
([#1563](https://github.com/o1-labs/mina-rust/pull/1563)).

## v0.17.0

Expand Down
5 changes: 4 additions & 1 deletion node/src/effects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ fn p2p_request_transactions_if_needed<S: Service>(store: &mut Store<S>) {
.ready_peers_iter()
.filter(|(_, p)| p.channels.transaction.can_send_request())
.map(|(peer_id, _)| {
let pending_txs = state.snark_pool.candidates.peer_work_count(peer_id);
let pending_txs = state
.transaction_pool
.candidates
.peer_transaction_count(peer_id);
(peer_id, MAX_PEER_PENDING_TXS.saturating_sub(pending_txs))
})
.filter(|(_, limit)| *limit > 0)
Expand Down
Loading