|
|
|
@ -206,6 +206,18 @@ class LokiMessageAPI {
|
|
|
|
targetNode
|
|
|
|
targetNode
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// do not return true if we get false here...
|
|
|
|
|
|
|
|
if (result === false) {
|
|
|
|
|
|
|
|
log.warn(
|
|
|
|
|
|
|
|
`loki_message:::_sendToNode - Got false from ${targetNode.ip}:${
|
|
|
|
|
|
|
|
targetNode.port
|
|
|
|
|
|
|
|
}`
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
successiveFailures += 1;
|
|
|
|
|
|
|
|
// eslint-disable-next-line no-continue
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Make sure we aren't doing too much PoW
|
|
|
|
// Make sure we aren't doing too much PoW
|
|
|
|
const currentDifficulty = window.storage.get('PoWDifficulty', null);
|
|
|
|
const currentDifficulty = window.storage.get('PoWDifficulty', null);
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
|