From 2060d2934e459268fc94ecf71b3f67a2bf3a6a86 Mon Sep 17 00:00:00 2001 From: Raul Jordan Date: Sun, 12 Aug 2018 13:20:30 -0500 Subject: [PATCH] beacon: Fix Beacon Block Response in Simulator (#394) --- beacon-chain/simulator/service.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon-chain/simulator/service.go b/beacon-chain/simulator/service.go index b5d0b9cd8..a364e8f83 100644 --- a/beacon-chain/simulator/service.go +++ b/beacon-chain/simulator/service.go @@ -175,7 +175,8 @@ func (sim *Simulator) run(delayChan <-chan time.Time, done <-chan struct{}) { } log.Infof("Responding to full block request for hash: 0x%x", h) // Sends the full block body to the requester. - sim.p2p.Send(block.Proto(), msg.Peer) + res := &pb.BeaconBlockResponse{Block: block.Proto()} + sim.p2p.Send(res, msg.Peer) case msg := <-sim.crystallizedStateRequestChan: data, ok := msg.Data.(*pb.CrystallizedStateRequest)