Trying to fix bip72

This commit is contained in:
Gustavo Maximiliano Cortez 2014-12-01 05:24:19 -03:00
commit 92737bc49c
8 changed files with 50 additions and 43 deletions

View file

@ -629,7 +629,7 @@ Wallet.prototype._onAddressBook = function(senderId, data) {
var self = this,
hasChange;
_.each(data.addressBook, function(value, key) {
if (!self.addressBook[key] && Address.validate(key)) {
if (key && !self.addressBook[key] && Address.validate(key)) {
self.addressBook[key] = _.pick(value, ['createdTs', 'label']);