ChainSafe / gossamer

🕸️ Go Implementation of the Polkadot Host
https://chainsafe.github.io/gossamer
GNU Lesser General Public License v3.0
427 stars 110 forks source link

feat(internal/client/db): introduce `blockchainDB` and the interfaces it implements #4015

Closed timwu20 closed 2 days ago

timwu20 commented 4 weeks ago

Changes

blockchainDB Dependencies

api.LeafSet

db.pinnedBlocksCache

blockchain.HeaderMetadataCache

Primitives

database.Database

runtime

Tests

go test -tags integration github.com/ChainSafe/gossamer/internal/

Issues

jimjbrettj commented 3 weeks ago

Reviewed about half of it and will continue reviewing it tomorrow

timwu20 commented 2 days ago

@P1sar I'm going to resolve our conversations so I can merge this PR. If you have any more questions/comments we can continue on the next PR or schedule a call.