NebulousLabs / Sia

Blockchain-based marketplace for file storage. Project has moved to GitLab: https://gitlab.com/NebulousLabs/Sia
https://sia.tech
MIT License
2.71k stars 442 forks source link

break contract pubkey map pruning into its own helper function #3152

Closed DavidVorick closed 5 years ago

DavidVorick commented 5 years ago

This is the first in what will hopefully end up being a series of pull requests to clean up threadedContractMaintenance, probably one of the largest and most convoluted / opaque functions in the Sia codebase.

This PR is purely cosmetic. The next one changes the logic for deciding how much to renew when renewing contracts, and simplifies a lot of the logic around knowing how much to try and spend.