You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Storage contains 3 folders: sealed, unsealed, cache. "cache" contains folders for each sector (s-[miner]-[id]). Sector's "cache" contains two files (p_aux, t_aux) and tree cache (*.dat).
t_aux is useless serialized rust struct.
tree cache can be easily generated using update_tree_r_cache utility.
The most important part of the "cache" is p_aux file. The file contains serialized rust struct with 2 hashes: comm_r_last and comm_c. Both values are required in proofs. comm_r_last is hash of tree cache and can be regenerated via update_tree_r_cache.
comm_c is computed after PC2 step. There are complex computations. Also there is no ready to use tool for recomputing. So i think comm_c is not "cache". it's persistent metadata of the sector.
Expected behavior
I see some options here:
Store p_aux near the sector data (s-[miner]-[id].p_aux).
Rename "cache" to something else.
Store comm_c in miner's database and display via sectors status command.
The text was updated successfully, but these errors were encountered:
Hi, this seems to be a proposal rather then an issue per se, and also seems to belong in the proofs-repo if so. So I think this can be closed, and rather re-opened in another repo if you want. #rengjøring
cryptonemo
changed the title
[BUG] You should not call "cache" something that stores persistent metadata
~[BUG]~ You should not call "cache" something that stores persistent metadata
Nov 30, 2021
cryptonemo
changed the title
~[BUG]~ You should not call "cache" something that stores persistent metadata
You should not call "cache" something that stores persistent metadata
Nov 30, 2021
Renamed, as it's not a bug, but given that there is no standalone tool to regenerate the cached artifact, it's more like an enhancement/request to build that tool. See #1545 and feel free to give it a go if you'd like.
Describe the bug
Storage contains 3 folders: sealed, unsealed, cache. "cache" contains folders for each sector (s-[miner]-[id]). Sector's "cache" contains two files (p_aux, t_aux) and tree cache (*.dat).
t_aux is useless serialized rust struct.
tree cache can be easily generated using update_tree_r_cache utility.
The most important part of the "cache" is p_aux file. The file contains serialized rust struct with 2 hashes: comm_r_last and comm_c. Both values are required in proofs. comm_r_last is hash of tree cache and can be regenerated via update_tree_r_cache.
comm_c is computed after PC2 step. There are complex computations. Also there is no ready to use tool for recomputing. So i think comm_c is not "cache". it's persistent metadata of the sector.
Expected behavior
I see some options here:
The text was updated successfully, but these errors were encountered: