mirror of
https://github.com/corda/corda.git
synced 2025-02-20 17:33:15 +00:00
Added prerequisite for using the test clock.
This commit is contained in:
parent
71e1c39622
commit
19a53ea12d
@ -52,6 +52,9 @@ class FullNodeConfiguration(config: Config) : NodeConfiguration {
|
||||
val useTestClock: Boolean by config.getOrElse { false }
|
||||
|
||||
fun createNode(): Node {
|
||||
// This is a sanity feature do not remove.
|
||||
require(!useTestClock || devMode) { "Cannot use test clock outside of dev mode" }
|
||||
|
||||
val advertisedServices = mutableSetOf<ServiceInfo>()
|
||||
if (!extraAdvertisedServiceIds.isNullOrEmpty()) {
|
||||
for (serviceId in extraAdvertisedServiceIds.split(",")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user