[][src]Function indyrs::pool::open_pool_ledger

pub fn open_pool_ledger(
    pool_name: &str,
    config: Option<&str>
) -> Box<dyn Future<Item = IndyHandle, 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: { "refresh_on_open": bool (optional), Forces pool ledger to be refreshed immediately after opening. Defaults to true. "auto_refresh_time": int (optional), After this time in minutes pool ledger will be automatically refreshed. Use 0 to disable automatic refresh. Defaults to 24*60. "network_timeout": int (optional), Network timeout for communication with nodes in milliseconds. Defaults to 20000. }

Returns

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