mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 23:48:06 -05:00
Refactor DB Package to Enable Multiple Blocks/States at Slots (#2540)
* prefixed blocks blocked * db refactor * new historical state saving * builds but tests fail * more tests pass * fix tests * fix tests * delete buf * Update beacon-chain/db/block.go Co-Authored-By: rauljordan <raul@prysmaticlabs.com> * Update beacon-chain/db/block.go Co-Authored-By: rauljordan <raul@prysmaticlabs.com> * rem unused
This commit is contained in:
@@ -177,11 +177,11 @@ func TestProcessingBlocks_SkippedSlots(t *testing.T) {
|
||||
batchSize := 20
|
||||
expectedSlot := params.BeaconConfig().GenesisSlot + uint64(batchSize)
|
||||
ss.highestObservedSlot = expectedSlot
|
||||
blk, err := ss.db.BlockBySlot(ctx, params.BeaconConfig().GenesisSlot)
|
||||
blks, err := ss.db.BlocksBySlot(ctx, params.BeaconConfig().GenesisSlot)
|
||||
if err != nil {
|
||||
t.Fatalf("Unable to get genesis block %v", err)
|
||||
}
|
||||
h, err := hashutil.HashBeaconBlock(blk)
|
||||
h, err := hashutil.HashBeaconBlock(blks[0])
|
||||
if err != nil {
|
||||
t.Fatalf("Unable to hash block %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user