Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [getwork]

Refering to the getwork protocol used by bitcoind.

Filter by
Sorted by
Tagged with
23 votes
2 answers
28k views

What is the extraNonce?

This question helps identify the various components of the getwork "data" field, but I'm curious where the extraNonce comes from. My hunch is it's the first four bytes of the second half of the data, ...
ConstableJoe's user avatar
5 votes
1 answer
1k views

In Getwork, how does one calculate the value of Hash1?

(I know the hash1 and midstate are eventually going to be deprecated, but I'm a little curious about them) In Getwork there is a field hash1. From a sample call to bitcoind I received its value as: '...
ThePiachu's user avatar
  • 43.1k
9 votes
2 answers
52k views

What options are there to combine mining over multiple computers?

Assuming you have multiple (30+) computers, what options are there available to do a distributed solo-mine? Can I have them all checking into one bitcoin application over the network, or do I need to ...
kiyote's user avatar
  • 93
5 votes
2 answers
7k views

Protocols for use between mining clients and mining pool servers

Which protocols are there for mining clients to communicate with mining pool servers? How do they compare?
Dr.Haribo's user avatar
  • 8,469
2 votes
1 answer
1k views

Should I use getwork or getblocktemplate

I am working on an fpga mining device just for fun. I realized that there is a getblocktemplate function which replaces the getwork Json-rpc call. So do I need to switch over to it and change all the ...
Enthusiast's user avatar
1 vote
1 answer
1k views

I am unable to figure the getwork api

I called bitcoind getwork slightly earlier in the day and this is what I got: { "midstate" : "6d8b2d759123e7311c552f0c99f6d520378062ac7a14fb11f6d433779d282faf", "data" : "...
Enthusiast's user avatar
9 votes
3 answers
3k views

How do I keep my miners from doing duplicate work?

Someone has n machines to mine for bitcoins. What's the simplest way to ensure that mining work isn't duplicated? (Will separate machines naturally work on different hashes even with the same ...
billpg's user avatar
  • 2,030
7 votes
1 answer
4k views

How does a miner perform hashing?

I'm trying to walk my way through the process by which a miner hashes. Let's say the getwork request returns a data field of: ...
ConstableJoe's user avatar
6 votes
1 answer
3k views

What is the standard protocol for pools/miners?

The Bitcoin client protocol is well documented in the Bitcoin Wiki, but I can't find much on the protocol used by pools and miners. Is it described anywhere?
ThePiachu's user avatar
  • 43.1k
5 votes
1 answer
2k views

JSON-RPC getwork data field

I recently tried playing around with the getwork command for JSON-RPC and I'm trying to understand what I got out of it. According to the API Call List wiki entry, the "data" field should contain the ...
ThePiachu's user avatar
  • 43.1k
5 votes
3 answers
5k views

How can I code a Bitcoin JSON-RPC "getwork" request in Java?

I'm not entirely sure whether to ask this question on Bitcoin-SE or Stack Overflow, but I decided to post it here due to the direct relevancy of the question to Bitcoin and the general prominence of ...
BinaryMage's user avatar
  • 1,346
4 votes
1 answer
2k views

What are midstate and hash1 used for in mining?

The first answer here does a good job explaining how the SHA-256 function requires more than one input (an initial one is specified by to the SHA-256 specs). As far as I understand it, the "midstate" ...
ConstableJoe's user avatar
3 votes
2 answers
2k views

Pool getwork "target"?

In a getwork request, bitcoind sends a target corresponding to the current block's bits value. Do the major pools send the same target as one would expect from bitcoind, difficulty of "1" target, or ...
ThePiachu's user avatar
  • 43.1k
3 votes
1 answer
754 views

How does the rate of getwork requests correlate with the hashrate of a miner?

In a setup where a standard bitcoind serves full difficulty targets to some mining nodes, how can I calculate the hashrate of a mining node from looking at the rate of getwork requests? Does this ...
Noah's user avatar
  • 1,479
1 vote
1 answer
1k views

What does nonce mean?

I'm trying to learn how litecoins work (and learn new programming language at same time by writing a crappy little miner). I'm stuck with getdata. Here http://litecoin.info/wiki/Scrypt it says that ...
if __name__ is None's user avatar
0 votes
1 answer
452 views

Bitcoin pool with GETWORK support

I study bitcoin and found a simple open source miner on githab. It runs on the CPU, and uses the outdated GetWork protocol, but it's enough to study. Is there now a bitcoin pool that still supports ...
Dmitrii's user avatar
  • 101