Questions tagged [mining-theory]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
122 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 (...
2
votes
2answers
94 views

Updated dynamic fee calculation?

I'm hoping to find a current reference that explains how the dynamic block size/fee calculation works? This link has a nice explanation, but a community member on reddit suggested it was out-of-date (...
4
votes
3answers
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 (...
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 ...
2
votes
1answer
821 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 ...
1
vote
1answer
47 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 ...
4
votes
1answer
145 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 ...
0
votes
1answer
127 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, ...
3
votes
1answer
642 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....
2
votes
1answer
115 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
51 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
41 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 ...
0
votes
1answer
54 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
133 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
54 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
182 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
440 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.
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
286 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":"{"...
1
vote
1answer
320 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
1answer
553 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
107 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 ...
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?
1
vote
1answer
191 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 ...
7
votes
2answers
708 views

How do full nodes vs miners secure the network differently?

If I run a full node I am supposedly contributing to network security by keeping a copy of the blockchain If I mine (via pool or solo) I contribute to the network through verification of blocks How ...
4
votes
1answer
134 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 ...
5
votes
1answer
336 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 ...
2
votes
1answer
864 views

Do cryptonight hash speeds mirror scrypt and SHA-256 hash speeds?

There are various websites that tabulate SHA-256 & scrypt hash speeds of various hardware. I wonder how these correspond to crytonight hash speeds. Are they correlated? Or does the correlation ...
4
votes
1answer
151 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 ...
2
votes
1answer
170 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
111 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 ...
3
votes
1answer
96 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
450 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 ...
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
115 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
3answers
433 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 ...
2
votes
1answer
171 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,...
0
votes
1answer
310 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
0
votes
1answer
612 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?
2
votes
1answer
409 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
825 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 ...
2
votes
2answers
4k views

What are the benefits of restricting difficulty while mining?

Virtually all the mining pools I have seen specify a few ports with differing initial difficulties. The difficulty adjusts automatically according to your hash power. I notice that monerohash now ...
-2
votes
1answer
56 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"?
9
votes
4answers
3k views

Why does Monero use proof of work?

Why does Monero use proof of work instead of something that saves electricity like proof of stake? Have there been any serious to abandon PoW for PoS at some point similar to the plan of Ethereum ...
3
votes
0answers
190 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 ...
3
votes
2answers
177 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,...
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
126 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." ...