Title: when calculating blocks does bitcoin remember previous history of tried blocks ? Post by: neotrino on May 24, 2011, 07:51:59 PM Hello,
I have looking at the source code in the function CreateNewBlock() trying to answer myself but I am unable to understand it, looks quite complicated, so I hope anyone can answer my doubts. How bitcoin chooses the new blocks to calculate the hashes?. it generates a random block of data and calculate the hash without taking into account if this block was previously calculated in the past? or it generates a random block and checks if this block was never calculated before calculating the hash for it? If I turn off my computer, could be bitcoin tomorrow calculating the same blocks than today? Thanks! Title: Re: when calculating blocks does bitcoin remember previous history of tried blocks ? Post by: kjj on May 25, 2011, 03:01:18 AM What gets hashed? (https://en.bitcoin.it/wiki/Block_hashing_algorithm)
The block is not random. It has useful information in it, that changes often. Every node starts over from scratch quite often. |