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
extracted configuration value for vm-queries delay #5071
Conversation
@@ -516,9 +516,13 @@ func (nr *nodeRunner) executeOneComponentCreationCycle( | |||
|
|||
log.Info("application is now running") | |||
|
|||
delayInSecBeforeAllowingVmQueries := configs.GeneralConfig.WebServerAntiflood.VmQueryDelayAfterStartInSec | |||
if delayInSecBeforeAllowingVmQueries == 0 { |
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.
Shall we add a warn here to specify that we override the config value?
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.
done
cmd/node/config/config.toml
Outdated
@@ -589,6 +589,8 @@ | |||
TrieOperationsDeadlineMilliseconds = 10000 | |||
# GetAddressesBulkMaxSize represents the maximum number of addresses to be fetched in a bulk per API request. 0 means unlimited | |||
GetAddressesBulkMaxSize = 100 | |||
# VmQueryDelayAfterStartInSec represents the number of seconds to wait when starting node before accepting vm query requests | |||
VmQueryDelayAfterStartInSec = 5 |
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.
Isn't 5 sec even for testnets too low for a value?
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.
used this for testing, forgot to change back. done
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.
System test passed
Reasoning behind the pull request
Proposed changes
Testing procedure
VmQueryDelayAfterStartInSec
value and (re)start a node. after the number of seconds specified in the config, it should accept API VM Queries. Query example:Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
feat
branch created?feat
branch merging, do all satellite projects have a proper tag insidego.mod
?