7 auto itr = table.find( account.value );
8 if( itr == table.end() ) {
9 table.emplace( account, [&](
auto& row ) {
11 row.hash =
sysio::sha256(
const_cast<char*
>(abi.data()), abi.size());
14 table.modify( itr, sysio::same_payer, [&](
auto& row ) {
15 row.hash =
sysio::sha256(
const_cast<char*
>(abi.data()), abi.size());
21 check(
false,
"the onerror action cannot be called directly" );
25 require_auth( get_self() );
26 set_privileged( account, is_priv );
30 require_auth( get_self() );
31 set_resource_limits( account, ram_bytes, net_weight, cpu_weight );
34void bios::setprods(
const std::vector<sysio::producer_authority>& schedule ) {
35 require_auth( get_self() );
36 set_proposed_producers( schedule );
40 require_auth( get_self() );
41 set_blockchain_parameters(
params );
49 require_auth( get_self() );
50 preactivate_feature( feature_digest );
54 check( is_feature_activated( feature_digest ),
"protocol feature is not activated" );
void setparams(const sysio::blockchain_parameters ¶ms)
void setalimits(name account, int64_t ram_bytes, int64_t net_weight, int64_t cpu_weight)
void reqactivated(const sysio::checksum256 &feature_digest)
void setpriv(name account, uint8_t is_priv)
void setprods(const std::vector< sysio::producer_authority > &schedule)
void onerror(ignore< uint128_t > sender_id, ignore< std::vector< char > > sent_trx)
void activate(const sysio::checksum256 &feature_digest)
void setabi(name account, const std::vector< char > &abi)
sysio::multi_index< "abihash"_n, abi_hash > abi_hash_table
Immutable except for fc::from_variant.
account_query_db::get_accounts_by_authorizers_params params