corda

Corda view consumed states in terminal

给你一囗甜甜゛ 提交于 2020-07-19 01:59:27
问题 is there an easy way to view the consumed states in the terminal with the CordaRPCOps interface? It seems that vaultQuery returns unconsumed states by default and I can't figure out how to use vaultQueryBy or anything with the criteria. I know that there should be consumed states because I can see them with H2 回答1: Hi you could always write a short API to expose the states: there is a sample for /asset in corda existing samples: here is a code snippet api for your scenario: @GET @Path("asset"

ByteSequence not on whitelist or annotated @CordaSerializable issue while adding new node using network bootstrapper 4.0 OS

痴心易碎 提交于 2020-06-18 01:27:07
问题 I am trying to add new node to existing corda network ByteSequence is not on the whitelist or annotated with @CordaSerializable issue while adding new node using corda network bootstrapper 4.0 open source To add a new node to an existing network I followed below option which is recommended here at this link How to add a new node to an existing corda network? I Used the network bootstrapper https://docs.corda.net/network-bootstrapper.html (and followed docs correctly) I am getting below error

How Do I Purge Data From Corda?

谁都会走 提交于 2020-06-01 06:04:04
问题 One of the business requirements I have been presented with is a potential process to purge customer related data (e.g. under GPDR). This is a hosted solution where I have admin access on all the nodes. Is there a way to delete states from Corda. Can it be done without breaking potential links/references? i.e. without "corrupting" the database or causing lots of errors when people walk the chain history etc 回答1: At the current stage, we don't support data deletion. You can manually delete the

How can i restrict a set of nodes from initiating a flow

随声附和 提交于 2020-05-29 11:41:07
问题 If i have two kinds of parties ex: BankA, BankB, InsuranceA, InsuranceB. Can I restrict transactions to be only initiated by Insurance parties ? So I do not want BankA to be able to start a specific flow. 回答1: One way would be to have different set of RPC clients for Bank and Insurance Company with appropriate permissions . In permissions you can define which user can start what flow. Permissions can be set in your node configuration in the build.gradle file. 回答2: There are several approaches

How can i restrict a set of nodes from initiating a flow

耗尽温柔 提交于 2020-05-29 11:40:25
问题 If i have two kinds of parties ex: BankA, BankB, InsuranceA, InsuranceB. Can I restrict transactions to be only initiated by Insurance parties ? So I do not want BankA to be able to start a specific flow. 回答1: One way would be to have different set of RPC clients for Bank and Insurance Company with appropriate permissions . In permissions you can define which user can start what flow. Permissions can be set in your node configuration in the build.gradle file. 回答2: There are several approaches

Adding new node to existing corda network

十年热恋 提交于 2020-05-29 10:16:57
问题 Am trying to add new node with existing node in corda network. I did as documentation. But couldn't achieve. Is that enough to create a folder with node.conf as mentioned in documents. If then its not updating the data and info in the folder while running bootstrapper. But I can achieve this by adding corda and corda webserver with node.conf file. What will happen to ongoing transactions from existing node while adding new node to the network? Do I want to add any other corda jar to the

How to access corda crash shell on remote ubuntu terminal run of corda example?

若如初见. 提交于 2020-05-17 07:15:12
问题 I am able to set up sample from https://github.com/corda/samples/tree/release-V4/cordapp-example As per instructions on https://docs.corda.net/docs/corda-os/4.4/tutorial-cordapp.html#running-nodes-across-machines However, i never come across in documentation how to access the CORDA Crash shell in ubuntu to type in Corda interactive shell to execute the following ! Creating an IOU via the interactive shell # We can create a new IOU using the ExampleFlow$Initiator flow. For example, from the

Azure Postgres Database requires SSL Connection from Corda

◇◆丶佛笑我妖孽 提交于 2020-04-30 15:42:26
问题 Using the managed Postgres database from Azure a Corda node is unable to connect to the database on start. [ERROR] 2019-01-23T11:28:50,937Z [main] internal.Node.run - Exception during node startup {} com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: FATAL: SSL connection is required. Please specify SSL options and retry. at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:512) ~[HikariCP-2.5.1.jar:?] at com.zaxxer.hikari.pool.HikariPool.

Unable to import sumCashBy using IntelliJ IDEA

北慕城南 提交于 2020-04-30 13:57:20
问题 IntelliJ IDEA started highlighting errors in some of my import statements that worked previously. This is not unexpected as net.corda.finance is still in the "incubating" stage. I am working in Java. Corda Release: 3.3 Noticed this change on github: https://github.com/corda/corda/pull/4700 So I made what I thought are the necessary changes... //Old //import static net.corda.finance.utils.StateSumming.sumCashBy; //New import static net.corda.finance.contracts.utils.StateSumming.sumCashBy; ..

Unable to import sumCashBy using IntelliJ IDEA

五迷三道 提交于 2020-04-30 13:56:31
问题 IntelliJ IDEA started highlighting errors in some of my import statements that worked previously. This is not unexpected as net.corda.finance is still in the "incubating" stage. I am working in Java. Corda Release: 3.3 Noticed this change on github: https://github.com/corda/corda/pull/4700 So I made what I thought are the necessary changes... //Old //import static net.corda.finance.utils.StateSumming.sumCashBy; //New import static net.corda.finance.contracts.utils.StateSumming.sumCashBy; ..