Skip to content

Commit

Permalink
Fix write to a nil map during contract maintenance (#165)
Browse files Browse the repository at this point in the history
* Fix write to a nil map in contract maintenance

---------

Co-authored-by: mike76-dev <[email protected]>
  • Loading branch information
mike76-dev and mike76-dev authored Aug 2, 2023
1 parent 2beb155 commit 1e6967c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/renter/contractor/contractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1e6967c

Please sign in to comment.