Bitcoin Forum
March 19, 2024, 02:12:18 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: mining process query  (Read 1719 times)
raresaturn (OP)
Full Member
***
Offline Offline

Activity: 168
Merit: 100


Everyone Is A Bank


View Profile
June 30, 2011, 04:02:23 AM
 #1

So each time your computer tries a hash that fails, is there a list kept of failed attempts? Otherwise you could be re-trying ones that you know have already failed.

                 BABB        |[     BANK ACCOUNT BASED BLOCKCHAIN     ]|       Everyone is a bank
▬                       JOIN TOKEN SALE                       ▬
▬▬▬▬▬     JOIN THE COMMUNITY    |    Telegram     ▬▬▬▬▬
1710814338
Hero Member
*
Offline Offline

Posts: 1710814338

View Profile Personal Message (Offline)

Ignore
1710814338
Reply with quote  #2

1710814338
Report to moderator
1710814338
Hero Member
*
Offline Offline

Posts: 1710814338

View Profile Personal Message (Offline)

Ignore
1710814338
Reply with quote  #2

1710814338
Report to moderator
1710814338
Hero Member
*
Offline Offline

Posts: 1710814338

View Profile Personal Message (Offline)

Ignore
1710814338
Reply with quote  #2

1710814338
Report to moderator
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1710814338
Hero Member
*
Offline Offline

Posts: 1710814338

View Profile Personal Message (Offline)

Ignore
1710814338
Reply with quote  #2

1710814338
Report to moderator
1710814338
Hero Member
*
Offline Offline

Posts: 1710814338

View Profile Personal Message (Offline)

Ignore
1710814338
Reply with quote  #2

1710814338
Report to moderator
BitcoinBabe
Member
**
Offline Offline

Activity: 84
Merit: 10


Side-stepping the matrix | Bit by bit


View Profile WWW
June 30, 2011, 04:06:55 AM
 #2

So each time your computer tries a hash that fails, is there a list kept of failed attempts? Otherwise you could be re-trying ones that you know have already failed.

You don't do the brain work work youself, your computer/cpu/gpu does.

BitcoinBabe
Member
**
Offline Offline

Activity: 84
Merit: 10


Side-stepping the matrix | Bit by bit


View Profile WWW
June 30, 2011, 04:12:05 AM
 #3

Visit a mining pool to see how it works.

http://www.bitcoinplus.com/generate?for=2675969

raresaturn (OP)
Full Member
***
Offline Offline

Activity: 168
Merit: 100


Everyone Is A Bank


View Profile
June 30, 2011, 04:15:40 AM
 #4

So each time your computer tries a hash that fails, is there a list kept of failed attempts? Otherwise you could be re-trying ones that you know have already failed.

You don't do the brain work work youself, your computer/cpu/gpu does.

Yes i realise this...but the question was: does the computer keep trying solutions that have already failed, or does it keep a list of failures and only try untried solutions?

                 BABB        |[     BANK ACCOUNT BASED BLOCKCHAIN     ]|       Everyone is a bank
▬                       JOIN TOKEN SALE                       ▬
▬▬▬▬▬     JOIN THE COMMUNITY    |    Telegram     ▬▬▬▬▬
MelMan2002
Sr. Member
****
Offline Offline

Activity: 461
Merit: 251



View Profile
June 30, 2011, 04:24:42 AM
 #5

I don't see a point to keeping track of failed attempts - the likelihood of a repeat is very very small.

19F6veduCZcudwXuWoVosjmzziQz4EhBPS
raresaturn (OP)
Full Member
***
Offline Offline

Activity: 168
Merit: 100


Everyone Is A Bank


View Profile
June 30, 2011, 04:27:43 AM
 #6

I don't see a point to keeping track of failed attempts - the likelihood of a repeat is very very small.

If each attempt is truly random then the likelyhood of a repeat rises with each failed attempt.  There could be room for optimisation here...

                 BABB        |[     BANK ACCOUNT BASED BLOCKCHAIN     ]|       Everyone is a bank
▬                       JOIN TOKEN SALE                       ▬
▬▬▬▬▬     JOIN THE COMMUNITY    |    Telegram     ▬▬▬▬▬
BitcoinBabe
Member
**
Offline Offline

Activity: 84
Merit: 10


Side-stepping the matrix | Bit by bit


View Profile WWW
June 30, 2011, 04:31:35 AM
 #7

I don't see a point to keeping track of failed attempts - the likelihood of a repeat is very very small.

Well, from my experience, as a pooled miner, you don't actually see any lists of failures or successes. And why would you want to, as you're not the one putting in the brain power? As I keep generating payouts, I know that my computer (and other's using my Bitcoin Bonus code) is helping towards the solving of a block.

Not sure how it works for solo miners, although I can't see why they'd need to know either. We're talking millions of hashes per second. Who'd want to be looking through such a list, and why?

raresaturn (OP)
Full Member
***
Offline Offline

Activity: 168
Merit: 100


Everyone Is A Bank


View Profile
June 30, 2011, 04:40:33 AM
 #8

I don't see a point to keeping track of failed attempts - the likelihood of a repeat is very very small.

Well, from my experience, as a pooled miner, you don't actually see any lists of failures or successes. And why would you want to, as you're not the one putting in the brain power? As I keep generating payouts, I know that my computer (and other's using my Bitcoin Bonus code) is helping towards the solving of a block.

Not sure how it works for solo miners, although I can't see why they'd need to know either. We're talking millions of hashes per second. Who'd want to be looking through such a list, and why?


ARRRRRRRRGH!!!!!   The COMPUTER would be checking the list, not you!!!   Tongue

                 BABB        |[     BANK ACCOUNT BASED BLOCKCHAIN     ]|       Everyone is a bank
▬                       JOIN TOKEN SALE                       ▬
▬▬▬▬▬     JOIN THE COMMUNITY    |    Telegram     ▬▬▬▬▬
Alan Lupton
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
June 30, 2011, 04:47:48 AM
 #9

I gave up on mining a while ago..

why is that? I just began today  Wink
BitcoinBabe
Member
**
Offline Offline

Activity: 84
Merit: 10


Side-stepping the matrix | Bit by bit


View Profile WWW
June 30, 2011, 05:19:14 AM
 #10

I don't see a point to keeping track of failed attempts - the likelihood of a repeat is very very small.

Well, from my experience, as a pooled miner, you don't actually see any lists of failures or successes. And why would you want to, as you're not the one putting in the brain power? As I keep generating payouts, I know that my computer (and other's using my Bitcoin Bonus code) is helping towards the solving of a block.

Not sure how it works for solo miners, although I can't see why they'd need to know either. We're talking millions of hashes per second. Who'd want to be looking through such a list, and why?


ARRRRRRRRGH!!!!!   The COMPUTER would be checking the list, not you!!!   Tongue

LOL.

Hmm... OK, I guess you're trying to figure out how to make the work less difficult for your mortgage idea...?

Tongue

raresaturn (OP)
Full Member
***
Offline Offline

Activity: 168
Merit: 100


Everyone Is A Bank


View Profile
June 30, 2011, 05:25:01 AM
 #11

I don't see a point to keeping track of failed attempts - the likelihood of a repeat is very very small.

Well, from my experience, as a pooled miner, you don't actually see any lists of failures or successes. And why would you want to, as you're not the one putting in the brain power? As I keep generating payouts, I know that my computer (and other's using my Bitcoin Bonus code) is helping towards the solving of a block.

Not sure how it works for solo miners, although I can't see why they'd need to know either. We're talking millions of hashes per second. Who'd want to be looking through such a list, and why?


ARRRRRRRRGH!!!!!   The COMPUTER would be checking the list, not you!!!   Tongue

LOL.

Hmm... OK, I guess you're trying to figure out how to make the work less difficult for your mortgage idea...?

Tongue

heh that's one application... Wink

                 BABB        |[     BANK ACCOUNT BASED BLOCKCHAIN     ]|       Everyone is a bank
▬                       JOIN TOKEN SALE                       ▬
▬▬▬▬▬     JOIN THE COMMUNITY    |    Telegram     ▬▬▬▬▬
nonameo
Member
**
Offline Offline

Activity: 112
Merit: 10



View Profile
June 30, 2011, 05:29:17 AM
 #12

Okay, I will try to explain stale shares to the best of my ability.

Currently everyone mining is trying to solve a block(the system is set up to average 1 block every 10 minutes)

However, let's say you were working on a block, but before you could finish your work the block was solved! what happens to what you were working on?

it's stale Tongue (really though, I think stale is a more catchall for "we didn't take this share because it doesn't work for the current block")


ahhh okay I think I have a better analogy Tongue

let's say you're at a slot machine. each time you put a quarter in the machine accepts it and you pull the lever and try to win(not guaranteed, but your quarter was recognized as a real quarter). But let's say you put a quarter in and the machine doesn't like it - it spits it back out at you! it thinks you gave it a penny, or maybe a canadian quarter Tongue your coin was stale.

raresaturn (OP)
Full Member
***
Offline Offline

Activity: 168
Merit: 100


Everyone Is A Bank


View Profile
June 30, 2011, 07:04:26 AM
 #13

Okay, I will try to explain stale shares to the best of my ability.

Currently everyone mining is trying to solve a block(the system is set up to average 1 block every 10 minutes)




Is everyone trying to solve the same block?

                 BABB        |[     BANK ACCOUNT BASED BLOCKCHAIN     ]|       Everyone is a bank
▬                       JOIN TOKEN SALE                       ▬
▬▬▬▬▬     JOIN THE COMMUNITY    |    Telegram     ▬▬▬▬▬
nonameo
Member
**
Offline Offline

Activity: 112
Merit: 10



View Profile
June 30, 2011, 07:27:07 AM
 #14

Okay, I will try to explain stale shares to the best of my ability.

Currently everyone mining is trying to solve a block(the system is set up to average 1 block every 10 minutes)




Is everyone trying to solve the same block?

That is my understanding.

kinlo
Sr. Member
****
Offline Offline

Activity: 263
Merit: 250


Pool operator of Triplemining.com


View Profile
June 30, 2011, 11:16:28 AM
 #15

Everyone is trying to generate a block on top of the last one.  So yes everybody is trying to mine the same block, but with different contents.

When you mine you define the contents.  And the contents consist out of the current transactions, but also the generation of new coins: new coins are generated to your own bitcoin address, or the address of a pool.

But solomining is useless unless you have a lot of miningpower.  Consider joining a pool!
compro01
Hero Member
*****
Offline Offline

Activity: 590
Merit: 500



View Profile
June 30, 2011, 03:11:09 PM
 #16

Okay, I will try to explain stale shares to the best of my ability.

Currently everyone mining is trying to solve a block(the system is set up to average 1 block every 10 minutes)




Is everyone trying to solve the same block?

depends on your definition of "the same block".

they're all trying to find a block which meets the requirements of the next block (has the hash of the previous block in its header and has a hash less than or equal to the target), but you're not running the same numbers during that attempting, namely different subsidy payout address (transaction 0 of a block) and different sets of transactions (or even no transactions at all except the generation subsidy, though this is rather assholeish unless there are no unconfirmed transactions waiting).

in a pool, everyone is working on the same set of data, which is given out by the pool server.  from the perspective of the network, a pool is just a single really big miner.
raresaturn (OP)
Full Member
***
Offline Offline

Activity: 168
Merit: 100


Everyone Is A Bank


View Profile
June 30, 2011, 09:42:41 PM
 #17


they're all trying to find a block which meets the requirements of the next block (has the hash of the previous block in its header and has a hash less than or equal to the target)

This is what I find confusing...why can't you just use a hash of 1, which would surely be less than the requirement.  Doesn't sound difficult...

                 BABB        |[     BANK ACCOUNT BASED BLOCKCHAIN     ]|       Everyone is a bank
▬                       JOIN TOKEN SALE                       ▬
▬▬▬▬▬     JOIN THE COMMUNITY    |    Telegram     ▬▬▬▬▬
compro01
Hero Member
*****
Offline Offline

Activity: 590
Merit: 500



View Profile
June 30, 2011, 10:05:43 PM
 #18


they're all trying to find a block which meets the requirements of the next block (has the hash of the previous block in its header and has a hash less than or equal to the target)

This is what I find confusing...why can't you just use a hash of 1, which would surely be less than the requirement.  Doesn't sound difficult...

you need the block such as the hash result of that block is less than the target.  you can't just arbitrarily pick the hash.

You take the block header, run it through SHA-256 twice, and check whether that hash output is less than the target.  if not, you increment the nonce value (which completely changes the hash value, due to the avalanche effect) and try again, over and over, until someone finds a valid block, then you start it all over again with a new set of transactions, etc.
raresaturn (OP)
Full Member
***
Offline Offline

Activity: 168
Merit: 100


Everyone Is A Bank


View Profile
July 01, 2011, 01:45:59 AM
 #19



You take the block header, run it through SHA-256 twice, and check whether that hash output is less than the target.  if not, you increment the nonce value (which completely changes the hash value, due to the avalanche effect) and try again, over and over, until someone finds a valid block, then you start it all over again with a new set of transactions, etc.

Ok, so instead of increasing the nonce to randomly genrate a new hash value, is it possible to set your miner to just increment (or decrement) the hash value by one each time and go through them sequentially , thus eliminating re-tries?  It seem to me that that current way of doing it is a bit like playing Battleship without the white pegs.

                 BABB        |[     BANK ACCOUNT BASED BLOCKCHAIN     ]|       Everyone is a bank
▬                       JOIN TOKEN SALE                       ▬
▬▬▬▬▬     JOIN THE COMMUNITY    |    Telegram     ▬▬▬▬▬
nonameo
Member
**
Offline Offline

Activity: 112
Merit: 10



View Profile
July 01, 2011, 02:47:11 AM
 #20

No you can't do that... but by using a new nonce you pretty much ensure that you won't get the same hash again.

Pages: [1] 2 »  All
  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!