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:
Radosław Kapka
2022-06-27 15:34:38 +02:00
committed by GitHub
parent 9216be7d43
commit 7f56ac6355
158 changed files with 1020 additions and 1177 deletions

View File

@@ -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) {