mining process in multichain network

+3 votes
I have one seed node and one connected node and have set (anyone-can-mine=true). Some addresses are at seed node while some have been created at connected node. When a transaction takes place, is mining performed from the addresses from both the nodes? Please tell me what should be the normal behaviour of the system in this case.

Secondly, in my case I am seeing only one address involved in mining all the transactions while I have about one lac addresses and have set anyone-can-mine=true
asked Jan 23, 2019 by Kashif.Mehboob
I've asked the team about this and we'll get back to you.
Thanks. I am eagerly waiting for the reply.

1 Answer

+2 votes
If anyone-can-mine=true, default address (the first address of the node) is always used for mining. So, you will see only one address from the node.

As for the question why only one node mines blocks. The answer depends on the target-adjust-freq setting.

If it is -1 (default, no POW) - there is clear preference for the "old" miner (mining-turnover). If you will stop the first node - you will see blocks from the second node very soon,

If it is not -1 (POW, I suppose it is not a case) - probably your second node is weaker than the first.
answered Jan 28, 2019 by Michael
POW mining still works when target-adjust-freq is set to -1 but with constant difficulty level(when the chain is public). Thanks for the time Michael but I am still waiting for the reply of my original question.
The answer is that both nodes can mine blocks, but each node will only use a single address from its wallet to do so.
Thanks for the answer but why only one address is involved in mining all the blocks every time
Do you mean the mining is always performed by one node and not the other?
Mining is being performed by the same address of one same node every time. Although there are two different nodes on two different machines(one is seed node and one is connected node) and there are around one lac addresses on node. Also any one can mine is true. Hope I am able to make my question understand now.
Thanks.
OK, this could be caused by any number of causes (one node might just be running faster) but it is a valid outcome if anoyne-can-mine=true. In this case your network cannot be secured via different miners' identities, only via proof-of-work.
...