Questions tagged [mining-technical-details]

Questions concerned with the technical details of mining such as blockheader assembly, or details in the mining algorithm. Questions about the conceptual nature of mining should rather be tagged with [mining-theory].

Filter by
Sorted by
Tagged with
1 vote
1 answer
315 views

Can't we use all the mining/processing power to calculate useful stuff? [duplicate]

When computers are mining now, they're actually trying to break nonsense codes. Can't all that processing power be used to do better things with like gridrepublic etc.?
user9102's user avatar
13 votes
3 answers
27k views

What are ASIC miners actually doing?

I'm trying to understand Bitcoin mining (software-wise), and I wonder how ASIC miners are different? I'm going through this minimal Bitcoin miner Github repository. Which part of Program.cs are ASICs ...
ewooycom's user avatar
  • 266
0 votes
1 answer
2k views

Bitcoin block hashing algorithm. nonce [closed]

Referencing the Bitcoin wiki, what is the auhoritative source for providing a hash of the previous block? Or do miners keep listening to latest blocks? How is hash of the Merkle root generated? Can ...
Htaras's user avatar
  • 111
3 votes
1 answer
2k views

What values are hashed in the SHA-256 algorithm, and what would be the next iteration until a possible header is found?

I've been doing a lot of reading on mining and software related to mining but I can't quite get my head wrapped around the specific nature of what is being hashed together. So far I feel like the ...
Snarf's user avatar
  • 31
1 vote
1 answer
898 views

Why do we need a mining speed above 4.3Ghash/s?

I believe there will be a simple flaw in my understanding somewhere. From what I can tell for any given block you increment a nonce up to 2^32 (4294967296) per second (and the timestamp every second) ...
extcoin's user avatar
  • 219
4 votes
2 answers
2k views

how exactly was the original coefficient for difficulty determined?

I'm assuming difficulty has a "target" of 10 minutes because the coefficient satoshi chose becomes multiplied by a variable to help the network remain in proportion. IE, if the network hashrate is 2x ...
bvpx's user avatar
  • 1,132
1 vote
1 answer
1k views

Difference between coinbaseaux.flags vs. coinbasetxn.data?

After reading through most of the protocol, and trying to piece everything together, I'm still at a loss as to how some things work. For example, the difference between coinbaseaux.flags and ...
xil3's user avatar
  • 275
1 vote
2 answers
4k views

How to hash data from 'getblocktemplate' request

I've been reading lots of articles, trying to understand how to hash the data returned from getwork; but I totally overlooked getblocktemplate. I'm just trying to understand how all the data below is ...
xil3's user avatar
  • 275
1 vote
1 answer
381 views

if a coinbase reward isn't fully spent, can the coins ever be recovered? [duplicate]

If a pool mines a block and is mistakenly rewarding miners with less coins than they should be given, is it possible for others to recover those coins somehow? Or are they lost forever? For example, ...
bvpx's user avatar
  • 1,132
1 vote
2 answers
395 views

Purpose of unique header in block hashing algorithm

https://en.bitcoin.it/wiki/Block_hashing_algorithm said this about the block header: "Given just those fields, people would frequently generate the exact same sequence of hashes as each other and the ...
selden's user avatar
  • 111
6 votes
1 answer
902 views

What happens when the nonce field overflows?

The nonce field of a block header is 4 bytes, so the max nonce is: 4,294,967,295. That could be computed in a few seconds with a reasonable rig (solo mining) or much quicker on large pools. What ...
Anonymous's user avatar
  • 473
4 votes
1 answer
2k views

SHA256 Implementation Gate Equivalent

I needed help in understanding how to calculate the GE for a SHA256 implementation. I need to calculate the GE of individual functions in the SHA256 hashing algorithm. Could anyone please direct me ...
Balthazar2012's user avatar
6 votes
2 answers
2k views

What happens to extinct blockchains, and transactions inside of them?

While understanding the concept of block chain and proof of work, few things are confusing me. Miners always consider the longest chain(by difficulty) and work on expanding it. Now, lets say two ...
Avikarsha Mandal's user avatar
1 vote
0 answers
777 views

H-not-zero errors

In developing a miner, I noted a few "unknown work" errors -- presumably because I was CPU mining and not responding to the pool in a timely enough manner. However, more disturbingly, I received a H-...
zeta's user avatar
  • 33
-2 votes
2 answers
737 views

Are ASIC miners going to be depreciated due to it overtaking much of the network power in the future?

I read somewhere the Bitcoin developers were thinking about depreciating the ASIC miners since it's overtaking the network in the future by integrating scrypt with the current encryption. Where was ...
Patoshi パトシ's user avatar
2 votes
1 answer
206 views

How do transactions fit into mining? [duplicate]

One question about the inner working of the mining process: I know there isn't such a thing as a block 30% or 99% mined, or a mine is blocked or it isn't, I get it. The thing is: how do the ...
Thiago's user avatar
  • 311
2 votes
1 answer
356 views

How does the block discovery rate of a mining rig relate to the overall computing power of the network?

Is it correct to say that, since the difficulty will keep the block generation rate at 6 per hour on average, that with one-sixth of the network computing power, I will get one block per hour, on ...
Hanno Fietz's user avatar
3 votes
1 answer
5k views

How much does system RAM matter for Litecoin mining?

I know your system RAM cannot be smaller than your GPU RAM for LTC mining, but other than that, is it a problem if you have like only 2GB of RAM?
Thiago's user avatar
  • 311
4 votes
2 answers
1k views

Intrinsically useful proof-of-work using Mersenne or Fermat numbers factorization. Could it be possible? [closed]

I was reading this question and got myself thinking - why can't a crypto-currency use as proof-of-work a difficult problem that has value outside of the network? I understand the effort to produce all ...
Joe Pineda's user avatar
  • 2,118
7 votes
1 answer
4k views

Cheating on pooled mining

What is stopping me from hacking the mining software such that if I do happen to get the right hash I keep it for myself, but if not then I just submit my work done and get my share of the mined ...
KayEss's user avatar
  • 173
1 vote
1 answer
569 views

Find the midstate of an already mined block

I am playing around with a bitcoin miner and wanted to run some tests. Hence I wanted to find the nonce of an already mined block. Lets take http://blockchain.info/block-index/353394/...
Enthusiast's user avatar
3 votes
2 answers
6k views

Bitcoin mining algorithm

I was looking at some sample mining algorithms and also some sample code and there was something which I didnt really understand. In Simple bitcoin mining algorithm he says , The simplest miner would ...
Enthusiast's user avatar
5 votes
3 answers
2k views

Do miners have to hold all the blocks in memory?

Running a miner node, one would have to verify transactions. This includes checking all the inputs of all the transactions. Does this mean that a miner must hold all the block-chain in memory (...
summerbulb's user avatar
2 votes
2 answers
2k views

test cases for hash algorithm anywhere?

RFC4231 gives test cases for SHA256 with several different sets of gozintas and gozoutas. I'm looking for something similar for the SHA256 hash as implemented in the Bitcoin mining algorithm. Based ...
jcomeau_ictx's user avatar
5 votes
2 answers
5k views

What is the difference in hashing algorithm between bitcoin and litecoin?

I am having trouble finding litecoin mining specifications. I would first of all require something like this: https://en.bitcoin.it/wiki/Block_hashing_algorithm Except for litecoins. I need to know ...
if __name__ is None's user avatar
-2 votes
3 answers
1k views

Why can't just any hash be used for a block? [duplicate]

disclaimer: I'm completely new at this, basic computer skills limited to GUI point-&-click I took a look at how difficulty was explained, that it is "increased" by requiring the SHA-256 ...
Rove's user avatar
  • 1
0 votes
1 answer
1k 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: https://github.com/progranism/Open-Source-FPGA-...
SJaguar13's user avatar
  • 101
2 votes
2 answers
1k views

Does the nonce have to be a number?

Since we're just trying to produce a specific hash output, couldn't the nonce also include letters or otherwise random bits?
pinhead's user avatar
  • 4,992
4 votes
1 answer
553 views

A full/multi nonce range search or just a partial range search?

In a work, there are only two elements in the block header change between hash attempts. That is, NTime and Nonce. The miner starts the nonce search to get a valid share, and there are several ...
Jimmy's user avatar
  • 43
14 votes
4 answers
21k views

relationship between bitcoin miner and verification of transactions [closed]

Bitcoin miner mines a block, which can't be submitted to the network without proof of work. And the new block contains all of the new transactions. Hence the new block acts as a security measure, and ...
Sida Zhou's user avatar
  • 349
2 votes
1 answer
736 views

How to generate PPCoins using Proof of Stake?

PPCoins uses Proof of Stake (in addition to Proof of Work) to generate coins. Must the client be online for this generation to happen? Do PPCoins stored in any web wallets / exchanges generate coins ...
ripper234's user avatar
  • 26.5k
5 votes
1 answer
3k views

mining with one client on multiple mining pool

Is it possible to mine on different mining pool using one client? Ok, I know that this sounds ridiculous, but my thoughts are as follows: if I already calculated a lot of hashes for a work for one ...
Salvador Dali's user avatar
1 vote
1 answer
393 views

What mining parameters are not modifiable with ASIC miners?

When ASIC mining devices ship, what parameters of mining become hardcoded? How would these ASIC mining devices respond to any changes to mining procedure / algorithms?
vi.su.'s user avatar
  • 1,842
10 votes
1 answer
30k views

Whats the process of Creating a Block on the BlockChain

have been mining on pools and blindly going a long for the ride of > generating a block Can somebody walk through the process in simple terms of the steps involved in creating a block on the ...
BitCoin New Guy's user avatar
4 votes
1 answer
791 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 ...
Salvador Dali's user avatar
0 votes
0 answers
422 views

Changing the first payout address when a reward + fees is generated

I would like all my mined coins (solo mining, testnet so far) to go to a different default account. I'm not referring to the distribution a mining pool will do to all of its miners (Pay per share, ...
makerofthings7's user avatar
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
23 votes
2 answers
27k 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
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
5 votes
1 answer
2k 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 ...
makerofthings7's user avatar
5 votes
2 answers
722 views

Miner speed conversion

What is the exact ratio one would use to convert Miner speed from Hashes per second to Shares per second, assuming Difficulty 1 shares?
ThePiachu's user avatar
  • 43k
4 votes
2 answers
190 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 ...
ThePiachu's user avatar
  • 43k
0 votes
1 answer
229 views

Which miners support generating their own midstate?

Currently I was testing RPCMiner on my Mac running a custom pool, and it appears to crash because I can't generate a proper midstate value. Which miners support generating their own midstate (as per ...
ThePiachu's user avatar
  • 43k
5 votes
1 answer
439 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 ...
ThePiachu's user avatar
  • 43k
2 votes
3 answers
1k 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 ...
ThePiachu's user avatar
  • 43k

1
2