mirror of
https://github.com/corda/corda.git
synced 2025-05-04 17:53:05 +00:00
make usage of flow overrides more explicit in documentation for trader-demo
This commit is contained in:
parent
2220514bde
commit
d95c68c2ae
@ -1,11 +1,27 @@
|
|||||||
Trader demo
|
Trader demo
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
This demo brings up five nodes: Bank A, Bank B, Bank Of Corda, Logging Bank and a notary node that they all use. Bank A
|
This demo brings up five nodes: Bank A, Bank B, Bank Of Corda, NonLogging Bank and a notary node that they all use. Bank A
|
||||||
will be the buyer, and requests some cash from the Bank of Corda in order to acquire commercial paper from Bank B, the
|
will be the buyer, and requests some cash from the Bank of Corda in order to acquire commercial paper from Bank B, the
|
||||||
seller.
|
seller.
|
||||||
|
|
||||||
The Logging Bank node is present to demonstrate the usage of the "Configuring Responder Flows" feature of Corda described [here](https://docs.corda.net/head/flow-overriding.html)
|
The NonLogging Bank node is present to demonstrate the usage of the "Configuring Responder Flows" feature of Corda described [here](https://docs.corda.net/head/flow-overriding.html).
|
||||||
|
The override is defined within the deployNodes section of the `build.gradle`. In this case, we are overriding the default responder for `net.corda.traderdemo.flow.SellerFlow`
|
||||||
|
to be a version that does not print out information about the transaction.
|
||||||
|
|
||||||
|
```groovy
|
||||||
|
node {
|
||||||
|
name "O=NonLogging Bank,L=London,C=GB"
|
||||||
|
p2pPort 10025
|
||||||
|
rpcUsers = ext.rpcUsers
|
||||||
|
rpcSettings {
|
||||||
|
address "localhost:10026"
|
||||||
|
adminAddress "localhost:10027"
|
||||||
|
}
|
||||||
|
extraConfig = ['h2Settings.address' : 'localhost:10035']
|
||||||
|
flowOverride("net.corda.traderdemo.flow.SellerFlow", "net.corda.traderdemo.flow.BuyerFlow")
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
To run from the command line in Unix:
|
To run from the command line in Unix:
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar', nodeTask,
|
|||||||
|
|
||||||
//All other nodes should be using LoggingBuyerFlow as it is a subclass of BuyerFlow
|
//All other nodes should be using LoggingBuyerFlow as it is a subclass of BuyerFlow
|
||||||
node {
|
node {
|
||||||
name "O=LoggingBank,L=London,C=GB"
|
name "O=NonLogging Bank,L=London,C=GB"
|
||||||
p2pPort 10025
|
p2pPort 10025
|
||||||
rpcUsers = ext.rpcUsers
|
rpcUsers = ext.rpcUsers
|
||||||
rpcSettings {
|
rpcSettings {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user