类 SmallBlock
- java.lang.Object
-
- network.nerve.base.data.BaseNulsData
-
- network.nerve.base.data.SmallBlock
-
- 所有已实现的接口:
Serializable,Cloneable,NulsData
public class SmallBlock extends BaseNulsData
小区块,用于新区块打包完成后进行广播,小区块中包含区块头、块中交易hash列表、打包过程中产生的交易(其他节点一定没有的交易) Block block, used for broadcasting after the new block is packaged, and the blocks in the block are included in the block header ,tx hash list of the block and the transaction generated in the packaging process (other transactions that must not be made by other nodes).- 作者:
- tag 2018/11/21
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 SmallBlock()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddSystemTx(Transaction tx)BlockHeadergetHeader()区块头 block headerList<Transaction>getSystemTxList()ArrayList<NulsHash>getTxHashList()voidparse(NulsByteBuffer byteBuffer)protected voidserializeToStream(NulsOutputStreamBuffer stream)voidsetHeader(BlockHeader header)voidsetTxHashList(ArrayList<NulsHash> txHashList)intsize()-
从类继承的方法 network.nerve.base.data.BaseNulsData
parse, serialize
-
-
-
-
方法详细资料
-
size
public int size()
-
serializeToStream
protected void serializeToStream(NulsOutputStreamBuffer stream) throws IOException
- 指定者:
serializeToStream在类中BaseNulsData- 抛出:
IOException
-
parse
public void parse(NulsByteBuffer byteBuffer) throws NulsException
- 指定者:
parse在类中BaseNulsData- 抛出:
NulsException
-
getHeader
public BlockHeader getHeader()
区块头 block header- 返回:
- BlockHeader
-
setHeader
public void setHeader(BlockHeader header)
-
getSystemTxList
public List<Transaction> getSystemTxList()
-
addSystemTx
public void addSystemTx(Transaction tx)
-
-