mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
Network map redesign: Change field types in NodeInfo, move away messaging data from NodeInfo (#921)
* First stage of changing fields in NodeInfo. Part of work related to NetworkMapService upgrade. Create slots for multiple IP addresses and legalIdentities per node. * NodeInfo stores HostAndPort. Move information specific to messaging layer away from NodeInfo. Only HostAndPort addresses are stored. Add peer name - peer handle mapping to MockNetwork to reflect that change.
This commit is contained in:
committed by
GitHub
parent
4139cf497d
commit
58da76c052
@ -12,8 +12,6 @@ import net.corda.core.flows.FlowLogic
|
||||
import net.corda.core.flows.InitiatedBy
|
||||
import net.corda.core.flows.InitiatingFlow
|
||||
import net.corda.core.identity.Party
|
||||
import net.corda.core.identity.PartyAndCertificate
|
||||
import net.corda.core.node.PluginServiceHub
|
||||
import net.corda.core.node.ServiceHub
|
||||
import net.corda.core.node.services.unconsumedStates
|
||||
import net.corda.core.serialization.CordaSerializable
|
||||
|
@ -31,8 +31,8 @@ class FxTransactionBuildTutorialTest {
|
||||
legalName = DUMMY_NOTARY.name,
|
||||
overrideServices = mapOf(notaryService to DUMMY_NOTARY_KEY),
|
||||
advertisedServices = *arrayOf(ServiceInfo(NetworkMapService.type), notaryService))
|
||||
nodeA = mockNet.createPartyNode(notaryNode.info.address)
|
||||
nodeB = mockNet.createPartyNode(notaryNode.info.address)
|
||||
nodeA = mockNet.createPartyNode(notaryNode.network.myAddress)
|
||||
nodeB = mockNet.createPartyNode(notaryNode.network.myAddress)
|
||||
nodeB.registerInitiatedFlow(ForeignExchangeRemoteFlow::class.java)
|
||||
}
|
||||
|
||||
|
@ -43,8 +43,8 @@ class WorkflowTransactionBuildTutorialTest {
|
||||
legalName = DUMMY_NOTARY.name,
|
||||
overrideServices = mapOf(Pair(notaryService, DUMMY_NOTARY_KEY)),
|
||||
advertisedServices = *arrayOf(ServiceInfo(NetworkMapService.type), notaryService))
|
||||
nodeA = mockNet.createPartyNode(notaryNode.info.address)
|
||||
nodeB = mockNet.createPartyNode(notaryNode.info.address)
|
||||
nodeA = mockNet.createPartyNode(notaryNode.network.myAddress)
|
||||
nodeB = mockNet.createPartyNode(notaryNode.network.myAddress)
|
||||
nodeA.registerInitiatedFlow(RecordCompletionFlow::class.java)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user