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

Refactor TxSet validation logic. #4627

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dmkozh
Copy link
Contributor

@dmkozh dmkozh commented Jan 18, 2025

Description

Refactor TxSet validation logic.

Also added the validation logic for the parallel Soroban phase, which has motivated the refactoring in the first place. The general idea is to move the phase-specific validation into phase frames.

Also improved the test coverage for the TxSet validation:

  • Fixed the test for XDR structure validation - the whole 'valid' section has never been executed.
  • Added a test for Soroban resource validation
  • Added more coverage for parallel tx set phase validation

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

Also added the validation logic for the parallel Soroban phase, which has motivated the refactoring in the first place. The general idea is to move the phase-specific validation into phase frames.

Also improved the test coverage for the TxSet validation:

- Fixed the test for XDR structure validation - the whole 'valid' section has never been executed.
- Added a test for Soroban resource validation
- Added more coverage for parallel tx set phase validation
@dmkozh dmkozh force-pushed the txset_validation_refactor branch from ba003bb to 3917f1f Compare January 21, 2025 18:28
src/herder/TxSetFrame.cpp Show resolved Hide resolved
src/herder/TxSetFrame.cpp Show resolved Hide resolved
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.

2 participants