diff --git a/node/dist/build.gradle b/node/dist/build.gradle index ccf5dd9f8a..920e5c3e00 100644 --- a/node/dist/build.gradle +++ b/node/dist/build.gradle @@ -30,6 +30,7 @@ sourceSets { // Runtime dependencies of launcher dependencies { + compile project(':node') launcherClasspath project(':launcher') launcherClasspath "org.slf4j:jul-to-slf4j:$slf4j_version" launcherClasspath "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}" @@ -119,7 +120,7 @@ task buildLauncher(type: Exec, dependsOn: [copyLauncherLibs]) { } } -task buildNode(type: Copy, dependsOn: [buildLauncher, project(':docs').tasks['makeDocs']]) { +task buildNode(type: Copy, dependsOn: [buildLauncher, project(':docs').tasks['makeDocs'], project(':node').tasks['jar']]) { description 'Build stand-alone Corda Node distribution' into(outputDir) diff --git a/node/dist/src/main/resources/readme/example-node.conf b/node/dist/src/main/resources/readme/example-node.conf index 538f118df5..15d45001d7 100644 --- a/node/dist/src/main/resources/readme/example-node.conf +++ b/node/dist/src/main/resources/readme/example-node.conf @@ -1,22 +1,61 @@ -myLegalName : "O=Bank A,L=London,C=GB" -keyStorePassword : "cordacadevpass" -trustStorePassword : "trustpass" -dataSourceProperties : { - dataSourceClassName : org.h2.jdbcx.JdbcDataSource - "dataSource.url" : "jdbc:h2:file:"${baseDirectory}"/persistence" - "dataSource.user" : sa - "dataSource.password" : "" +p2pAddress="localhost:10005" +myLegalName="O=Bank A,L=London,C=GB" +emailAddress = "admin@company.com" +keyStorePassword = "cordacadevpass" +trustStorePassword = "trustpass" +dataSourceProperties = { + dataSourceClassName = org.h2.jdbcx.JdbcDataSource + dataSource.url = "jdbc:h2:file:"${baseDirectory}"/persistence;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;WRITE_DELAY=0;AUTO_SERVER_PORT="${h2port} + dataSource.user = sa + dataSource.password = "" } -p2pAddress : "my-corda-node:10002" +database = { + transactionIsolationLevel = "REPEATABLE_READ" + exportHibernateJMXStatistics = "false" +} +devMode = true +h2port = 0 +useTestClock = false +verifierType = InMemory rpcSettings = { useSsl = false standAloneBroker = false - address : "my-corda-node:10003" - adminAddress : "my-corda-node:10004" + address="localhost:10007" + adminAddress="localhost:10008" +} +security { + authService { + dataSource { + type=INMEMORY + users=[ + { + password=default + permissions=[ + ALL + ] + username=default + } + ] + } + } +} +enterpriseConfiguration = { + mutualExclusionConfiguration = { + on = false + machineName = "" + updateInterval = 20000 + waitInterval = 40000 + } + tuning = { + flowThreadPoolSize = 1 + rpcThreadPoolSize = 4 + maximumMessagingBatchSize = 256 + p2pConfirmationWindowSize = 1048576 + brokerConnectionTtlCheckIntervalMs = 20 + stateMachine = { + eventQueueSize = 16 + sessionDeliverPersistenceStrategy = "OnNextCommit" + } + } + useMultiThreadedSMM = true } -webAddress : "localhost:10004" -rpcUsers : [ - { username=user1, password=letmein, permissions=[ StartFlow.net.corda.protocols.CashProtocol ] } -] -devMode : true -// certificateSigningService : "https://testnet.certificate.corda.net"