#include <block.hpp>
Definition at line 54 of file block.hpp.
◆ additional_block_signatures_extension() [1/3]
sysio::chain::additional_block_signatures_extension::additional_block_signatures_extension |
( |
| ) |
|
|
default |
◆ additional_block_signatures_extension() [2/3]
sysio::chain::additional_block_signatures_extension::additional_block_signatures_extension |
( |
const vector< signature_type > & | signatures | ) |
|
|
inline |
Definition at line 60 of file block.hpp.
62 {}
vector< signature_type > signatures
◆ additional_block_signatures_extension() [3/3]
sysio::chain::additional_block_signatures_extension::additional_block_signatures_extension |
( |
vector< signature_type > && | signatures | ) |
|
|
inline |
◆ enforce_unique()
static constexpr bool sysio::chain::additional_block_signatures_extension::enforce_unique |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ extension_id()
static constexpr uint16_t sysio::chain::additional_block_signatures_extension::extension_id |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ reflector_init()
void sysio::chain::additional_block_signatures_extension::reflector_init |
( |
| ) |
|
Definition at line 4 of file block.cpp.
4 {
6 "additional_block_signatures_extension expects FC to support reflector_init" );
7
8 SYS_ASSERT( signatures.size() > 0, ill_formed_additional_block_signatures_extension,
9 "Additional block signatures extension must contain at least one signature",
10 );
11
12 set<signature_type> unique_sigs;
13
14 for(
const auto&
s : signatures ) {
15 auto res = unique_sigs.insert(
s );
16 SYS_ASSERT( res.second, ill_formed_additional_block_signatures_extension,
17 "Signature ${s} was repeated in the additional block signatures extension",
19 );
20 }
21 }
#define SYS_ASSERT(expr, exc_type, FORMAT,...)
constexpr bool has_feature_reflector_init_on_unpacked_reflected_types
◆ signatures
The documentation for this struct was generated from the following files: