WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Index CPFP clusters #29

@junderw

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

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