Increase shepherd thresholds (#1736)

* Mark depreciated react lifecycles as unsafe

* Rename mycrypto-shepherd ->  myc-shepherd, increase thresholds

* swap myc-shepherd for mycrypto-shepherd
This commit is contained in:
HenryNguyen5 2018-05-11 15:02:50 -04:00 committed by Daniel Ternyak
parent ae2ac4f2c6
commit 6c84654172
3 changed files with 15 additions and 11 deletions

View File

@ -11,7 +11,7 @@ export const makeProviderConfig = (options: DeepPartial<IProviderConfig> = {}):
const defaultConfig: IProviderConfig = {
concurrency: 2,
network: 'ETH',
requestFailureThreshold: 3,
requestFailureThreshold: 10,
supportedMethods: {
getNetVersion: true,
ping: true,
@ -30,7 +30,7 @@ export const makeProviderConfig = (options: DeepPartial<IProviderConfig> = {}):
signMessage: true,
sendTransaction: true
},
timeoutThresholdMs: 5000
timeoutThresholdMs: 10000
};
return {
@ -45,7 +45,7 @@ export const makeProviderConfig = (options: DeepPartial<IProviderConfig> = {}):
let shepherdProvider: INode;
shepherd
.init()
.init({ queueTimeout: 10000 })
.then(
provider => (shepherdProvider = (new Proxy(provider, tokenBalanceHandler) as any) as INode)
);

View File

@ -30,7 +30,7 @@
"lodash": "4.17.5",
"moment": "2.22.1",
"moment-timezone": "0.5.14",
"mycrypto-shepherd": "1.2.0",
"mycrypto-shepherd": "1.3.1",
"normalizr": "3.2.4",
"qrcode": "1.2.0",
"qrcode.react": "0.8.0",

View File

@ -43,9 +43,9 @@
core-js "^2.5.3"
regenerator-runtime "^0.11.1"
"@parity/qr-signer@0.1.1":
version "0.1.1"
resolved "https://registry.yarnpkg.com/@parity/qr-signer/-/qr-signer-0.1.1.tgz#3fd268bba845c37bc06d9aa0abe2a1050d8b73e1"
"@parity/qr-signer@0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@parity/qr-signer/-/qr-signer-0.2.0.tgz#5c6c41c03265608c117346f0a9d7ab89699352fa"
dependencies:
qrcode-generator "1.3.1"
react-qr-reader "2.0.1"
@ -204,6 +204,10 @@
dependencies:
redux "^3.6.0"
"@types/semver@5.5.0":
version "5.5.0"
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-5.5.0.tgz#146c2a29ee7d3bae4bf2fcb274636e264c813c45"
"@types/url-search-params@^0.10.1":
version "0.10.1"
resolved "https://registry.yarnpkg.com/@types/url-search-params/-/url-search-params-0.10.1.tgz#a5b1f30bf4adad70b103e22c3e1a478869b51be7"
@ -7422,9 +7426,9 @@ mute-stream@0.0.7:
version "0.0.7"
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab"
mycrypto-shepherd@1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/mycrypto-shepherd/-/mycrypto-shepherd-1.2.0.tgz#856a7b250f187dc90508cd7b98ed2dba95c6ea0b"
mycrypto-shepherd@1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/mycrypto-shepherd/-/mycrypto-shepherd-1.3.1.tgz#901d86e2278c08fd9a3a0aee7a13dea971dbbc38"
dependencies:
"@types/jest" "^22.2.2"
"@types/node" "^9.6.2"
@ -9977,7 +9981,7 @@ semver-truncate@^1.0.0:
dependencies:
semver "^5.3.0"
"semver@2 || 3 || 4 || 5", semver@^5.0.1, semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@^5.4.1, semver@^5.5.0:
"semver@2 || 3 || 4 || 5", semver@5.5.0, semver@^5.0.1, semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@^5.4.1, semver@^5.5.0:
version "5.5.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab"