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 Oct 25, 2024
1 parent 58f96fc commit fba0bc3
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 fba0bc3

Please sign in to comment.