Skip to content

回复:合作挖矿 ​

原始发布页

打开来源页面
查看 1 个交叉存档

ribuck 的描述完全正确。

矿池运营者可以修改他们的 getwork,让它多接受一个参数,即用于接收你那一份收益的地址。

对矿池运营者而言,简单的办法是等到找到下一个区块,然后按以下比例分配: 用户的近似命中次数/所有人的近似命中总次数

这样启动起来会更容易、更安全。它还有一个优点,即同一用户的多次命中可以合并成一笔交易。你的许多命中通常会来自同一批人。

即时满足的办法是每次近似命中后立即支付一个固定金额,由运营者承担找到区块前近似命中次数或多或少的随机性风险。

无论采用哪种方式,提交了能解出区块的命中结果的用户都应该从总额中先获得一笔额外奖励,比如 10 BTC。

新用户甚至并不真正需要比特币软件。他们可以下载一个矿工程序,在 mtgox 或 mybitcoin 上创建账户,把自己的充值地址输入矿工程序,再将它指向任意人的矿池服务器。当矿工程序说它找到了某个结果后,过一会儿,他们的账户里就会出现几个币。

矿工程序的编写者最好确保程序绝不会把近似命中误报为命中。用户要依靠这一点来检查矿池运营者是否在欺骗他们。如果矿工程序错误地说它找到了某个结果,用户会查看自己的账户,发现什么也没有,然后迁怒于矿池运营者。

英文原文 ​

展开英文原文

ribuck's description is spot on.

Pool operators can modify their getwork to take one additional parameter, the address to send your share to.

The easy way for the pool operator would be to wait until the next block is found and divy it up proportionally as: user's near-hits/total near-hits from everyone

That would be easier and safer to start up. It also has the advantage that multiple hits from the same user can be combined into one transaction. A lot of your hits will usually be from the same people.

The instant gratification way would be to pay a fixed amount for each near-hit immediately, and the operator takes the risk from randomness of having more or less near-hits before a block is found.

Either way, the user who submits the hit that solves the block should get an extra amount off the top, like 10 BTC.

New users wouldn't really even need the Bitcoin software. They could download a miner, create an account on mtgox or mybitcoin, enter their deposit address into the miner and point it at anyone's pool server. When the miner says it found something, a while later a few coins show up in their account.

Miner writers better make sure they never false-positive near-hits. Users will depend on that to check if the pool operator is cheating them. If the miner wrongly says it found something, users will look in their account, not find anything, and get mad at the pool operator.

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。