Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mining-theory]

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

0
votes
1answer
48 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, ...
1
vote
1answer
81 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
26 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.
0
votes
1answer
27 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
63 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
87 views

How does nicehash perform share validation?

I'm talking about two services: NiceHash and MiningRentals and CryptonightV7 algorithm, for example. Let's suppose someone trying to fool one of them and: Miner (seller) tries to fool pool (buyer) ...
1
vote
1answer
62 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.
8
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
235 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":"{"...
0
votes
1answer
79 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
741 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
27 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
117 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 ...
1
vote
1answer
275 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
438 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
56 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
59 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
42 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
117 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
629 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
111 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
316 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
830 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
123 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
149 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
84 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
90 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
392 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
916 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
108 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 ...
3
votes
3answers
301 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
147 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
0answers
541 views

How is the mining difficulty calculated?

For bitcoin it would be D = Hn / (2^256 / Mt / t) Where: Hn = Net Hash, Mt = Max_target and t = time per block Is this the same for the CryptoNight algorithm, or is it totally different? Note: ...
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 (...
0
votes
1answer
289 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
519 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?
3
votes
1answer
373 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
708 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
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"?
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
186 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
1k 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 ...
4
votes
2answers
172 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
123 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." ...
8
votes
2answers
917 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 ...
7
votes
1answer
96 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 ...
3
votes
1answer
147 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....
4
votes
1answer
273 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.