Bitcoin Difficulty Reversing - MineForeman.com

Bitcoin difficulty change

Bitcoin Exchanges / August 6, 2017

The network difficulty is equal to the maximum allowed (least difficult) target divided by the current target; if you set your minimum target to x and it's still at x, then that would also be a relative difficulty of 1.

An easy way to confirm this is to look at the calculated difficulty for your genesis block (or block 1 if you got your genesis block from somewhere else).

bitcoin-cli getblockhash 0 bitcoin-cli getblock

If it also says difficulty is one, then you know difficulty hasn't changed since you started mining.

As an interesting side note, as of (I think) Bitcoin Core 0.11.0, Bitcoin's regtest supports "instant" block generation even though its official maximum target is much lower (more difficult). This means that it has difficulties far below 1:

$ bitcoin-cli -regtest getmininginfo { "blocks": 0, "currentblocksize": 0, "currentblocktx": 0, "difficulty": 4.06925e-10, "errors": "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications", "genproclimit": -1, "networkhashps": 0, "pooledtx": 0, "testnet": false, "chain": "regtest", "generate": false }

Source: bitcoin.stackexchange.com
Warning:
Text: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
File: /home/nex99/domains/bitcoin-and-blockchain.education/code/utils.php
Line: 482

Warning:
Text: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
File: /home/nex99/domains/bitcoin-and-blockchain.education/code/utils.php
Line: 482