Commit 719dc103 authored by Jason Salyers's avatar Jason Salyers

[JES] Testing if I can link against a gitlab version

parent 1b77799a
...@@ -14,6 +14,19 @@ class RPCError extends Error { ...@@ -14,6 +14,19 @@ class RPCError extends Error {
} }
} }
let _errorCount = 0, _errorLimit = 4, _hasBeenInitialized = false, _apiNodeIndex = 0;
const suggestedApiNodes = ['https://api.hive.blog', 'https://anyx.io'];
function notifyError()
{
console.log("in notifyError()");
_errorCount++;
if (_errorCount >= _errorLimit)
{
_errorCount = 0;
}
};
/** /**
* Makes a JSON-RPC request using `fetch` or a user-provided `fetchMethod`. * Makes a JSON-RPC request using `fetch` or a user-provided `fetchMethod`.
* *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment