PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo-express/node_modules/bitgo/src/v2/coins

Просмотр файла: tbtc.js

var Btc = require('./btc');
var bitcoin = require('bitcoinjs-lib');
var _ = require('lodash');

var Tbtc = function() {
  // this function is called externally from BaseCoin
  // replace the BaseCoin prototype with the local override prototype, which inherits from BaseCoin
  // effectively, move the BaseCoin prototype one level away
  this.__proto__ = Tbtc.prototype;
  this.network = bitcoin.networks.testnet;
};

Tbtc.prototype.__proto__ = Btc.prototype;

Tbtc.prototype.getChain = function() {
  return 'tbtc';
};

module.exports = Tbtc;

Выполнить команду


Для локальной разработки. Не используйте в интернете!