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:
@@ -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'
|
||||
|
||||
2749
tests/test_storage_upgrade/client_4_5_2_9dk_with_ln
Normal file
2749
tests/test_storage_upgrade/client_4_5_2_9dk_with_ln
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user