Update to v0.12 (#5614)

This commit is contained in:
Nishant Das
2020-06-10 06:40:48 +08:00
committed by GitHub
parent 47dacb88f7
commit d1a1043ef1
143 changed files with 3104 additions and 1095 deletions

View File

@@ -75,7 +75,7 @@ func (r *Service) processPendingBlocks(ctx context.Context) error {
"currentSlot": b.Block.Slot,
"parentRoot": hex.EncodeToString(bytesutil.Trunc(b.Block.ParentRoot)),
}).Info("Requesting parent block")
req := [][32]byte{bytesutil.ToBytes32(b.Block.ParentRoot)}
req := [][]byte{b.Block.ParentRoot}
// Start with a random peer to query, but choose the first peer in our unsorted list that claims to
// have a head slot newer than the block slot we are requesting.