Node(configuration: FullNodeConfiguration, networkMapAddress: SingleMessageRecipient?, advertisedServices: Set<ServiceInfo>, clock: Clock = NodeClock())
A Node manages a standalone server that takes part in the P2P network. It creates the services found in ServiceHub, loads important data off disk and starts listening for connections.
configuration
- This is typically loaded from a TypeSafe HOCON configuration file.networkMapAddress
- An external network map service to use. Should only ever be null when creating the first
network map service, while bootstrapping a network.advertisedServices
- The services this node advertises. This must be a subset of the services it runs,
but nodes are not required to advertise services they run (hence subset).clock
- The clock used within the node and by all protocols etc.