Skip to content

refactor(validator): wrap database handles in reader/writer structs - #2403

Open
SantiagoPittella wants to merge 1 commit into
migrate-ntx-builder-off-dieselfrom
add-validator-db-wrapper
Open

refactor(validator): wrap database handles in reader/writer structs#2403
SantiagoPittella wants to merge 1 commit into
migrate-ntx-builder-off-dieselfrom
add-validator-db-wrapper

Conversation

@SantiagoPittella

@SantiagoPittella SantiagoPittella commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

closes #2368

Summary

Copies the ntx-builder's database wrapper (#2353) into the validator: ValidatorDbReader/ValidatorDbWriter expose one method per query, so raw DbReader/DbWriter handles no longer escape src/db/. Queries move to one directory per query, matching the ntx-builder layout.

Also fixes two things: find_unvalidated_transactions now uses a single rarray query instead of one EXISTS per id, and parameters bind through the blob codec / SqlTypeConvert instead of to_bytes().

Changelog

changelog = "none"
reason    = "Internal change only."

@SantiagoPittella
SantiagoPittella force-pushed the add-validator-db-wrapper branch from c8be314 to 38a90c0 Compare July 29, 2026 16:08
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.

Add Database wrapper in validator

1 participant