Questions tagged [mining-theory]

This tag should be used for questions about the function, the reason for, and the underlying concepts of mining.

Filter by
Sorted by
Tagged with
0
votes
0answers
39 views

Is there a way to know how good a miner is choosing its transanctions to be mined from a fee maximization point of view?

Well, this is the way I've tried: When a mined block arrives to my node, I compare it against a transaction selection algorithm using my mempool. (I know my mempool it's different than the miner's one,...
0
votes
1answer
225 views

How to install the latest bfgminer binaries directly from terminal without 'aptitude' on a raspberry pi 4 8gb running raspbian?

months ago I found an entry on StackExchange or somewhere else on how to install the latest (!) bfgminer binaries directly from terminal. I can not find the stackexchange post, no matter how deep I ...
0
votes
2answers
58 views

Is MEV possible on bitcoin?

Miner Extractable Value (MEV) is a big topic in the life of Ethereum users, and it creates an additional revenue source for the miners. Is MEV possible on the Bitcoin blockchain as well? And if yes/no,...
1
vote
1answer
357 views

Does each miner in a bitcoin mining pool have a chance to win the block reward?

Suppose there is mining pool XYZ. 10 miners, 1 through 10, are subscribed to it and miners have varying hash power. Some have 10 GPU mining rigs, while others have just a single CPU running 24 hours a ...
0
votes
2answers
61 views

What is the actual working implementation code used in double hashing a block header in c++?

I need to successfully generate a hash value based on what i feel so far has been described as a hexadecimal filtered sha256 implementation... or something like that. I've been here , here , here, ...
0
votes
1answer
31 views

blockchain nodes that dont get the new block

i read somewhere that after 40 second of creating a new block in the blockchain there's still 5% of the nodes that does not have the block, what happens to them if they were offline or down at that ...
3
votes
4answers
788 views

Why is the probability of finding a winning nonce exactly the same for a new header and a header where you've already tried 1 billion nonces?

I'm referring to this question: When do miners stop waiting for new transactions? More specifically, this statement from the top answer: "suppose you have a block header h1 on which you have ...
0
votes
0answers
37 views

Number of miners and security

Where would one look for thoughtful estimates of the number of miners necessary to provide a reasonable level of security, for various definitions of "reasonable"?
1
vote
6answers
131 views

Where does compensation to miners come from?

I am still learning so my terminologies might not be entirely accurate. But I understand that in the traditional model, if person A pays person B $10, then the banks subtract $10 from person A's ...
1
vote
1answer
575 views

If a lot of miners start at nonce 0, how are there no ties?

I understand what happens with ties (in the long term, the longest chain wins), however, if a majority of miners start with a nonce of zero, does it just matter who has the fastest hardware, or is ...
3
votes
1answer
145 views

Understanding POW and transactions

If I understand correctly, when calculating a proof of work, the entire header is being used in a sha256 function. Now, whenever a new transaction is added to a pre-mined block, the header completely ...
0
votes
1answer
32 views

What function to use to model probabilistic bitcoin mining?

I would like to calculate profitability of various mining strategies. For that, i need to simulate many random mining intervals, that reflect probabilistic distribution of real block mining. What ...
0
votes
0answers
17 views

Use Hash rate for usfull things [duplicate]

You hear often that Bitcoin is using so much power/energy. It is explained to me that all the nodes in the network compete to mine the next bitcoin block by resolving calculations. Would it be a idea ...
0
votes
1answer
617 views

Is there only one method? for miner and pool communication?

I tried doing some sort of filtering on XMRig using wireshark on an ETN pool and I found that XMRig was using login method of JSON-RPC 2.0, my question is does all miners use this method? By "all" I ...
0
votes
1answer
173 views

ELI5: does the number of 0's required in mining for SHA256 over the years strictly increase, or does it depend on how many miners there are?

It is said that to discover a block, the person has to get a SHA256 number that has all 0's for the first 72 bits. Does this number 72 change and become bigger and bigger over the years (say, every 4 ...
0
votes
1answer
55 views

How do i create/implement a midstate function (One that can accurately calculate the midstate of already mined blocks)

I'm creating an AI controlled bitcoin miner but I'm having trouble manually & locally creating a midstate function to be used for optimizing the mining process. Basically I've created independent ...
2
votes
3answers
90 views

Trust in bitcoin networking

I am new to the subject, but as I was studying I wasn't able to understand something and I would appreciate if anyone could help me. I understand that in most aspects bitcoin doesn't rely on trusting ...
1
vote
1answer
43 views

Miner attack lightning network

Can miners attack lightning network making it unusable with the hope that the transaction are forced to be processed on-chain, and they earn more transaction fee?
10
votes
2answers
2k views

Why doesn't the same miner always win?

If the miner with the strongest ability to solve the block wins, why doesn't the same miner win every time? Wouldn't that miner still have the strongest ability to perform the proof of work on the ...
4
votes
3answers
321 views

Could miners create a cartel to raise transaction fees?

Could miners with enough mining powers (say >95% of all blocks) form a cartel where they demand absurdly high transaction fees? Of course, I still could could hope for a miner not in that cartel to ...
0
votes
0answers
30 views

Bitcoin mining for the regular person? [duplicate]

Is it feasible for a regular person to mine crypto like Bitcoin with just a couple of machines? Or is the wear and tear to those machines coupled with the electricity costs just too much to make it a ...
0
votes
0answers
38 views

Start mining without the need to downlod the 360gb blockchain

I am new to bitcoin mining but at least i understand the mathematics behind - the sha256 and finding nonce, i am a junior back-end developer. recently i have being interested in bitcoin mining, as way ...
0
votes
3answers
84 views

Why miners looking for zeros?

I am trying to understand how miners work. Is it true that miners are looking for a number of zeros because if they needed to find the complete hash they will be able to see the content of the ...
0
votes
0answers
116 views

can i diy an asic miner?

Iam interested in mining bitcoin so Iam wondering if I can get a pcb for hashing and bring asic chip that algorithms are sha-256 and stick them together with some other electronics and have a control ...
4
votes
1answer
148 views

How bitcoin miners choose timestamp in block header when mining?

I did a statistic about the difference between the first announcement time in the network and the timestamp in block header for blocks within 2020. Surprisingly, most (93%) differences are less than ...
162
votes
5answers
280k views

What are bitcoin miners really solving?

As with mining, what are the bitcoin miners really solving? I read they are solving hashes, but what does that really mean. Can we see what they are solving? Can someone give an example of what a ...
2
votes
1answer
1k views

If two miners come up with two valid nonces, how does consensus take place?

I am trying to understand how the consensus mechanism works. My understanding is that multiple nonces can satisfy the target hash requirement. What I'm trying to understand now is: if two miners come ...
0
votes
2answers
74 views

Bitcoin could work in principle with pen and paper and carrier pigeons. Could it?

Bitcoin could work in principle with pen and paper and carrier pigeons bringing the result of computations-by-hand back and forth to a public square: the ledger would work, but its intended use case ...
0
votes
3answers
84 views

How much time do miners spend validation?

Before mining, miners have to validate previous block and transactions which exist in mempool. Then, they pick up some validated transactions from pool and start mining on top of validated block using ...
0
votes
0answers
26 views

Mining logistics/algorithm beginner numerical example?

I'm learning about the bitcoin mining process. I'm a learn-by-example type, so I'm wondering if anyone has come across the following: A numerical example of the bitcoin mining process. How to get the &...
0
votes
1answer
96 views

What is the correct way to calculate timestamp for a Block(125552)?

I am just learning mining process. Today I learned that we have to find nonce for given block header. And for block header we need timestamp in UTC I took the timestamp data from below link of 125552 ...
0
votes
2answers
114 views

A question about transaction broadcasting and block creation

Let's say we have transaction X and transaction Y. The timestamp of X is chronologically earlier than that of Y. X's spender broadcasts X to the network and the same goes for Y's spender. Let's say ...
1
vote
1answer
145 views

What is the relationship between bitmain-freq, Hashrate and Power Consumption?

I am running a few old miners (T9+) to heat my home and they are too loud and making a loss (which is ok, as I am interested in the heat). Following this suggestions (sticking with the standard ...
0
votes
2answers
49 views

Help a newbie. Need software [closed]

I want to invest in a mining farm. Everywhere I find only pieces of information. Help please - you need: What software is needed and for what. Where to begin. Equipment and installation conditions. ...
0
votes
0answers
11 views

How do you pay cryptocurrency miners? [duplicate]

I understand that miner A confirms a transaction and is then paid a certain amount of bitcoin. But is it not that other transaction? That is, someone pays miner A then another miner B has to confirm ...
26
votes
6answers
34k views

What happens to the bitcoin network when the miners all stop in the future?

What happens to the bitcoin network when the miners all stop, years in the future after all the bitcoins have been mined? How will the network continue to function? Won't bitcoins then be useless? ...
1
vote
2answers
437 views

Why Bitcoin does not use bcrypt for hashing?

I've read that bcrypt is a hashing library that can adapt to Moore's Law and I thought that would be great for the network to adapt in a flexible manner its security to its respective growing ...
0
votes
2answers
74 views

How can double-spending occur?

I'm new to Bitcoin and trying to understand how the double-spending problem can occur and implicitly, the need for "mining". Let's say Bitcoin worked the following way: In the network, one ...
2
votes
1answer
169 views

What prevents miners from inserting fake transactions given SegWit?

If I'm understanding segwit correctly, miners have to verify signatures in order to include a transaction into a block that they are mining. However, miners are not required to verify signatures in ...
2
votes
2answers
177 views

Do nodes or miners have ids

Do bitcoin nodes or miners have ids that can be used to identify them. Like how do we know if it is the same miner that has added several blocks consecutively? Or how can I identify a node uniquely?
0
votes
0answers
10 views

Custom hardware mining on a block header

I am looking for a hardware miner that would allow me to send it a block header and it would loop through the nonce performing hashing and return either a success with the nonce number or fail (once ...
0
votes
0answers
12 views

Is the block header the data that gets hashed or is it the info of the transactions that get hashed? [duplicate]

I just need to know what is the data that gets hashed. Also if the nonce is put from the beginning or if it's only out if it doesn't meet the requirements of the target. Thanks.
2
votes
1answer
110 views

What is the meaning of Bitcoin terms like `Tx`, `Block-Header` and `Target`

Hello can you please explain what "TXes" are and What "Block Headers & Targets" and "Headers Below Target" mean. Thank you very mcuch.
4
votes
1answer
3k views

Can Artificial Intelligence be used to mine BitCoins faster?

Can Artificial Intelligence be used to find more efficient mining algorithms? Is there only one algorithm that can be used to mine? EDIT: Asking about running the SHA(SHA(block header)) more ...
0
votes
0answers
17 views

Help regrading validating a raw Hex Block on desktop?

Is there a desktop C++/Python library to take a raw hex bitcoin block as input and then break it down to various parameters and print it. Moreover it should be able to validate the structure of a ...
0
votes
1answer
47 views

Inactive nodes, validation & 51%; full & partial nodes; validation by miners vs wallets

Questions Suppose a node doesn't have internet connection then it would not receive the broadcast of other nodes then does the blockchain propagates without the validation of that node ( that is, is ...
0
votes
1answer
118 views

Some doubts regarding the structure of the Coinbase Transaction?

I was trying to understand the structure of coinbase transaction. I tried a few sources but I still have a few doubts regarding the structure with exactly 1 output. Here is what i know and the doubts ...
0
votes
1answer
50 views

What parts of a block, other than the nonce, can a miner vary

What are the list of all the variables whose values that the miner can cycle or modify to get a valid hash for this block (with very high probability) ? The only one I am aware of is: Nonce - 4 Bytes....
1
vote
1answer
81 views

How to call `getblocktemplate` without running a full node?

I was trying to get into bitcoin mining but I could not find any useful information on calling getblocktemplate without downloading the entire blockchain. Is there a way to get blocks for mining ...
0
votes
1answer
93 views

Some questions about specifics on bitcoin mining

Most people mine bitcoin by launching a software on their PC or buying a special miner, both of which abstract out the nitty-gritty of how the mining process work. I am curious however about some ...

1
2 3 4 5
16