obci.peers package

Submodules

obci.peers.dummy_config_server module

class obci.peers.dummy_config_server.DummyConfigServer(urls: typing.Union[str, obci.core.peer.PeerInitUrls], peer_id: typing.Union[str, NoneType] = None, asyncio_loop: typing.Union[zmq.asyncio.ZMQEventLoop, NoneType] = None, zmq_context: typing.Union[zmq.asyncio.Context, NoneType] = None, zmq_io_threads: int = 1, hwm: int = 1000) → None[source]

Bases: obci.core.peer.Peer

This class will replace ConfigServer in future.

Base peer class. All peers derive from this class.

Parameters:
  • urls – string or PeerInitUrls with initial bootstrap addresses
  • peer_id – globally unique identifier
  • asyncio_loop – existing ZMQ asyncio message loop or None if loop is requested
  • zmq_context – existing ZMQ asyncio context or None if new context is requested
  • zmq_io_threads – number of ZMQ I/O threads
  • hwm – ZMQ high water mark

Module contents