Skip to content

popm: don't instantly noop if bfg response channel is busy#450

Merged
ClaytonNorthey92 merged 3 commits intomainfrom
toni/bfg-race-fix
Mar 20, 2025
Merged

popm: don't instantly noop if bfg response channel is busy#450
ClaytonNorthey92 merged 3 commits intomainfrom
toni/bfg-race-fix

Conversation

@AL-CT
Copy link
Copy Markdown
Contributor

@AL-CT AL-CT commented Mar 19, 2025

Summary
Fix #422

Changes
Prior, whenever the channel that would receive bfg responses in pop miner was busy, we would no-op. this happened often because the channel was not buffered. this would happen silently as well. add a timeout to sending messages to the non-buffered channel and log and error if we time out

…iner was busy, we would no-op.

this happened often because the channel was not buffered. this would happen silently as well.
add a timeout to sending messages to the non-buffered channel and log and error if we time out
@github-actions github-actions bot added the area: popm This is a change to popm (PoP Miner) label Mar 19, 2025
@AL-CT AL-CT marked this pull request as ready for review March 19, 2025 20:13
@AL-CT AL-CT requested a review from a team as a code owner March 19, 2025 20:13
Copy link
Copy Markdown
Contributor

@joshuasing joshuasing left a comment

Choose a reason for hiding this comment

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

Awesome!

@ClaytonNorthey92 ClaytonNorthey92 merged commit b38418e into main Mar 20, 2025
7 checks passed
@ClaytonNorthey92 ClaytonNorthey92 deleted the toni/bfg-race-fix branch March 20, 2025 19:33
@joshuasing joshuasing added type: refactor This refactors existing functionality type: bug This is a bug labels Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: popm This is a change to popm (PoP Miner) type: bug This is a bug type: refactor This refactors existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

popm, bfg: pop miner will timeout if bfg sends responses too fast

3 participants