Block constructor
Block({
- Signature? signature,
- PublicKey? signerPublicKey,
- int? version,
- NetworkType? network,
- BlockType? type,
- Height? height,
- Timestamp? timestamp,
- Difficulty? difficulty,
- VrfProof? generationHashProof,
- Hash256? previousBlockHash,
- Hash256? transactionsHash,
- Hash256? receiptsHash,
- Hash256? stateHash,
- Address? beneficiaryAddress,
- BlockFeeMultiplier? feeMultiplier,
Implementation
Block({
Signature? signature,
PublicKey? signerPublicKey,
int? version,
NetworkType? network,
BlockType? type,
Height? height,
Timestamp? timestamp,
Difficulty? difficulty,
VrfProof? generationHashProof,
Hash256? previousBlockHash,
Hash256? transactionsHash,
Hash256? receiptsHash,
Hash256? stateHash,
Address? beneficiaryAddress,
BlockFeeMultiplier? feeMultiplier
}) {
this.signature = signature ?? Signature();
this.signerPublicKey = signerPublicKey ?? PublicKey();
this.version = version ?? 0;
this.network = network ?? NetworkType.MAINNET;
this.type = type ?? BlockType.NEMESIS;
this.height = height ?? Height();
this.timestamp = timestamp ?? Timestamp();
this.difficulty = difficulty ?? Difficulty();
this.generationHashProof = generationHashProof ?? VrfProof();
this.previousBlockHash = previousBlockHash ?? Hash256();
this.transactionsHash = transactionsHash ?? Hash256();
this.receiptsHash = receiptsHash ?? Hash256();
this.stateHash = stateHash ?? Hash256();
this.beneficiaryAddress = beneficiaryAddress ?? Address();
this.feeMultiplier = feeMultiplier ?? BlockFeeMultiplier();
}