Adding timeout for marking peer as trusted

This commit is contained in:
Richard Ramos 2018-11-16 16:34:55 -04:00
parent 0a0b901422
commit 173dafe1e7

View File

@ -32,6 +32,7 @@ class MailServers {
return;
}
setTimeout(() => {
this.web3.shh.markTrustedPeer(enode)
.then(res => {
this.mailserver = enode;
@ -42,6 +43,7 @@ class MailServers {
if (!cb) return;
cb(e, false);
});
}, 1000);
});
}