Skip to content

Commit

Permalink
feat: implement F3 CLI to list power table and proportional power at …
Browse files Browse the repository at this point in the history
…instance (#12698)

* Implement F3 CLI to list power table and proportional power at instance

Implement utility CLIs to:
* get the power table used by F3 at a given instance ID.
* get total proportional power of a list of actors at a given instance
  ID.

These utilities allow us to debug the exact participation power for an
instance without having to manually calculate it or estimate it from
the latest power.

* Update changelog

* Address lint issue

* Regenerate CLI docs

* Take instance ID via flag and actor IDs as args

* Reduce indentation by defiling top level vars

* Work around bug in docsgencli by using one-liner usage
  • Loading branch information
masih authored and rjan90 committed Nov 28, 2024
1 parent c882d9f commit ce4c03d
Show file tree
Hide file tree
Showing 3 changed files with 566 additions and 250 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This Lotus release candidate introduces the new `ChainIndexer` subsystem, enhanc
- Implement `EthGetTransactionByBlockNumberAndIndex` (`eth_getTransactionByBlockNumberAndIndex`) and `EthGetTransactionByBlockHashAndIndex` (`eth_getTransactionByBlockHashAndIndex`) methods. ([filecoin-project/lotus#12618](https://github.com/filecoin-project/lotus/pull/12618))
- `lotus-shed indexes inspect-indexes` now performs a comprehensive comparison of the event index data for each message by comparing the AMT root CID from the message receipt with the root of a reconstructed AMT. Previously `inspect-indexes` simply compared event counts. Comparing AMT roots instead confirms all the event data is byte-perfect. ([filecoin-project/lotus#12570](https://github.com/filecoin-project/lotus/pull/12570))
- Reduce size of embedded genesis CAR files by removing WASM actor blocks and compressing with zstd. This reduces the `lotus` binary size by approximately 10 MiB. ([filecoin-project/lotus#12439](https://github.com/filecoin-project/lotus/pull/12439))
- Implement F3 utility CLIs to list the power table for a given instance and sum the proportional power of a set of actors that participate in a given instance. ([filecoin-project/lotus#12698](https://github.com/filecoin-project/lotus/pull/12698))

## 🐛 Bug Fix Highlights
- Add logic to check if the miner's owner address is delegated (f4 address). If it is delegated, the `lotus-shed sectors termination-estimate` command now sends the termination state call using the worker ID. This fix resolves the issue where termination-estimate did not function correctly for miners with delegated owner addresses. ([filecoin-project/lotus#12569](https://github.com/filecoin-project/lotus/pull/12569))
Expand Down
Loading

0 comments on commit ce4c03d

Please sign in to comment.