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