Privileged

Classes

Type

Name

struct

arisen::blockchain_parameters

Functions Documentation

void arisen::set_blockchain_parameters(
    const arisen::blockchain_parameters & params
)

function get_blockchain_parameters

void arisen::get_blockchain_parameters(
    arisen::blockchain_parameters & params
)

function get_resource_limits

void arisen::get_resource_limits(
    name account,
    int64_t & ram_bytes,
    int64_t & net_weight,
    int64_t & cpu_weight
)

Parameters:

account - name of the account whose resource limit to get
ram_bytes - output to hold retrieved ram limit in absolute bytes
net_weight - output to hold net limit
cpu_weight - output to hold cpu limit

function set_proposed_producers

std::optional<uint64_t> arisen::set_proposed_producers(
    const std::vector< producer_key > & prods
)

Note:

Once the block that contains the proposal becomes irreversible, the schedule is promoted to "pending" automatically. Once the block that promotes the schedule is irreversible, the schedule will become "active"

Parameters:

producers - vector of producer keys
Returns:

an optional value of the version of the new proposed schedule if successful

function set_proposed_producers

std::optional<uint64_t> arisen::set_proposed_producers(
    const std::vector< producer_authority > & prods
)

Proposes a schedule change using the more flexible key format

Note:

Once the block that contains the proposal becomes irreversible, the schedule is promoted to "pending" automatically. Once the block that promotes the schedule is irreversible, the schedule will become "active"

Parameters:

producers - vector of producer authorities
Returns:

an optional value of the version of the new proposed schedule if successful

function set_privileged

void arisen::set_privileged(
    name account,
    bool is_priv
)

function preactivate_feature

void arisen::preactivate_feature(
    const checksum256 & feature_digest
)

Pre-activate protocol feature

Parameters:

feature_digest - digest of the protocol feature to pre-activate