Skip to content

Conversation

@mtrisic
Copy link

@mtrisic mtrisic commented Dec 28, 2023

Related Issues

DEV-347 (Implement re-creating lotus-miner initial repo/config from SP ID)

Proposed Changes

Adds two new commands to init:

  • restore-from-chain
  • copy-sector-metadata

Additional Info

This PR enables manual initialization of a new lotus-miner repo, based on info found on-chain (miner state). State is queried based on miner id. User may provide miner id to create a blank miner repo.

Example usage:

lotus-miner init restore-from-chain --nosync --skip-p2p-publish f01004

Checklist

Before you mark the PR ready for review, please make sure that:

  • Commits have a clear commit message.
  • PR title is in the form of of <PR type>: <area>: <change being made>
  • If the PR affects users (e.g., new feature, bug fix, system requirements change), update the CHANGELOG.md and add details to the UNRELEASED section.
  • New features have usage guidelines and / or documentation updates in
  • Tests exist for new functionality or change in behavior
  • CI is green

@mtrisic mtrisic requested a review from lupuszr December 28, 2023 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant