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

Method OnBlockReceive

p2pserver/p2pserver.go:211–214  ·  view source on GitHub ↗

OnBlockReceive adds the block from network

(fromID uint64, blockSize uint32,
	block *types.Block, merkleRoot comm.Uint256)

Source from the content-addressed store, hash-verified

209
210// OnBlockReceive adds the block from network
211func (this *P2PServer) OnBlockReceive(fromID uint64, blockSize uint32,
212 block *types.Block, merkleRoot comm.Uint256) {
213 this.blockSync.OnBlockReceive(fromID, blockSize, block, merkleRoot)
214}
215
216// Todo: remove it if no use
217func (this *P2PServer) GetConnectionState() uint32 {

Callers 1

ReceiveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected