-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Add a --node-api-key
flag to the aptos move replay
command to enable querying the full node using an API key
#15351
base: main
Are you sure you want to change the base?
Conversation
⏱️ 1h 27m total CI duration on this PR
🚨 1 job on the last run was significantly faster/slower than expected
|
/// Key to use for ratelimiting purposes with the node API. This value will be used | ||
/// as `Authorization: Bearer <key>` | ||
#[clap(long)] | ||
pub(crate) node_api_key: Option<String>, |
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 just be using RestOptions
like all the other commands, or does that not make sense here?
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.
RestOptions
holds a url
option. The replay
command actually uses a network
flag and then maps it to a url
. Using both options can be confusing and changing it will just introduce an unnecessary breaking change
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.
Gotcha, this is fine then.
4b4b1ab
to
8946c04
Compare
8946c04
to
749fff9
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
Description
For future Buildspace usage, we need to be able to provide an API key for the replay job to avoid server rate limiting.
For more context:
How Has This Been Tested?
Command without
--node-api-key
executed successfullyCommand with
--node-api-key
executed successfully and can see a spike in the Node api metrics in my Build accountKey Areas to Review
Type of Change
Which Components or Systems Does This Change Impact?
Checklist