corda

Error when try to deploy a node: “java.lang.IllegalArgumentException: Unrecognised algorithm: 1.2.840.10040.4.1”

旧街凉风 提交于 2019-12-04 15:31:30
I developed a Cordapp and tried to deploy it to my workstation as a node. I followed instruction https://docs.corda.net/deploying-a-node.html#windows-installing-and-running-corda-as-a-windows-service After service starts, a server.log generates the following error message: ______ __ / ____/ _________/ /___ _ / / __ / ___/ __ / __ `/ Computer science and finance together. / /___ /_/ / / / /_/ / /_/ / You should see our crazy Christmas parties! \____/ /_/ \__,_/\__,_/ --- Corda Open Source 2.0.0 (f91995b) ----------------------------------------------- Logs can be found in : C:\Corda\logs

Corda: How to implement hierarchical relationships between state data persisted to H2

笑着哭i 提交于 2019-12-04 15:17:35
Summary I've adapted the basic Token Issuance Corda Bootcamp application to demonstrate this issue. I want to create a bidirectional mapping between TokenStates and TokenChildren where the relationship is one-to-many. What are the best practices for persisting hierarchical data? Is it possible to implement this using JPA annotations in state schemas? I have one state - TokenState , that contains some arbitrary data as well as a Collection of objects with the class TokenChild . The purpose of this list is to facilitate a one-to-many relationship between the records in H2. The state's associated

PBFT algorithm in hyperledger

北城以北 提交于 2019-12-04 07:35:12
问题 Can anyone explain PBFT Algorithm in detail without giving any link for the same? And how it works in hyperledger . So, once the transaction is sent to the blockchain : Who validates the transaction? How the consensus is achieved on the transaction? How the transaction is committed to the blockchain? 回答1: "Hyperledger" is a blockchain consortium under The Linux Foundation. Currently there are at least 4 different implementations of blockchain frameworks under Hyperledger: Fabric (IBM) Corda

How to query on a field in nested collection of a parent state using VaultCustomQuery

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 06:13:57
问题 I have a one-to-many relationship where I am trying to add a list of object/class in my state. i.e I have a contract state that has a list of attachments List<Attachment> , where Attachment is just a class with fields like attachmentHash , uploadedDate , fileType I wanted to query with something in the child but I get syntax error "AttachmentEntity is not a subtype of PersistentState" QueryCriteria.VaultCustomQueryCriteria( builder { (ContractSchemaV1.AttachmentEntity::uploadDate).equal

What are the cases where a TX is not sent to the Notary Service?

半城伤御伤魂 提交于 2019-12-04 02:40:28
问题 What are the situations a transaction is not submitted to the Notary service? Although the progress tracker shows notary steps, we noted in some cases the transaction is not really sent to the Notary service. (e.g. State creation with no time window). 回答1: As of Corda 3.3, if Tx has no inputs and no time window then it's not sent to the notary for signature. But with Corda 4, as I can see in the master, in addition to the above two conditions, it is sent to the notary, in case a reference

In Corda, how can I set the logging level for flow tests?

巧了我就是萌 提交于 2019-12-03 23:15:27
问题 I am running flow tests in Corda and want to set the logging level to debug to see the SQL queries executed against the vault when I use vaultService.queryBy . How can I set the logging level in flow tests? 回答1: You can override the flow tests' logger settings by passing -Dlog4j.configurationFile=/path/to/log4j2.xml as a VM option. For example, in the CorDapp Example (https://github.com/corda/samples), you could enable debug -level logging in flows by: Updating config/test/log4j2.xml to

Need to create a new node without redeploying nodes in Corda?

瘦欲@ 提交于 2019-12-03 21:32:01
I want to create a new node without redeploying my existing nodes in Corda environment . Is it possible to add another node from within the application without deploying it again . If yes then how we will specify its ports for rpc and database . For example : In my application I have a system in which there are different merchants and I want to add a new merchant to the system without redeployment . Yes it is possible (Imagine a configuration where nodes / actors couldn't join or leave the distributed ledger on demand ? That would be madness right?). All the active nodes communicate with the

Difference between various blockchain protocols [closed]

只谈情不闲聊 提交于 2019-12-03 00:40:35
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago . As the developers are constantly using different network protocols of blockchain such as Hyperledger, multichain, Ethereum, Corda, and others. Community will appreciate if the developers & blockchain enthusiasts can pour in some key differences between various types of

How to stop node from logging node.conf during startup

流过昼夜 提交于 2019-12-02 22:31:26
问题 How do I stop the node from printing the node.conf in the logs? I understand we can change the logging level since the node.conf is printed at INFO level, but I want to avoid that as much as possible since I still want some other information that is at INFO level to be printed out. 回答1: The contents of node.conf are printed at INFO level by the net.corda.node.services.config.ConfigHelper class. To prevent the contents of node.conf from being printed to the logs, you'd have to specify a custom

Difference between various blockchain protocols [closed]

女生的网名这么多〃 提交于 2019-12-02 14:14:48
As the developers are constantly using different network protocols of blockchain such as Hyperledger, multichain, Ethereum, Corda, and others. Community will appreciate if the developers & blockchain enthusiasts can pour in some key differences between various types of blockchains as mentioned above. Thanks ! christo4ferris This is a good question, though not one easily addressed with a simple answer. As @Mat0 commented above, one difference is the approaches that the various platforms are using to achieve consensus. Some use proof of work (PoW), others use variants of byzantine fault tolerant