Add comments

This commit is contained in:
Paul Hauner
2019-08-21 14:48:49 +10:00
parent a6da933886
commit a8daf46d5f
2 changed files with 23 additions and 0 deletions

View File

@@ -158,6 +158,8 @@ impl Config {
}
}
/// Perform the HTTP bootstrapping procedure, reading an ENR and multiaddr from the HTTP server and
/// adding them to the `config`.
fn do_bootstrapping(config: &mut Config, server: String, log: &slog::Logger) -> Result<(), String> {
// Set the genesis state source.
config.genesis_state = GenesisState::HttpBootstrap {