Safely mining

+4 votes
Is there a way to safely mine with anyone can mine = true ?

Protect chain from fork
asked Aug 6, 2017 by nezzard

2 Answers

+2 votes

Forking is always a possibility with mining, but with MultiChain there are options.

MultiChain has params that help customize the mining. Look at the blockchain params

reward-spendable-delay
pow-minimum-bits
mining-diversity
target-adjust-freq
admin-consensus-admin
admin-consensus-mine

Have a read of these params and what they do
https://www.multichain.com/developers/blockchain-parameters/

answered Aug 7, 2017 by MaSsv
admin-consensus-admin
admin-consensus-mine

Is that mean that admin chain always will be main?
If the mining-diversity set to 3, and i have 2 active miners, blockchain will stuck?
mining diversity can be set to a value between 0 and 1. the value 3 is not valid.

both nodes must have mine permissions.
consensus params are designed to give you flexibility but it can also be used to create strange behaviour. its recommended that 0.5 or higher is used so that there is a winner, else its 50 % split.
in case of forks, there will be a chosen chain if configured that way. you can therefore avoid long forks
Hm, i'm think about another variant
For example, for start mine, user must to create account on site, than site via rpc add mine permissions to this address

So, if user import keys on several nodes, can he mine in all nodes with one key?
0 votes
If you're using anyone-can-mine=true then your chain needs to use proof-of-work to protect from a fork (or more precisely, from a deep reorganization that results from a fork – a short fork that is quickly resolved is not a security concern and can happen in a blockchain with permissioned mining as well). So you should look into the mining-related parameters and think about who will be performing the mining, under which incentives.
answered Aug 7, 2017 by MultiChain
Pls can you explain me  about this options?
admin-consensus-admin
admin-consensus-mine

Because as i can understand with my language level, it's sounds like admin chain always will main?
Or this option don't work with  anyone-can-mine=true ?
These options control what proportion of admins are required to agree to a change in permissions for another admin or miner (receiving or losing that privilege).
Hm, i'm think about another variant
For example, for start mine, user must to create account on site, than site via rpc add mine permissions to this address

So, if user import keys on several nodes, can he mine in all nodes with one key?
Yes, all identification is via addresses, so it's possible to mine from multiple nodes under the same address.
If I set difficulty to minimal and adjust to -1
Is it still can be fork?
I need to run two daemons multichain and ipfs
Multichain will send tokens ( or main coins) to node as a payment for a uptime ipfs node
So I don't need height difficulty, question on a top
A fork is possible even with permissioned (non proof-of-work) mining, though if you set mining-turnover=0 it is avoided unless one of the miners stops functioning.
Soon i will have headache with this options )
Which parameters is better for my idea?
I will use multichain as hash storage and as reward system. Rewards will send from main server if nodes will connect to main node.  I just need to be sure that hashesh in a stream is valid.
We can't give you a straightforward answer to that in this forum – I think you will need to research the parameters in more detail and decide what you want to do.
If chain is forked, someone can Intercept the admin permissions?
The admin permissions are only vulnerable if they took place on one fork and not the other, but if you set mining-diversity>0.5 it's not possible for two forks to persist for long.
...