pybitmessage.network.objectracker module

Module for tracking objects

class ObjectTracker[source]

Bases: object

Object tracker mixin

invCleanPeriod = 300
invInitialCapacity = 50000
invErrorRate = 0.03
trackingExpires = 3600
initialTimeOffset = 60
initInvBloom()

Init bloom filter for tracking. WIP.

initAddrBloom()

Init bloom filter for tracking addrs, WIP. This either needs to be moved to addrthread.py or removed.

clean()

Clean up tracking to prevent memory bloat

hasObj(hashid)

Do we already have object?

handleReceivedInventory(hashId)

Handling received inventory

handleReceivedObject(streamNumber, hashid)

Handling received object

hasAddr(addr)

WIP, should be moved to addrthread.py or removed

addAddr(hashid)

WIP, should be moved to addrthread.py or removed