mirror of
https://github.com/corda/corda.git
synced 2024-12-19 21:17:58 +00:00
Add regulator node to IRS demo (#2015)
* Add regulator node to IRS demo * Revert API structure changes to ReceiveTransactionFlow Manually specify constructors to ReceiveTransactionFlow instead of using JvmOverloads, to ensure this behaves exactly as previously, rather than depending on Kotlin's generated constructors.
This commit is contained in:
parent
f99cae3205
commit
68035717f8
@ -21,9 +21,14 @@ import java.security.SignatureException
|
||||
* @property checkSufficientSignatures if true checks all required signatures are present. See [SignedTransaction.verify].
|
||||
* @property statesToRecord which transaction states should be recorded in the vault, if any.
|
||||
*/
|
||||
class ReceiveTransactionFlow @JvmOverloads constructor(private val otherSideSession: FlowSession,
|
||||
private val checkSufficientSignatures: Boolean = true,
|
||||
private val statesToRecord: StatesToRecord = StatesToRecord.NONE) : FlowLogic<SignedTransaction>() {
|
||||
class ReceiveTransactionFlow(private val otherSideSession: FlowSession,
|
||||
private val checkSufficientSignatures: Boolean,
|
||||
private val statesToRecord: StatesToRecord) : FlowLogic<SignedTransaction>() {
|
||||
/** Receives a [SignedTransaction] from [otherSideSession], verifies it and then records it in the vault. */
|
||||
constructor(otherSideSession: FlowSession, checkSufficientSignatures: Boolean) : this(otherSideSession, checkSufficientSignatures, StatesToRecord.NONE)
|
||||
/** Receives a [SignedTransaction] from [otherSideSession], verifies it and then records it in the vault. */
|
||||
constructor(otherSideSession: FlowSession) : this(otherSideSession, true)
|
||||
|
||||
@Suppress("KDocMissingDocumentation")
|
||||
@Suspendable
|
||||
@Throws(SignatureException::class,
|
||||
|
@ -78,6 +78,15 @@ task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
|
||||
cordapps = ["net.corda:finance:$corda_release_version"]
|
||||
useTestClock true
|
||||
}
|
||||
node {
|
||||
name "O=Regulator,L=New York,C=US"
|
||||
advertisedServices = []
|
||||
p2pPort 10011
|
||||
rpcPort 10012
|
||||
webPort 10013
|
||||
cordapps = ["net.corda:finance:$corda_release_version"]
|
||||
useTestClock true
|
||||
}
|
||||
}
|
||||
|
||||
task integrationTest(type: Test, dependsOn: []) {
|
||||
|
Loading…
Reference in New Issue
Block a user