feat: CLI: add expiration to claim list (#11671)

* add expiration to claim list

* fix expired threshold
This commit is contained in:
LexLuthr 2024-03-05 01:09:23 +04:00 committed by GitHub
parent 41793a88d3
commit e84a61cc7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -379,7 +379,7 @@ var filplusListClaimsCmd = &cli.Command{
)
for claimId, claim := range claimsMap {
if ts.Height() > claim.TermMax || !cctx.IsSet("expired") {
if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired") {
tw.Write(map[string]interface{}{
"ID": claimId,
"Provider": claim.Provider,