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

[check:construction] Wait to start check:construction until reaching tip #142

Merged
merged 8 commits into from
Sep 29, 2020

Conversation

patrick-ogrady
Copy link
Contributor

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

Closes: #100

This PR delays the start of check:construction until an implementation is at tip. This prevents the rosetta-cli from syncing a ton of blocks unnecessarily.

Logging Changes

Progress

image

Waiting to Start

image

Changes

  • Update to new v0.4.8 release of rosetta-sdk-go
  • Log memory usage periodically
  • Add waitForTip method to wait to begin syncing until we are at tip
  • use float64 for blocks per second (we could easily be less than 1)
  • check wait for tip status before sleeping the first time (right now we always wait 10 seconds)
  • Update version

@coveralls
Copy link

coveralls commented Sep 29, 2020

Pull Request Test Coverage Report for Build 4908

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 84.737%

Totals Coverage Status
Change from base Build 4831: 0.0%
Covered Lines: 161
Relevant Lines: 190

💛 - Coveralls

@patrick-ogrady patrick-ogrady force-pushed the patrick/wait-to-start-until-tip branch from 820198a to 6af5313 Compare September 29, 2020 17:08
@patrick-ogrady patrick-ogrady force-pushed the patrick/wait-to-start-until-tip branch from 103be8b to aa37ee4 Compare September 29, 2020 17:43
@patrick-ogrady patrick-ogrady force-pushed the patrick/wait-to-start-until-tip branch from 201139c to 0e71795 Compare September 29, 2020 18:05
@patrick-ogrady patrick-ogrady changed the title Patrick/wait to start until tip [check:construction] Wait to start check:construction until reaching tip Sep 29, 2020
@patrick-ogrady patrick-ogrady merged commit ae4ef80 into master Sep 29, 2020
@patrick-ogrady patrick-ogrady deleted the patrick/wait-to-start-until-tip branch September 29, 2020 18:16
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.

Provide some metrics when running check process
3 participants