Questions tagged [mining-theory]

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

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

Scaling of hash rate with computation and potential bottlenecks

There is a similar post which asks the question about scaling up hash rates with computational power here. My question is similar, however with the added question about a potential bottleneck. I am ...
user avatar
  • 113
0 votes
0 answers
26 views

How does Argon2d provide security after RandomX dataset is calculated

I am reading the spec for RandomX, and it seems that the creation of the dataset only relies on K, which changes once every 2 days. However, the designers intend the hardness of calculating the ...
user avatar
0 votes
1 answer
120 views

Wordpress :: mining with user's CPU

We are in 2020 and I was having a look at this post from 2018 which describes 3 WordPress plug-in we might use to mine Bitcoins through users CPU: Simple Monero miner: needs subscription to https://...
user avatar
2 votes
2 answers
819 views

What is so different about RandomX from other attempted ASIC-resistant mining algorithms?

I read that the original Cryptonight hashing algorithm was optimized for the L3 cache of a modern CPU, giving CPUs as large of an edge as possible. I've also heard that RandomX effectively turns a ...
user avatar
1 vote
1 answer
128 views

Online implementation of CryptoNight/R

I'm on an adventure trying to write my own own implementation of a C CryptoNight/R hasher. I already have some working code but wanted something that could help me validate the hashes. Is there any ...
user avatar
1 vote
1 answer
195 views

Cant't find out where replace the nonce to get a blob hash

I'm trying to understand the basics of mining and have a very specific question about hashing a blob. When I start a miner and capture the packets, I get a job from the pool and then the work ...
user avatar
2 votes
2 answers
278 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 (...
user avatar
  • 21
3 votes
1 answer
263 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: ...
user avatar
3 votes
1 answer
148 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 ...
user avatar
1 vote
1 answer
164 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 ...
user avatar
4 votes
1 answer
2k 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....
user avatar
  • 543
1 vote
1 answer
548 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, ...
user avatar
1 vote
1 answer
288 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.
user avatar
1 vote
1 answer
292 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.
user avatar
0 votes
1 answer
73 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?
user avatar
2 votes
1 answer
864 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, ...
user avatar
2 votes
1 answer
3k 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.
user avatar
1 vote
1 answer
427 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 ...
user avatar
  • 113
1 vote
1 answer
89 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 ...
user avatar
0 votes
1 answer
76 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 ...
user avatar
1 vote
1 answer
105 views

When does validation of blocks occur

At what point does a miner validate blocks shared and created by other miners on the blockchain?
user avatar
  • 59
4 votes
1 answer
200 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 ...
user avatar
  • 178
1 vote
1 answer
531 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 ...
user avatar
  • 178
2 votes
1 answer
522 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 (...
user avatar
  • 121
4 votes
1 answer
337 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 ...
user avatar
4 votes
1 answer
382 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 ...
user avatar
  • 267
3 votes
2 answers
466 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":"{"...
user avatar
  • 267
2 votes
1 answer
296 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 ...
user avatar
  • 267
0 votes
1 answer
155 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 ...
user avatar
  • 267
3 votes
1 answer
104 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 ...
user avatar
  • 267
2 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
315 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 ...
user avatar
  • 267
2 votes
1 answer
1k 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 ...
user avatar
2 votes
3 answers
961 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 ...
user avatar
  • 21
1 vote
4 answers
3k 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 ...
user avatar
0 votes
2 answers
129 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 ...
user avatar
2 votes
1 answer
199 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,...
user avatar
5 votes
1 answer
799 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 ...
user avatar
0 votes
1 answer
3k 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?
user avatar
0 votes
1 answer
387 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
user avatar
2 votes
1 answer
467 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 ...
user avatar
  • 125
6 votes
1 answer
1k 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 ...
user avatar
  • 125
1 vote
1 answer
413 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":......, "...
user avatar
4 votes
3 answers
8k 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 (...
user avatar
  • 41
-2 votes
1 answer
61 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"?
user avatar
3 votes
0 answers
192 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, ...
user avatar
8 votes
2 answers
3k 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 ...
user avatar
7 votes
1 answer
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 ...
user avatar
  • 356
3 votes
2 answers
185 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,...
user avatar
5 votes
1 answer
374 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 ...
user avatar