Merge pull request #4480 from filecoin-project/fix/max-piece-size-reverting-to-default

Don't overwrite previously-configured maxPieceSize for a persisted ask
This commit is contained in:
Łukasz Magiera 2020-10-19 22:55:55 +02:00 committed by GitHub
commit 06c0444d45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -398,8 +398,6 @@ func NewStorageAsk(ctx helpers.MetricsCtx, fapi lapi.FullNode, ds dtypes.Metadat
if err != nil { if err != nil {
return nil, err return nil, err
} }
a := storedAsk.GetAsk().Ask
err = storedAsk.SetAsk(a.Price, a.VerifiedPrice, a.Expiry-a.Timestamp)
if err != nil { if err != nil {
return storedAsk, err return storedAsk, err
} }