最近,我一直在深入研究go- etc,并“插入”了我自己的协商一致机制,它需要一个节点来求解一个简单的方程(2+2)等来封闭一个块。

然而,即使是在它运行到4392个街区之后,矿工的地址仍然没有收到任何eth?

有人能给我指出正确的方向吗,比如在代码库中给报酬的地方的文档?我似乎找不到它。干杯!
发布于 2018-11-29 23:25:29
有人能给我指出正确的方向吗,比如在代码库中给报酬的地方的文档?
静态块奖励在consensus.go中定义:
FrontierBlockReward = big.NewInt(5e+18) // Block reward in wei for successfully mining a block
ByzantiumBlockReward = big.NewInt(3e+18) // Block reward in wei for successfully mining a block upward from Byzantium
ConstantinopleBlockReward = big.NewInt(2e+18) // Block reward in wei for successfully mining a block upward from Constantinople在同一文件的后面是accumulateRewards():
// AccumulateRewards credits the coinbase of the given block with the mining
// reward. The total reward consists of the static block reward and rewards for
// included uncles. The coinbase of each uncle block is also rewarded.https://ethereum.stackexchange.com/questions/63299
复制相似问题