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

Mock Final State/Improve tests execution #4512

Merged
merged 14 commits into from
Nov 10, 2023
Prev Previous commit
Fix comment
AurelienFT committed Nov 10, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
jeff-mccoy Megamind
commit 4fddc01d1fd1cbb87e0ae79596b19f1a7d6dd6b8
4 changes: 2 additions & 2 deletions massa-final-state/src/final_state.rs
Original file line number Diff line number Diff line change
@@ -651,10 +651,10 @@ impl FinalState {
Ok(())
}

/// Initializes a `FinalState` from a snapshot. Currently, we do not use the final_state from the ledger,
/// we just create a new one. This will be changed in the follow-up.
/// Initializes a `FinalState` from a snapshot.
///
/// # Arguments
/// * `db`: A type that implements the `MassaDBController` trait. Used to read and write to the database.
/// * `config`: the configuration of the final state to use for initialization
/// * `ledger`: the instance of the ledger on disk. Used to apply changes to the ledger.
/// * `selector`: the pos selector. Used to send draw inputs when a new cycle is completed.