7 Commits

Author SHA1 Message Date
David Rusu
c33365b48c cryptarchia: remove unused imports 2024-11-01 23:29:47 +04:00
David Rusu
e4d8887fe4 cryptarchia/ghost: integrate GHOST with maxvalid fork choice 2024-11-01 23:21:49 +04:00
David Rusu
91e1482761 cryptarchia/ghost: remove Chain abstraction 2024-11-01 12:16:06 +04:00
David Rusu
170b825d5b cryptachia/ghost: rewrite on_block to remove dependency on Chain 2024-11-01 12:09:44 +04:00
David Rusu
363ca76ff6 cryptarchia/ghost: unimported_orphans returns orphans w.r.t. to tip 2024-11-01 09:49:59 +04:00
David Rusu
bf5ef98174 cryptarchia/ghost: prep for move to weight based fork choice 2024-10-31 01:52:42 +04: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
2024-03-23 05:50:00 +04:00