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:
parent
2d7c9b3dac
commit
456bfaf9ed
@ -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
943
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user