Skip to content

Review the use of parking_lot in mempool #1212

Open
@TheQuantumPhysicist

Description

@TheQuantumPhysicist

(Created on Aug 20, 2023 by @iljakuklic)

Mempool currently uses parking_lot::RwLock for rolling fee rate. It seems as a workaround to provide interior mutability access to the rolling fee rate because it is computed lazily. RwLock does not seem the best match for the job. Either find a more appropriate alternative (e.g. one that implements the notion of lazy computation) or find a way to avoid interior mutability altogether.

Metadata

Metadata

Assignees

No one assigned

    Labels

    mempoolMempool-related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions