9 Commits

Author SHA1 Message Date
364cc7675a feat: handle non-existing actors gracefully in F3 power proportion CLI (#12840)
Handle non-existing actors gracefully in F3 power proportion CLI

When calculating proportional F3 participation power for a given actor
IDs instead of failing when an actor isn't found, collect the
non-existing ones and report them. This makes up a better UX when
debugging F3 in cases where actors don't exist in the F3 power table.
2025-01-22 11:46:17 +01:00
e994e9566c fix: use numerical formatting when printing F3 CLI error message (#12739)
Use numerical format to print actor IDs not found. Otherwise, `%q` will
print special character.
2024-11-29 15:47:50 +11:00
c9cbef343b Skip checking the initial power table CID if undefined (#12725)
In Lotus F3 cli Only check the expected power table CID when it is
present.
2024-11-26 10:49:43 +00:00
2cd6f404e9 feat: implement F3 CLI to list power table and proportional power at 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
2024-11-19 10:54:17 +00:00
773efaeaaa Conditionally change the limit of F3 certs listed via CLI (#12669)
* When no range is given, default limit to 10
* Otherwise default to unlimited.

This is better than the current default of always unlimited because:
* there are a lot of certs, and
* when range is given the chances are the user wants all of them.

Addresses https://github.com/filecoin-project/lotus/pull/12627#discussion_r1815426539
2024-11-01 11:25:15 +00:00
703333c8b4 feat: implement Lotus F3 CLI finality cert get and list (#12627)
Implement `lotus f3` CLI sub commands to:

* Get a specific finality certificate, either latest or by instance ID.
* List a range of finality certificates

Part of #12607
2024-10-24 18:40:08 +00:00
df35dc1bc5 fix(f3): correctly construct the manifest template (#12628) 2024-10-22 21:24:28 +00:00
bc8c29bf7f feat(f3): display the initial power table CID in the F3 manifest (#12626)
Also, add it to the manifest if not already set.
2024-10-22 18:00:01 +00:00
38e4d91409 Implement Lotus F3 CLI commands for general diagnostics (#12617)
Implement `lotus f3` CLI sub commands:

* `manifest` to dump the current F3 manifest in either JSON or text.
* `list-miners` to list the current F3 participants.
* `status` to print summary status of F3.

Part of #12607
2024-10-21 16:13:41 +01:00