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

Method Block

simulator/src/main/java/simblock/block/Block.java:62–69  ·  view source on GitHub ↗

Instantiates a new Block. @param parent the parent @param minter the minter @param time the time

(Block parent, Node minter, long time)

Source from the content-addressed store, hash-verified

60 * @param time the time
61 */
62 public Block(Block parent, Node minter, long time) {
63 this.height = parent == null ? 0 : parent.getHeight() + 1;
64 this.parent = parent;
65 this.minter = minter;
66 this.time = time;
67 this.id = latestId;
68 latestId++;
69 }
70
71 /**
72 * Get height int.

Callers

nothing calls this directly

Calls 1

getHeightMethod · 0.80

Tested by

no test coverage detected