1
0

walletdb: fix convert_version_58 for partial local txs

The transaction dict can also contain PSBTs (in addition to complete raw hex txs).
This is the case if the user has saved a partial (e.g. unsigned) tx as local into the history.

fixes https://github.com/spesmilo/electrum/issues/8913
This commit is contained in:
SomberNight
2024-02-26 18:54:21 +00:00
parent 8b26d310a3
commit 51b7fc04ef
3 changed files with 2762 additions and 2 deletions

View File

@@ -313,6 +313,14 @@ class TestStorageUpgrade(WalletTestCase):
wallet_str = self._get_wallet_str()
await self._upgrade_storage(wallet_str)
@as_testnet
async def test_upgrade_from_client_4_5_2_9dk_with_ln(self):
# This is a realistic testnet wallet, from the "9dk" seed, including some lightning sends/receives,
# some labels, frozen addresses, saved local txs, invoices/requests, etc. The file also has partial writes.
# Also, regression test for #8913
wallet_str = self._get_wallet_str()
await self._upgrade_storage(wallet_str)
##########
plugins: 'electrum.plugin.Plugins'

File diff suppressed because one or more lines are too long