Skip to content

Commit

Permalink
swaps: Init SQL query to remove blank addresses from cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
s373nZ committed Dec 10, 2024
1 parent 4c7a5f2 commit 48a6ec2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Boss/Mod/SwapManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ class SwapManager::Impl {
( payment_hash TEXT UNIQUE
, amount_sent INTEGER NOT NULL
);
-- Sanity check to remove erroneous blank addresses
-- from the address cache.
DELETE FROM SwapManager_addrcache
WHERE address IS NULL
OR address = '';
)QRY");
tx.commit();

Expand Down

0 comments on commit 48a6ec2

Please sign in to comment.