首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用于挖掘块的矿工地址奖励函数在哪里?

用于挖掘块的矿工地址奖励函数在哪里?
EN

Ethereum用户
提问于 2018-11-29 22:49:57
回答 1查看 1K关注 0票数 3

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

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

有人能给我指出正确的方向吗,比如在代码库中给报酬的地方的文档?我似乎找不到它。干杯!

EN

回答 1

Ethereum用户

回答已采纳

发布于 2018-11-29 23:25:29

有人能给我指出正确的方向吗,比如在代码库中给报酬的地方的文档?

静态块奖励在consensus.go中定义:

代码语言:javascript
复制
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()

代码语言:javascript
复制
// 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.
票数 2
EN
页面原文内容由Ethereum提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://ethereum.stackexchange.com/questions/63299

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档