This PR stores LightClientBootstrap beacon content in a separate table in the database. This is required because:
To fix #1405, we need a way to get the latest stored block root from the latest bootstrap in the DB. This is solved by storing the block root as a primary key for the new bootstrap table. (content-id is not needed for the beacon network because the node radius does not apply to this overlay network).
We want to purge all bootstraps older than 4 months. We can do this by adding a slot column in the bootstrap table and periodically purging all content where slot number < 4 months old.
What was wrong?
This PR stores
LightClientBootstrap
beacon content in a separate table in the database. This is required because:How was it fixed?
lc_bootstrap
db tableTo-Do