Skip to content

Some questions about merged mining #249

Answered by jansegre
Grizzly1127 asked this question in Q&A
Discussion options

You must be logged in to vote

The merged mining RFC covers all about constructing the bytes that are needed for making merged mining blocks. But it doesn't show how to use any API, that's is something we can definitely improve.

I'm not sure what you're calling htr_block_hash, maybe it is what the RFC calls base_hash, that is the hash that goes into the parent (for example BTC) chain's coinbase. If you're using get_block_template you will have to construct the base_hash.

I would also recommend using the merged mining websocket (/v1a/mining_ws) instead of get_block_template. You can try the API with wscat -c https://miners.mainnet.hathor.network/v1a/mining_ws, but I highly recommend using your own node for production.

I…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@jansegre
Comment options

@Grizzly1127
Comment options

@jansegre
Comment options

@Grizzly1127
Comment options

@jansegre
Comment options

Answer selected by jansegre

This comment has been hidden.

@Grizzly1127

This comment has been hidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #248 on June 30, 2021 22:30.