mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-12 08:51:11 +00:00
Use node name as backup in case pubkey is not present (#50)
This commit is contained in:
@@ -60,7 +60,7 @@ export default class Node {
|
||||
messages: Array<Message>,
|
||||
) {
|
||||
this.ip = ip;
|
||||
this.id = getId(address);
|
||||
this.id = getId(address, name);
|
||||
this.name = name;
|
||||
this.chain = chain;
|
||||
this.config = config;
|
||||
@@ -205,7 +205,7 @@ export default class Node {
|
||||
this.socket.close();
|
||||
this.socket.terminate();
|
||||
|
||||
refreshId(this.address, this.id);
|
||||
refreshId(this.address, this.name, this.id);
|
||||
|
||||
this.events.emit('disconnect');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user