Pool Stratum Protocol V1.0

Q: POW HASH

A: POW Hash GOlang HashMeerXKeccakV1

C CODE HashMeerXKeccakV1

Q: Pool Stratum Protocol

A: stateRoot can get from GetBlockTemplate RPC

{"id": null,"method": "mining.notify","params": [
   "job_id",
   "prev_hash",
   "cb1",
   "cb2",
   "cb3",
   "cb4",
   "txs",
   "version",
   "nBits",
   "nTime",
   "stateRoot", // 
   "cleanJobs",
   ]}

Q: Pow Header

A: POW_HEADER

header = s.Version + prevHash + merkleRootStr2 + stateRoot + s.Nbits + hex.EncodeToString(ntime) +
     hex.EncodeToString([]byte{uint8(s.PowType)}) + nonceStr

Q: Change Of CoinBase

A: 1. [Coinbase amount struct] https://github.com/Qitmeer/qitmeer-miner/blob/master/symbols/qitmeer/coinbase/common.go#L104-L108

example
old : amount : 12000000000
new : amount { Type : 0, Value: 12000000000}
  1. CoinbaseFee
  2. Coinbase add extra output

Q: Change Of Miner

A: Submit Data

    {PoolUser, jobID, ExtraNonce2, timestampStr,nonceStr}
Contribute on GitHub

Report an Issue | View File | Edit File

© Copyright Qitmeer 2021.
This work is licensed under a Creative Commons Attribution 4.0 International License Creative Commons License