Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Fix warning about --no-hardcoded-sync being printed when it shouldn't #8261

Merged
merged 1 commit into from
Mar 29, 2018

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Mar 29, 2018

@tomaka tomaka added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Mar 29, 2018
@@ -575,7 +575,7 @@ pub fn execute_impl(cmd: RunCmd, can_restart: bool, logger: Arc<RotatingLogger>)
}

// display warning if using --no-hardcoded-sync
if !cmd.no_hardcoded_sync {
if cmd.no_hardcoded_sync {
Copy link
Contributor

Choose a reason for hiding this comment

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

does this show this warning if you actually run --light?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, this is in a function that sets up the full client only.

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool

Copy link
Contributor Author

@tomaka tomaka Mar 29, 2018

Choose a reason for hiding this comment

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

No, the execute_impl function is run only when we start a full node. This if is never reached on the light client.

EDIT: oh, didn't see the existing answer

@tomusdrw tomusdrw merged commit 7f9589d into master Mar 29, 2018
@tomusdrw tomusdrw deleted the tomaka-patch-1 branch March 29, 2018 12:34
@5chdn 5chdn added this to the 1.11 milestone Apr 3, 2018
@5chdn 5chdn added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels May 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants