Skip to main content

Module paid_list

Module paid_list 

Source
Expand description

Persistent PaidForList backed by LMDB.

Tracks keys this node believes are paid-authorized. Survives restarts (Invariant 15). Bounded by PaidCloseGroup membership with hysteresis-based pruning.

§Storage layout

{root}/paid_list.mdb/   -- LMDB environment directory

One unnamed database stores set membership: key = 32-byte XorName, value = empty byte slice.

§Out-of-range timestamps

Per-key PaidOutOfRangeFirstSeen and RecordOutOfRangeFirstSeen timestamps live in memory only. On restart the hysteresis clock restarts from zero, which is safe: the prune timer simply starts fresh.

Structs§

PaidList
Persistent paid-for-list backed by LMDB.