INNER CODE UNIT · JavaScript

initExtra

rainfu/xcoin · xcoin.js:110

function initExtra(conf, args) {
  module.exports.debug = args.debug;
  var eventBus = new EventEmitter();
  conf.eventBus = eventBus;
}
/**
 * init xcoin database
 * @param {*} xcoin
 * @param {*} conf
 * @param {*} cb
 */
function initDb(xcoin, conf, cb) {
  var authStr = "",
    authMechanism,
    connectionString;
  if (conf.secret.db.mongo.username) {
    authStr = encodeURIComponent(conf.secret.db.mongo.username);
    if (conf.secret.db.mongo.password)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…