Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

subproviders: Fix Trezor subprovider inefficiency #1830

Merged
merged 3 commits into from
May 24, 2019

Conversation

fabioberger
Copy link
Contributor

Description

Cache the derived key info since it does not change and currently we request it from the Trezor device for each request.

Credit goes to @NoahZinsmeister who suggested this optimization: https://github.com/NoahZinsmeister/0x-monorepo/commit/d77ea80509a365acf941136c9ecc92be7bb2c7d1

Testing instructions

Types of changes

Checklist:

  • Prefix PR title with [WIP] if necessary.
  • Add tests to cover changes as needed.
  • Update documentation as needed.
  • Add new entries to the relevant CHANGELOG.jsons.

…request it from the Trezor device for each request
@coveralls
Copy link

coveralls commented May 23, 2019

Coverage Status

Coverage increased (+0.003%) to 83.693% when pulling bdb2a01 on feature/fixTrezorInefficiency into f1d96d9 on development.

packages/subproviders/src/subproviders/trezor.ts Outdated Show resolved Hide resolved
@fabioberger fabioberger merged commit fad5000 into development May 24, 2019
@fabioberger fabioberger deleted the feature/fixTrezorInefficiency branch May 24, 2019 00:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants