Author

Topic: how to find a nonce (Read 663 times)

legendary
Activity: 924
Merit: 1132
January 08, 2014, 08:36:04 PM
#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. 
newbie
Activity: 43
Merit: 0
January 08, 2014, 08:31:32 PM
#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
hero member
Activity: 490
Merit: 501
January 08, 2014, 03: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.
hero member
Activity: 728
Merit: 500
January 07, 2014, 09:19:54 AM
#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.
newbie
Activity: 43
Merit: 0
January 07, 2014, 08:08:20 AM
#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
newbie
Activity: 43
Merit: 0
January 07, 2014, 07:48:24 AM
#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
hero member
Activity: 728
Merit: 500
January 07, 2014, 07:20:01 AM
#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.
sr. member
Activity: 430
Merit: 250
January 07, 2014, 06: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.
newbie
Activity: 43
Merit: 0
January 07, 2014, 12: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?
Jump to: