tendermint-rpc
Advanced tools
Comparing version 0.0.4 to 0.0.5
12
index.js
@@ -106,14 +106,6 @@ // settings = { | ||
// bad_remotes = { | ||
// 3: true, | ||
// 12: true | ||
// } | ||
function failover (settings, count, callback) { | ||
// if all remotes are bad, reset count and try again after a 1 second delay | ||
// if all remotes are bad, callback with error | ||
if (count === settings.remotes.length) { | ||
setTimeout(function () { | ||
failover(settings, 0, callback) | ||
}, 1000) | ||
callback(new Error('Network error.')) | ||
// if remote is bad, increment and try again | ||
@@ -120,0 +112,0 @@ } else { |
{ | ||
"name": "tendermint-rpc", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "This is a simple RPC wrapper for the Tendermint API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7059
212