Move state summary cache to DB (#8101)

This commit is contained in:
terence tsao
2020-12-16 08:56:21 -08:00
committed by GitHub
parent 3fb49433a1
commit 20dede7532
99 changed files with 695 additions and 798 deletions

View File

@@ -367,7 +367,7 @@ func TestService_Resync(t *testing.T) {
{blocks: makeSequence(1, 160), finalizedEpoch: 5, headSlot: 160},
}, p.Peers())
cache.initializeRootCache(makeSequence(1, 160), t)
beaconDB, _ := dbtest.SetupDB(t)
beaconDB := dbtest.SetupDB(t)
err := beaconDB.SaveBlock(context.Background(), testutil.NewBeaconBlock())
require.NoError(t, err)
cache.RLock()