Function libindy_sys::indy_open_pool_ledger[][src]

pub unsafe extern "C" fn indy_open_pool_ledger(
    command_handle: indy_handle_t,
    config_name: *const c_char,
    config: *const c_char,
    cb: indy_handle_cb
) -> indy_error_t

Opens pool ledger and performs connecting to pool nodes.

Pool ledger configuration with corresponded name must be previously created with indy_create_pool_ledger_config method. It is impossible to open pool with the same name more than once.

config_name: Name of the pool ledger configuration. config (optional): Runtime pool configuration json. if NULL, then default config will be used. Example: { "timeout": int (optional), timeout for network request (in sec). "extended_timeout": int (optional), extended timeout for network request (in sec). "preordered_nodes": array - (optional), names of nodes which will have a priority during request sending: ["name_of_1st_prior_node", "name_of_2nd_prior_node", .... ] Note: Not specified nodes will be placed in a random way. }

#Returns Handle to opened pool to use in methods that require pool connection.

#Errors Common* Ledger*