nimbus-eth2/beacon_chain/ssz
Jacek Sieka c74ba5c0c6
ssz: move ref support outside (#943)
* ssz: move ref support outside

Instead of allocating ref's inside SSZ, move it to separate helper:

* makes `ref` allocations explicit
* less magic inside SSZ
* `ref` in nim generally means reference whereas SSZ was loading as
value - if a type indeed used references it would get copies instead of
references to a single value on roundtrip which is unexpected

TODO: EF tests would benefit from some refactoring since they all do the
same thing practically..

Co-authored-by: Zahary Karadjov <zahary@gmail.com>
2020-04-29 22:12:07 +02:00
..
bytes_reader.nim ssz: move ref support outside (#943) 2020-04-29 22:12:07 +02:00
dynamic_navigator.nim Pass the test suite with a BeaconState ref type 2020-04-26 13:04:53 +03:00
navigator.nim ssz: move ref support outside (#943) 2020-04-29 22:12:07 +02:00
types.nim ssz: move ref support outside (#943) 2020-04-29 22:12:07 +02:00