mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
Fix receiving addresses for pruned servers
This commit is contained in:
parent
e2a2596479
commit
5ee708aaa2
1 changed files with 8 additions and 4 deletions
|
@ -44,10 +44,14 @@ class ReceivingWidget(QTreeWidget):
|
||||||
# It appears that at this moment history can either be an array with tx and block height
|
# It appears that at this moment history can either be an array with tx and block height
|
||||||
# Or just a tx that's why this ugly code duplication is in, will fix
|
# Or just a tx that's why this ugly code duplication is in, will fix
|
||||||
if len(history) == 1:
|
if len(history) == 1:
|
||||||
for tx_hash in history:
|
# This means pruned data. If that's the case the address has to been used at one point
|
||||||
tx = self.owner.actuator.wallet.transactions.get(tx_hash)
|
if history[0] == "*":
|
||||||
if tx:
|
used = "Yes"
|
||||||
used = "Yes"
|
else:
|
||||||
|
for tx_hash in history:
|
||||||
|
tx = self.owner.actuator.wallet.transactions.get(tx_hash)
|
||||||
|
if tx:
|
||||||
|
used = "Yes"
|
||||||
else:
|
else:
|
||||||
for tx_hash, height in history:
|
for tx_hash, height in history:
|
||||||
tx = self.owner.actuator.wallet.transactions.get(tx_hash)
|
tx = self.owner.actuator.wallet.transactions.get(tx_hash)
|
||||||
|
|
Loading…
Add table
Reference in a new issue