Title: Is the current difficulty included in blockchain? Post by: AmDD on March 03, 2016, 06:15:50 PM For example, if I lookup block 1492 is there any information included with the block in the blockchain that would give the difficulty at the time the block was mined?
Title: Re: Is the current difficulty included in blockchain? Post by: --Encrypted-- on March 03, 2016, 06:17:30 PM For example, if I lookup block 1492 is there any information included with the block in the blockchain that would give the difficulty at the time the block was mined? https://blockchain.info/block/000000002590c6bd1c26c7afffb1dfb621950be4a6d9b89d019455c982997368 yes. it's not so hard to check. Title: Re: Is the current difficulty included in blockchain? Post by: jonnybravo0311 on March 03, 2016, 06:48:12 PM Using the bitcoin client...
Code: >bitcoin-cli getblockhash 1492 Hope this helps :) Title: Re: Is the current difficulty included in blockchain? Post by: AmDD on March 03, 2016, 08:05:25 PM Awesome, thanks! I knew some block explorers would show this but I didnt know if they collected the info manually (checking the difficulty in realtime with each block) or if it was actually recorded with the blockchain.
Thank you both Title: Re: Is the current difficulty included in blockchain? Post by: watashi-kokoto on March 03, 2016, 09:32:54 PM Thank you both Yes difficulty is part of block header. This way node can just from seeing the header know if it satisfies the difficulty. But the node also checks if the difficulty itself is not fake (lower) by calculating the current difficulty from whole blockchain. |