Zebra/zebra-consensus
teor 851afad01f
fix: Resist CheckpointVerifier memory DoS attacks (#635)
* fix: Resist CheckpointVerifier memory DoS attacks

Allow a maximum of 2 queued blocks at each height, as a tradeoff between
efficient bad block rejection, and memory usage.

Closes #628.

* fix: Make max queued blocks at height equal to fanout

* fix: Just allocate all the capacity upfront

* fix: Use with_capacity(1) and reserve_exact(1)
2020-07-15 13:27:10 -07:00
..
src fix: Resist CheckpointVerifier memory DoS attacks (#635) 2020-07-15 13:27:10 -07:00
Cargo.toml fix spandoc instrumentation for await expressions (#618) 2020-07-09 17:43:44 -04:00