Skip to content

allow implementations to use error codes for automated actions#194

Open
plebhash wants to merge 2 commits into
stratum-mining:mainfrom
plebhash:2026-04-30-automated-action-error-codes
Open

allow implementations to use error codes for automated actions#194
plebhash wants to merge 2 commits into
stratum-mining:mainfrom
plebhash:2026-04-30-automated-action-error-codes

Conversation

@plebhash
Copy link
Copy Markdown
Member

as discussed in #165

more specifically, this PR implements suggestion from #165 (comment)

@plebhash
Copy link
Copy Markdown
Member Author

plebhash commented Apr 30, 2026

with the changes on this PR:

  • the spec allows for implementations to take automated actions on error_code strings
  • the spec does not force implementations to use specific error_code strings

so we end up in a situation where different implementations could be aiming for the same error_code string, but still be subject to small typo or encoding issues

while that is hard to avoid without major spec changes, SRI can greatly reduce the room for such scenarios by providing types for commonly-used error_code strings

that will be tackled via stratum-mining/stratum#2142

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