Bitcoin Forum
May 12, 2024, 06:08:45 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how to find a nonce  (Read 645 times)
microlost (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
January 07, 2014, 05:45:23 AM
 #1

I'm confused about the process of looking for a nonce embeded in a block by each node, if the method used by each node are the same ,such as every node start from 0,1,2……until one node found a block. if all nodes work on it by that way with solo mining model, does that means the node with maximum computing power can be the first one to find a block each times?

am I miss somening?
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715494125
Hero Member
*
Offline Offline

Posts: 1715494125

View Profile Personal Message (Offline)

Ignore
1715494125
Reply with quote  #2

1715494125
Report to moderator
1715494125
Hero Member
*
Offline Offline

Posts: 1715494125

View Profile Personal Message (Offline)

Ignore
1715494125
Reply with quote  #2

1715494125
Report to moderator
prezbo
Sr. Member
****
Offline Offline

Activity: 430
Merit: 250


View Profile
January 07, 2014, 11:04:39 AM
 #2

I'm confused about the process of looking for a nonce embeded in a block by each node, if the method used by each node are the same ,such as every node start from 0,1,2……until one node found a block. if all nodes work on it by that way with solo mining model, does that means the node with maximum computing power can be the first one to find a block each times?

am I miss somening?
You don't have to start with 0 and go in sequence, you should choose a random noonce.
Rannasha
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
January 07, 2014, 12:20:01 PM
 #3

In addition: Not every miner will have the same set of transactions that they're trying to include in the block. And a block-header contains a timestamp that will be (slightly) different for different miners.
microlost (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
January 07, 2014, 12:48:24 PM
 #4

I'm confused about the process of looking for a nonce embeded in a block by each node, if the method used by each node are the same ,such as every node start from 0,1,2……until one node found a block. if all nodes work on it by that way with solo mining model, does that means the node with maximum computing power can be the first one to find a block each times?

am I miss somening?
You don't have to start with 0 and go in sequence, you should choose a random noonce.

got it,thx Grin
microlost (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
January 07, 2014, 01:08:20 PM
 #5

In addition: Not every miner will have the same set of transactions that they're trying to include in the block. And a block-header contains a timestamp that will be (slightly) different for different miners.

You mean that the random nonce are relative to the transaction set and block-header contains
Rannasha
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
January 07, 2014, 02:19:54 PM
 #6

In addition: Not every miner will have the same set of transactions that they're trying to include in the block. And a block-header contains a timestamp that will be (slightly) different for different miners.

You mean that the random nonce are relative to the transaction set and block-header contains

No. But if you change the contents of the block header, you change the outcome of the hashing function. So 2 miners that start with 0 as nonce and just increase it will get different hash-values if they have a different block header. So this means that even if miners use the same sequence of nonces to test, it's still quite possible for the slower miner to find a block first every now and then.
Trongersoll
Hero Member
*****
Offline Offline

Activity: 490
Merit: 501



View Profile
January 08, 2014, 08:43:59 PM
 #7

Ok, think of your miner as a black box. you input a string of digits, of which the nounce is just a part, into the box and get a unique string of digits out. Incrementing the nounce creates a new input that results in a new, unique, output. Changing any part of the input string creates a new, unique output string. There other parts of that string of input numbers that vary. The transactions included, if you are using a pool that identifies itself in the coinbase, that would be different for the pools. Coinbase is part of that input string.

Basically, everyworker gets a somewhat unique set of inputs to work with.
microlost (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
January 09, 2014, 01:31:32 AM
Last edit: January 13, 2014, 02:01:56 AM by microlost
 #8

Ok, think of your miner as a black box. you input a string of digits, of which the nounce is just a part, into the box and get a unique string of digits out. Incrementing the nounce creates a new input that results in a new, unique, output. Changing any part of the input string creates a new, unique output string. There other parts of that string of input numbers that vary. The transactions included, if you are using a pool that identifies itself in the coinbase, that would be different for the pools. Coinbase is part of that input string.

Basically, everyworker gets a somewhat unique set of inputs to work with.

got it ,thx Cheesy,I'm happy to realise that the coinbase are always different from each miner,thus lead to a different input
Cryddit
Legendary
*
Offline Offline

Activity: 924
Merit: 1129


View Profile
January 09, 2014, 01:36:04 AM
 #9

Exactly.  Because every miner would like to be paid a block award, every miner will use a coinbase transaction that is different from all the other coinbase transactions.  Because after all, those other coinbase transactions would pay somebody else instead. 

Therefore, every miner is looking at a different transaction set, even if they pick up exactly the same set of transactions made by others.  And therefore, every miner would get paid on a different nonce, even if they all started from zero and picked their next nonce just by incrementing one.  And they don't.  Every time, they start on a different random number for the first nonce. 
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!