cuprate-hinto-janai/storage
Boog900 b44c6b045b
Consensus: add alt-chain handling (#214)
* add `pop_blocks` to the difficulty cache

* add a rolling median struct

* use RollingMedian in weight cache

* add pop_blocks to weight cache

* add alt context cache

* add getting alt RX vms

* rework alt cache

* add alt block verify function

* keep alt caches around

* add alt checked alt blocks to the cache

* check the alt blocks timestamp

* add docs + cleanup code

* add popping blocks from the context cache

* finish popping blocks + fix tests

* fix doc

* add a test popping blocks from HF cache

* add a request to clear alt caches

* add back lint

* Apply suggestions from code review

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>

* review fixes

* small changes

* change panic doc

---------

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-07-29 01:13:08 +01:00
..
blockchain Consensus: add alt-chain handling (#214) 2024-07-29 01:13:08 +01:00
database storage: doc fixes (#228) 2024-07-12 22:15:02 +01:00
txpool workspace: enforce crate/directory naming scheme (#164) 2024-06-24 02:30:47 +01:00
README.md repo: add skeleton directories, fix labels (#139) 2024-05-29 02:18:30 +01:00

storage

TODO: This subdirectory used to be database/ and is in the middle of being shifted around.

The old database/ design document is in cuprate-blockchain/ which will eventually be ported Cuprate's architecture book.