Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
producer.cpp
Go to the documentation of this file.
3
4namespace sysio { namespace chain { namespace webassembly {
6 auto active_producers = context.get_active_producers();
7
8 size_t len = active_producers.size();
9 auto s = len * sizeof(chain::account_name);
10 if( producers.size_bytes() == 0 ) return s;
11
12 auto copy_size = std::min( producers.size(), s );
13 std::memcpy( producers.data(), active_producers.data(), copy_size );
14
15 return copy_size;
16 }
17}}} // ns sysio::chain::webassembly
int32_t get_active_producers(legacy_span< account_name > producers) const
Definition producer.cpp:5
name account_name
Definition types.hpp:120
schedule config_dir_name data_dir_name p2p_port http_port file_size name name keys peers producers(dont_start)) FC_REFLECT(testnet_def
signed int int32_t
Definition stdint.h:123
char * s
size_t len