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 440 forks source link

1.3.3 RC2: "renter allowance cancel" destroys all renter contracts and data #3013

Closed mtlynch closed 6 years ago

mtlynch commented 6 years ago

BUG REPORT

How to reproduce it (as minimally and precisely as possible)

  1. Create renter contracts with siac renter setallowance
  2. Disable contract renewal with siac renter allowance cancel

Expected Behavior

Sia maintains existing contracts, but does not automatically renew them.

Actual Behavior

Sia destroys all contracts and loses all data.

Environment:

Logs

tbenz9 commented 6 years ago

@lukechampine can you confirm that this is the expected behavior?

DavidVorick commented 6 years ago

This is intended behavior, though there was some internal disagreement when it was implemented over whether it was the right way to design the api call.

I'm in favor of changing the call so that instead of destroying all of the contracts, it just collapses the allowance and stops renewing.

lukechampine commented 6 years ago

that seems much more reasonable to me. Shouldn't be too difficult to implement.