Skip to content
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

Expose TrustPeriod flag for snapshots #1063

Merged
merged 2 commits into from
Oct 7, 2024
Merged

Expose TrustPeriod flag for snapshots #1063

merged 2 commits into from
Oct 7, 2024

Conversation

charithabandi
Copy link
Contributor

No description provided.

jchappelow
jchappelow previously approved these changes Oct 7, 2024
@@ -768,20 +768,30 @@ func buildStatesyncer(d *coreDependencies, db sql.ReadTxMaker) *statesync.StateS

providers := strings.Split(d.cfg.ChainConfig.StateSync.RPCServers, ",")

if len(providers) == 0 {
if len(providers) == 0 || d.cfg.ChainConfig.StateSync.RPCServers == "" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh good catch. I'm not sure how it would ever be len(providers) == 0, but might as well keep that.

@brennanjl
Copy link
Collaborator

@charithabandi seems to be a lint issue

@charithabandi charithabandi merged commit ca809d6 into main Oct 7, 2024
2 checks passed
@charithabandi charithabandi deleted the statesync-flags branch October 7, 2024 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants