abci.host
Idiomatic Tendermint ABCI host implementation.
CODE-ERROR
Integer failure :code
. See abci.host.middleware/wrap-code-keywords.
CODE-OK
Integer success :code
. See abci.host.middleware/wrap-code-keywords.
default-port
Default host port. See start’s opts
map.
start
(start handler & [opts])
Accept Tendermint ABCI connections on the :port
specified in opts
, or default-port. Pass incoming messages to handler
(map -> Deferred
map
- see abci.host.middleware/wrap-synchronous), using its return value as the response to each request.
An :on-error
key in opts
may provide a function of (Closeable
, Throwable
). The default fn prints a stack trace to stderr and closes all connections. Not all error conditions trigger :on-error
— it’s invoked only for errors subsequent to the receipt of a correctly length-prefixed message over a socket connection. More fundamental errors (e.g. totally malformed socket input) will be logged, but not surfaced to the application.
Return the result of Aleph’s start-server.