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

Nicolas Massart
  • 6,783
  • 2
  • 29
  • 63

1 Answers1

2

You can just use eth_blockNumber

Tjaden Hess
  • 37,046
  • 10
  • 91
  • 118
  • no, i can`t use this command unsuported in mining. Only eth_getWork and eth_submitWork – Taras Endick Jun 23 '16 at 10:49
  • 1
    @TarasEndick maybe edit your question and add some more details why you are limited to these calls. – q9f Jun 24 '16 at 09: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 . – Taras Endick Jun 24 '16 at 12:54