From 54e7565d3f39457c5678ad46baeab1cd8294d916 Mon Sep 17 00:00:00 2001 From: Damian Mee Date: Fri, 7 Nov 2014 02:40:09 +0100 Subject: [PATCH] refactor(plugins): temporaryName -> blockchainUtil --- lib/{temporary_name.js => blockchain_util.js} | 0 lib/plugins.js | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename lib/{temporary_name.js => blockchain_util.js} (100%) diff --git a/lib/temporary_name.js b/lib/blockchain_util.js similarity index 100% rename from lib/temporary_name.js rename to lib/blockchain_util.js diff --git a/lib/plugins.js b/lib/plugins.js index ca0bc44f..603b4283 100644 --- a/lib/plugins.js +++ b/lib/plugins.js @@ -17,7 +17,7 @@ var traderPlugin = null; var walletPlugin = null; var idVerifierPlugin = null; -var temporaryName = null; +var blockchainUtil = null; var currentlyUsedPlugins = {}; @@ -169,8 +169,8 @@ exports.configure = function configure(config) { ); // NOTE: temp solution - if (temporaryName === null) - temporaryName = require('./temporary_name'); + if (blockchainUtil === null) + blockchainUtil = require('./blockchain_util'); }; exports.getCachedConfig = function getCachedConfig() { return cachedConfig; @@ -305,7 +305,7 @@ function _monitorAddress(address, cb) { var interval = 300; // TODO make config function checkAddress(_cb) { - temporaryName.addressReceived(address, confs, function(err, _received) { + blockchainUtil.addressReceived(address, confs, function(err, _received) { if (err) logger.error(err); if (_received > 0) received = _received; setTimeout(_cb, interval);