You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And then, the 'race' is about trying to calculate the hash function that given the data and the nonce(((nonce))),
142
148
returns a current block hash(((current block hash))) that has the desired number of leading zeros ('0000') -- this can also be thought about as finding a current block hash that is less than a desired threshold.
143
149
144
150
But in order to calculate the current block hash(((current block hash))), the only way is to try nonce numbers at random.
145
151
Like in this image, we try with 0, 17... and so on.
146
152
147
-
image::ouroboros_trying_with_nonce.png[Different attempts to find a nonce]
153
+
.Different attempts to find a nonce
154
+
image::ouroboros_trying_with_nonce.png[]
148
155
149
156
Until, finally, we find the nonce that produces the correct current block hash:
150
157
151
-
image::ouroboros_valid_nonce.png[Found a nonce that Works]
158
+
.Found a nonce that Works
159
+
image::ouroboros_valid_nonce.png[]
152
160
153
161
As you can imagine, this approach of randomly generating a nonce(((nonce))) and testing whether the resulting hash meets the desired difficulty is very computationally intensive.
0 commit comments