Skip to content

Index CPFP clusters #29

Description

@junderw

Index the CPFP clusters in rocksdb and offer an API endpoint to query them.

Set a long cache for blocks older than 10.

From Element
{some code: 1 byte}
{cluster id: 32 bytes}
{effective feerate: f64: 8 bytes}
{list of txids excluding root: 32 bytes x 1.3 non-root tx on average}

82.6 bytes per cluster x 180 cluster per block x 800k blocks = 11.8944 GB (probably less since it was only avg for last 15k blocks)

{code: 1}
{txid: 32}
{cluster id: 32}

65 bytes x 2.3 tx per cluster x 180 clusters per block x 800k blocks = 21.528 GB (probably less)

{code: 1}
{blockhash: 32}
{list of indexes of cluster roots: u16 (2 bytes) x 180}

393 bytes per block x 800k blocks = 314.4 MB

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions