corda

In Corda 3, using Cash with a mock network throws the following error: Please register the entity <ENTITY_NAME>

末鹿安然 提交于 2019-12-13 03:27:35
问题 I am trying to run the Obligation CorDapp here on Corda 3. I am getting following error when issuing cash: Cannot find contract attachments for [net.corda.finance.contracts.asset.Cash]. See https://docs.corda.net/api-contract-constraints.html#debugging And when settling I get this: Please register the entity ‘net.corda.finance.schemas.CashSchemaV1’ See https://docs.corda.net/api-persistence.html#custom-schema-registration for more information I have tried following solutions: Error While

Corda: Synchronize multiple Nodes that represent same Party

霸气de小男生 提交于 2019-12-13 03:19:15
问题 I am working on a Cordapp that contain multiple nodes. In my app, every party will be represented by two nodes running at different locations. One of the nodes will always be Online where as the other node can be offline/online at times. I am looking for an API with-in Corda that will enable the offline node to run a job/api to synchronize with the online node. I could not find any such API. Can you please suggest if you have come across a similar scenario and it here is already any available

Transitive dependencies of CordApp doesn't get updated

北战南征 提交于 2019-12-13 02:58:34
问题 original question. How do I update the transitive dependency of cordApp to use Artemis 2.5.0. I'm following this corda-ftp demo. Updated the build.gradle as shown below. when I do gradle dependencies I see Artemis 2.5.0 wins but somehow the nodes pick up 2.2.0 as I can see in classpath in nodes logs. buildscript { ext.corda_release_version = '3.1-corda' ext.corda_gradle_plugins_version = '3.1.0' ext.quasar_version = '0.7.9' ext.junit_version = '4.12' ext.spring_boot_version = '2.0.2.RELEASE'

java.lang.IllegalStateException: Was expecting to find transaction set on current strand

你说的曾经没有我的故事 提交于 2019-12-12 10:26:09
问题 In Corda, I am running flow tests using a MockNetwork . I am trying to retrieve a transaction from one of the nodes' transaction storage using: node.services.validatedTransactions.getTransaction(signedTx.id) However, this is throwing the following exception: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: Was expecting to find transaction set on current strand: Thread[main,5,main] What is the cause of this error? 回答1: Whenever you need to access

Corda nodes: how to connect two independent pc as two nodes?

ぐ巨炮叔叔 提交于 2019-12-12 07:07:05
问题 One friend of mine and I are trying to develop a CorDapp for a financial use case, I can run the cordapp-tutorial and the demos, however they only run on localhost. We would like to create two "real" nodes and I understood correctly we should build two Corda nodes, my pc as one node server and his pc as another node server, but how can we effectively connect over the internet? On slack I have been told to enable dev-mode, but how do you enable it? We have a corda.jar and the nodea.conf, but

v1.0 - commonName in a legalName to create node

你说的曾经没有我的故事 提交于 2019-12-12 04:46:20
问题 If I uses a commonName in a legalName to create a node (at least for MockNetwork), then networkMapCache.getNodeByLegalName(legalName) returns null. After removing the commonName, it works. Is that by design? 回答1: This is a bug in Corda V1.0. When creating a node, the common name part of the name is nulled out. However, when looking up a node using the network map, the common name field is not nulled out, so no match is found. The Corda team will backport a fix to Corda V1.0 to throw an

Expecting Member Declaration

▼魔方 西西 提交于 2019-12-12 04:42:35
问题 I am trying to build a kotlin file (Corda) but running into the following error: e: /Users/pro/Documents/Code/Corda/Tutorials/Kotlin/cordapp-template-kotlin/src/main/kotlin/com/template/App.kt: (59, 5): Expecting member declaration e: /Users/pro/Documents/Code/Corda/Tutorials/Kotlin/cordapp-template-kotlin/src/main/kotlin/com/template/App.kt: (59, 11): Expecting member declaration e: /Users/pro/Documents/Code/Corda/Tutorials/Kotlin/cordapp-template-kotlin/src/main/kotlin/com/template/App.kt:

Corda, TestNet: Is it allowed to modify the X.500 name of a pre-configured Corda node downloaded from https://testnet.corda.network

谁说我不能喝 提交于 2019-12-12 00:46:35
问题 We have downloaded 4 pre-configured Corda nodes from https://testnet.corda.network. These nodes have X.500 distinguished names containing subparts - Organization, Location and Country. Question 1: Can we replace the values in the above subparts of the X.500 distinguished name with our definitions? Question 2: Can we add "organizationUnit" in the above X.500 name? 回答1: The Testnet was built for the community to experience the Corda network. It is a pathway to the Corda Network (TCN) run by the

Back tracking OwnableState in Corda

末鹿安然 提交于 2019-12-11 23:42:14
问题 While going through Corda docs, I came across the below snippet at this link. The default vault implementation makes the decision based on the following rules: If the state is an OwnableState , the vault will store the state if the node is the state’s owner Otherwise, the vault will store the state if it is one of the participants In my flow, I am issuing/sending cash from Node A to Node B using a state class that implements OwnableState. I made Node B as the owner. I populated the

Which JDK is best suited for R3 Corda framework

牧云@^-^@ 提交于 2019-12-11 23:37:29
问题 We are considering over which JDK is best suited for the R3 Corda. However there is some incosistency in the way framework suggests the deployment. Oracle JDK – Recommended as per the Corda documentation https://docs.corda.r3.com/getting-set-up.html Open JDK – The Corda framework has a defined gradle task for docker deployment as “DockerForm”. This task generates the artifacts which are useful for deploying the Corda node as a docker container. So this task generates a Dockerfile for each