Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Handle orphan chain states from left subnets. #79

Open
Tracked by #28
adlrocha opened this issue Nov 23, 2021 · 1 comment
Open
Tracked by #28

Handle orphan chain states from left subnets. #79

adlrocha opened this issue Nov 23, 2021 · 1 comment

Comments

@adlrocha
Copy link
Collaborator

adlrocha commented Nov 23, 2021

In the current implementation of the system, when a peer leaves a subnet, its chain state is not removed from local storage. We need to decide how we want to handle this. We can either:

  • Add a flag to let the user choose if it wants to remove the state of a subnet or not. This would require some logic to inform the user about the state for which chains it still keeps.
  • Always remove the state for a subnet we are no longer part of.
  • Only remove the state of a subnet when it's been killed.

(Probably the first option is the most flexible, that way we delegate the decision to end-users according to their needs).

@adlrocha
Copy link
Collaborator Author

adlrocha commented Mar 14, 2022

This issue is is similar to #54 and may depend on it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant