lighthouse/beacon_node
Paul Hauner 7f6ae4c2f5
Refactor tree hashing (#861)
* Pre-allocated tree hash caches

* Add SmallVec to tree hash cache

* Avoid allocation for validator.pubkey

* Avoid iterator which seems to be doing heap alloc

* Add more smallvecs

* MOAR SMALLVEC

* Move non-test code to Hash256 tree hash

* Fix byte ordering error

* Add incomplete but working merkle stream impl

* Fix zero hash error

* Add zero hash fn

* Add MerkleStream comments

* Add smallvec, tidy

* Integrate into tree hash derive

* Update ssz_types tree hash

* Don't heap alloc for mix in length

* Add byte-level streaming to MerkleStream

* Avoid recursion in write method

* Update BLS to MerkleStream

* Fix some not-compiling tests

* Remove debug profiling

* Remove code duplication

* Move beacon state tree hash to new hasher

* Fix failing tests

* Update comments

* Add some fast-paths to tree_hash::merkle_root

* Remove unncessary test

* Rename MerkleStream -> MerkleHasher

* Rename new_with_leaf_count -> with_leaves

* Tidy

* Remove NonZeroUsize

* Remove todo

* Update smallvec
2020-03-05 08:07:27 +11:00
..
beacon_chain Refactor tree hashing (#861) 2020-03-05 08:07:27 +11:00
client Fix incorrect error message in ClientBuilder (#888) 2020-03-04 16:37:13 +11:00
eth1 Refactor tree hashing (#861) 2020-03-05 08:07:27 +11:00
eth2-libp2p Add support for noise protocol (#873) 2020-03-02 13:35:20 +11:00
genesis Refactor tree hashing (#861) 2020-03-05 08:07:27 +11:00
network Change port in test to some fairly random number (#874) 2020-03-02 13:36:34 +11:00
rest_api Faster attestation production (#838) 2020-03-04 17:10:22 +11:00
src Remove testnet dir from repo (#857) 2020-03-04 10:02:44 +11:00
store Add methods to delete blocks and states from disk (#843) 2020-03-04 16:48:35 +11:00
tests Faster attestation production (#838) 2020-03-04 17:10:22 +11:00
version Apply clippy suggestions 2019-03-19 23:20:39 +11:00
websocket_server Improve beacon node logging (#660) 2019-12-06 18:44:38 +11:00
Cargo.toml Implements a timeout for peer banning (#665) 2019-12-06 14:13:43 +11:00