diff --git a/bin/dnet/src/model.py b/bin/dnet/src/model.py index 8d3d4ffbc..a7816649d 100644 --- a/bin/dnet/src/model.py +++ b/bin/dnet/src/model.py @@ -167,13 +167,13 @@ class Model: urls = spawn['urls'] whitelist = spawn['whitelist'] greylist = spawn['greylist'] - anchorlist = spawn['anchorlist'] + goldlist = spawn['goldlist'] spawn = self.liliths[key]['spawns'][name] = {} spawn['urls'] = urls spawn['whitelist'] = whitelist spawn['greylist'] = greylist - spawn['anchorlist'] = anchorlist + spawn['goldlist'] = goldlist #logging.debug(f'added lilith {self.liliths}') diff --git a/bin/dnet/src/view.py b/bin/dnet/src/view.py index 1e3ab44fc..9c7b61bbe 100644 --- a/bin/dnet/src/view.py +++ b/bin/dnet/src/view.py @@ -234,12 +234,12 @@ class View(): f" {host}"), self.pile.options())) - if info['anchorlist']: - anchorlist = info['anchorlist'] + if info['goldlist']: + goldlist = info['goldlist'] self.pile.contents.append((urwid.Text( - f"Anchorlist:"), + f"Goldlist:"), self.pile.options())) - for host in anchorlist: + for host in goldlist: self.pile.contents.append((urwid.Text( f" {host}"), self.pile.options())) @@ -317,12 +317,12 @@ class View(): f" {host}"), self.pile.options())) - if info['anchorlist']: - anchorlist = info['anchorlist'] + if info['goldlist']: + goldlist = info['goldlist'] self.pile.contents.append((urwid.Text( - f"Anchorlist:"), + f"Goldlist:"), self.pile.options())) - for host in anchorlist: + for host in goldlist: self.pile.contents.append((urwid.Text( f" {host}"), self.pile.options())) diff --git a/bin/lilith/src/main.rs b/bin/lilith/src/main.rs index 236dc7c39..96721be24 100644 --- a/bin/lilith/src/main.rs +++ b/bin/lilith/src/main.rs @@ -106,7 +106,7 @@ impl Spawn { .collect() } - async fn get_anchorlist(&self) -> Vec { + async fn get_goldlist(&self) -> Vec { self.p2p .hosts() .container @@ -127,7 +127,7 @@ impl Spawn { ("urls".to_string(), JsonValue::Array(addr_vec)), ("whitelist".to_string(), JsonValue::Array(self.get_whitelist().await)), ("greylist".to_string(), JsonValue::Array(self.get_greylist().await)), - ("anchorlist".to_string(), JsonValue::Array(self.get_anchorlist().await)), + ("goldlist".to_string(), JsonValue::Array(self.get_goldlist().await)), ])) } }