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
2024-03-23 05:50:00 +04:00
2024-01-31 09:33:44 +01:00
2024-03-22 13:01:13 +02:00
2024-01-31 09:53:04 +01:00
2024-01-31 09:53:04 +01:00
2024-02-27 17:49:27 +01:00

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
Nomos related specification and documentation
Readme
Languages
Python 99.9%
Shell 0.1%