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

refactor(testutil/testnode): Allow passing chainID to testnode constuctor #1445

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

renaynay
Copy link
Member

@renaynay renaynay commented Mar 7, 2023

Allows customising the chainID of the testnode.

@MSevey MSevey requested review from a team and MSevey and removed request for a team March 7, 2023 12:59
@evan-forbes evan-forbes requested a review from rootulp March 7, 2023 13:06
@evan-forbes evan-forbes added the warn:api breaking item will be break an API and require a major bump label Mar 7, 2023
@evan-forbes evan-forbes modified the milestone: Mainnet Mar 7, 2023
tmNode, app, cctx, err := New(t, DefaultParams(), tmCfg, false, genState, kr)
tmNode, app, cctx, err := New(t, DefaultParams(), tmCfg, false, genState, kr, tmrand.Str(6))
Copy link
Member

Choose a reason for hiding this comment

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

we could optionally also bubble this up if you all want to hopefully avoid duplicate code in https://github.com/celestiaorg/celestia-node/blob/main/core/testing.go, but I understand just using the current apis

Copy link
Member Author

Choose a reason for hiding this comment

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

Up to you - I'm fine with whatever. We use testnode constructor directly

@rootulp rootulp merged commit 909a566 into celestiaorg:main Mar 7, 2023
rootulp pushed a commit to rootulp/celestia-app that referenced this pull request Mar 31, 2023
…ctor (celestiaorg#1445)

Allows customising the `chainID` of the testnode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
warn:api breaking item will be break an API and require a major bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants