corda

How can I test two different responder flows in the same CorDapp?

久未见 提交于 2019-12-01 12:34:25
问题 I have the following series of flows: Initiator , my initiating flow AliceFlow , which one counterparty uses to respond to Initiator BobFlow , which the other counterparty uses to respond to Initiator Normally, the two response flows would be defined in separate CorDapps. However, for testing purposes, I have defined them in the same file. When I run flow tests, I get the error below. How can I fix this? java.lang.IllegalArgumentException: com.template.Initiator has been specified as the

Highly Available Notary Service Setup in Oracle RAC (Corda Enterprise)

我只是一个虾纸丫 提交于 2019-12-01 11:22:00
问题 Setting up the Notary Service for Oracle RAC (Corda Enterprise). I need some help configuring Corda Enterprise in Oracle RAC (reference: "Highly Available Notary Service - Setting up the Notary Service": http://docs.corda.r3.com/running-a-notary-cluster/installing-the-notary-service.html). Regarding the "msql" tag, is it possible to configure an Oracle RAC? Is there an "oracle" tag? In the "notary" tag's "serviceLegalName" parameter where should I put the name of the Notary that the Nodes see

Legal Prose Usage Corda

…衆ロ難τιáo~ 提交于 2019-12-01 11:17:22
It's a follow up question on previously answered legal prose question by Joel.(created separate question on request) @LegalProseReference(uri = "foo.bar.com/my-legal-doc.html") public class MyContract implements Contract { @Override public void verify(LedgerTransaction tx) { // Contract logic. } } As the answer suggests, I got this legal doc my-legal-doc.html. so what happens in case the verify method doesn't throw an exception? and what happens in case verify does throw an exception do I show this legal doc to the user that read this legal doc. That this is why the contract failed? as

Legal Prose Usage Corda

≡放荡痞女 提交于 2019-12-01 08:56:52
问题 It's a follow up question on previously answered legal prose question by Joel.(created separate question on request) @LegalProseReference(uri = "foo.bar.com/my-legal-doc.html") public class MyContract implements Contract { @Override public void verify(LedgerTransaction tx) { // Contract logic. } } As the answer suggests, I got this legal doc my-legal-doc.html. so what happens in case the verify method doesn't throw an exception? and what happens in case verify does throw an exception do I

Corda running on Java 9

十年热恋 提交于 2019-12-01 00:59:41
问题 Java 8 is going out of public support in September and can no longer be secured we need to know when the Corda platform will remove their dependency on Java 8 therefore, we need a Java 9 compatible version of Corda available with enough lead time that we can get in internally installed, tested, and deployed before September 2018. Please, let us know your thoughts Javier 回答1: We've done some initial work on Java 9 support already. For example we're setting Automatic-Module-Name on our JARs and

How to get transaction history in Corda?

限于喜欢 提交于 2019-11-30 21:25:45
To get state I can use Vault, but what about transactions? How I can get them, for example, by txHash? Is it possible to do this by CordaRPCOps, there is internalVerifiedTransactionsSnapshot method, but it is deprecated now. First, note that as of Corda 3, there are no stability guarantees regarding the behaviour of any method to retrieve a transaction or its dependencies. In particular, we cannot guarantee that the set of transactions retrieved will not change across Corda versions. This is because in future versions of Corda, nodes will likely only exchange transaction chains in SGX

Legal prose in Corda

故事扮演 提交于 2019-11-30 16:51:50
Can someone explain what is it legal prose in Corda? I understood that it is a document, which is used to solve conflicts, but i didnt find any information how it looks like. And how is it linked with smart contract? A Contract class can be annotated with the @LegalProseReference annotation. This annotation associates the contract with a document that restates the constraints imposed by verify in legal prose terms. This is not required, but can be useful in contexts where it is expected that legal contracts will take precedence over the software implementations in case of disagreement.

Exchanging Corda cash states for traditional cash

青春壹個敷衍的年華 提交于 2019-11-30 16:23:18
Suppose you're representing cash on the Corda ledger using cash states. How does a network participant exchange their cash states for traditional cash? Firstly, we need to explain how cash states are created on the ledger initially. The mechanism is for an issuing bank to set aside a cash deposit in the traditional banking system, and issue itself cash states of an equal amount and currency on the ledger using a Cash.Issue transaction. The issued cash states can then be transferred between parties on the ledger via Cash.Move transactions. It is not necessary to reflect these movements of on

Error when running Corda flow tests from IntelliJ

隐身守侯 提交于 2019-11-30 14:11:37
问题 When I run Corda flow tests from IntelliJ, the tests fail with the following errors: QUASAR WARNING: Quasar Java Agent isn't running. If you're using another instrumentation method you can ignore this message; otherwise, please refer to the Getting Started section in the Quasar documentation. and java.lang.IllegalStateException: Missing the '-javaagent' JVM argument. Make sure you run the tests with the Quasar java agent attached to your JVM. See https://docs.corda.net/troubleshooting.html -

How can CorDapps deal with transitive dependencies

天大地大妈咪最大 提交于 2019-11-30 10:18:36
Currently in v2, if a CorDapp references a module X, which has a transitive dependency to a module Y, such that Y is used by Corda, a potential version conflict can occur if the respective versions of Y for Corda and X differ. An example is the reuse of an existing internal library, containing business and serialisation logic, that depends on Jackson . In this case, the resulting CorDapp packaging and Corda runtime, seem to enforce the version of Y that is relevant for Corda. If the versions of Y differ sufficiently, we can get such scenarios as X breaking because Y doesn’t support certain