hirosystems / ordhook

Build indexers, standards and protocols on top of Ordinals and Inscriptions (BRC20, etc).
Apache License 2.0
174 stars 54 forks source link

refactor: revisit `delete_data_in_ordhook_db` #320

Closed lgalabru closed 1 month ago

lgalabru commented 1 month ago

With the latest brc20 refactoring, we started experiencing some issues during re-org. In this PR, we're revisiting the way the method delete_data_in_ordhook_db is being used by making sure that we're re-using existing readwrite connections handles if we already have some.