分享

What is the intent of mining

 quasiceo 2018-04-26


+1 vote
Hi.

When should you use this option?

Since mining-diversity takes care of situations like netsplit etc.

We ran into the following issue:
mining-require-peers: false

1. Create single node
2. Create new address on single node with mining permission
3. Mining stops
4. Revoke permission
5. Mining starts again

So maybe this is an expected behaviour, but what is the idea behind this parameter?

 

Thanks,

Alex
asked Jan 31 by Alexoid

1 Answer

+1 vote

This is indeed the expected behavior, as documented here:

https://www./developers/blockchain-parameters/

The point of mining-requires-peers is to prevent a node that becomes isolated from the network from going ahead and mining its own irrelevant chain. You are right that mining-diversity also takes care of this, but there are some chains based on proof-of-work where there is no constraint on mining diversity.

The mining-requires-peers setting is only applied if there is more than one address with mining permissions, because in this case we assume these addresses will likely be owned by multiple nodes. (Even if one nodes sees it has all these addresses in its wallet, there could have been private key sharing.)


    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多