-
Notifications
You must be signed in to change notification settings - Fork 920
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
[ONLY IF NEEDED] feat(nodebuilder/p2p): Decouple ChainID
from Network
#2550
base: main
Are you sure you want to change the base?
Conversation
02926e1
to
18efa84
Compare
…use CELESTIA_CUSTOM when defining network name
What is the reason for format "ChainID-da-NetworkID`? If those are independent (while related), maybe we can use 2 separate config params and provide them separately instead of parsing both values from single param? |
ChainID
from Network
ChainID
from Network
I feel there's a lot of weird/undocumented behavior that can occur from the fact that the separator is "-da-" (for example, you can't have a chain/network id called "dark-roast-3-da-x"), and it would make more sense to use a unique character as a separator, such as mocha-3/foo. |
c503449
to
9d623e0
Compare
nodebuilder/p2p/network_test.go
Outdated
name string | ||
expectedChainID string | ||
}{ | ||
{name: "mocha-3-da-custom", expectedChainID: "mocha-3"}, |
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.
How are these tests still passing if : is the separator now?
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.
I forgot to update tests, my bad. I was pushing code while on call with john lol.
Codecov Report
@@ Coverage Diff @@
## main #2550 +/- ##
==========================================
- Coverage 51.39% 51.14% -0.26%
==========================================
Files 158 158
Lines 10304 10410 +106
==========================================
+ Hits 5296 5324 +28
- Misses 4556 4621 +65
- Partials 452 465 +13
|
ChainID
from Network
ChainID
from Network
Reasoning for this feature can be found in the issue linked below.
Resolves #2548