Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
producer.cpp
Go to the documentation of this file.
1
#include <
sysio/chain/webassembly/interface.hpp
>
2
#include <
sysio/chain/apply_context.hpp
>
3
4
namespace
sysio
{
namespace
chain {
namespace
webassembly {
5
int32_t
interface::get_active_producers
(
legacy_span<account_name>
producers
)
const
{
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
apply_context.hpp
sysio::chain::webassembly::interface::get_active_producers
int32_t get_active_producers(legacy_span< account_name > producers) const
Definition
producer.cpp:5
interface.hpp
sysio::chain::account_name
name account_name
Definition
types.hpp:120
sysio
Definition
abi_serializer.cpp:8
producers
schedule config_dir_name data_dir_name p2p_port http_port file_size name name keys peers producers(dont_start)) FC_REFLECT(testnet_def
int32_t
signed int int32_t
Definition
stdint.h:123
context
Definition
yubihsm_winhttp.c:52
sysio::vm::argument_proxy
Definition
argument_proxy.hpp:16
s
char * s
Definition
yubihsm_pkcs11.c:524
len
size_t len
Definition
yubihsm_pkcs11.c:4771
libraries
chain
webassembly
producer.cpp
Generated by
1.12.0