mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Massive code cleanup (#10913)
* Massive code cleanup * fix test issues * remove GetGenesis mock expectations * unused receiver * rename unused params Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
@@ -343,14 +343,14 @@ func TestBlocksFetcher_RoundRobin(t *testing.T) {
|
||||
return blocks[i].Block().Slot() < blocks[j].Block().Slot()
|
||||
})
|
||||
|
||||
slots := make([]types.Slot, len(blocks))
|
||||
ss := make([]types.Slot, len(blocks))
|
||||
for i, block := range blocks {
|
||||
slots[i] = block.Block().Slot()
|
||||
ss[i] = block.Block().Slot()
|
||||
}
|
||||
|
||||
log.WithFields(logrus.Fields{
|
||||
"blocksLen": len(blocks),
|
||||
"slots": slots,
|
||||
"slots": ss,
|
||||
}).Debug("Finished block fetching")
|
||||
|
||||
if len(blocks) > int(maxExpectedBlocks) {
|
||||
|
||||
Reference in New Issue
Block a user