Author

Topic: getdifficulty for next block? (Read 580 times)

sr. member
Activity: 434
Merit: 250
April 23, 2013, 07:50:41 PM
#1
It seemed to me from the description that getdifficulty should be telling me the "current" difficulty, in the sense of the block we are working on right now. However it seems to actually return the difficulty of the most recent block on the block chain. getinfo does the same thing. However, cgminer has the correct difficulty of the block we are working on right now. Once this block is found, that's the difficulty in the chain.

Is there a way to get the difficulty out of the *coind for the block being worked on at this moment? I'm messing with TRC which has difficulty change every coin, which is why I noticed.

Is the only option to take the 'target' field from getblocktemplate and convert that to a difficulty number manually? That just occurred to me.

Thanks.
Jump to: