2

When i use eth_getWork, i get only 3 parameters:

DATA, 32 Bytes - current block header pow-hash
DATA, 32 Bytes - the seed hash used for the DAG.
DATA, 32 Bytes - the boundary condition ("target"), 2^256 / difficulty.

How can I calculate curent block number? I need this for generate dag file and get ca

4

1 Answer 1

2

You can just use eth_blockNumber

3
  • no, i can`t use this command unsuported in mining. Only eth_getWork and eth_submitWork Commented Jun 23, 2016 at 10:49
  • 1
    @TarasEndick maybe edit your question and add some more details why you are limited to these calls.
    – q9f
    Commented Jun 24, 2016 at 9:07
  • I'm writing a miner , which connects to the pool. And the pool does not recognize such a command eth_blockNumber. For mining need only eth_getWork and eth_submitWork. I can not understand how I get the number of the block using only these commands . Commented Jun 24, 2016 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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