Open giac-mysten opened 1 month ago
if devnet was wiped, the two can be the same but the blob may be missing.
If devnet was wiped, how would one fetch the on-chain blobid in the first place?
If I understand your question, the point here it that "devnet" is the Walrus devnet. The "on-chain blob ID" is on Sui testnet. So the Site
and relative Resource
objects on chain may still contain a blob ID, but the storage nodes do not have it stored.
So the current behavior is the following:
--force
, do not attempt to store files on Walrus if the corresponding Walrus Sites Resource
already exists.--force
, store all files on Walrus with the --force
option (provided to the walrus
binary).What we would want to support the case that Walrus is redeployed is to attempt to store all files on Walrus but without using the --force
option. This checks the blob status for all files and only stores those that are not yet certified.
The site builder currently only checks if the blob ID on chain matches the blob ID on disk.
However, if devnet was wiped, the two can be the same but the blob may be missing.
This is currently mitigated by the
--force
flag.