Function sovrin::api::pool::sovrin_create_pool_ledger_config
[−]
[src]
#[no_mangle]pub extern "C" fn sovrin_create_pool_ledger_config(
command_handle: i32,
config_name: *const c_char,
config: *const c_char,
cb: Option<extern "C" fn(_: i32, _: ErrorCode)>
) -> ErrorCode
Creates a new local pool ledger configuration that can be used later to connect pool nodes.
Params
config_name: Name of the pool ledger configuration. config (optional): Pool configuration json. if NULL, then default config will be used. Example: { "genesis_txn": string (optional), A path to genesis transaction file. If NULL, then a default one will be used. If file doesn't exists default one will be created. }
Returns
Error code
Errors
Common* Ledger*