hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::validation::ValidatorsConfig Struct Reference

#include "validators_common.hpp"

Collaboration diagram for shared_model::validation::ValidatorsConfig:
Collaboration graph

Public Member Functions

 ValidatorsConfig (uint64_t max_batch_size, bool partial_ordered_batches_are_valid=false, bool txs_duplicates_allowed=false)
 

Public Attributes

const uint64_t max_batch_size
 Maximum allowed amount of transactions within a batch. More...
 
const bool partial_ordered_batches_are_valid
 
const bool txs_duplicates_allowed
 

Detailed Description

A struct that contains configuration parameters for all validators. A validator may read only specific fields.

Constructor & Destructor Documentation

◆ ValidatorsConfig()

shared_model::validation::ValidatorsConfig::ValidatorsConfig ( uint64_t  max_batch_size,
bool  partial_ordered_batches_are_valid = false,
bool  txs_duplicates_allowed = false 
)

Member Data Documentation

◆ max_batch_size

const uint64_t shared_model::validation::ValidatorsConfig::max_batch_size

Maximum allowed amount of transactions within a batch.

◆ partial_ordered_batches_are_valid

const bool shared_model::validation::ValidatorsConfig::partial_ordered_batches_are_valid

Batch meta can contain more hashes of batch transactions than it actually has. Used for block validation

◆ txs_duplicates_allowed

const bool shared_model::validation::ValidatorsConfig::txs_duplicates_allowed

Defines whether a transactions collection, with duplicated transactions, valid or not. Used in:

  • TransactionBatchValidator (ListTorii)
  • MST & OrderingGate & OrderingService
  • BlockLoader

The documentation for this struct was generated from the following files: