fix: all fast sync nodes report to peers as full nodes (#1547)

* fix: all fast sync nodes report to peers as full nodes
This commit is contained in:
Gary Yu
2018-09-20 07:09:39 +08:00
committed by GitHub
parent 2ca6ecc163
commit 56ffbee7e9
4 changed files with 34 additions and 4 deletions
+2 -1
View File
@@ -189,7 +189,8 @@ impl GlobalConfig {
file.read_to_string(&mut contents)?;
let decoded: Result<ConfigMembers, toml::de::Error> = toml::from_str(&contents);
match decoded {
Ok(gc) => {
Ok(mut gc) => {
gc.server.validation_check();
self.members = Some(gc);
return Ok(self);
}