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

Fix get_valid_proof() in verifier.py #12

Open
scaffino opened this issue Oct 15, 2024 · 1 comment
Open

Fix get_valid_proof() in verifier.py #12

scaffino opened this issue Oct 15, 2024 · 1 comment
Assignees

Comments

@scaffino
Copy link
Owner

  1. if tx_info['error'] is None: --> check that the key error exists. Use: if 'error' not in tx_info or if tx_info is none. Also check that the result key is there (needed a few lines below)
  2. if 'confirmations' in tx_info['result'] --> use try-except, because this if might fail (not sure about this, it might be fine as is)
  3. the break at the end should not break unless the proof is valid. Check behaviour by using regression test
@scaffino scaffino self-assigned this Oct 15, 2024
@scaffino
Copy link
Owner Author

1 and 2 should be done, but need to write test to verify behavior under different cases.

Should add a break in this function in case there is not valid proof ever?

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

No branches or pull requests

1 participant