diff --git a/lib/storage.js b/lib/storage.js index 2cb08f2..b6e35fd 100644 --- a/lib/storage.js +++ b/lib/storage.js @@ -481,7 +481,9 @@ Storage.prototype.storeAddressAndWallet = function(wallet, addresses, cb) { return next(false); }); }, function(newAddresses) { - if (newAddresses.length == 0) return cb(); + if (newAddresses.length < addresses.length) { + log.warn('Attempted to store already existing addresses on wallet ' + wallet.id); + } self.db.collection(collections.ADDRESSES).insert(newAddresses, { w: 1 }, function(err) {