corda

Corda 4.0 transaction serialization issue

北战南征 提交于 2019-12-11 17:14:19
问题 Having recently upgraded to Corda 4.0 we are now seeing a serialization exception when trying to create transactions: [ERROR] 10:09:49,500 [Mock network] amqp.SerializationOutput. - Serialization failed direction="Serialize", type="net.corda.core.transactions.TraversableTransaction", msg="Defined getter for parameter commands returns type java.util.List> yet underlying type is java.util.List>", ClassChain="net.corda.core.transactions.TraversableTransaction" {actor_id=Only For Testing, actor

Error when try to deploy a node: “java.security.NoSuchAlgorithmException: 1.2.840.113549.1.1.1 Signature not available”

眉间皱痕 提交于 2019-12-11 17:06:54
问题 ( Previous question: Error when try to deploy a node: "java.lang.IllegalArgumentException: Unrecognised algorithm: 1.2.840.10040.4.1" ) After works I've done as I mentioned in previous question, I receive another error message: / ____/ _________/ /___ _ / / __ / ___/ __ / __ `/ I had an account with a bank in the / /___ /_/ / / / /_/ / /_/ / North Pole, but they froze all my assets \____/ /_/ \__,_/\__,_/ --- Corda Open Source 2.0.0 (f91995b) -----------------------------------------------

Getting error while redeploying nodes

元气小坏坏 提交于 2019-12-11 16:37:30
问题 I am still using Corda 1.0 version. when i try to redeploy nodes with existing data, getting below error while start-up but able to access the nodes . If i clear the data and redeploy the nodes, i didn't face these error message. Logs can be found in : C:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\kotlin- source\build\nodes\xxxxxxxx\logs Database connection url is : jdbc:h2:tcp://xxxxxxxxx/node E 18:38:46+0530 [main] core.client.createConnection - AMQ214016: Failed to create netty connection

Corda returning Multiple transactions in a single flow call ()

微笑、不失礼 提交于 2019-12-11 16:30:56
问题 I have the scenario where One party needs to read a list of states ( DEAL STATE for ex.), Then iterate through the list to find out the matching records. If it is matching, we need to create new output state by combining the matched fields. So once the matching is performed within the loop, we can get the list of input and output states. But I am confused on collecting the signature from other parties since the counterparties will be different for each of the record. Also, how will I call the

Corda Issue Connecting to TestNet Node Using Tools Explorer

自闭症网瘾萝莉.ら 提交于 2019-12-11 16:14:31
问题 Attempting to connect to a Corda TestNet node following instructions from this link but continue to get below error.. https://docs.corda.net/testnet-explorer-corda.html net.corda.nodeapi.exceptions.InternalNodeException: Something went wrong within the Corda node. Node log contents: [ERROR] 2019-10-15T13:37:48,109Z [Node thread-1] proxies.ExceptionMaskingRpcOpsProxy.log - Error during RPC invocation [errorCode=24h7hj, moreInformationAt=https://errors.corda.net/OS/4.0/24h7hj] {actor_id=rpcuser

Corda: Can the output of one transaction be used in another transaction within the same flow with multiple same signers?

南楼画角 提交于 2019-12-11 15:58:37
问题 There is a flow as per below scenario. Initiating Party : PartyA Responding Party : PartyB Transaction 1: Input StateA - ContractA results in output StateB - ContractA. Participants are PartyA and PartyB Transaction 2: Input StateB - ContractA and no output. Participants are PartyA and PartyB Is this possible in Corda? Please do share an example with response. Thanks. 回答1: yes it is possible .Please find the link to know more https://docs.corda.net/key-concepts-transactions.html 回答2: It

In Corda, can the output of one transaction be used by new transaction in the same flow?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 15:54:13
问题 There is a flow as per below scenario. Transaction 1: Input StateA - ContractA results in output StateB - ContractA Transaction 2: Input StateB - ContractA and no output Is this possible in Corda? Please do share an example with response. Thanks. 回答1: Yes, this is possible. For example: @InitiatingFlow @StartableByRPC class TwoTransactionFlow(val inputStateAndRefA: StateAndRef<StateA>) : FlowLogic<Unit>() { @Suspendable override fun call() { val notary = serviceHub.networkMapCache

Issue in consuming the certificate chain in corda

跟風遠走 提交于 2019-12-11 15:07:24
问题 I want to create a custom CA and have created rootCertficate as mention on this link using following commands set RANDFILE=rand set OPENSSL_CONF=c:\Binaries\openssl-X64\openssl.cnf openssl req -new -keyout cakey.pem -out careq.pem openssl x509 -signkey cakey.pem -req -days 3650 -in careq.pem -out caroot.cer -extensions v3_ca I then use this certificate as root to sign and create other certificates using java program public static X509Certificate signCertificateSigningRequest(

Unable to initiate a flow session with another node from a ScheduledFlow

放肆的年华 提交于 2019-12-11 14:39:46
问题 I am trying to initiate a flow session with another node from a ScheduledFlow. Below is the Scheduledstate definiton: data class State(val a: Party, val b: Party, val instant: Instant, val status: Status, override val linearId: UniqueIdentifier = UniqueIdentifier(), override val participants: List<AbstractParty> = listOf(a, b)) : LinearState, SchedulableState { private val scheduledTime = instant override fun nextScheduledActivity(thisStateRef: StateRef, flowLogicRefFactory:

How to configure notary node while running cordapp via IntelliJ

一个人想着一个人 提交于 2019-12-11 10:58:02
问题 I want to configure the notary node , for example as non validating. How do I configure it in the cordapp example,NodeDriver.kt file? I could see the option in build gradle file and run via terminal, but I am specifically looking to run via intellij. 回答1: You need to pass your own list of notary specs to the driver: fun main(args: Array<String>) { val notaryName = CordaX500Name("MyNotary", "London", "GB") val notarySpec = NotarySpec(name = notaryName, validating = false) driver