Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(
private readonly config: ConfigService,
) {
this.config = config;
this.port = Number.parseInt(this.config.get('ptarmigan.bitcoindPort')),
this.host = this.config.get('ptarmigan.bitcoindHost'),
this.username = this.config.get('ptarmigan.bitcoindUser'),
this.password = this.config.get('ptarmigan.bitcoindPassword')
this.client = jayson.Client.http({
port: this.port,
host: this.host,
auth: this.username + ':' + this.password
});
}
constructor(
private readonly config: ConfigService,
) {
this.config = config;
this.port = Number.parseInt(this.config.get('ptarmigan.ptarmdRpcPort'), 10),
this.host = this.config.get('ptarmigan.ptarmdHost'),
this.path = this.config.get('ptarmigan.ptarmdPath'),
this.nodePath = this.config.get('ptarmigan.ptarmdNodePath'),
this.client = jayson.Client.tcp({
port: this.port,
host: this.host,
});
}