IBlock
, IBlockPrevious
, IBlockSource
public class ReceiveBlock extends Block implements IBlockPrevious, IBlockSource
receive
block, and the associated data.Modifier and Type | Field | Description |
---|---|---|
static Function<com.google.gson.JsonObject,ReceiveBlock> |
DESERIALIZER |
A function which converts a
JsonObject into a ReceiveBlock instance. |
HASH_LENGTH
Modifier | Constructor | Description |
---|---|---|
protected |
ReceiveBlock(String hash,
String signature,
WorkSolution work,
String previousBlockHash,
String sourceBlockHash) |
|
|
ReceiveBlock(String signature,
WorkSolution work,
String previousBlockHash,
String sourceBlockHash) |
Modifier and Type | Method | Description |
---|---|---|
protected byte[][] |
generateHashables() |
|
String |
getPreviousBlockHash() |
|
String |
getSourceBlockHash() |
buildJsonObject, calculateHashBytes, equals, fillJsonBlanks, getHash, getHashBytes, getJsonObject, getJsonObject, getSignature, getType, getTypeString, getWorkSolution, hashCode, isComplete, parse, parse, toJsonString, toJsonString, toString
getHash, getSignature, getType, getTypeString, getWorkSolution
public static final Function<com.google.gson.JsonObject,ReceiveBlock> DESERIALIZER
JsonObject
into a ReceiveBlock
instance.public ReceiveBlock(String signature, WorkSolution work, String previousBlockHash, String sourceBlockHash)
protected ReceiveBlock(String hash, String signature, WorkSolution work, String previousBlockHash, String sourceBlockHash)
public final String getPreviousBlockHash()
getPreviousBlockHash
in interface IBlockPrevious
public final String getSourceBlockHash()
getSourceBlockHash
in interface IBlockSource
protected byte[][] generateHashables()
generateHashables
in class Block
Copyright © 2020. All rights reserved.