Skip to content

Change host duration check to use startheight vs endheight of window

Christopher Schinnerl requested to merge host-duration-check into master

Created by: ChrisSchinnerl

This PR changes the duration check in the host module to use the window's startheight instead of the endheight. From a renter's perspective the host can't be expected to hold on to the file after the window start since the host might just broadcast the proof and delete the files afterwards. That's why the duration of a contract is defined as the number of blocks between the startHeight of the contract and the start of the proof window.

Merge request reports