ouroboros-consensus-0.1.0.1: Consensus layer for the Ouroboros blockchain protocol
Safe Haskell None
Language Haskell2010

Ouroboros.Consensus.Node.Exit

Synopsis

ExitFailure

type ExitFailure = Int Source #

The exit code to return when terminating with an exception.

To be used in the ExitFailure constructor of ExitCode .

Note that a node will never turn shut down itself, it is meant to run forever, so it will always terminate with an ExitFailure .

ExitReason

data ExitReason Source #

The reason of shutting down

Constructors

Killed

The node process was killed, by the kill command, CTRL-C or some other means. This is normal way for a user to terminate the node process. The node can simply be restarted.

ConfigurationError

Something is wrong with the node configuration, the user should check it.

For example, for PBFT, it could be that the block signing key and the delegation certificate do not match.

WrongDatabase

We were unable to open the database, probably the user is using the wrong directory. See DbMarkerError for details.

DiskFull

The disk is full, make some space before restarting the node.

InsufficientPermissions

The database folder doesn't have the right permissions.

NoNetwork

There is a problem with the network connection, the user should investigate.

TODO We're not yet returning this.

DatabaseCorruption

Something went wrong with the database, restart the node with recovery enabled.

Other

Some exception was thrown. The node should just be restarted.