koi_net.components.sync_manager

Classes

SyncManager(log, graph, cache, config, ...)

Handles state synchronization actions with other nodes.

class koi_net.components.sync_manager.SyncManager(log, graph, cache, config, request_handler, kobj_queue)[source]

Bases: object

Handles state synchronization actions with other nodes.

Parameters:
cache: Cache
catch_up_with(nodes, rid_types)[source]

Catches up with the state of RID types within other nodes.

Parameters:
  • nodes (list[KoiNetNode])

  • rid_types (list[RIDType])

catch_up_with_all(rid_types)[source]
Parameters:

rid_types (list[RIDType])

config: BaseNodeConfig
graph: NetworkGraph
kobj_queue: KobjQueue
log: Logger
request_handler: RequestHandler
start()[source]

Catches up with providers on startup.