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:
commit
06c0444d45
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user