Skip to content

pre-release bug fixes#157

Merged
qrayven merged 5 commits intodevfrom
qrayven/fix/fix-maintanence-lock
Feb 10, 2026
Merged

pre-release bug fixes#157
qrayven merged 5 commits intodevfrom
qrayven/fix/fix-maintanence-lock

Conversation

@qrayven
Copy link
Collaborator

@qrayven qrayven commented Feb 9, 2026

Description

Fixes the set of discovered bugs during pre-release sanity tests

Issue 1

Maintenance Lock Deleted During Cleanup
The Lua cleanup script was deleting maintenance locks, creating race conditions
Fixed by filtering out lock keys before deletion
Prevents concurrent maintenance operations that could corrupt data

Issue 2

Performance - Redundant Consistency Checks
Consistency check was running on every rescan instead of just once at startup
Moved to the initialization phase only
Reduces unnecessary blockchain RPC calls

Issue 3

Cold Params Invalid Key
The storage key was constructed incorrectly with a doubled and an invalid prefix
Added centralized get_cold_params_key() helper function
Ensures consistent key format across all operations and cold params db key exists isolated from coin registry namespace#

Issue 4

Cold Params Not Properly Saved
Check operation was mixing concerns by saving params during the check
Split into separate check_if_changed() and save_to_storage() methods
Now saves only after successful initialization with proper user consent. It prevents the situation the user would like to come back to the old parameter without a rescan being triggered

@qrayven qrayven marked this pull request as ready for review February 9, 2026 10:38
@qrayven qrayven requested a review from wulfraem February 9, 2026 10:38
Copy link
Contributor

@wulfraem wulfraem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, would just add those two comments to the trait functions, but this is not a blocker for the release.

@qrayven qrayven merged commit a2d9718 into dev Feb 10, 2026
1 check passed
@qrayven qrayven deleted the qrayven/fix/fix-maintanence-lock branch February 10, 2026 12:12
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.

2 participants