This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Replies: 1 comment 1 reply
-
THis doesn't sound like a workaround, but more like the solution? Your consensus should ensure that it can only finalize things when they are available. This is basically also what is done by Polkadot and its Parachains. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Subspace we have a need to make pruning depth dynamic (in terms of blocks). This is because initial sync will happen from our distributed storage network (DSN) and doesn't require archival nodes, but we need to be able to run keep-up sync for blocks that are not in DSN yet, number of which changes depending on block contents (and thus size).
The workaround I'll be using for now is to not finalize blocks beyond some depth, but maybe the pruning itself can be made dynamic? Looks like replacing
BlocksPruning::Some(u32)
withBlocksPruning::Some(Arc<AtomicU32>)
might already be sufficient.Beta Was this translation helpful? Give feedback.
All reactions