corda

Using PostgreSQL instead of H2 as the Corda node's database

荒凉一梦 提交于 2019-11-27 16:59:25
问题 I would like to use PostgreSQL instead of H2 as the database for my node. Is using PostgreSQL for Corda nodes possible? How would I configure my node to use a PostgreSQL database? 回答1: Both Corda 2 and Corda 3 allow the use of PostgreSQL 9.6, using PostgreSQL JDBC Driver 42.1.4. Note that this is an experimental community contribution, and is currently untested. Here is an example node configuration block for PostgreSQL: dataSourceProperties = { dataSourceClassName = "org.postgresql.ds

Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6

别说谁变了你拦得住时间么 提交于 2019-11-26 23:55:57
问题 When trying to run the Example CorDapp (https://github.com/corda/cordapp-example) via IntelliJ, I receive the following error: Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6 How can I modify the IntelliJ settings so that all the bytecode is built with the same JVM target? 回答1: app/build.gradle android { ... compileOptions { sourceCompatibility = 1.8 targetCompatibility = 1.8 } kotlinOptions { jvmTarget = "1.8" } } GL Source 回答2: You can