Skip to content

DiskCachedAsyncSubstrateInterface: use aiosqlite #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 13, 2025

Conversation

thewhaleking
Copy link
Collaborator

There is a potential race condition in the current implementation of the disk caching mechanisms used in DiskCachedAsyncSubstrateInterface. This resolves that by using aiosqlite along with a semi-Singleton SQLite db connection object.

@github-actions github-actions bot added run-bittensor-cli-tests Runs BTCLI tests. run-bittensor-sdk-tests Runs Bittensor SDK tests. labels Aug 12, 2025
@thewhaleking thewhaleking requested a review from a team August 12, 2025 20:59
@thewhaleking
Copy link
Collaborator Author

Flaky test still failing. Merging anyway. Opened issue opentensor/bittensor#3015

@thewhaleking thewhaleking merged commit 18f55d3 into staging Aug 13, 2025
135 of 139 checks passed
@thewhaleking thewhaleking deleted the feat/thewhaleking/use-aiosqlite branch August 13, 2025 20:26
This was referenced Aug 14, 2025
@thewhaleking thewhaleking linked an issue Aug 15, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-bittensor-cli-tests Runs BTCLI tests. run-bittensor-sdk-tests Runs Bittensor SDK tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve DiskCachedAsyncSubstrateInterface
2 participants