corda / net.corda.core.flows / NotaryChangeFlow / <init>

<init>

NotaryChangeFlow(originalState: StateAndRef<T>, newNotary: Party, progressTracker: ProgressTracker = AbstractStateReplacementFlow.Instigator.tracker())

A flow to be used for changing a state's Notary. This is required since all input states to a transaction must point to the same notary.

This assembles the transaction for notary replacement and sends out change proposals to all participants of that state. If participants agree to the proposed change, they each sign the transaction. Finally, the transaction containing all signatures is sent back to each participant so they can record it and use the new updated state for future transactions.