Bitcoin Forum
February 24, 2017, 10:06:54 PM *
News: Latest stable version of Bitcoin Core: 0.13.2  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: when calculating blocks does bitcoin remember previous history of tried blocks ?  (Read 959 times)
neotrino
Member
**
Offline Offline

Activity: 60


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

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!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1487974014
Hero Member
*
Offline Offline

Posts: 1487974014

View Profile Personal Message (Offline)

Ignore
1487974014
Reply with quote  #2

1487974014
Report to moderator
1487974014
Hero Member
*
Offline Offline

Posts: 1487974014

View Profile Personal Message (Offline)

Ignore
1487974014
Reply with quote  #2

1487974014
Report to moderator
1487974014
Hero Member
*
Offline Offline

Posts: 1487974014

View Profile Personal Message (Offline)

Ignore
1487974014
Reply with quote  #2

1487974014
Report to moderator
kjj
Legendary
*
Offline Offline

Activity: 1302



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

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]
  Print  
 
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!