Is the "hash" value reported by geth: eth.getBlock("849245").hash, for example, the same "hash" that is given to the miner in the work package?

Sorry if this is a naive query. The reason for the question is that the header hash coming into my miner is not the same as reported by the geth function given above.

What's the hash displayed in the miner?


I don't have ethminer installed, so I can't verify this myself just yet. However, looking at the code I'd venture to guess that ethminer is partially encoding the bytes constituting the block header hash as an ASCII or UTF-8 string (or something along those lines) while geth interprets them as a hexadecimal string. Same data, essentially, but different presentation. (It's also possible that it's truncating the hash before partially encoding and displaying it, as the other examples I've seen out there don't encode nearly enough bytes to constitute a block header hash.)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.