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

ledger: improve genesis flow #685

Closed
wants to merge 31 commits into from
Closed

Conversation

Fraccaman
Copy link
Member

@Fraccaman Fraccaman commented Oct 25, 2022

based on #870 and #849

fix #711, fix #6, fix #45, fix #95, fix #115, fix #116, #470

@tzemanovic tzemanovic mentioned this pull request Dec 7, 2022
@tzemanovic tzemanovic force-pushed the tomas+fraccaman/new-genesis branch 3 times, most recently from 97c2d43 to ba4f4a6 Compare December 20, 2022 11:50
@tzemanovic tzemanovic mentioned this pull request Dec 23, 2022
8 tasks
@tzemanovic tzemanovic added this to the 0.14 milestone Jan 10, 2023
@tzemanovic tzemanovic modified the milestones: 0.14, 0.15 Feb 8, 2023
@adrianbrink
Copy link
Member

@Fraccaman I'm closing this. I think when the feature is ready to be merged, you can cherry pick commits from this branch.

@tzemanovic tzemanovic mentioned this pull request May 26, 2023
@tzemanovic tzemanovic reopened this May 26, 2023
vp = "vp_validator"
commission_rate = "0.05"
max_commission_rate_change = "0.01"
net_address = "127.0.0.1:27656"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why we need to include this parameter in the genesis process. This is strictly a configuration parameter that can be changed freely locally.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For local and automated networks setup it is convenient to have it here to be able to establish connections without bootstrap peers. We can make it optional for when we don't need it

predicates files."
);
is_valid = false;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should add a call here to validate PoS params with e.g.:

let pos_errs = parameters.pos_params.validate();
if !pos_errs.is_empty() {
    eprintln!("PoS params are invalid: {pos_errs:?}");
    is_valid = false;
}

@batconjurer batconjurer mentioned this pull request Aug 25, 2023
@tzemanovic
Copy link
Member

this is being worked on in #1840

@tzemanovic tzemanovic closed this Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment