From 1974490ab05fd005619ea0f1b8eac9802d31ed53 Mon Sep 17 00:00:00 2001 From: Ingar Shu Date: Mon, 19 Oct 2020 13:12:28 -0700 Subject: [PATCH] Don't overwrite previously-configured maxPieceSize for a persisted ask --- node/modules/storageminer.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/node/modules/storageminer.go b/node/modules/storageminer.go index bcc38898e..7f510aa70 100644 --- a/node/modules/storageminer.go +++ b/node/modules/storageminer.go @@ -398,8 +398,6 @@ func NewStorageAsk(ctx helpers.MetricsCtx, fapi lapi.FullNode, ds dtypes.Metadat if err != nil { return nil, err } - a := storedAsk.GetAsk().Ask - err = storedAsk.SetAsk(a.Price, a.VerifiedPrice, a.Expiry-a.Timestamp) if err != nil { return storedAsk, err }