Skip to content

Commit 4695cb0

Browse files
authored
Allows DemoBench profile files to utilize extra database settings (corda#2310)
Pass-through for supporting external DB properites in .profile files
1 parent ce4392e commit 4695cb0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

tools/demobench/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ Now choose `File/Open` from the main menu, and select the profile that you have
110110
just saved. DemoBench should close the two existing tabs and then relaunch the
111111
Notary and Bank nodes.
112112

113+
If you want to edit the content, please make sure that when zipping content back,
114+
the notary node is the first directory (ZIP files content is ordered)
115+
113116
## Exiting DemoBench
114117

115118
Close DemoBench as a normal application on your platform; it should close any

tools/demobench/src/main/kotlin/net/corda/demobench/model/NodeConfig.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import net.corda.nodeapi.internal.config.User
1313
import net.corda.nodeapi.internal.config.toConfig
1414
import java.nio.file.Path
1515
import java.nio.file.StandardCopyOption
16+
import java.util.Properties
1617

1718
/**
1819
* This is a subset of FullNodeConfiguration, containing only those configs which we need. The node uses reference.conf
@@ -29,7 +30,10 @@ data class NodeConfig(
2930
val h2port: Int,
3031
val rpcUsers: List<User> = listOf(defaultUser),
3132
/** This is an extra config used by the Cash app. */
32-
val issuableCurrencies: List<String> = emptyList()
33+
val issuableCurrencies: List<String> = emptyList(),
34+
/** Pass-through for generating node.conf with external DB */
35+
val dataSourceProperties: Properties? = null,
36+
val database: Properties? = null
3337
) {
3438
companion object {
3539
val renderOptions: ConfigRenderOptions = ConfigRenderOptions.defaults().setOriginComments(false)

0 commit comments

Comments
 (0)