Bitcoin Forum
May 23, 2018, 01:55:26 AM *
News: Latest stable version of Bitcoin Core: 0.16.0  [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 1024 times)
neotrino
Jr. Member
*
Offline Offline

Activity: 59
Merit: 10


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!
1527040526
Hero Member
*
Offline Offline

Posts: 1527040526

View Profile Personal Message (Offline)

Ignore
1527040526
Reply with quote  #2

1527040526
Report to moderator
1527040526
Hero Member
*
Offline Offline

Posts: 1527040526

View Profile Personal Message (Offline)

Ignore
1527040526
Reply with quote  #2

1527040526
Report to moderator
1527040526
Hero Member
*
Offline Offline

Posts: 1527040526

View Profile Personal Message (Offline)

Ignore
1527040526
Reply with quote  #2

1527040526
Report to moderator
"Bitcoin: the cutting edge of begging technology." -- Giraffe.BTC
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1000



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.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
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!