Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- pingNode :: MonadIO m => TestnetMagic -> Sprocket -> m (Either PingClientError ())
- checkSprocket :: MonadIO m => Sprocket -> m (Either IOException ())
- waitForSprocket :: MonadIO m => DiffTime -> DiffTime -> Sprocket -> m (Either IOException ())
- type TestnetMagic = Word32
- data PingClientError
Documentation
:: MonadIO m | |
=> TestnetMagic | testnet magic |
-> Sprocket | node sprocket |
-> m (Either PingClientError ()) |
|
Ping the node once
checkSprocket :: MonadIO m => Sprocket -> m (Either IOException ()) Source #
Check if the sprocket can be connected to. Returns an exception thrown during the connection attempt.
Wait for sprocket
to become ready. Periodically tries to connect to sprocket
, with the provided interval.
If there was no success within timeout
period, return the last exception thrown during a connection
attempt.
type TestnetMagic = Word32 Source #
data PingClientError Source #
PceDecodingError | |
| |
PceProtocolError | |
| |
PceVersionNegotiationError | |
|
Instances
Error PingClientError Source # | |
Defined in Testnet.Ping prettyError :: PingClientError -> Doc ann # |