#379 brought up an error surfacing the fact that we are trying to add pieces to a data set that has been terminated. we need to make sure we are synchronizing our DB to chainstate, and double checking before data storage and retrieval checks that a data-set is live.
if its not, we should stage it for deletion.
another potential solution here is to completely rid ourselves of our DB and use live chain state as the source of truth, but that is a larger change
#379 brought up an error surfacing the fact that we are trying to add pieces to a data set that has been terminated. we need to make sure we are synchronizing our DB to chainstate, and double checking before data storage and retrieval checks that a data-set is live.
if its not, we should stage it for deletion.
another potential solution here is to completely rid ourselves of our DB and use live chain state as the source of truth, but that is a larger change