Skip to content

Exposed getblocktemplate rpc via REST endpoint.#230

Open
Randy808 wants to merge 1 commit into
Blockstream:new-indexfrom
Randy808:add-getblocktemplate
Open

Exposed getblocktemplate rpc via REST endpoint.#230
Randy808 wants to merge 1 commit into
Blockstream:new-indexfrom
Randy808:add-getblocktemplate

Conversation

@Randy808

Copy link
Copy Markdown
Collaborator

No description provided.

@Randy808 Randy808 requested a review from EddieHouston June 24, 2026 20:34
Comment thread src/rest.rs Outdated
Comment thread src/rest.rs Outdated
Comment thread src/rest.rs

@EddieHouston EddieHouston 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.

Overall looks pretty good. Currently I don't think that electrs directly proxies through any other calls to bitcoin node (although I was just considering it for calls to GET /block//raw... so electrs doesn't cache all the txs in the raw block).

We might also consider adding a startup flag (--enable-mining-rest) to enable this.

@Randy808 Randy808 force-pushed the add-getblocktemplate branch from 6f61218 to a812004 Compare June 25, 2026 14:45
@Randy808

Copy link
Copy Markdown
Collaborator Author

Added the --enable-mining-rest flag too

@Randy808 Randy808 marked this pull request as ready for review July 6, 2026 17:07
@Randy808 Randy808 force-pushed the add-getblocktemplate branch from a812004 to 8ca9d7d Compare July 7, 2026 19:01
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