[−][src]Function indyrs::pool::open_pool_ledger
pub fn open_pool_ledger(
pool_name: &str,
config: Option<&str>
) -> Box<dyn Future<Item = CommandHandle, Error = IndyError>>
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.
Arguments
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. "number_read_nodes": int (optional) - the number of nodes to send read requests (2 by default) }
Returns
Handle to opened pool to use in methods that require pool connection.