#include <sysio.system.hpp>
Definition at line 205 of file sysio.system.hpp.
◆ active()
bool sysiosystem::producer_info::active |
( |
| ) |
const |
|
inline |
◆ by_votes()
double sysiosystem::producer_info::by_votes |
( |
| ) |
const |
|
inline |
◆ deactivate()
void sysiosystem::producer_info::deactivate |
( |
| ) |
|
|
inline |
Definition at line 219 of file sysio.system.hpp.
sysio::binary_extension< sysio::block_signing_authority > producer_authority
sysio::public_key producer_key
◆ get_producer_authority()
Definition at line 221 of file sysio.system.hpp.
221 {
223 bool zero_threshold = std::visit( [](auto&& auth ) -> bool {
224 return (auth.threshold == 0);
226
227
228
230 }
232 }
sysio::block_signing_authority convert_to_block_signing_authority(const sysio::public_key &producer_key)
◆ primary_key()
uint64_t sysiosystem::producer_info::primary_key |
( |
| ) |
const |
|
inline |
◆ operator<<
template<typename DataStream >
DataStream & operator<< |
( |
DataStream & | ds, |
|
|
const producer_info & | t ) |
|
friend |
Definition at line 244 of file sysio.system.hpp.
244 {
246 << t.total_votes
247 << t.producer_key
248 << t.is_active
249 << t.url
250 << t.unpaid_blocks
251 << t.last_claim_time
252 << t.location;
253
254 if( !t.producer_authority.has_value() )
return ds;
255
256 return ds << t.producer_authority;
257 }
static const Segment ds(Segment::ds)
◆ operator>>
template<typename DataStream >
Definition at line 260 of file sysio.system.hpp.
260 {
262 >> t.total_votes
263 >> t.producer_key
264 >> t.is_active
265 >> t.url
266 >> t.unpaid_blocks
267 >> t.last_claim_time
268 >> t.location
269 >> t.producer_authority;
270 }
◆ is_active
bool sysiosystem::producer_info::is_active = true |
◆ last_claim_time
time_point sysiosystem::producer_info::last_claim_time |
◆ location
uint16_t sysiosystem::producer_info::location = 0 |
◆ owner
name sysiosystem::producer_info::owner |
◆ producer_authority
◆ producer_key
◆ total_votes
double sysiosystem::producer_info::total_votes = 0 |
◆ unpaid_blocks
uint32_t sysiosystem::producer_info::unpaid_blocks = 0 |
◆ url
std::string sysiosystem::producer_info::url |
The documentation for this struct was generated from the following file:
- /Users/svetlasyrimis/Desktop/wire-network/WN-org/wire-system-contracts/contracts/sysio.system/include/sysio.system/sysio.system.hpp