Bitcoin Forum
August 17, 2024, 09:04:14 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Starting difficulty - tech question  (Read 722 times)
rikkejohn (OP)
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


View Profile
July 10, 2014, 11:19:45 AM
 #1

Where is actually situated in the source code (e.g. starting difficulty 1, 0.00024414)?

I can't find an answer, even on Google.

1PkwpyTLo5TfagzCPgjdvQFNVzuEyHViGt
Blazr2
Full Member
***
Offline Offline

Activity: 218
Merit: 105



View Profile
July 10, 2014, 01:33:52 PM
 #2

Its in main.cpp in most coins and looks something like this:

Quote
static CBigNum bnProofOfWorkLimit(~uint256(0) >> 20); // starting difficulty is 1 / 2^12
rikkejohn (OP)
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


View Profile
July 10, 2014, 11:06:34 PM
 #3

Its in main.cpp in most coins and looks something like this:

Quote
static CBigNum bnProofOfWorkLimit(~uint256(0) >> 20); // starting difficulty is 1 / 2^12

Thanks, mate, that was extremely helpful ... I found it in chainparams after doing a variation of searches using the info you gave.


1PkwpyTLo5TfagzCPgjdvQFNVzuEyHViGt
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!