Skip to content

Restore initial channel from configured extranonce - #277

Open
lorbax wants to merge 1 commit into
dmnd-pool:masterfrom
lorbax:2026-06-03-reuse-extranonce
Open

Restore initial channel from configured extranonce#277
lorbax wants to merge 1 commit into
dmnd-pool:masterfrom
lorbax:2026-06-03-reuse-extranonce

Conversation

@lorbax

@lorbax lorbax commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Allow the translator to reuse a known upstream extranonce prefix when it starts. The restore_channel config entry or RESTORE_CHANNEL environment variable is parsed into bytes and stored in runtime configuration.

Use that value for the first OpenExtendedMiningChannel request by building a restore-channel user identity from the RESTORE-CHANNEL marker and the configured prefix. When the pool returns
OpenExtendedMiningChannelSuccess, validate that the returned extranonce prefix matches the configured value and then clear restore state.

Update channel bookkeeping, bridge restore handling, and tests for the configured extranonce flow.

Allow the translator to reuse a known upstream extranonce prefix when
it starts. The restore_channel config entry or RESTORE_CHANNEL
environment variable is parsed into bytes and stored in runtime
configuration.

Use that value for the first OpenExtendedMiningChannel request by
building a restore-channel user identity from the RESTORE-CHANNEL marker
and the configured prefix. When the pool returns
OpenExtendedMiningChannelSuccess, validate that the returned extranonce
prefix matches the configured value and then clear restore state.

Update channel bookkeeping, bridge restore handling, and tests for the
configured extranonce flow.
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.

1 participant