OnBlockReceive adds the block from network
(fromID uint64, blockSize uint32, block *types.Block, merkleRoot comm.Uint256)
| 209 | |
| 210 | // OnBlockReceive adds the block from network |
| 211 | func (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 |
| 217 | func (this *P2PServer) GetConnectionState() uint32 { |