mirror of
https://github.com/logos-co/nomos-specs.git
synced 2025-02-02 18:44:11 +00:00
davidrusu
d2f6ad579a
Stake Relativization Specification + Fixes (#86)
* cryptarchia/relative-stake: failing test showing lack of inference * implement stake-relativization spec * test total stake inference in empty epoch * move TestNode to test_common * fix bug in Follower re-org logic * improve orphan proof test coverage * force orphans to already have been in one of the existing branches * rename initial_inferred_total_stake ==> initial_total_stake * add simple orphan import test * Follower.unimported_orphans: ensure no orphans from same branch * remove unnecessary LedgerState.slot * cryptarchia: doc fixes * factor out total stake inference * docs for total stake inference * rename total_stake to total_active_stake * replace prints in cryptarchia with logging.logger
nomos-specs
Nomos related specification and documentation
Running Tests
To run all tests, run the following from the project root
python -m unittest -v
To test a specific module
python -m unittest -v cryptarchia.test_leader
Or all test modules in a directory
python -m unittest -v cryptarchia/test_*
Description
Languages
Python
99.9%
Shell
0.1%