mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 11:57:18 +00:00
beacon: Fix Beacon Block Response in Simulator (#394)
This commit is contained in:
parent
11397ba9a1
commit
2060d2934e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user