Questions tagged [mining-theory]

Questions about the function, reason for, and underlying concepts of mining.

Filter by
Sorted by
Tagged with
2
votes
1answer
108 views

Validate the result of a job sent by a miner

I'm implementing my own mining pool and I need to know how the result of a job obtained from a miner is validated. I looked at the snipa22's code but have a small doubt. When sending a job to miner: ...
2
votes
1answer
46 views

Steps to generate a job for miners using a mining pool

I'm working on building a mining pool from scratch and it'd be really helpful if someone explained the steps to generate a job for miners. Let's say I have 10 miners connected to my pool, what are the ...
1
vote
1answer
37 views

Code a mining pool from scratch

I'm looking for resources to get me started on coding a mining pool from scratch. I know there are several mining pool implementations and it's reinventing the wheel, but I want to do it so I can ...
3
votes
1answer
553 views

What's the difference between the CryptoNightR and RandomX algorithms?

My understanding is that CryptoNightR randomly creates different calculations for each block, and that RandomX does the same, but using a system where any bytecode can be translated into a calculation....
0
votes
1answer
114 views

What exactly do miners communicate with a pool?

What JSON messages are exchanged with the pool, and how does one connect to a pool? With mining.subscribe? I read somewhere that the stratum protocol that CryptoNote coins use is different to, say, ...
0
votes
1answer
50 views

How can I generate the blockhashing blob for my Python miner?

I am in the works of making a pool-compatable fully python miner, and I need to know how to generate the blockhashing blob for the miner.
1
vote
1answer
122 views

Can someone show me how to hash with CryptoNight in Python?

I need a Python(2 or 3) Monero miner that outputs hashes to terminal. Please ask me if you need clarification.
0
votes
1answer
52 views

Which fork version is the py-cryptonight hash library using?

I was wondering what version the py-cryptonight library is using. For example, is it CryptoNight lite v2, CryptoNight v8, CryptoNight heavy?
1
vote
1answer
154 views

I'm trying to create a Python miner, can I get some guidance please?

I have been wondering how to make a Python Monero miner. I know about py-cryptonight, but does anyone know anything about how to actually code with it? I understand that cn_slow_hash is for mining, ...
1
vote
1answer
304 views

Is it possible to create a Monero miner in Python?

I would like to create a Python based Monero miner. I know that using Python for mining will likely be slow, but this is just for experimental purposes. Thanks.
0
votes
1answer
95 views

Relation between monero jobs (blob) and new blocks

When you are mining in a Monero pool (e.g.,https://minexmr.com/) you keep on receiving jobs from it. These contain the blob which, after some processing, is mined by the miners. Different jobs ...
1
vote
1answer
44 views

Where in the PoW block header is the variant version?

I asked this question: How do miners, connected to a pool via stratum, know when to switch PoW variant during a hard fork? Which was marked as a duplicate of this question: Can pool miners update ...
0
votes
1answer
67 views

Can pool miners update early and then the pool software will automatically ask its workers for new POW when necessary?

Many people mine Monero in a pool. Monero has recently changed its proof of work, and it is about to do so again. There may be more changes to its proof of work in the future. When miners update ...
1
vote
1answer
48 views

When does validation of blocks occur

At what point does a miner validate blocks shared and created by other miners on the blockchain?
4
votes
1answer
130 views

How is Keccak calculated in Monero?

I am reading the monero's implementation of Keccak (used as first part of slow_hash) in src/crypto/keccak.c I have found that it is a Keccak-256 (with b=1600, c=512, r=1088) and "output" of 1600 bits ...
1
vote
1answer
175 views

How GPU gets its mining work and nonce range?

I tried to study source of both xmr-stak and xmrig to understand how it communicates with the kernel running on GPU, but both these softwares are too huge to understand (too many objects calling each ...
1
vote
1answer
116 views

How does nicehash perform share validation?

I'm talking about two services: NiceHash and MiningRentals and CryptonightV1 algorithm (which they call CryptonightV7), for example. Let's suppose someone trying to fool one of them and: Miner (...
4
votes
1answer
146 views

How do miners attempt to avoid duplicating nonces of other miners? Do they try?

In a very general sense, most people who know about cryptocurrency mining understand that for every block in a proof-of-work blockchain there is a new "challenge" for the miners, and that challenge is ...
4
votes
1answer
132 views

How do I figure out how much a share is worth in the PPLNS world?

I'm trying to figure out how much accepted shares are worth, however small, in a mining pool, situation, specifically of a PPLNS scheme. What is the formula to figure how what a specific share is ...
3
votes
2answers
270 views

Are mining pools shares based on prescribed difficulty or the actual difficulty you hash a block with?

I'm mining Monero as part of a pool (specifically this pool -- https://mixpools.org/xmr/). I'm using a CryptoNoter package to do the mining. The pool will send back work taht looks like {"data":"{"...
2
votes
1answer
166 views

How does a Monero pool confirm/reject a submitted nonce?

I'm trying to get a handle on how the protocol works between Monero miners and pools. Although I've looked at Stratum, the rules seem slightly different with Monero mining. For example, I'm using a ...
0
votes
1answer
87 views

Is there a pool that will tell you the real time shares you've submitted?

I'm trying some mining on my MacBook Pro. Although I don't expect to make any money, I was curious if the software I'm using is actually submitting the shares it is reporting. Is there a pool that ...
3
votes
1answer
95 views

What does the “hashes” field mean in an authentication message received from a pool?

I'm still trying to get a handle on how all this pool mining stuff works so I decided to use this guy's project -- https://github.com/cryptonoter/CryptoNoter/ to give it a whirl. In particular I ...
2
votes
1answer
795 views

Explaining result report at XMR-STAK

Here is the example of result report by XMR-STAK: RESULT REPORT Difficulty : 13214 Good results : 6330 / 6331 (100.0 %) Avg result time : 10.0 sec Pool-side hashes : 83681055 Top 10 best ...
0
votes
1answer
105 views

Am I understanding PPLNS correctly in this example?

I want to be sure I understand how the PPLNS pool payment system works. As I understand it, the theory is to reward loyal miners as opposed to people who continually switch pools. So I've been ...
2
votes
1answer
433 views

How are Monero blocks found and confirmed? (solo mining)

In case of solo mining - how are Monero blocks found and confirmed? If using monerod - let's say solo mining is started with start_mining somewalletaddress threadcount. What is the principle of block ...
2
votes
3answers
401 views

How to know when I would get any profit by Monero mining program?

I am an absolutely newb to Monero and Blockchain. I download the Monero GUI program from https://getmonero.org/downloads/ and run on my windows system. After sync all block to my local, I started to ...
1
vote
4answers
1k views

More cores are better for Monero CPU mining?

Considering that I have the same intel processor, but one has 4 cores and the other has 8 cores. It will mine better or its the same? I know that several parameters are important but consider that ...
0
votes
2answers
114 views

Monero mining equipments can mine Zcash as well and have the same hashpower?

Is any device capable to mine monero, also capable to mine Zcash (zec)? The hashes per second offered in that equipment for monero would apply also for zcash? That would be helpful for the mining ...
2
votes
1answer
167 views

Why are only 8 bytes of the hash compared with the target?

This is the line in xmr-stak where the hash is compared to the target: if (*piHashVal < oWork.iTarget) executor::inst()->push_event(ex_event(result, oWork.iPoolId)); However, if you look above,...
4
votes
1answer
529 views

Formulas for calculating current target and difficulty

I'm looking for formulas on how Monero/CryptoNight/Keccak1600 are calculating difficulty and current target. E.g. something like: max_target =? current_target = f(max_target, blockrate) //some ...
0
votes
1answer
592 views

where does “my pending balance” stay until I receive my payment in mining pools? [duplicate]

where does "my pending balance" stay until I receive my payment in mining pools? what is the procedure? where/how pool keeps the pending balance?
0
votes
1answer
304 views

ViaXMR payouts time length

I've been mining on ViaXMR.com for nearly a month now and still no payout, is this because its a small pool or something else? Hobbyist miner using one GPU/CPU
2
votes
1answer
403 views

C/C++ - What is nonceptr in scanhash_cryptonight function?

This is a C/C++ programming question related to CPU mining. In the source code for CPU miners wolf-xmr-miner, cpuminer-multi et al there is a function called scanhash_cryptonight that has this the ...
5
votes
1answer
804 views

How to Generate a Blob for PoW Hashing

The Cryptonight PoW hash function (cns008) expects an input (a blob on which to mine a new block). I know that a mining blob can easily be obtained via the monerod daemon's JSON-RPC interface by ...
1
vote
1answer
308 views

Byte reversing (nonce and resulted hash)

I've tcpdump'ed a session with my miner and xmr pool (port difficulty 1063). My miner sent the pool this result: { "id":2, "jsonrpc":"2.0", "method":"submit", "params":{ "id":......, "...
4
votes
2answers
4k views

How many hashes are needed to solve a Monero block of difficulty 1?

For example, for ZCash, it takes, on average, 8192 hashes (aka "solutions") to solve a block of difficulty 1. That number is determined in the source code by a 256-bit target threshold (...
-2
votes
1answer
55 views

Private Block chain App

I would love to use monero to "power" my private block chain app. Would this be overkill? Would ethereum be secure "enough"?
3
votes
0answers
187 views

A Miners Future [closed]

I want to support the Monero network and eventually fill a warehouse with miners. Will there ever be a point where the reward for mining is no longer justifiable? For example, before BitCoin split, ...
7
votes
2answers
2k views

How does the dynamic blocksize and the dynamic fees work together in Monero?

This mechanism is unique to Monero because it's the only cryptocurrency to have both blocksize and transaction fee dictated by an algorithm, how was this achieved and what is the rationale behind such ...
7
votes
1answer
2k views

How can I Mine Monero using a Processor in Memory PCIe Card?

Where can I find out more (enough) about Processor in Memory (PIM) Mining (Monero and a few suitable other Cryptocurrencys) on a PCIe Card? One example of such a Card is the Micron D480 Automata ...
3
votes
2answers
176 views

Does a node that is more geographically centered in the Monero network have a higher chance of mining a block?

As nodes are in competition with each other over who mines the next block first, does geography play a role in that competition? Would a 100 KH/sec mining pool located in, for example, Plettenberg Bay,...
5
votes
1answer
332 views

Cryptonote SHA3 bigger than 64byte? (Scratchpad Initialization)

The cryptonote whitepaper says First, the input is hashed using Keccak [KECCAK] with parameters b = 1600 and c = 512. [..] That's nothing else as hashing the input with SHA3. The size of a ...
3
votes
1answer
2k views

Is it private pool mining efficient?

I have several machines ready to mine. Is it more efficient to setup one machine as the central "pool"(e.g. with a software like this) and connect other machines/miners to it or is it more efficient ...
2
votes
0answers
125 views

Descriptive tutorial on mining Monero and information on files as per “Monero-v0.10.3.1”

It will be very grateful, if someone can post the descriptive tutorial on installing Monero (solo and pool) from scratch with the explanation around different files as per "Monero-v0.10.3.1.Zip." ...
7
votes
2answers
953 views

Are [solo] mining yield calculations like dice or playing card calculations?

If I want to know how many times I need to roll a die in order to have a given chance of seeing at least one six, I can use the formula: n = (log(1 - s))/(log(1 - p)) where n is the required number ...
2
votes
1answer
148 views

Keep mining to replace an already published block

If two miners find a valid block for the same height, the block with the largest difficulty is selected and the other one is rejected by the network (orphaned), regardless of their discovery timestamp....
3
votes
1answer
293 views

What is the difference between an orphaned block and a alternative block?

I see alternative blocks reorganizing the blockchain in monerod, but my mining pool's orphaned block doesnt show.
7
votes
1answer
97 views

Miner publishes a block to the network with a lag

I just noticed that a pool has "retained" a new block for quite a long time. See snapshot below where the block was found 3 minutes ago but still not pushed to the network (my own node was not seeing ...
9
votes
1answer
312 views

How can block size grow over time when miners are incentivised to keep size small?

Miners are penalised if they mine a block that is larger than a threshold. Miners can make sure that the blocks they mine don't go over that threshold in order to avoid a reward penalty (by adapting ...