Lion - dapplion

Results 254 issues of Lion - dapplion
trafficstars

We have built many additional caches in Lodestar CachedBeaconState to make the beacon state transition as fast as it needs to be. However those structures are very verbose, repetitive in...

see https://github.com/ChainSafe/lodestar/issues/3116

Lodestar spends significant CPU time converting uint types from decimal to bytes and back. For example, converting the balance tree to flat and back consist of doing 200_000 ops of...

Keys with a trailing number like `signedHeader1` are not correctly cased: ``` signed_header1 ``` this breaks compatibility with the eth2 api spec

Generators and callback based iterators are shown to be slower than raw for loops. Replace where possible.

1. General methods (without prefix) 2. struct_* 3. tree_* 4. bytes_*

To research potential improvements I've written a manual createTreeBackedFromStruct() function for the validator object ```ts const pubkey_n4 = new LeafNode(validator.pubkey.slice(0, 32)); const pubkey_n5 = new LeafNode(validator.pubkey.slice(32, 64)); const pubkey_n6 =...

**Is your feature request related to a problem? Please describe.** We have no assurance in CI that code doesn't break in the browser, and it does. **Describe the solution you'd...

Proto noted that we are missing some tests from the python implementation https://github.com/ChainSafe/ssz/blob/fe890be83a63d7c45e774f92f97f8499dc611540/test/unit/deserialize.test.ts#L39 https://github.com/protolambda/remerkleable/blob/master/remerkleable/test_impl.py

When getting a property from a tree backed ssz type this if decides to return the "raw" value or tree backed. https://github.com/ChainSafe/ssz/blob/d6efe104a3bdc2d2beebc47af8234a3e40d414f4/src/backings/tree/container.ts#L138 In my opinion I would assume that a...