-
Notifications
You must be signed in to change notification settings - Fork 19
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
Rpc options #278
Rpc options #278
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.
Just have a few small comments. Thank you for putting this together!
config/test_utils.go
Outdated
@@ -1,5 +1,3 @@ | |||
//go:build testing |
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 keep this tag in this file. This file is only used in unit tests, so we use the tag to exclude this file from release builds.
change http into HTTP Co-authored-by: cam-schultz <[email protected]> Signed-off-by: nathan haim <[email protected]>
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.
Thanks for making this changes, just one small suggestion
@michaelkaplan13 it looks like you forgot the suggestion 🙂 |
config/config.go
Outdated
@@ -126,6 +126,7 @@ type WarpQuorum struct { | |||
type APIConfig struct { | |||
BaseURL string `mapstructure:"base-url" json:"base-url"` | |||
QueryParams map[string]string `mapstructure:"query-parameters" json:"query-parameters"` | |||
HttpHeaders map[string]string `mapstructure:"http-headers" json:"http-headers"` |
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.
Following golang capitalization conventions, lets make this HTTPHeaders
.
My bad! forgot to hit submit |
Why this should be merged
Adding http-headers for p-chain and info-api clients.
Related to #186
How this works
Use mechanism introduced in #268 to pass http-headers to p-chain & info-api clients.
How this was tested
How is this documented
Details of the new Config fields are added in the README.