[−][src]Function indyrs::ledger::build_pool_upgrade_request
pub fn build_pool_upgrade_request(
submitter_did: &str,
name: &str,
version: &str,
action: &str,
sha256: &str,
upgrade_timeout: Option<u32>,
schedule: Option<&str>,
justification: Option<&str>,
reinstall: bool,
force: bool,
package: Option<&str>
) -> Box<dyn Future<Item = String, Error = IndyError>>
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).
Arguments
submitter_did
- Identifier (DID) of the transaction author as base58-encoded string. Actual request sender may differ if Endorser is used (look atappend_request_endorser
)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.upgrade_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.
Returns
Request result as json.