corda/docs/source/running-doorman.rst
Alberto Arri 523a6db0b9
ENT-990 Make doorman read an initial set of Network parameters from d… (#96)
ENT-990 Make doorman read an initial set of Network parameters from disk at start-up time
2017-11-13 15:40:44 +00:00

1.2 KiB

Running a doorman service

See the Readme in under network-management for detailed building instructions.

Configuration file

At startup Doorman reads a configuration file, passed with --configFile on the command line.

This is an example of what a Doorman configuration file might look like:

../../network-management/doorman.conf

Invoke Doorman with -? for a full list of supported command-line arguments.

Bootstrapping the network parameters

When Doorman is running it will serve the current network parameters. The first time Doorman is started it will need to know the initial value for the network parameters.

The initial values for the network parameters can be specified with a file, like this:

../../network-management/initial-network-parameters.conf

And the location of that file can be specified with: --initialNetworkParameters. Note that when reading from file:

  1. epoch will always be set to 1,
  2. modifiedTime will be the Doorman startup time

epoch will increase by one every time the network parameters are updated.