mirror of
https://github.com/corda/corda.git
synced 2025-06-12 20:28:18 +00:00
Removed the network map service type as it's no longer needed.
The absence or presence of the networkMapService config is what determines if a node is the network map or not.
This commit is contained in:
@ -11,7 +11,6 @@ import net.corda.core.messaging.SingleMessageRecipient
|
||||
import net.corda.core.utilities.getOrThrow
|
||||
import net.corda.node.internal.StartedNode
|
||||
import net.corda.node.services.config.NodeConfiguration
|
||||
import net.corda.node.services.network.NetworkMapService
|
||||
import net.corda.node.services.persistence.NodeAttachmentService
|
||||
import net.corda.node.services.transactions.SimpleNotaryService
|
||||
import net.corda.node.utilities.DatabaseTransactionManager
|
||||
@ -45,7 +44,7 @@ class AttachmentTests {
|
||||
mockNet.stopNodes()
|
||||
}
|
||||
|
||||
fun fakeAttachment(): ByteArray {
|
||||
private fun fakeAttachment(): ByteArray {
|
||||
val bs = ByteArrayOutputStream()
|
||||
val js = JarOutputStream(bs)
|
||||
js.putNextEntry(ZipEntry("file1.txt"))
|
||||
@ -127,7 +126,7 @@ class AttachmentTests {
|
||||
override fun start() = super.start().apply { attachments.checkAttachmentsOnLoad = false }
|
||||
}
|
||||
}
|
||||
}, advertisedServices = *arrayOf(ServiceInfo(NetworkMapService.type), ServiceInfo(SimpleNotaryService.type)))
|
||||
}, advertisedServices = *arrayOf(ServiceInfo(SimpleNotaryService.type)))
|
||||
val bobNode = mockNet.createNode(aliceNode.network.myAddress, legalName = BOB.name)
|
||||
|
||||
// Ensure that registration was successful before progressing any further
|
||||
|
@ -14,11 +14,10 @@ import net.corda.core.utilities.getOrThrow
|
||||
import net.corda.core.utilities.unwrap
|
||||
import net.corda.node.internal.InitiatedFlowFactory
|
||||
import net.corda.node.internal.StartedNode
|
||||
import net.corda.nodeapi.internal.ServiceInfo
|
||||
import net.corda.node.services.config.NodeConfiguration
|
||||
import net.corda.node.services.network.NetworkMapService
|
||||
import net.corda.node.services.persistence.NodeAttachmentService
|
||||
import net.corda.node.utilities.DatabaseTransactionManager
|
||||
import net.corda.nodeapi.internal.ServiceInfo
|
||||
import net.corda.testing.chooseIdentity
|
||||
import net.corda.testing.node.MockNetwork
|
||||
import org.junit.After
|
||||
@ -70,7 +69,7 @@ class AttachmentSerializationTest {
|
||||
@Before
|
||||
fun setUp() {
|
||||
mockNet = MockNetwork()
|
||||
server = mockNet.createNode(advertisedServices = ServiceInfo(NetworkMapService.type))
|
||||
server = mockNet.createNode()
|
||||
client = mockNet.createNode(server.network.myAddress)
|
||||
client.internals.disableDBCloseOnStop() // Otherwise the in-memory database may disappear (taking the checkpoint with it) while we reboot the client.
|
||||
mockNet.runNetwork()
|
||||
|
Reference in New Issue
Block a user