Refering to the getwork protocol used by bitcoind.
0
votes
1answer
79 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 ...
0
votes
1answer
158 views
Mining: GetWork, Get Nonce, ???, Submit Hash?
I make a getwork request and get back data, hash1, midstate, and target. Mining on a KC705 development FPGA board, and following the readme.md file here:
...
1
vote
0answers
69 views
Please explain getwork
Request:
POST / HTTP/1.1
Host: de.btcguild.com:8332
Accept: */*
Accept-Encoding: deflate, gzip
Content-type: application/json
X-Mining-Extensions: longpoll midstate rollntime submitold
...
2
votes
1answer
158 views
How are pools protected from a client “pretending” to mine?
I understand that the GetWork JSON API is used to get a block that needs to be hashed.
I also understand there are many pool payout methods (PPS, etc).
With regard to mining clients and the pool ...
1
vote
0answers
190 views
Is my idea of getwork protocol for bitminer right?
I am trying to understand the idea behind getwork protocol, by sniffing my communication with a bitminter miner pool.
Previously I have read the discussion here, but looking at my packets, I think ...
6
votes
1answer
257 views
Example accepted getwork function input and output?
I'm looking for example getwork input and output of a successful block hash to verify a getwork client I've implemented.
I'd also accept suggestions on better ways to verify this. I've looked at ...
2
votes
1answer
70 views
Does the getwork id value do anything?
When sending a getwork request, one always includes an id value. Does this value have any meaning? Will it cause problems to have multiple miners use the same id? Furthermore, if I wanted to send some ...
3
votes
1answer
900 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:
...
3
votes
1answer
308 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, ...
3
votes
1answer
253 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" ...
2
votes
2answers
88 views
Could many large forks cause a DoS attack on the miner?
Suppose it was possible to influence a miner to create many forks. My understanding is that a miner won't retransmit the fork, but will track it internally.
Where is this information saved in a ...
4
votes
1answer
361 views
What are the internal details of GetWork() .. the foundation of Bitcoin mining?
According to this answer GetWork() sends "a chunk of data containing the block data, including the randomized bits, and the nonce (the bit which the miner changes)."
Can anyone provide details on ...
2
votes
1answer
250 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 ...
4
votes
2answers
114 views
How soon does bitcoind incorporate locally solved blocks into its 'getwork' output?
If one sends a solved block to bitcoind server using getmemorypool or getwork, and right after that requests a new block using the same API call, what will the server respond with? Assuming the data ...
2
votes
1answer
138 views
Getwork and GetMemoryPool - why is previous block hash different?
When I called:
print bitcoin.getmemorypool()
print bitcoin.getwork()
using Python JSON for a testnet BitcoinQT server, I got the following responces:
{'previousblockhash': ...
2
votes
2answers
639 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 ...
3
votes
1answer
286 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:
...
4
votes
1answer
160 views
Getwork - can the miner increment timestamp?
When requesting getwork from bitcoind or a pool, the miner is expected to be incrementing the nonce value of the block, but can it also increment the timestamp value, or would such tempering cause a ...
2
votes
3answers
573 views
Bitcoin pool and getwork data validity
Bitcoin pools need to check data returned with getwork for validity (proper hashing result, etc.). Bitcoind that issues the initial getworks is also able to perform some data checking, but it might ...
1
vote
1answer
200 views
Miners - HTTP JSON-RPC or JSON-RPC?
Does the main miner software used currently use HTTP JSON-RPC, or JSON-RPC? That is, do they use HTTP calls to obtain getwork, or TCP/IP?
3
votes
1answer
356 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 ...
1
vote
2answers
185 views
Mining software not using Json-RPC?
Is there some mining software out there that doesn't use Json-RPC as a communication method with the mining pool? If so, what protocol are they using?
4
votes
1answer
3k views
How does one mine Namecoins?
In order to mine Bitcoins, one needs to start the bitcoind with "-server" flag and later request from it a getwork to solve. Does the Namecoin client operate in the same way, or is there some specific ...