mirror of
https://github.com/corda/corda.git
synced 2025-02-20 17:33:15 +00:00
network-map-visualiser: Fix compile error
This commit is contained in:
parent
49beda43f9
commit
91b07a71df
@ -10,12 +10,10 @@ buildscript {
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id "us.kirchmeier.capsule" version "1.0.2"
|
||||
}
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'application'
|
||||
apply plugin: 'us.kirchmeier.capsule'
|
||||
|
||||
group 'com.r3cev.prototyping'
|
||||
version '1.0-SNAPSHOT'
|
||||
|
@ -10,7 +10,6 @@ package com.r3cev.corda.netmap
|
||||
|
||||
import com.r3corda.core.messaging.SingleMessageRecipient
|
||||
import com.r3corda.core.then
|
||||
import com.r3corda.core.utilities.BriefLogFormatter
|
||||
import com.r3corda.core.utilities.ProgressTracker
|
||||
import com.r3corda.node.internal.testing.IRSSimulation
|
||||
import com.r3corda.node.internal.testing.MockNetwork
|
||||
@ -82,10 +81,6 @@ class NetworkMapVisualiser : Application() {
|
||||
val timer = Timer()
|
||||
val uiThread: Scheduler = Schedulers.from { Platform.runLater(it) }
|
||||
|
||||
init {
|
||||
BriefLogFormatter.initVerbose(InMemoryMessagingNetwork.MESSAGES_LOG_NAME)
|
||||
}
|
||||
|
||||
override fun start(stage: Stage) {
|
||||
viewModel.view = view
|
||||
viewModel.presentationMode = "--presentation-mode" in parameters.raw
|
||||
@ -359,13 +354,12 @@ class NetworkMapVisualiser : Application() {
|
||||
// Loopback messages are boring.
|
||||
if (transfer.sender.myAddress == transfer.recipients) return false
|
||||
// Network map push acknowledgements are boring.
|
||||
if (NetworkMapService.PUSH_ACK_PROTOCOL_TOPIC in transfer.message.topic) return false
|
||||
if (NetworkMapService.PUSH_ACK_PROTOCOL_TOPIC in transfer.message.topicSession.topic) return false
|
||||
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
BriefLogFormatter.init()
|
||||
Application.launch(NetworkMapVisualiser::class.java, *args)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user