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.
Currently the
blocktable schema allows two rows to exist with the same value in theheightcolumn (assuming different block hashes), because theblocktable is defined in such a way that all height+hash pairs are unique. However this is potentially problematic since theLocalChainstructure enforces a single entry per height by design.A proposed solution is to update the
blocktable definition to makeheightthe only primary key.