Class NormalBlockHeaderBuilder

    • Constructor Detail

      • NormalBlockHeaderBuilder

        protected NormalBlockHeaderBuilder​(java.io.DataInputStream stream)
        Constructor - Creates an object from stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
      • NormalBlockHeaderBuilder

        protected NormalBlockHeaderBuilder​(SignatureDto signature,
                                           KeyDto signerPublicKey,
                                           byte version,
                                           NetworkTypeDto network,
                                           EntityTypeDto type,
                                           HeightDto height,
                                           TimestampDto timestamp,
                                           DifficultyDto difficulty,
                                           VrfProofBuilder generationHashProof,
                                           Hash256Dto previousBlockHash,
                                           Hash256Dto transactionsHash,
                                           Hash256Dto receiptsHash,
                                           Hash256Dto stateHash,
                                           AddressDto beneficiaryAddress,
                                           BlockFeeMultiplierDto feeMultiplier)
        Constructor.
        Parameters:
        signature - Entity signature.
        signerPublicKey - Entity signer's public key.
        version - Entity version.
        network - Entity network.
        type - Entity type.
        height - Block height.
        timestamp - Number of milliseconds elapsed since creation of nemesis block.
        difficulty - Block difficulty.
        generationHashProof - Generation hash proof.
        previousBlockHash - Previous block hash.
        transactionsHash - Hash of the transactions in this block.
        receiptsHash - Hash of the receipts generated by this block.
        stateHash - Hash of the global chain state at this block.
        beneficiaryAddress - Beneficiary address designated by harvester.
        feeMultiplier - Fee multiplier applied to block transactions.
    • Method Detail

      • loadFromBinary

        public static NormalBlockHeaderBuilder loadFromBinary​(java.io.DataInputStream stream)
        Creates an instance of NormalBlockHeaderBuilder from a stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
        Returns:
        Instance of NormalBlockHeaderBuilder.
      • create

        public static NormalBlockHeaderBuilder create​(SignatureDto signature,
                                                      KeyDto signerPublicKey,
                                                      byte version,
                                                      NetworkTypeDto network,
                                                      EntityTypeDto type,
                                                      HeightDto height,
                                                      TimestampDto timestamp,
                                                      DifficultyDto difficulty,
                                                      VrfProofBuilder generationHashProof,
                                                      Hash256Dto previousBlockHash,
                                                      Hash256Dto transactionsHash,
                                                      Hash256Dto receiptsHash,
                                                      Hash256Dto stateHash,
                                                      AddressDto beneficiaryAddress,
                                                      BlockFeeMultiplierDto feeMultiplier)
        Creates an instance of NormalBlockHeaderBuilder.
        Parameters:
        signature - Entity signature.
        signerPublicKey - Entity signer's public key.
        version - Entity version.
        network - Entity network.
        type - Entity type.
        height - Block height.
        timestamp - Number of milliseconds elapsed since creation of nemesis block.
        difficulty - Block difficulty.
        generationHashProof - Generation hash proof.
        previousBlockHash - Previous block hash.
        transactionsHash - Hash of the transactions in this block.
        receiptsHash - Hash of the receipts generated by this block.
        stateHash - Hash of the global chain state at this block.
        beneficiaryAddress - Beneficiary address designated by harvester.
        feeMultiplier - Fee multiplier applied to block transactions.
        Returns:
        Instance of NormalBlockHeaderBuilder.