⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

fix: Avoid inserting block rows of duplicate heights#9

Merged
ValuedMammal merged 2 commits intobitcoindevkit:masterfrom
ValuedMammal:fix/dedup_block_height
Dec 31, 2025
Merged

fix: Avoid inserting block rows of duplicate heights#9
ValuedMammal merged 2 commits intobitcoindevkit:masterfrom
ValuedMammal:fix/dedup_block_height

Conversation

@ValuedMammal
Copy link
Collaborator

This is a hotfix intended to address #8. The approach is to have an additional SELECT query to check for existing rows of a given height before executing the actual INSERT statement. A better long-term solution which may be done as a follow-up is to enforce a unique block height per row directly at the schema level.

@ValuedMammal ValuedMammal merged commit aa55b04 into bitcoindevkit:master Dec 31, 2025
3 checks passed
@ValuedMammal ValuedMammal deleted the fix/dedup_block_height branch December 31, 2025 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant