Added more test to Wallet
This commit is contained in:
parent
fc824a1c11
commit
bf82fa0760
2 changed files with 222 additions and 0 deletions
|
|
@ -713,6 +713,10 @@ Wallet.prototype._onData = function(senderId, data, ts) {
|
|||
|
||||
this.updateSyncedTimestamp(ts);
|
||||
|
||||
console.log('data.type ', data.type);
|
||||
console.log('this.id ', this.id);
|
||||
console.log('data.walletId ', data.walletId);
|
||||
|
||||
if (data.type !== 'walletId' && this.id !== data.walletId) {
|
||||
log.debug('Wallet:' + this.id + ' Received corrupt message:', data)
|
||||
this.emitAndKeepAlive('corrupt', senderId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue