MCPcopy Create free account
hub / github.com/DNAProject/DNA / OnHeaderReceive

Method OnHeaderReceive

p2pserver/p2pserver.go:206–208  ·  view source on GitHub ↗

OnHeaderReceive adds the header list from network

(fromID uint64, headers []*types.Header)

Source from the content-addressed store, hash-verified

204
205// OnHeaderReceive adds the header list from network
206func (this *P2PServer) OnHeaderReceive(fromID uint64, headers []*types.Header) {
207 this.blockSync.OnHeaderReceive(fromID, headers)
208}
209
210// OnBlockReceive adds the block from network
211func (this *P2PServer) OnBlockReceive(fromID uint64, blockSize uint32,

Callers 1

ReceiveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected