Skip to content

Conversation

alpeng-jump
Copy link
Contributor

No description provided.

int incremental_snapshot_fetch;
int do_download;
uint maximum_local_snapshot_age;
uint minimum_download_speed_mib;
uint maximum_download_retry_abort;
ulong initial_peers_cnt;
fd_ip4_port_t initial_peers[ 16 ];
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: alignment, also 16UL

@@ -282,7 +282,8 @@ user = ""
# present.
#
# TODO: implement the "at most one downloaded " logic. "
download = true
# TODO: default to true once integrated with gossip
download = false
Copy link
Contributor

Choose a reason for hiding this comment

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

we should keep this as true because the snapshot loader has no way of knowing whether the snapshots on disk are recent right now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Having download as true involves setting an initial peer in the default config, which assumes a cluster. This needs to be a trusted peer too. This is partly the reason we removed hardcoded entrypoints in the first place. The user knows the target cluster and should set this field.

Second, I believe the download option isn't actually used anywhere in snapshot code apart from the config check I added.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh you are right, but we should check the download config option in the snapshot tiles.

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.

2 participants