[][src]Function eosio_cdt_sys::set_proposed_producers

pub unsafe extern "C" fn set_proposed_producers(
    producer_data: *mut c_char,
    producer_data_size: u32
) -> i64

Proposes a schedule change

This is exactly equivalent to calling set_proposed_producers_ex(0, producer_data, producer_data_size)

@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" @param producer_data - packed data of produce_keys in the appropriate producer schedule order @param producer_data_size - size of the data buffer

@return -1 if proposing a new producer schedule was unsuccessful, otherwise returns the version of the new proposed schedule