Add Cash flows to default RPC flow list, so they can be invoked by shell commands. (#690)

Add Cash flows to default RPC flow list, so they can be invoked by shell commands.
It should be removed once we separate cash flows into cordapp.
This commit is contained in:
Katarzyna Streich
2017-05-16 13:29:57 +01:00
committed by GitHub
parent 9aa1ac7009
commit 81501150aa

View File

@ -246,7 +246,11 @@ abstract class AbstractNode(open val configuration: NodeConfiguration,
val flows = scanForFlows()
rpcFlows = flows.filter { it.isUserInvokable() && it.isAnnotationPresent(StartableByRPC::class.java) } +
// Add any core flows here
listOf(ContractUpgradeFlow::class.java)
listOf(ContractUpgradeFlow::class.java,
// TODO Remove all Cash flows from default list once they are split into separate CorDapp.
CashIssueFlow::class.java,
CashExitFlow::class.java,
CashPaymentFlow::class.java)
runOnStop += Runnable { net.stop() }
_networkMapRegistrationFuture.setFuture(registerWithNetworkMapIfConfigured())