Bitcoin Forum
October 01, 2020, 01:04:03 PM *
News: Latest Bitcoin Core release: 0.20.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: when calculating blocks does bitcoin remember previous history of tried blocks ?  (Read 1093 times)
neotrino
Member
**
Offline Offline

Activity: 63
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!
1601557443
Hero Member
*
Offline Offline

Posts: 1601557443

View Profile Personal Message (Offline)

Ignore
1601557443
Reply with quote  #2

1601557443
Report to moderator
1601557443
Hero Member
*
Offline Offline

Posts: 1601557443

View Profile Personal Message (Offline)

Ignore
1601557443
Reply with quote  #2

1601557443
Report to moderator
1601557443
Hero Member
*
Offline Offline

Posts: 1601557443

View Profile Personal Message (Offline)

Ignore
1601557443
Reply with quote  #2

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

Posts: 1601557443

View Profile Personal Message (Offline)

Ignore
1601557443
Reply with quote  #2

1601557443
Report to moderator
1601557443
Hero Member
*
Offline Offline

Posts: 1601557443

View Profile Personal Message (Offline)

Ignore
1601557443
Reply with quote  #2

1601557443
Report to moderator
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1001



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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!