Skip to content

Add block template retrieval feature#1

Open
tigeryant wants to merge 5 commits into
pseudoramdom:mainfrom
tigeryant:main
Open

Add block template retrieval feature#1
tigeryant wants to merge 5 commits into
pseudoramdom:mainfrom
tigeryant:main

Conversation

@tigeryant
Copy link
Copy Markdown

This PR adds support for block template retrieval via the IPC interface. Obtaining block templates from a node is an important part of the mining process. Miners can add their own transactions before mining and submitting the block. An example is added to the README to show usage in a downstream repository.

@pseudoramdom
Copy link
Copy Markdown
Owner

This is great! Thanks for the pull request.
Currently the block_template has only get_block_template.
Do you think it'll be better to namespace it under MiningInterface? That way I can add other functions like create_block as part of the mining interface

@tigeryant
Copy link
Copy Markdown
Author

Thanks for the feedback. I've addressed this in these commits. Please review again.

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