Skip to content

db: document schema - #64

Merged
SomberNight merged 2 commits into
spesmilo:masterfrom
SomberNight:202010_document_db
Oct 23, 2020
Merged

SomberNight merged 2 commits into
spesmilo:masterfrom
SomberNight:202010_document_db

Conversation

@SomberNight

Copy link
Copy Markdown
Member

This PR tries to somewhat document how the current db schema works;
and adds a few type hints.

Comment thread electrumx/server/db.py
self.headers_file = util.LogicalFile('meta/headers', 2, 16000000)
# on-disk: cumulative number of txs at the end of height N
self.tx_counts_file = util.LogicalFile('meta/txcounts', 2, 2000000)
# on-disk: 32 byte txids in chain order, allows (tx_num -> txid) map

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very helpful comments, thank you

@JustinTArthur JustinTArthur left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useful work. Thanks!

@SomberNight

SomberNight commented Oct 23, 2020 •

Copy link
Copy Markdown
Member Author

@SomberNight
SomberNight merged commit 10f0faa into spesmilo:master Oct 23, 2020
@ghost ghost mentioned this pull request Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants