Class Block

    • Constructor Detail

      • Block

        public Block()
      • Block

        public Block​(Block source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getBlockNum

        public Long getBlockNum()
        Get 区块编号
        Returns:
        BlockNum 区块编号
      • setBlockNum

        public void setBlockNum​(Long BlockNum)
        Set 区块编号
        Parameters:
        BlockNum - 区块编号
      • getDataHash

        public String getDataHash()
        Get 区块数据Hash数值
        Returns:
        DataHash 区块数据Hash数值
      • setDataHash

        public void setDataHash​(String DataHash)
        Set 区块数据Hash数值
        Parameters:
        DataHash - 区块数据Hash数值
      • getBlockId

        public Long getBlockId()
        Get 区块ID,与区块编号一致
        Returns:
        BlockId 区块ID,与区块编号一致
      • setBlockId

        public void setBlockId​(Long BlockId)
        Set 区块ID,与区块编号一致
        Parameters:
        BlockId - 区块ID,与区块编号一致
      • getPreHash

        public String getPreHash()
        Get 前一个区块Hash
        Returns:
        PreHash 前一个区块Hash
      • setPreHash

        public void setPreHash​(String PreHash)
        Set 前一个区块Hash
        Parameters:
        PreHash - 前一个区块Hash
      • getTxCount

        public Long getTxCount()
        Get 区块内的交易数量
        Returns:
        TxCount 区块内的交易数量
      • setTxCount

        public void setTxCount​(Long TxCount)
        Set 区块内的交易数量
        Parameters:
        TxCount - 区块内的交易数量