Open
Description
Description
The deposit tree is rebuilt from the persisted tree leaves every time for use in the Eth1 caches (once #760 is merged). Rebuilding the deposit tree from scratch for deposit sizes > 1 million takes a few seconds. Encoding the merkle tree as bytes is not straightforward as its a recursive data structure.
Steps to resolve
Figure out a way to encode/decode the deposit tree and save/load the deposit tree on shutdown/startup.
Blocked on #760