Don't overwrite previously-configured maxPieceSize for a persisted ask
This commit is contained in:
parent
0f5aa9ba5c
commit
1974490ab0
@ -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