Skip to content

schema: block table should not allow duplicate heights #8

@ValuedMammal

Description

@ValuedMammal

Currently the block table schema allows two rows to exist with the same value in the height column (assuming different block hashes), because the block table is defined in such a way that all height+hash pairs are unique. However this is potentially problematic since the LocalChain structure enforces a single entry per height by design.

A proposed solution is to update the block table definition to make height the only primary key.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions