Bitcoin Forum
June 07, 2024, 09:58:06 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: getdifficulty for next block?  (Read 573 times)
roy7 (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
April 23, 2013, 11: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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!