macula_statement_issuer_sup (macula v11.5.0)

View Source

The statement issuers of this node's pools, one for each pool.

A pool starts its own macula_statement_issuer here, for the node identity key it holds, with itself as the owner. A child is temporary: it ends with its owner and this supervisor never restarts it, so a pool that loses its issuer starts a new one itself. The identity key reaches the issuer as a function that returns it, so no start argument this supervisor keeps, and no report of a refused start, holds the key.

Summary

Functions

Start an issuer for the identity key Identity returns, owned by Owner.

Functions

init(_)

start_issuer(Identity, Owner)

-spec start_issuer(fun(() -> macula_node_keys:node_key()), pid()) -> {ok, pid()} | {error, term()}.

Start an issuer for the identity key Identity returns, owned by Owner.

start_link()

-spec start_link() -> {ok, pid()} | {error, term()}.