Some questions about merged mining #249
-
I'm a developer of the mining pool service. When I write hathor's merged mining program in my service, do I need to construct htr_block_hash after getting the result through get_block_template? I look forward to your reply. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
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 I would also recommend using the merged mining websocket ( If you have any suggestions, like what type of examples would help, or if there is any information we can add to an API that would make your life easier. I'd love to hear it. |
Beta Was this translation helpful? Give feedback.
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 callsbase_hash
, that is the hash that goes into the parent (for example BTC) chain's coinbase. If you're usingget_block_template
you will have to construct thebase_hash
.I would also recommend using the merged mining websocket (
/v1a/mining_ws
) instead ofget_block_template
. You can try the API withwscat -c https://miners.mainnet.hathor.network/v1a/mining_ws
, but I highly recommend using your own node for production.I…