refactor(plugins): temporaryName -> blockchainUtil
This commit is contained in:
parent
15ff3c3ee4
commit
54e7565d3f
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue