Don't overwrite previously-configured maxPieceSize for a persisted ask

This commit is contained in:
Ingar Shu 2020-10-19 13:12:28 -07:00
parent 0f5aa9ba5c
commit 1974490ab0
No known key found for this signature in database
GPG Key ID: BE3D9CE79F22E769

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
} }