Hello everyone! I'm trying to mine a block from a miner using Stratum v1. But after mining the block, I get an invalid hash. What could be the cause?
Network: testnet4
PC: Windows
Lang: go
Pool log
2026/01/04 11:36:26 Stratum server started on 0.0.0.0:3333
2026/01/04 11:36:29 New connection from 192.168.0.103:35920, session ID: 3f7c8034df95c005
2026/01/04 11:36:29 Subscribe job JSON: {"error":null,"id":21,"result":[[["mining.set_difficulty","18877a3ed77dfd90"],["mining.notify","18877a3ed77dfd90"]],"888c3e8a",4]} to session 3f7c8034df95c005
2026/01/04 11:36:29 Broadcasting new jobs for block height: 117072
2026/01/04 11:36:38 Sending job JSON: {"id":null,"method":"mining.notify","params":["1767515796482109500","1dda2a3c552879ac2d1d3111d2a9e8512140fb084d250c2f73ad8d0000000000","01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff1a0350c9010c2f4175726f6e20506f6f6c2f08","ffffffff0100f2052a01000000160014d6bd08465a99d0dbfb2581df8d86de42883413b100000000",[],"20000000","1d00ffff","695a2b80",false]} to session 3f7c8034df95c005
2026/01/04 11:36:38 Received submit params: [karakut.worker 1767515796482109500 1f010000 695a2b80 c052720d] to session 3f7c8034df95c005
I assemble the block like this:
Extranonce1 (raw bytes): 888c3e8a
Extranonce2 (raw bytes): c052720d
Coinbase (LE extranonce) length: 108 bytes
Coinbase hex: 01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff1a0350c9010c2f4175726f6e20506f6f6c2f08888c3e8ac052720dffffffff0100f2052a01000000160014d6bd08465a99d0dbfb2581df8d86de42883413b100000000
Coinbase hash: eab0a9f854d3dd2560037ab1cc2bb10200d0bdb5f214a35e8881278aa9cd5155
=== HEADER (80 bytes) ===
Version: 1f010000
Prev hash: 1dda2a3c552879ac2d1d3111d2a9e8512140fb084d250c2f73ad8d0000000000
Merkle root: eab0a9f854d3dd2560037ab1cc2bb10200d0bdb5f214a35e8881278aa9cd5155
Timestamp: 695a2b80
Bits: 1d00ffff
Nonce: c052720d
=== RESULT ===
Header hash (little-endian): 2c13a128134c803bc010d1a3e8ad0aa3b530a2597fe69c02ab2ffaf0b1a8647b
Header hash (big-endian): 7b64a8b1f0fa2fab029ce67f59a230b5a30aade8a3d110c03b804c1328a1132c
Correct target: 00000000ffff0000000000000000000000000000000000000000000000000000
Version rolling is not used