Does Bitcoin Mining Difficulty Change Every Block?
No. On Bitcoin mainnet, the proof-of-work target is normally adjusted once every 2016 blocks, not after each block. That interval is designed to correspond to roughly two weeks at the target average of ten minutes per block.
What happens between adjustments?
The target remains the same for ordinary blocks in the period, but mining is probabilistic. Blocks may arrive seconds apart or take much longer than ten minutes. A sudden increase in network hash rate tends to shorten the average interval until the next retarget; a decrease tends to lengthen it.
Is the rule identical on testnet?
No. Bitcoin test networks can have special minimum-difficulty or other network-specific rules. Software that calculates difficulty must use the rules of the actual chain, not hard-code the mainnet assumption for every environment.
Primary references
Bitcoin Core — Proof-of-Work rules: https://github.com/bitcoin/bitcoin/blob/master/src/pow.cpp
Bitcoin Developer Reference — Block Headers: https://developer.bitcoin.org/reference/block_chain.html
