-
Notifications
You must be signed in to change notification settings - Fork 13
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: move network validation to GetFullNodeAPIV1Curio #345
base: main
Are you sure you want to change the base?
refactor: move network validation to GetFullNodeAPIV1Curio #345
Conversation
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 think cleanup from previous approach is pending.
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.
Looks good. Just need 1 last change.
@Winter-Soren Can you please run |
@Winter-Soren Follow up on last message. Can you please finish the PR so we can merge this? |
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.
Please make the following changed to fix the conflict.
cmd/curio/run.go
Outdated
@@ -135,7 +135,7 @@ var runCmd = &cli.Command{ | |||
return xerrors.Errorf("starting market RPCs: %w", err) | |||
} | |||
|
|||
err = rpc.ListenAndServe(ctx, dependencies, shutdownChan) // Monitor for shutdown. | |||
err = rpc.ListenAndServe(ctx, dependencies, shutdownChan) |
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.
err = rpc.ListenAndServe(ctx, dependencies, shutdownChan) | |
err = rpc.ListenAndServe(ctx, dependencies, shutdownChan) // Monitor for shutdown. |
deps/apiinfo.go
Outdated
@@ -22,6 +22,7 @@ import ( | |||
lapi "github.com/filecoin-project/lotus/api" | |||
"github.com/filecoin-project/lotus/chain/types" | |||
cliutil "github.com/filecoin-project/lotus/cli/util" | |||
"github.com/filecoin-project/lotus/build" |
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.
You should use the build package from Curio here.
"github.com/filecoin-project/curio/build"
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.
Sure, I will proceed ahead!
@LexLuthr as suggested I have added the build package "github.com/filecoin-project/curio/build" in apiinfo.go |
@Winter-Soren https://app.circleci.com/pipelines/github/filecoin-project/curio/1566/workflows/bfbb7f65-b38a-4802-b754-0f0d3bfa6352/jobs/13668 will tell you why test are not passing. We group the go dependencies. Just run |
This PR implements network validation at the API connection level to prevent mismatched network connections early in the startup process.
Changes:
build.BuildTypeString()
run.go
toGetFullNodeAPIV1Curio()
Fixes #340