Forwarding shares to peers by Sansh2356 · Pull Request #257 · braidpool/braidpool · GitHub
Skip to content

Forwarding shares to peers#257

Merged
mcelrath merged 1 commit into
devfrom
10-3-2025-Forwarding-shares-to-peers
Oct 18, 2025
Merged

Forwarding shares to peers#257
mcelrath merged 1 commit into
devfrom
10-3-2025-Forwarding-shares-to-peers

Conversation

@Sansh2356

Copy link
Copy Markdown
Contributor
  • It provides the propagation mechanism for beads to be transferred from stratum service to the swarm via the SwarmHandler .
  • Forwarding candidate beads to the peers after PoW validation .

@Sansh2356 Sansh2356 requested a review from mcelrath October 8, 2025 19:14
@Sansh2356 Sansh2356 force-pushed the 10-3-2025-Forwarding-shares-to-peers branch from 7951aeb to d5afeb3 Compare October 9, 2025 18:07

@mcelrath mcelrath left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this design a lot better, I think it's a lot more modular and logical.

I'd like you to go through the SwarmHandler and put in real data everywhere you can. Wherever you have to use fake data, add a FIXME or TODO marker so we can discuss how to make it not-fake. We can put those things in a new PR.

For example the miner pubkey is going to have to be a config option or stored in ~/.braidpool, and we can discuss how we want to do that. We might use the libp2p pubkey here and then we have to figure out how to sign with it.

Other things like timestamps, should be "now".

@Sansh2356 Sansh2356 force-pushed the 10-3-2025-Forwarding-shares-to-peers branch from d5afeb3 to 7d6763b Compare October 10, 2025 17:29
@Sansh2356 Sansh2356 requested a review from mcelrath October 10, 2025 17:30
@Sansh2356 Sansh2356 mentioned this pull request Oct 14, 2025
37 tasks
@Sansh2356 Sansh2356 self-assigned this Oct 14, 2025
@Sansh2356 Sansh2356 force-pushed the 10-3-2025-Forwarding-shares-to-peers branch from 7d6763b to d71b915 Compare October 14, 2025 20:14
mcelrath
mcelrath previously approved these changes Oct 18, 2025

@mcelrath mcelrath left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, works.

Changing the event handling and removing shared swarm

Adding swarm handler as interface between swarm and stratum service

Updating params in no_version_rolling_submit test

Removing cpuminer compatible conditions

Replacing temp data with actual data
@Sansh2356 Sansh2356 requested a review from zaidmstrr October 18, 2025 18:47
@Sansh2356 Sansh2356 force-pushed the 10-3-2025-Forwarding-shares-to-peers branch from d71b915 to 71e2cca Compare October 18, 2025 18:47
@mcelrath mcelrath merged commit ba37bae into dev Oct 18, 2025
14 checks passed
@mcelrath mcelrath deleted the 10-3-2025-Forwarding-shares-to-peers branch October 18, 2025 18:57
mcelrath pushed a commit to mcelrath/braidpool that referenced this pull request Nov 18, 2025
…dpool#257)

Changing the event handling and removing shared swarm

Adding swarm handler as interface between swarm and stratum service

Updating params in no_version_rolling_submit test

Removing cpuminer compatible conditions

Replacing temp data with actual data
jevinjojo pushed a commit to jevinjojo/braidpool that referenced this pull request Dec 5, 2025
…dpool#257)

Changing the event handling and removing shared swarm

Adding swarm handler as interface between swarm and stratum service

Updating params in no_version_rolling_submit test

Removing cpuminer compatible conditions

Replacing temp data with actual data
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.

2 participants