Skip to content

Commit 2060d29

Browse files
authored
beacon: Fix Beacon Block Response in Simulator (#394)
1 parent 11397ba commit 2060d29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

beacon-chain/simulator/service.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ func (sim *Simulator) run(delayChan <-chan time.Time, done <-chan struct{}) {
175175
}
176176
log.Infof("Responding to full block request for hash: 0x%x", h)
177177
// Sends the full block body to the requester.
178-
sim.p2p.Send(block.Proto(), msg.Peer)
178+
res := &pb.BeaconBlockResponse{Block: block.Proto()}
179+
sim.p2p.Send(res, msg.Peer)
179180

180181
case msg := <-sim.crystallizedStateRequestChan:
181182
data, ok := msg.Data.(*pb.CrystallizedStateRequest)

0 commit comments

Comments
 (0)