provider icon indicating copy to clipboard operation
provider copied to clipboard

Store snapshot of asset timeout into ProviderData and validity based on this timeout

Open soonhuat opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. Today (03-11-2022), asset validity is calculated as order timestamp + asset/DDO timeout against current timestamp, thus, would be disaster to the data buyer if:

  1. 03-11-2022, Data buyer X but Asset A without timeout of 1 month.
  2. Downloaded the Data A.
  3. 04-11-2022, Asset A owner edit the metadata and changed the timeout from 1 month to 1 day.
  4. 05-11-2022, Data buyer X order would be expired because is based on the last asset/DDO timeout.

Describe the solution you'd like As per previous discussion with @alexcos20 , while provider/initialize or provider/initalizeCompute, provider could store either the current Asset/DDO timeout or the expiry timestamp in ProviderData.

Additional context Market/provider would display/calculate validity based on order timestamp + ProviderData Asset timeout or the expiry timestamp.

@alexcos20

soonhuat avatar Nov 03 '22 01:11 soonhuat