Skip to content
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

sptool: sectors extend flags in days/deltas #167

Merged
merged 6 commits into from
Aug 26, 2024
Merged

Conversation

magik6k
Copy link
Collaborator

@magik6k magik6k commented Aug 22, 2024

  • Make --from / --to flags (specifying source sector expiration range) accept delta-from-now (+ prefix), and duration in days (d suffix)
  • Make --extension flag accept duration in days (d suffix)
  • Add a --no-cc flag which skips CC sector extensions

Example:

$ ./sptool --actor f02620 sectors extend --no-cc --to +90d --extension 200d
skipping sector 5902 because claim 14026049 (client f02034523, piece baga6ea4seaqgtgppncxcotpkcy73ahp4nbdyn75556exrlxsmo3mdr5xjv3a4bi) does not live long enough 
....
skipping sector 5960 because claim 15048764 (client f02034523, piece baga6ea4seaqkba7onklkn4p3yco3sxzkkdvr3yjexbiwl7g67h6rlrjyoju26ka) does not live long enough 
Extending 322 sectors: 
 {
  "Extensions": [
    {
      "Deadline": 0,
      "Partition": 0,
....
      "NewExpiration": 5030398
    },
    {
      "Deadline": 4,
      "Partition": 0,
      "Sectors": "6335,6342,6379,6381-6382",
      "NewExpiration": 5030408
    }
  ]
}
GasLimit: 1.44 G
FeeCap: 48.651 pFIL
MaxFee: 0.06999999961867517 FIL
322 sectors to extended, pass --really-do-it to proceed

@magik6k magik6k requested a review from LexLuthr August 22, 2024 22:01
cmd/sptool/sector.go Show resolved Hide resolved
@magik6k magik6k merged commit 09dd6ee into main Aug 26, 2024
10 checks passed
@magik6k magik6k deleted the feat/sector-duration-fixes branch August 26, 2024 17:19
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.

2 participants