Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(options) {
this.logger = Logger.global;
this.resolve = dns.lookup;
this.prefix = null;
this.dnsKnown = [];
this.known = new Map();
this.authorized = [];
this.init(options);
}
constructor(options) {
super(RES_OPT);
this.ra = false;
this.edns = true;
this.dnssec = true;
this.icann = new RootResolver(RES_OPT);
this.logger = Logger.global;
this.key = secp256k1.privateKeyGenerate();
this.host = '127.0.0.1';
this.port = 5300;
this.lookup = null;
this.publicHost = '127.0.0.1';
this.cache = new RootCache(3000);
this.initNode();
if (options)
this.initOptions(options);
}
constructor(logger) {
super();
this.logger = Logger.global;
this.minTrackedFee = MIN_FEERATE;
this.minTrackedPri = MIN_PRIORITY;
this.feeStats = new ConfirmStats('FeeRate');
this.priStats = new ConfirmStats('Priority');
this.feeUnlikely = 0;
this.feeLikely = INF_FEERATE;
this.priUnlikely = 0;
this.priLikely = INF_PRIORITY;
this.map = new BufferMap();
this.bestHeight = 0;
if (policy.MIN_RELAY >= MIN_FEERATE)
constructor(options) {
this.network = Network.primary;
this.logger = Logger.global;
this.resolve = dns.lookup;
this.host = '0.0.0.0';
this.port = this.network.port;
this.services = common.LOCAL_SERVICES;
this.onion = false;
this.banTime = common.BAN_TIME;
this.address = new NetAddress();
this.address.services = this.services;
this.address.time = this.network.now();
this.seeds = this.network.seeds;
this.nodes = [];
this.maxBuckets = 20;
this.maxEntries = 50;
constructor (options) {
this.network = Network.primary;
this.logger = Logger.global;
this.msdb = null;
this.whttp = null;
this.version = '0.0.0';
this.apiKey = base58.encode(random.randomBytes(20));
this.apiHash = sha256.digest(Buffer.from(this.apiKey, 'ascii'));
this.adminToken = random.randomBytes(32);
this.serviceHash = this.apiHash;
this.noAuth = false;
this.walletAuth = false;
this.cors = false;
this.fromOptions(options);
}
constructor(options) {
this.network = Network.primary;
this.logger = Logger.global;
this.client = null;
this.prefix = null;
this.location = null;
this.memory = true;
this.compression = true;
this.cacheSize = 8 << 20;
this.maxFiles = 64;
this.fromOptions(options);
}
constructor(options) {
this.network = Network.primary;
this.logger = Logger.global;
this.workers = null;
this.prefix = null;
this.location = null;
this.treeLocation = null;
this.memory = true;
this.maxFiles = 64;
this.cacheSize = 32 << 20;
this.compression = true;
this.spv = false;
this.prune = false;
this.indexTX = false;
this.indexAddress = false;
this.forceFlags = false;
constructor(options) {
this.network = Network.primary;
this.logger = Logger.global;
this.createSocket = tcp.createSocket;
this.version = common.PROTOCOL_VERSION;
this.services = common.LOCAL_SERVICES;
this.agent = common.USER_AGENT;
this.identityKey = common.ZERO_KEY;
this.noRelay = false;
this.spv = false;
this.compact = false;
this.headers = false;
this.banScore = common.BAN_SCORE;
this.getHeight = PeerOptions.getHeight;
this.isFull = PeerOptions.isFull;
this.createNonce = PeerOptions.createNonce;
this.hasNonce = PeerOptions.hasNonce;
constructor(options) {
this.network = Network.primary;
this.logger = Logger.global;
this.workers = null;
this.client = null;
this.feeRate = 0;
this.prefix = null;
this.location = null;
this.memory = true;
this.maxFiles = 64;
this.cacheSize = 16 << 20;
this.compression = true;
this.spv = false;
this.checkpoints = false;
this.wipeNoReally = false;
if (options)