twallet_db.clear_history: now clears prevouts_by_scripthash too - electrum - Electrum Bitcoin wallet
 (HTM) git clone https://git.parazyd.org/electrum
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
       ---
 (DIR) commit 7ac1cace7a7caaa0d0cc32a1cb0a60c0ddc4c132
 (DIR) parent 3ed6afce64b44431be87409e6ef64de8d29c979f
 (HTM) Author: SomberNight <somber.night@protonmail.com>
       Date:   Fri, 27 Mar 2020 02:28:43 +0100
       
       wallet_db.clear_history: now clears prevouts_by_scripthash too
       
       (which is the logical thing to do, as it too will be rebuilt as part of
       tthe history, and the parts of it that might not be present after the
       rebuild is exactly what a call to "clear_history" is supposed to get rid of)
       
       Diffstat:
         M electrum/wallet_db.py               |       1 +
       
       1 file changed, 1 insertion(+), 0 deletions(-)
       ---
 (DIR) diff --git a/electrum/wallet_db.py b/electrum/wallet_db.py
       t@@ -1082,6 +1082,7 @@ class WalletDB(JsonDB):
                self.history.clear()
                self.verified_tx.clear()
                self.tx_fees.clear()
       +        self._prevouts_by_scripthash.clear()
        
            def _convert_dict(self, path, key, v):
                if key == 'transactions':