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

Penv-442: pulse comparator #391

Closed
wants to merge 4 commits into from
Closed

Conversation

sofiayem
Copy link
Contributor

@sofiayem sofiayem commented Jul 8, 2020

pulse_comparator is a script that sends identical "transactions-in-pulse-number-range" requests to MainNet and local node's APIs, compares results, and saves both the request and result (or diff) in a file for future manual query and comparison via copy-paste.

Test the "no diff" case (expected):

  1. Bring up the local node against a dev environment.
  2. Set the MainNetURL value (in const) to the dev environment's public read-only API endpoint.
  3. Run the script as follows:
    go run pulse_comparator.go <from_some_pulse_number_in_dev_env> <to_some_pulse_number_in_dev_env> <limit> <dev_env_API_endpoint>

Test the "diff" case:

  1. Comment line 88 and uncomment lines 91 and 92.
  2. Perform all the steps from the previous case.

@sofiayem sofiayem closed this Jul 14, 2020
@sofiayem sofiayem deleted the PENV-442-pulse-comparator branch July 14, 2020 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant