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 command line arguments to set genesis staking keys, VRF keys, and pool Id #1092

Merged
merged 26 commits into from
Aug 4, 2023

Conversation

alfiedotwtf
Copy link
Contributor

@alfiedotwtf alfiedotwtf commented Jul 28, 2023

This is the last item for #1004

Copy link
Contributor

@iljakuklic iljakuklic left a comment

Choose a reason for hiding this comment

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

A couple of initial observations:

common/src/chain/config/mod.rs Outdated Show resolved Hide resolved
node-lib/src/regtest_options.rs Outdated Show resolved Hide resolved
common/src/chain/config/mod.rs Outdated Show resolved Hide resolved
@alfiedotwtf alfiedotwtf force-pushed the alfie/genesis-staking-settings branch from c3cf9bb to c696de7 Compare July 31, 2023 10:49
Copy link
Contributor

@iljakuklic iljakuklic left a comment

Choose a reason for hiding this comment

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

Some more comments about input parsing below

common/src/chain/config/mod.rs Outdated Show resolved Hide resolved
common/src/chain/config/mod.rs Outdated Show resolved Hide resolved
node-lib/src/regtest_options.rs Outdated Show resolved Hide resolved
common/src/chain/config/mod.rs Outdated Show resolved Hide resolved
common/src/chain/config/mod.rs Outdated Show resolved Hide resolved
common/src/chain/config/mod.rs Outdated Show resolved Hide resolved
Copy link
Member

@azarovh azarovh left a comment

Choose a reason for hiding this comment

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

Agree with Lukas that it makes sense to make GenesisStakingSettings a proper struct with fields and parsing and decoding implemented in the constructor.

node-lib/src/runner.rs Outdated Show resolved Hide resolved
@alfiedotwtf alfiedotwtf force-pushed the alfie/genesis-staking-settings branch from 546e024 to 78a02c3 Compare August 1, 2023 08:12
common/src/chain/config/regtest.rs Outdated Show resolved Hide resolved
common/src/chain/config/regtest.rs Outdated Show resolved Hide resolved
@alfiedotwtf alfiedotwtf marked this pull request as draft August 1, 2023 08:57
@TheQuantumPhysicist
Copy link
Collaborator

This is looking fine. I'll review again after addressing the comments.

@alfiedotwtf alfiedotwtf force-pushed the alfie/genesis-staking-settings branch from 78a02c3 to d52936a Compare August 2, 2023 08:08
@alfiedotwtf alfiedotwtf marked this pull request as ready for review August 2, 2023 08:25
Copy link
Contributor

@iljakuklic iljakuklic left a comment

Choose a reason for hiding this comment

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

Looks good. A couple more minor suggestions here:

common/src/chain/config/regtest.rs Outdated Show resolved Hide resolved
common/src/chain/config/regtest.rs Show resolved Hide resolved
common/src/chain/config/regtest.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@TheQuantumPhysicist TheQuantumPhysicist left a comment

Choose a reason for hiding this comment

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

Besides the comments, I think this is looking shiny enough.

Cargo.toml Outdated Show resolved Hide resolved
@@ -25,6 +25,8 @@

import random, time

COIN = 100_000_000_000
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be a global definition somewhere. I bet there's already a definition somewhere for bitcoin. We shouldn't redefine it for every test.

@alfiedotwtf alfiedotwtf force-pushed the alfie/genesis-staking-settings branch from 5178993 to 5e548d8 Compare August 4, 2023 06:33
@alfiedotwtf alfiedotwtf merged commit 4d401c7 into master Aug 4, 2023
23 checks passed
@alfiedotwtf alfiedotwtf deleted the alfie/genesis-staking-settings branch August 4, 2023 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants