Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a rawdb package for blocks #201

Merged
merged 9 commits into from
Aug 15, 2024
Merged

Add a rawdb package for blocks #201

merged 9 commits into from
Aug 15, 2024

Conversation

marcopeereboom
Copy link
Contributor

Summary
Add rawdb and rig it up inside leveldb

Changes
fixes #155

@marcopeereboom marcopeereboom requested a review from a team as a code owner August 13, 2024 18:41
@github-actions github-actions bot added the area: tbc This is a change to TBC (Tiny Bitcoin) label Aug 13, 2024
rawdb/rawdb.go Show resolved Hide resolved
rawdb/rawdb.go Outdated Show resolved Hide resolved
database/level/level.go Outdated Show resolved Hide resolved
rawdb/rawdb.go Outdated Show resolved Hide resolved
rawdb/rawdb_test.go Outdated Show resolved Hide resolved
marcopeereboom and others added 2 commits August 14, 2024 17:47
Co-authored-by: Joshua Sing <[email protected]>
Co-authored-by: Joshua Sing <[email protected]>
@marcopeereboom
Copy link
Contributor Author

I decided to let the leveldb metadata table govern the version information inclusive for rawdb. I am going ahead and merge this and I'll add the blocksize write to metadata in a follow up PR.

@marcopeereboom marcopeereboom merged commit 4fa4a22 into main Aug 15, 2024
6 checks passed
@marcopeereboom marcopeereboom deleted the marco/blockdb branch August 15, 2024 13:47
web3cryptoguy pushed a commit to web3cryptoguy/heminetwork that referenced this pull request Nov 1, 2024
* rebase drama

* level: use errors.Join for errSeen

* level: split Pool and RawPool into separate type blocks

* Typo from clayton

* rawdb: remove unused lastFilename function

* rawdb: use errors.New when formatting is not needed

* Add default max file size const

* Update rawdb/rawdb.go

Co-authored-by: Joshua Sing <[email protected]>

* Update rawdb/rawdb_test.go

Co-authored-by: Joshua Sing <[email protected]>

---------

Co-authored-by: Joshua Sing <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tbc This is a change to TBC (Tiny Bitcoin)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use flat files for blocks instead of leveldb
4 participants