corda-training-template | A template for the corda two day training course | Machine Learning library
kandi X-RAY | corda-training-template Summary
kandi X-RAY | corda-training-template Summary
This repo contains all of the instructions and class templates for the practical exercises of the Corda two day training course. This repository is divided into two parts: Java templates, and Kotlin templates. You may complete the training in whichever language you prefer.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Issues a flow to an IOU
- Provides a list of all parties registered with this node
- Issue a cash flow
- Get information about the current user
- Returns all cash states
- Returns a map of cash balances
- Returns information about all IOUs in the vault
- Checks if the given node is legal
- Is this node a network map service?
- Is notary
- This method is used to add a cash to a resource
- Propagates a new IOU
- Returns a string representation of the given X500Name
- Returns a list of all the nodes that can be used to use this state
corda-training-template Key Features
corda-training-template Examples and Code Snippets
Community Discussions
Trending Discussions on corda-training-template
QUESTION
I am exploring this cordapp example https://github.com/corda/corda-training-template.git
I have modified the code as per the solution template available in Github. Whenever I am starting the flow, I am getting error like (no constructor found, missing parameter state), please refer to the below screenshot. I have initiated this flow from node A so I am confused about what will be the constructor parameter. I have pasted the state code below.
IOUState Constructor code
...ANSWER
Answered 2020-Apr-19 at 12:34- I assume that one of the input parameters in your flow's constructor is a class (
Amount
), so you have to pass an instance of that class when you start the flow in the node's shell. - See here how to create an instance of a class in the node's shell.
- The problem in your code is that you're using
Amount
; meaning to construct an instance, you'd have to do something like this:
QUESTION
I was exploring thIS cordapp example https://github.com/corda/corda-training-template.git
There is a total of 4 nodes (Notary, A, B, and C) in this example. I am trying to open all the nodes in a single run using runnodes script from the terminal.
But all the nodes are not opening at a time. It's like alternatively they are opening, onetime only Notary and C nodes are opening and another time A and B nodes are opening. Any specific reason? And also I am getting this message in the webserver terminal. Please explain. "The Corda specific webserver is deprecated and will be removed in future".
...ANSWER
Answered 2020-Apr-17 at 08:15The runnodes script is not a very reliable way of starting up the nodes. Its mostly used for development purposes to make development faster.
It might sometimes not work as expected. The script works by opening up a terminal window and running the command to start the node in that particular terminal. Depending on the speed of the system, the command sometimes gets executed before the new terminal is opened up.
The reliable way to start a Corda node, however, is to use the java -jar corda.jar
command. So just go into each individual nodes folder and run the command to start the node.
Here's the script :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install corda-training-template
Click File->Project Structure, and set the Project SDK to be the JDK you downloaded (by clicking new and nagivating to where the JDK was installed). Click Okay.
Next, click import on the Import Gradle Project popup, leaving all options as they are.
If you do not see the popup: Navigate back to Project Structure->Modules, clicking the + -> Import button, navigate to and select the repository folder, select Gradle from the next menu, and finally click Okay, again leaving all options as they are.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page