Forwarding

Creepsky edited this page Feb 1, 2017 · 3 revisions

Forwarding is a feature of the creepMiner that allows you to declare one creepMiner as a forwarder that takes the requests of other miners, pass them on to the destination and responsds the result back.

The main purpose of this feature is to divide the mining rig into a network of miners, where every miner has his own responsibilty.

Howto

To use the forwarding feature of the creepMiner, you have to activate the local HTTP server in the configuration file:

   ...
   "Start Server": true,
   "serverUrl" : "http://192.168.0.50:8080",
   ...

Now you can connect other miners to the forwarding creepMiner:

   ...
   "poolUrl" : "http://192.168.0.50:8080",
   "miningInfoUrl" : "http://192.168.0.50:8080",
   "walletUrl" : "http://192.168.0.50:8080",
   ...

You don't have to set all 3 URLs (poolUrl, miningInfoUrl, walletUrl) to the URL of the creepMiner. You could just use it partially:

   ...
   "poolUrl" : "http://pool.burst-team.us:8124",
   "miningInfoUrl" : "http://192.168.0.50:8080",
   "walletUrl" : "https://wallet.burst-team.us:8128",
   ...

Example

Let us say you have a mining network of 4 miners A, B, C, D, a Wallet W and a pool P.

A -> 5 TB
B -> 1 TB
C -> 2 TB
D -> 1 TB

These are the connections:

A -> P
A -> W
B -> A
C -> A
D -> B

    P
    ^
W < A < B < D
    ^
    C

Mining informations

A forwarding miner will always send his own local mining informations back. He can do this only if he got them from a pool or wallet before.

Submit nonces

When a miner find a good nonce, he sends it to the pool he is connected to. If the pool is a creepMiner, the nonce gets forwarded, until it gets to a pool or wallet.

Because of the split into chunks of mining plots it can happen, that not the whole mining capacity of the rig is transmitted.

If B in our example finds a nonce and sends it to A, the pool would get only the capacity of B (1 TB), while in real the capacity is bigger (9 TB).

Combined capacity

To solve the problem with the separate capacities they are remembered while a nonce is forwarded. Every creepMiner get an unique id based on the plot files he is reading. On every nonce submission he adds his id and his capacity to the nonce informations so the forwarding creepMiner can take this additional data and create a map of connected miners and their capacities.

Only connected miners that did a submission in the last 10 rounds are counted into the total sum of capacity.