-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(chain): add chain serialization #164
base: zygis/harden-docker-networking
Are you sure you want to change the base?
feat(chain): add chain serialization #164
Conversation
e94051c
to
38b3d17
Compare
38b3d17
to
bd08ed6
Compare
NodeOptions NodeOptions // NodeOptions is the options for creating a node | ||
NodeCreator NodeCreator // NodeCreator is a function that creates a node | ||
|
||
WalletConfig WalletConfig // WalletConfig is the default configuration of a chain's wallet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we mark the WalletConfig option as required and validate its not nil during config validation? During my DO provider testing, I ran into an error when I tried to create a chain without WalletConfig set, but we currently dont do any validation for it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or alternatively add default config
@@ -20,28 +23,31 @@ const idAlphabet = "abcdefghijklqmnoqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ12345678 | |||
var defaultChainConfig = types.ChainConfig{ | |||
Denom: "stake", | |||
Decimals: 6, | |||
NumValidators: 1, | |||
NumValidators: 4, | |||
NumNodes: 0, | |||
BinaryName: "/simd/simd", | |||
Image: provider.ImageDefinition{ | |||
Image: "cosmossdk/simd:latest", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this image publicly available or just cached on your machine? im not able to pull this or find it in the docker hub
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good shout, will replace it
@@ -121,9 +125,5 @@ func (c *ChainConfig) ValidateBasic() error { | |||
return fmt.Errorf("chain ID cannot be empty") | |||
} | |||
|
|||
if c.NodeCreator == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed? this option is still required afaiu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to opts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should validation be added elsewhere then for the required opts fields?
Are all of the A problem we ran into with connect is that we started falling in love with this |
No description provided.