UNPKG

bitcoin-cli-ts

Version:

Auto-generated Bitcoin client library for bitcoind JSON-RPC API

22 lines (21 loc) 982 B
"use strict"; // Auto synced from github actions. Don't change this file Object.defineProperty(exports, "__esModule", { value: true }); exports.addNode = void 0; var tslib_1 = require("tslib"); var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request")); /** * addnode "node" "command" ( v2transport ) * * Attempts to add or remove a node from the addnode list. * Or try a connection to a node once. * Nodes added using addnode (or -connect) are protected from DoS disconnection and are not required to be * full nodes/support SegWit as other outbound peers are (though such peers will not be synced from). * Addnode connections are limited to 8 at a time and are counted separately from the -maxconnections limit. * */ function addNode(params) { var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]); return (0, rpc_request_1.default)({ method: 'addnode', params: methodParams }, bitcoind); } exports.addNode = addNode;