Bitcoin Forum
December 05, 2016, 02:38:48 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: midstate and data updating but target does not  (Read 1014 times)
Eli
Full Member
***
Offline Offline

Activity: 128



View Profile
June 11, 2011, 02:52:12 AM
 #1

I'm trying to understand how mining works, so I set myself to build a mining PHP script (I know it's not efficient! Tongue I'm just trying to understand the processes that go in mining bitcoins).

Basically I'm doing bitcoinRPC -> getwork(), which returns always the same hash1 and the same target (except when target changes).

While the target I have in the database is the same to the one I just got from getwork(), I should keep counting from 0 until I fend the golden ticket, or should I start counting from 0 again using the new midstate and data, or should I continue using the old ones that I have?

The reason I ask is because I'm trying to create a pool client/server in PHP, and my client is a php script that goes to the server script which is the one that gives "work" to clients, basically just counts from 0 up to 1024 for every new client that asks for data (1Kh/client I know, I will improve this!).

Thanks!
1480948728
Hero Member
*
Offline Offline

Posts: 1480948728

View Profile Personal Message (Offline)

Ignore
1480948728
Reply with quote  #2

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

Posts: 1480948728

View Profile Personal Message (Offline)

Ignore
1480948728
Reply with quote  #2

1480948728
Report to moderator
1480948728
Hero Member
*
Offline Offline

Posts: 1480948728

View Profile Personal Message (Offline)

Ignore
1480948728
Reply with quote  #2

1480948728
Report to moderator
Eli
Full Member
***
Offline Offline

Activity: 128



View Profile
June 11, 2011, 12:03:58 PM
 #2

Am I asking the question wrong or something?

On the mining forum I asked a similar question yesterday, and it simply sank down Sad

Please just tell me am I doing this calculations right or not, I think I'm just wasting electricity Sad
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!