1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

add source for header in create infura client (#6023)

* add source for header in create infura client

* bump eth-json-rpc-infura
This commit is contained in:
Jenny Pollack 2019-01-24 16:56:55 -08:00 committed by Frankie
parent 2d7c9b3dac
commit 456bfaf9ed
2 changed files with 266 additions and 679 deletions

View File

@ -12,7 +12,7 @@ const BlockTracker = require('eth-block-tracker')
module.exports = createInfuraClient
function createInfuraClient ({ network }) {
const infuraMiddleware = createInfuraMiddleware({ network })
const infuraMiddleware = createInfuraMiddleware({ network, maxAttempts: 5, source: 'metamask' })
const infuraProvider = providerFromMiddleware(infuraMiddleware)
const blockTracker = new BlockTracker({ provider: infuraProvider })

943
package-lock.json generated

File diff suppressed because it is too large Load Diff