mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 02:35:20 +00:00
transaction: helpful error msg if user tries to load old partial tx
This commit is contained in:
parent
27df235c26
commit
cd49839bc0
1 changed files with 4 additions and 1 deletions
|
@ -913,7 +913,10 @@ def tx_from_any(raw: Union[str, bytes]) -> Union['PartialTransaction', 'Transact
|
|||
try:
|
||||
return PartialTransaction.from_raw_psbt(raw)
|
||||
except BadHeaderMagic:
|
||||
pass
|
||||
if raw[:10] == b'EPTF\xff'.hex():
|
||||
raise Exception("Partial transactions generated with old Electrum versions "
|
||||
"(< 4.0) are no longer supported. Please upgrade Electrum on "
|
||||
"the other machine where this transaction was created.")
|
||||
tx = Transaction(raw)
|
||||
tx.deserialize()
|
||||
return tx
|
||||
|
|
Loading…
Add table
Reference in a new issue