Bitcoin Forum
November 18, 2024, 10:35:02 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: API functions that are called when you add a worker  (Read 754 times)
bitcoin_builder (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
January 27, 2014, 05:57:47 PM
 #1

When you add worker in a mining pool what happens at the back end? I am basically asking from bitcoin API point of view as to what functions are called when you add a worker in mining pool. This is the API I am talking about:

https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
January 28, 2014, 01:49:03 AM
 #2

Nothing happens. Afaik, Bitcoin has only one user and password, the pool acts as proxy to the bitcoin daemon. The pool takes care of share counting, validation(only if a share matches the target does it get sent to the daemon). So workers is a feature of the pools, not the daemon.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
bitcoin_builder (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
January 28, 2014, 06:10:08 AM
 #3

Oh so that means all the methods that we see for e.g. PPS etc. are based on ones own formulas?!
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
January 28, 2014, 01:16:22 PM
 #4

Oh so that means all the methods that we see for e.g. PPS etc. are based on ones own formulas?!
Not exactly, but some people do think of their own payout methods.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
Rannasha
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
January 28, 2014, 02:31:05 PM
 #5

Oh so that means all the methods that we see for e.g. PPS etc. are based on ones own formulas?!

It means that payout distribution calculations are entirely done by the pool software, not by the bitcoin client.

Miners submit their shares to the pool software, the pool software validates them and logs them in a database for the relevant user. If the share is of high enough difficulty to be valid for a block, it is passed on to bitcoind (or whatever software is used to interact with the bitcoin network). The bitcoin-balance of each account in the pool is then calculated by the pool software again. If a user withdraws his balance, the pool software calls the relevant bitcoin API function to create and send a transaction.
bitcoin_builder (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
January 28, 2014, 05:21:31 PM
 #6

Thanks. Now I am getting the hang of it. I know there are a few middleware softwares available but I wanted to create my own but I didn't know where to start.
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!