mining rewards (miner's reward) calculation #7826
Unanswered
godmode2k
asked this question in
General Q&A
Replies: 3 comments
-
Hi @godmode2k Thanks for the report. This is not a Lotus issue. Moving this issue to Discussions for help and troubleshooting. Closing ticket. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Reiers |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @godmode2k |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Filecoin miner's reward calculation
I tried calculates miner's reward with below scenario but i think it's something wrong.
(reward comparison sites: https://filscan.io, https://filfox.info)
any ideas ?
Cheers,
June
Filecoin.ChainGetTipSetByHeight
Filecoin.StateVMCirculatingSupplyInternal
Filecoin.StateVMCirculatingSupplyInternal
Filecoin.StateCompute
calculation
// block reward
filMined = (FilMined (current) - FilMined (parents[0])) / len(parents)
// fee reward for messages (transactions)
filMined_fee_reward = (miner_tip - miner_penalty - ...)
// total: miner reward
totla_reward = filMined + filMined_fee_reward
res_str_reward = filMined + " FIL ( " + filMined + FIL Block Reward and " + filMined_fee_reward + " FIL Fee Reward )"
print( res_str_reward )
full test code
also you can find here
https://github.com/godmode2k/filecoin_lotus_apis_test/blob/main/test_miner_reward.py
Beta Was this translation helpful? Give feedback.
All reactions