Merge pull request #9833 from filecoin-project/release/v1.18.2
build: release: v1.18.2
This commit is contained in:
commit
9416ceb7de
@ -1,5 +1,10 @@
|
|||||||
# Lotus changelog
|
# Lotus changelog
|
||||||
|
|
||||||
|
# 1.18.2 / 2022-12-10
|
||||||
|
|
||||||
|
This is an OPTIONAL patch release that fixes a recently reported bug, where the miner process crashes due to a panic during an AddPiece process. More details can be found [here](https://github.com/filecoin-project/lotus/pull/9822).
|
||||||
|
|
||||||
|
|
||||||
# 1.18.1 / 2022-11-28
|
# 1.18.1 / 2022-11-28
|
||||||
|
|
||||||
This is a small OPTIONAL patch release for the mandatory v1.18.0 release that supports the Filecoin nv17 Shark Upgrade.
|
This is a small OPTIONAL patch release for the mandatory v1.18.0 release that supports the Filecoin nv17 Shark Upgrade.
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -37,7 +37,7 @@ func BuildTypeString() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// BuildVersion is the local build version
|
// BuildVersion is the local build version
|
||||||
const BuildVersion = "1.18.1"
|
const BuildVersion = "1.18.2"
|
||||||
|
|
||||||
func UserVersion() string {
|
func UserVersion() string {
|
||||||
if os.Getenv("LOTUS_VERSION_IGNORE_COMMIT") == "1" {
|
if os.Getenv("LOTUS_VERSION_IGNORE_COMMIT") == "1" {
|
||||||
|
@ -7,7 +7,7 @@ USAGE:
|
|||||||
lotus-miner [global options] command [command options] [arguments...]
|
lotus-miner [global options] command [command options] [arguments...]
|
||||||
|
|
||||||
VERSION:
|
VERSION:
|
||||||
1.18.1
|
1.18.2
|
||||||
|
|
||||||
COMMANDS:
|
COMMANDS:
|
||||||
init Initialize a lotus miner repo
|
init Initialize a lotus miner repo
|
||||||
|
@ -7,7 +7,7 @@ USAGE:
|
|||||||
lotus-worker [global options] command [command options] [arguments...]
|
lotus-worker [global options] command [command options] [arguments...]
|
||||||
|
|
||||||
VERSION:
|
VERSION:
|
||||||
1.18.1
|
1.18.2
|
||||||
|
|
||||||
COMMANDS:
|
COMMANDS:
|
||||||
run Start lotus worker
|
run Start lotus worker
|
||||||
|
@ -7,7 +7,7 @@ USAGE:
|
|||||||
lotus [global options] command [command options] [arguments...]
|
lotus [global options] command [command options] [arguments...]
|
||||||
|
|
||||||
VERSION:
|
VERSION:
|
||||||
1.18.1
|
1.18.2
|
||||||
|
|
||||||
COMMANDS:
|
COMMANDS:
|
||||||
daemon Start a lotus daemon process
|
daemon Start a lotus daemon process
|
||||||
|
@ -443,6 +443,9 @@ func (m *Sealing) updateInput(ctx context.Context, sp abi.RegisteredSealProof) e
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, big.Zero(), err
|
return 0, big.Zero(), err
|
||||||
}
|
}
|
||||||
|
if onChainInfo == nil {
|
||||||
|
return 0, big.Zero(), xerrors.Errorf("sector info for sector %d not found", sn)
|
||||||
|
}
|
||||||
memo[sn] = struct {
|
memo[sn] = struct {
|
||||||
e abi.ChainEpoch
|
e abi.ChainEpoch
|
||||||
p abi.TokenAmount
|
p abi.TokenAmount
|
||||||
@ -488,10 +491,6 @@ func (m *Sealing) updateInput(ctx context.Context, sp abi.RegisteredSealProof) e
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if !ok {
|
if !ok {
|
||||||
exp, _, _ := getExpirationCached(sector.number)
|
|
||||||
|
|
||||||
// todo move this log into checkDealAssignable, make more detailed about the reason
|
|
||||||
log.Debugf("CC update sector %d cannot fit deal, expiration %d before deal end epoch %d", id, exp, piece.deal.DealProposal.EndEpoch)
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,8 +142,21 @@ type openSector struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (o *openSector) checkDealAssignable(piece *pendingPiece, expF expFn) (bool, error) {
|
func (o *openSector) checkDealAssignable(piece *pendingPiece, expF expFn) (bool, error) {
|
||||||
|
log := log.With(
|
||||||
|
"sector", o.number,
|
||||||
|
|
||||||
|
"deal", piece.deal.DealID,
|
||||||
|
"dealEnd", piece.deal.DealProposal.EndEpoch,
|
||||||
|
"dealStart", piece.deal.DealProposal.StartEpoch,
|
||||||
|
"dealClaimEnd", piece.claimTerms.claimTermEnd,
|
||||||
|
|
||||||
|
"lastAssignedDealEnd", o.lastDealEnd,
|
||||||
|
"update", o.ccUpdate,
|
||||||
|
)
|
||||||
|
|
||||||
// if there are deals assigned, check that no assigned deal expires after termMax
|
// if there are deals assigned, check that no assigned deal expires after termMax
|
||||||
if o.lastDealEnd > piece.claimTerms.claimTermEnd {
|
if o.lastDealEnd > piece.claimTerms.claimTermEnd {
|
||||||
|
log.Debugw("deal not assignable to sector", "reason", "term end beyond last assigned deal end")
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,15 +166,26 @@ func (o *openSector) checkDealAssignable(piece *pendingPiece, expF expFn) (bool,
|
|||||||
}
|
}
|
||||||
sectorExpiration, _, err := expF(o.number)
|
sectorExpiration, _, err := expF(o.number)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
log.Debugw("deal not assignable to sector", "reason", "error getting sector expiranion", "error", err)
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log = log.With(
|
||||||
|
"sectorExpiration", sectorExpiration,
|
||||||
|
)
|
||||||
|
|
||||||
// check that in case of upgrade sector, it's expiration isn't above deals claim TermMax
|
// check that in case of upgrade sector, it's expiration isn't above deals claim TermMax
|
||||||
if sectorExpiration > piece.claimTerms.claimTermEnd {
|
if sectorExpiration > piece.claimTerms.claimTermEnd {
|
||||||
|
log.Debugw("deal not assignable to sector", "reason", "term end beyond sector expiration")
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return sectorExpiration >= piece.deal.DealProposal.EndEpoch, nil
|
if sectorExpiration < piece.deal.DealProposal.EndEpoch {
|
||||||
|
log.Debugw("deal not assignable to sector", "reason", "sector expiration less than deal expiration")
|
||||||
|
return false, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
return true, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type pieceAcceptResp struct {
|
type pieceAcceptResp struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user