Function libindy_sys::indy_build_pool_upgrade_request[][src]

pub unsafe extern "C" fn indy_build_pool_upgrade_request(
    command_handle: indy_handle_t,
    submitter_did: *const c_char,
    name: *const c_char,
    version: *const c_char,
    action: *const c_char,
    sha256: *const c_char,
    timeout: indy_i32_t,
    schedule: *const c_char,
    justification: *const c_char,
    reinstall: indy_bool_t,
    force: indy_bool_t,
    package_: *const c_char,
    str: indy_str_cb
) -> indy_error_t

Builds a POOL_UPGRADE request. Request to upgrade the Pool (sent by Trustee). It upgrades the specified Nodes (either all nodes in the Pool, or some specific ones).

#Params command_handle: command handle to map callback to caller context. submitter_did: DID of the submitter stored in secured Wallet. name: Human-readable name for the upgrade. version: The version of indy-node package we perform upgrade to. Must be greater than existing one (or equal if reinstall flag is True). action: Either start or cancel. sha256: sha256 hash of the package. timeout: (Optional) Limits upgrade time on each Node. schedule: (Optional) Schedule of when to perform upgrade on each node. Map Node DIDs to upgrade time. justification: (Optional) justification string for this particular Upgrade. reinstall: Whether it's allowed to re-install the same version. False by default. force: Whether we should apply transaction (schedule Upgrade) without waiting for consensus of this transaction. package: (Optional) Package to be upgraded. cb: Callback that takes command result as parameter.

#Returns Request result as json.

#Errors Common*