Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fetcher] Initialize with non-primary network #124

Merged

Conversation

patrick-ogrady
Copy link
Contributor

@patrick-ogrady patrick-ogrady commented Sep 1, 2020

Fixes #96

This PR makes it possible to initialize the fetcher with some non-default network. This is useful for Rosetta implementations that support multiple networks.

Changes

  • allow for initializing asserter with a provided network
  • add test for fetcher initialization

@coveralls
Copy link

coveralls commented Sep 1, 2020

Pull Request Test Coverage Report for Build 5703

  • 15 of 21 (71.43%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.1%) to 79.641%

Changes Missing Coverage Covered Lines Changed/Added Lines %
utils/utils.go 0 6 0.0%
Totals Coverage Status
Change from base Build 5670: 1.1%
Covered Lines: 3415
Relevant Lines: 4288

💛 - Coveralls

@patrick-ogrady patrick-ogrady force-pushed the patrick/fix-genesis-block-accross-sub-networks branch from cd76475 to 590aaa0 Compare September 1, 2020 19:26
@patrick-ogrady patrick-ogrady changed the title Allow fetcher assertion to accept network identifier [Fetcher] Initialize with non-primary network Sep 1, 2020
@patrick-ogrady patrick-ogrady merged commit d33c9a5 into master Sep 1, 2020
@patrick-ogrady patrick-ogrady deleted the patrick/fix-genesis-block-accross-sub-networks branch September 1, 2020 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[Fetcher] Assumes genesis block the same across Sub-Networks
3 participants