UNPKG

bitcore-node

Version:

A blockchain indexing node with extended capabilities using bitcore

17 lines 790 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const __1 = require(".."); const bch_1 = require("../../providers/chain-state/bch/bch"); const p2p_1 = require("../bitcoin/p2p"); const VerificationPeer_1 = require("../bitcoin/VerificationPeer"); class BCHModule extends __1.BaseModule { constructor(services, chain, network, _config) { super(services); services.Libs.register(chain, 'bitcore-lib-cash', 'bitcore-p2p-cash'); services.P2P.register(chain, network, p2p_1.BitcoinP2PWorker); services.CSP.registerService(chain, network, new bch_1.BCHStateProvider()); services.Verification.register(chain, network, VerificationPeer_1.VerificationPeer); } } exports.default = BCHModule; //# sourceMappingURL=index.js.map