mirror of
https://github.com/status-im/status-js-api.git
synced 2025-02-20 05:08:06 +00:00
Adding timeout for marking peer as trusted
This commit is contained in:
parent
0a0b901422
commit
173dafe1e7
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user