You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

32 lines
528 B

class Clients {
constructor() {
this.network = "bitcoin";
this.mainClient = {
bitcoin: false,
bitcoinTestnet: false
};
this.peer = {
bitcoin: { port: 0, host: "", protocol: "" },
bitcoinTestnet: { port: 0, host: "", protocol: "" }
};
this.peers = {
bitcoin: [],
bitcoinTestnet: []
};
}
updateNetwork(network) {
this.network = network;
}
updateMainClient(mainClient) {
this.mainClient = mainClient;
}
updatePeer(peer) {
this.peer = peer;
}
}
module.exports = new Clients();