Bitcoin Forum
December 08, 2016, 04:25:57 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: when calculating blocks does bitcoin remember previous history of tried blocks ?  (Read 947 times)
Offline Offline

Activity: 60

View Profile
May 24, 2011, 07:51:59 PM


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?

Hero Member
Offline Offline

Posts: 1481171157

View Profile Personal Message (Offline)

Reply with quote  #2

Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Offline Offline

Activity: 1302

View Profile
May 25, 2011, 03:01:18 AM

What gets hashed?

The block is not random.  It has useful information in it, that changes often.  Every node starts over from scratch quite often.

p2pcoin: a USB/CD/PXE p2pool miner - 1N8ZXx2cuMzqBYSK72X4DAy1UdDbZQNPLf - todo
I routinely ignore posters with paid advertising in their sigs.  You should too.
Pages: [1]
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!