Skip to content

Commit

Permalink
add source for header in create infura client (#6023)
Browse files Browse the repository at this point in the history
* add source for header in create infura client

* bump eth-json-rpc-infura
  • Loading branch information
jennypollack authored and frankiebee committed Jan 25, 2019
1 parent 2d7c9b3 commit 456bfaf
Show file tree
Hide file tree
Showing 2 changed files with 268 additions and 681 deletions.
2 changes: 1 addition & 1 deletion app/scripts/controllers/network/createInfuraClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

Expand Down
Loading

0 comments on commit 456bfaf

Please sign in to comment.