From 1e6967cf13212a9cb8090d9b33c720dea9201b57 Mon Sep 17 00:00:00 2001 From: Michael Bulanov <72828450+mike76-dev@users.noreply.github.com> Date: Wed, 2 Aug 2023 19:37:57 +0200 Subject: [PATCH] Fix write to a nil map during contract maintenance (#165) * Fix write to a nil map in contract maintenance --------- Co-authored-by: mike76-dev --- modules/renter/contractor/contractor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/renter/contractor/contractor.go b/modules/renter/contractor/contractor.go index c789b2e592..99580fced5 100644 --- a/modules/renter/contractor/contractor.go +++ b/modules/renter/contractor/contractor.go @@ -492,6 +492,7 @@ func contractorBlockingStartup(cs modules.ConsensusSet, w modules.Wallet, tp mod renewing: make(map[types.FileContractID]bool), renewedFrom: make(map[types.FileContractID]types.FileContractID), renewedTo: make(map[types.FileContractID]types.FileContractID), + numFailedRenews: make(map[types.FileContractID]types.BlockHeight), workerPool: emptyWorkerPool{}, } c.staticChurnLimiter = newChurnLimiter(c)