Skip to content

Remove db templates#3783

Merged
clemahieu merged 13 commits intonanocurrency:developfrom
clemahieu:remove_db_templates
Apr 9, 2022
Merged

Remove db templates#3783
clemahieu merged 13 commits intonanocurrency:developfrom
clemahieu:remove_db_templates

Conversation

@clemahieu
Copy link
Copy Markdown
Contributor

This branch removes templates from the lmdb/rocksdb backend.

Templates were intended to reduce the amount of boilerplate code shared between different backends, however, backends infrequently had matching implementations making the template code confusing and unmaintainable.

This removes templates from the various block store classes and replaces it with simple inheritance.

@clemahieu clemahieu requested review from dsiganos, theohax and thsfs April 8, 2022 15:37
@zhyatt zhyatt added the quality improvements This item indicates the need for or supplies changes that improve maintainability label Apr 8, 2022
@zhyatt zhyatt added this to the V24.0 milestone Apr 8, 2022
@thsfs
Copy link
Copy Markdown
Contributor

thsfs commented Apr 8, 2022

Seems to be a good path to reduce complexity and enable further changes.

@clemahieu clemahieu merged commit e9eb258 into nanocurrency:develop Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

quality improvements This item indicates the need for or supplies changes that improve maintainability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants