corda

How to store only node specific off-ledger custom data in corda?

扶醉桌前 提交于 2019-12-11 10:55:15
问题 I created custom table in corda using QueryableState. e.g. IOUStates table. I can able to see the custom information getting stored in this kind of table. but i observed that if party A and Party B is doing the transaction then this custom information gets stored at both the places , e.g. IOUStates table getting created at nodeA ledger as well as nodeB's ledger. and custom information is stored in partyA's and PartyB's ledger. My Question is :- If some Transaction is getting processed from

How to mock a responder flow in corda

旧街凉风 提交于 2019-12-11 08:48:44
问题 I am trying to mock a responder flow inside my unit tests, my responder flow does several validations that deals with configurations and off ledger services. I would like to mock the value to always return a true so that the unit test does not have any dependencies on the other components in the network. The purpose is only for unit tests, is there any way I could mock the response using API as I am aware that we have to register the responder classes during the mock network setup? 回答1:

Query Data In Notary Node and Query Transaction in Normal Node

﹥>﹥吖頭↗ 提交于 2019-12-11 08:39:01
问题 I have a question about query data: Is there any way to query all data stored by Notary Node and how to query transactions in other Node in Corda? 回答1: In Corda, each node is backed by its own database. This database only stores transactions that the node is aware of. For privacy reasons, a node cannot query other nodes' databases. Instead, you'd have to write a flow that makes the other node query its database for you and send back the results. However, the other node would have control over

CordaFTP Unable to transfer Large files because of Artemis probably

我的未来我决定 提交于 2019-12-11 08:07:18
问题 I'm using this demo.CordaFTPdemo to get hands-on attachment. However, I figured out that large files cannot be transferred and are giving an exception java.lang.IllegalArgumentException: Missing validated user from the Artemis message ServerSession doesn't set validated users when called from slowPacketHandler in ServerSessionPacketHandler. JIRA Here The thing is when I update the build.gradle to force to version 2.5.0 for Artemis. it just doesn't work. when I checked the gradle dependencies

Corda RPC JacksonSupport.createDefaultMapper to use ObjectMapper in Spring client

南楼画角 提交于 2019-12-11 06:55:07
问题 How to register newly introduced Corda RPC ObjectMapper in Spring Boot? Even after having below code in @Configuration class Jackson failing to serialize Party object to JSON string. @Bean public JsonComponentModule jsonComponentModule() { return new JsonComponentModule(); } @Bean @Primary public ObjectMapper cordaRpcObjectMapper(NodeRPCConnection rpc) { ObjectMapper objectMapper = JacksonSupport.createDefaultMapper(rpc.getProxy(), new JsonFactory(), true); objectMapper.registerModule

Could not write JSON: No serializer found for class net.i2p.crypto.eddsa.math.ed25519.Ed25519LittleEndianEncoding

旧时模样 提交于 2019-12-11 06:48:19
问题 i try to implement spring web server to a cordapp , but continuously getting same Serialization error. { "timestamp": 1529999846743, "status": 500, "error": "Internal Server Error", "exception": "org.springframework.http.converter.HttpMessageNotWritableException", "message": "org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: No serializer found for class net.i2p.crypto.eddsa.math.ed25519.Ed25519LittleEndianEncoding and no properties discovered to create

Why “DockerForm” plugin generates Docker images using OpenJDK?

*爱你&永不变心* 提交于 2019-12-11 06:19:50
问题 Oracle JDK is recommended as per the Corda documentation. Corda does not officially support Open JDK. Refer: Which JDK is best suited for R3 Corda framework However if we use DockerForm to create Docker image for the Corda node, it internally uses OpenJDK. Why is it so? I mean, is it just a consistency miss or a deliberate decision? 回答1: The license that comes with the Oracle JDK does not allow for redistributing. So they cannot offer a Docker image with the Oracle JDK/JRE on it. You can,

IllegalFlowLogicException: A FlowLogicRef cannot be constructed for FlowLogic

两盒软妹~` 提交于 2019-12-11 06:19:34
问题 In my Corda I am trying to call a flow using RPC but I am getting this error while making the call to initiate the flow: net.corda.core.flows.IllegalFlowLogicException: A FlowLogicRef cannot be constructed for FlowLogic of type com.example.flow.PolicyFlow$Initiator: due to missing constructor for arguments: [class com.example.state.PolicyState] My Flow is shown in the snippet below: public SignedTransaction call() throws FlowException { class SignTxFlow extends SignTransactionFlow { private

When does a node checkpoint itself

╄→尐↘猪︶ㄣ 提交于 2019-12-11 04:54:33
问题 I understand there's some annotation related to @Suspendable to mark a function as serialisable. How much does a flow checkpoint itself? Does a node checkpoint itself only when there's a send / sendAndReceive when it waits for a response? Or does it serialise checkpoints at an interval? Given a flow that does nothing but computation, how much does it serialise/write to disk, and does this affect performance if there's a peak load of read/write from other thread doing vault queries/writing.

Using Corda RPC API in Spring Boot throws IllegalArgumentException

隐身守侯 提交于 2019-12-11 04:29:19
问题 I have a multimodule project similar to this one. I'm using Corda 3.2, Spring Boot 2 without Kotlin and I have a set of Corda nodes running thanks to cordformation. I'm able to connect successfully to a node from my Spring Boot app, but getting into to trouble when trying to, for example, get nodeInfo. I saw a similar question here. But the answer to "clear caches" there is confusing to me. Does it mean to clear gradle's cache? How would that help? Here's my stack trace: com.esotericsoftware