Instantiates a new Block. @param parent the parent @param minter the minter @param time the time
(Block parent, Node minter, long time)
| 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. |