I’ve two questions in my journey to know the mining course of.
For each i’ll discuss with: https://en.bitcoin.it/wiki/Block_hashing_algorithm
The place each Earlier hash and Merkle hash are reversed when constructing block header.
$prevBlockHash = SwapOrder('00000000000008a3a41b85b8b29ad444def299fee21793cd8b9e567eab02cd81');
$rootHash = SwapOrder('2b12fcf1b09288fcaff797d71e950e71ae42b91e8bdb2304758dfcffc2b620e3');
- When i obtain knowledge from solo.ckpool.org
{"params":["64851638000e7f59","7e11f0eeecfb2c4e3675001b04cfe538a17be9810002aaf30000000000000000","01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff350326d10c0004ced5226604e4fbc6270c","0a636b706f6f6c112f736f6c6f2e636b706f6f6c2e6f72672fffffffff038a42bf2a000000001976a914c987a18977a2139835193b3df2eea097f834966888acf354df000000000016001451ed61d2f6aa260cc72cdf743e4e436a82c010270000000000000000266a24aa21a9ed17210933e34ecc57ec05f3e19a9cf15e7ebae2907c2b2f527e9ec28e70f2048f00000000",["347d2dcc80a31e45cc4e11d4a80d06c79c70e5b76c4723ac97c655b16a915ec0","e80f454439ed8b2adb6f1b2b83b71ae202aa1a1de41f70722c4a2b3a1ad95be0","a5190b11c8ca1cb37fce03e8bf2eb0e36397cc7ee86da8808ac38088a6cd77f8","19035259d114135f4c798293f20bd58728beaa615d652b38715b563526e95bb1","e6cd833a8a89f446f1b036ae2641fadf60d13b36f5cb93edc33d3e92cb785313","3c422b7bf302d65b232a1f444782fcdebb5c81dcecc59ecd5f79e06126fffe5c","04a39a1e145bf8ae7a33fa8dddc5914d1099d28cc2929fb291d1724044dbc527","4c4ced96bbee9eaed655e9f2fd1c70b9889c88c9c0d2c13615e22c1088e0d74b","c1e0ed8b0e90a88a92aff0d99de6240b0ab687cb3dfb3885282a9742c9294f33","cbb4c04632c16e12beaef67b87858f0eae9d569266add284b728b8306e9873ff","6053a6b64785d7c7a67b535f73b6a7ed67914d9408f3dc4eeed92c241b00ab4f","037f4f4bc258ee4bb84b33d92bb33cb2ef9d56721ac508e3d75d12659f5b83d6"],"20000000","17034219","6622d5ce",false],"id":null,"methodology":"mining.notify"}
The place Earlier hash is : 7e11f0eeecfb2c4e3675001b04cfe538a17be9810002aaf30000000000000000
I assume pool has already reversed it and that i need not do it?
- Identical goes for coinbase and merkle root calculation.
I usually do not reverse right here something, I simply reverse the hash on the finish (as per wiki) – is that this appropriate?
Only for readability,
-----NOT REVERSED PREVHASH FROM POOL-----
$prevBlockHash = /*SwapOrder*/('7e11f0eeecfb2c4e3675001b04cfe538a17be9810002aaf30000000000000000');
$rootHash = SwapOrder('d302abcdc15ad634f94073a6a5fa0e1d54c42470530929363ef73d2bdaa025a3');
$time = littleEndian(1713558990);
$bits = littleEndian(386089497);
$nonce = littleEndian(0);
HEADERHEX: 000000207e11f0eeecfb2c4e3675001b04cfe538a17be9810002aaf30000000000000000a325a0da2b3df73e362909537024c4541d0efaa5a67340f934d65ac1cdab02d3ced522661942031700000000
-----BITCOIN WIKI - REVERSED PREVHASH FROM POOL-----
$prevBlockHash = SwapOrder('7e11f0eeecfb2c4e3675001b04cfe538a17be9810002aaf30000000000000000');
$rootHash = SwapOrder('d302abcdc15ad634f94073a6a5fa0e1d54c42470530929363ef73d2bdaa025a3');
$time = littleEndian(1713558990);
$bits = littleEndian(386089497);
$nonce = littleEndian(0);
HEADERHEX: 000000200000000000000000f3aa020081e97ba138e5cf041b0075364e2cfbeceef0117ea325a0da2b3df73e362909537024c4541d0efaa5a67340f934d65ac1cdab02d3ced522661942031700000000
Thanks very a lot for assist right here, however i could not discover any documentation for solo.ckpool.org particularly on the right way to deal with these…