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

feat: add consistent ban reason for sync #5729

Conversation

hansieodendaal
Copy link
Contributor

Description

Added consistent ban reason for sync/block_sync sync/header_sync and sync/horizon_state_sync w.r.t. validation errors.

Motivation and Context

ValidationError::get_ban_reason will determine if a particular validation error is ban-able.

How Has This Been Tested?

Pass existing tests

What process can a PR reviewer use to test or verify this change?

Code walk-through

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

Added consistent ban reason for sync/block_sync sync/header_sync and sync/horizon_state_sync
w.r.t. validation errors. `ValidationError::get_ban_reason` will determine if a particular
validation error is ban-able.
@hansieodendaal hansieodendaal changed the title feat : add consistent ban reason for block_sync, header_sync and horizon_state_sync feat : add consistent ban reason for sync Sep 3, 2023
@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Sep 3, 2023
@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Sep 3, 2023
@github-actions
Copy link

github-actions bot commented Sep 3, 2023

Test Results (CI)

1 197 tests   1 197 ✔️  7m 19s ⏱️
     38 suites         0 💤
       1 files           0

Results for commit 96f0292.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 3, 2023

Test Results (Integration tests)

  2 files  11 suites   13m 24s ⏱️
27 tests 26 ✔️ 0 💤 1
28 runs  27 ✔️ 0 💤 1

For more details on these failures, see this check.

Results for commit 96f0292.

♻️ This comment has been updated with latest results.

@SWvheerden SWvheerden changed the title feat : add consistent ban reason for sync feat: add consistent ban reason for sync Sep 3, 2023
@SWvheerden SWvheerden merged commit 9564281 into tari-project:development Sep 3, 2023
@hansieodendaal hansieodendaal deleted the ho_consistent_validation_error_handling branch September 4, 2023 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants