MCPcopy Create free account
hub / github.com/dsg-titech/simblock / sendInv

Method sendInv

simulator/src/main/java/simblock/node/Node.java:353–358  ·  view source on GitHub ↗

Send inv. @param block the block

(Block block)

Source from the content-addressed store, hash-verified

351 * @param block the block
352 */
353 public void sendInv(Block block) {
354 for (Node to : this.routingTable.getNeighbors()) {
355 AbstractMessageTask task = new InvMessageTask(this, to, block);
356 putTask(task);
357 }
358 }
359
360 /**
361 * Receive block.

Callers 1

receiveBlockMethod · 0.95

Calls 2

putTaskMethod · 0.80
getNeighborsMethod · 0.45

Tested by

no test coverage detected