Skip to content

feat(shed): lotus-shed miner fees-inspect to inspect cron burn per epoch #13115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 10, 2025

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented May 9, 2025

USAGE:
   lotus-shed miner fees-inspect [--tipset <tipset>] [--count <count>]

DESCRIPTION:
   Inspect miner fees in the given tipset and its parents. The output is a CSV with the following columns:
   Epoch, Burn, Fees, Penalties, Expected, Miners ...
   Where:
     - Epoch: the epoch of the tipset
     - Burn: the total amount of attoFIL burned by miners in this tipset
     - Fees: the total amount of expected proof fees paid by miners in this tipset
     - Penalties: the total amount of penalties expected to be paid by miners in this tipset
     - Expected: whether the sum of fees and penalties equals the burn amount (✓ or ✗), a discrepancy here likely results from burnt precommit deposits or miners who can't pay fees, neither of which are not calculated here
     - Miners: the list of miners that burned or were expected to burn in this tipset

OPTIONS:
   --tipset value  tipset or height (@X or @head for latest) (default: "@head")
   --count value   number of tipsets to inspect, working backwards from the --tipset (default: 1)
$ lotus-shed miner fees-inspect --tipset @4947700 --count 100
Epoch, Burn, Fees, Penalties, Expected, Miners ...
4947700, 0, 0, 0, ✓
4947699, 18466635330772230, 18466635330772230, 0, ✓, f03134685
4947698, 94038070157651401, 94038070157651401, 0, ✓, f03373333
4947697, 0, 0, 0, ✓
4947696, 124067515275316719, 124067515275316719, 0, ✓, f01081394, f03402379
4947695, 160523685227130192, 93372347165851527, 0, ✗, f03519199
4947694, 91947413454146569, 91947413454146569, 0, ✓, f03055018, f03493414
4947693, 0, 0, 0, ✓
4947692, 0, 0, 0, ✓
4947691, 90778337934411868, 90379800356973714, 398537577438154, ✓, f01350631, f03529375
4947690, 0, 0, 0, ✓
4947689, 0, 0, 0, ✓
4947688, 93398292407966807, 93398292407966807, 0, ✓, f03298672
4947687, 0, 0, 0, ✓
4947686, 98342578857692959, 94357129274003585, 3985449583689374, ✓, f03499888
...

@rvagg rvagg requested a review from BigLep May 9, 2025 15:33
@rvagg rvagg added the skip/changelog This change does not require CHANGELOG.md update label May 9, 2025
@github-project-automation github-project-automation bot moved this to 📌 Triage in FilOz May 9, 2025
@rvagg rvagg force-pushed the rvagg/miner-fees-inspect branch from f84dbdd to 786ef09 Compare May 9, 2025 16:43
@github-project-automation github-project-automation bot moved this from 📌 Triage to ✔️ Approved by reviewer in FilOz May 9, 2025
@rvagg rvagg merged commit 2e3e180 into master May 10, 2025
96 checks passed
@rvagg rvagg deleted the rvagg/miner-fees-inspect branch May 10, 2025 13:53
@github-project-automation github-project-automation bot moved this from ✔️ Approved by reviewer to 🎉 Done in FilOz May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip/changelog This change does not require CHANGELOG.md update
Projects
Status: 🎉 Done
Development

Successfully merging this pull request may close these issues.

2 participants