corda / net.corda.core.flows / ContractUpgradeFlow / Authorise / <init>

<init>

Authorise(stateAndRef: StateAndRef<*>, upgradedContractClass: Class<out UpgradedContract<*, *>>)

Authorise a contract state upgrade.

This will store the upgrade authorisation in persistent store, and will be queried by ContractUpgradeFlow.Acceptor during contract upgrade process. Invoking this flow indicates the node is willing to upgrade the StateAndRef using the UpgradedContract class.

This flow will NOT initiate the upgrade process. To start the upgrade process, see Initiate.