Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create StartupAssets interface for inputs to startup phase #16550

Open
Tracked by #14706
derektriley opened this issue Nov 12, 2024 · 0 comments · May be fixed by #16591
Open
Tracked by #14706

Create StartupAssets interface for inputs to startup phase #16550

derektriley opened this issue Nov 12, 2024 · 0 comments · May be fixed by #16591
Assignees
Milestone

Comments

@derektriley
Copy link
Contributor

derektriley commented Nov 12, 2024

Background
Create a StartupAssets interface which provides inputs to the startup phase of the Hedera network. The interface should be defined as approximately as below.

See Roster Lifecycle Implementation for details.

interface StartupAssets {
    interface Factory {
		    StartupAssets fromInitialConditions(@NonNull Path workingDir);
    }
    
    /**
     * Called by a node that finds itself with an empty RosterService
     * state, and is thus at the migration boundary for adoption of the 
     * roster proposal; implementations must either throw unsupported or
     * return an aggregation of the information in legacy config.txt and
     * public.pfx files.
     */
    @Deprecated
    Network migrationNetworkOrThrow();
    
    /**
     * Called by a node that finds itself with a completely empty state. 
     */
    Network genesisNetworkOrThrow();
    
    /**
     * Returns a Network description if there is an override-network.json
     * on disk that has not already been used in an earlier round than the
     * given number.
     */
    Optional<Network> overrideNetwork(long roundNumber);
    
    void archiveInitialConditions();
}

Acceptance Criteria

  • StartupAssets interface created

Dependencies
#16549

@derektriley derektriley changed the title Define StartupAssets class for inputs to startup phase Create StartupAssets class for inputs to startup phase Nov 12, 2024
@derektriley derektriley changed the title Create StartupAssets class for inputs to startup phase Create StartupAssets class for inputs to startup phase Nov 12, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Services Team Nov 12, 2024
@derektriley derektriley changed the title Create StartupAssets class for inputs to startup phase Create StartupAssets interface for inputs to startup phase Nov 12, 2024
@thomas-swirlds-labs thomas-swirlds-labs self-assigned this Nov 13, 2024
@thomas-swirlds-labs thomas-swirlds-labs moved this from 📋 Backlog to 👷🏼‍♀️ In Progress in Services Team Nov 13, 2024
@thomas-swirlds-labs thomas-swirlds-labs added this to the v0.57 milestone Nov 13, 2024
@thomas-swirlds-labs thomas-swirlds-labs linked a pull request Nov 13, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👷🏼‍♀️ In Progress
Development

Successfully merging a pull request may close this issue.

2 participants