Skip to content

fix(p2p): better batch connection sampling (#13674)#13763

Merged
PhilWindle merged 1 commit into
alpha-testnetfrom
md/apply-better-batch-connection-to-alpha-testnet
Apr 23, 2025
Merged

fix(p2p): better batch connection sampling (#13674)#13763
PhilWindle merged 1 commit into
alpha-testnetfrom
md/apply-better-batch-connection-to-alpha-testnet

Conversation

@Maddiaa0

@Maddiaa0 Maddiaa0 commented Apr 23, 2025

Copy link
Copy Markdown
Member

apply #13674 to alpha-testnet

## Overview

Improves batch connection sampling such that we can increase the retry
attempts for prover nodes requesting
transaction information from their peers.

### Core improvements
**Previously**
When making a batch request, we requested the peer list, iterated
through it until we found a peer without an reqresp active connection
and used those. This meant that we were commonly only using the first
3-4 peers in the peer list.

Now it will do random sampling without replacement to peers without
already active reqresp connections. If there are non available, then we
will just sample from peers already servicing requests.
@PhilWindle PhilWindle merged commit bce5a08 into alpha-testnet Apr 23, 2025
@PhilWindle PhilWindle deleted the md/apply-better-batch-connection-to-alpha-testnet branch April 23, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants