Skip to content

Update core logic files - #160

Merged
JamesEjembi merged 4 commits into
VeriNode-Labs:mainfrom
zinodict121:feature/update-snapshots
Aug 22, 2026
Merged

Update core logic files#160
JamesEjembi merged 4 commits into
VeriNode-Labs:mainfrom
zinodict121:feature/update-snapshots

Conversation

@zinodict121

Copy link
Copy Markdown
Contributor

Pull Request: Update Core Logic Files (Resolves #149)

Description

This PR introduces updates and new features to the core logic modules to resolve Issue #149. It implements core data structures and logic for slashing evidence verification, penalty calculations, validator balance tracking, job scheduling, and updates the database cache configuration.

Changes Included

  • src/db/mod.rs: Added new modules for database and caching layers for consensus state (committee_cache, migrations, cache).
  • src/job_scheduler/mod.rs: Updated the job scheduling logic.
  • src/slashing/evidence_verifier.rs: Implemented logic for slashing evidence verification, including slot bounds checking and expiry logic (verify_evidence_expiry, verify_surround_vote).
  • src/slashing/penalty_calculator.rs: Implemented penalty calculation functions.
  • src/validator/balance_tracker.rs: Implemented the balance tracker logic for validator staking and penalties.

Testing

  • Unit tests have been added to the respective modules to ensure correct behavior (e.g., in evidence_verifier.rs).
  • All tests pass successfully.

Related Issues

Notes for Reviewers

Please review the bounds calculations in evidence_verifier.rs specifically to ensure they align with the expected slot/epoch timing requirements.

@JamesEjembi
JamesEjembi merged commit 0edc5f6 into VeriNode-Labs:main Aug 22, 2026
3 checks passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Aug 22, 2026
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.

Fix Failing Core Tests

2 participants