-
Notifications
You must be signed in to change notification settings - Fork 16
Sign up to the earliest attestation nonce #522
Comments
If I'm understanding correctly, won't this still run into the same issue? The nice we need to sign will be pruned? What if we rely on events instead of state? |
You mean the valset before nonce? If so, then, as it is now, the orchestrator will sign by default if it can't find a valset before that nonce. So, it won't be an issue.
we rely on events for listening to new attestations, but for old ones, that would mean parsing the previous blocks, etc, I don't see how that would help here |
what is meant by "up to"? does that mean that the orchestrator will start at the latest nonce and then sign backwards until the earliest nonce? if so, then what will signing up to the earliest nonce do? won't the attestation already be pruned still?
using events allows us to access attestations that are already pruned |
The earliest nonce == the earliest nonce in store. So all the attestation will be in store. However, the valset before the earliest attestation nonce might not be. But, the orchestrator behavior now is signing by default, unless it finds a valset that explicitly states that it shouldn't. So, that would mean the orchestrator will sign up to the earliest nonce successful.
We're only putting the nonce in events, not the whole attestations. So, how will we get them? |
@evan-forbes When you have time please, thanks |
Currently, the orchestrator will sign up to the last unbonding height, and according to the pruning logic:
https://github.com/celestiaorg/celestia-app/blob/0e1fa70cc36f74d1be8a43f38afb0134a02dd1d6/x/qgb/abci.go#L137-L196
We might have a case where the network is stable for more than 3 weeks, that we have the
earliestAttestationNonce > lastUnbondingNonce (which is the nonce corresponding to the last unbonding height)
. This would make the orchestrator try to sign attestations that are already pruned.Proposal: change the orchestrator implementation to sign up to the
earliestAttestationNonce
, which would guarantee the attestations to be always in store.cc @evan-forbes
The text was updated successfully, but these errors were encountered: