|
|
|
@ -45,7 +45,7 @@ from .util import (NotEnoughFunds, PrintError, UserCancelled, profiler, |
|
|
|
format_satoshis, format_fee_satoshis, NoDynamicFeeEstimates, |
|
|
|
format_satoshis, format_fee_satoshis, NoDynamicFeeEstimates, |
|
|
|
WalletFileException, BitcoinException, |
|
|
|
WalletFileException, BitcoinException, |
|
|
|
InvalidPassword, format_time, timestamp_to_datetime, Satoshis, |
|
|
|
InvalidPassword, format_time, timestamp_to_datetime, Satoshis, |
|
|
|
Fiat, bfh, bh2u) |
|
|
|
Fiat, bfh, bh2u, TxMinedInfo) |
|
|
|
from .bitcoin import (COIN, TYPE_ADDRESS, is_address, address_to_script, |
|
|
|
from .bitcoin import (COIN, TYPE_ADDRESS, is_address, address_to_script, |
|
|
|
is_minikey, relayfee, dust_threshold) |
|
|
|
is_minikey, relayfee, dust_threshold) |
|
|
|
from .version import * |
|
|
|
from .version import * |
|
|
|
@ -523,11 +523,11 @@ class Abstract_Wallet(AddressSynchronizer): |
|
|
|
return ', '.join(labels) |
|
|
|
return ', '.join(labels) |
|
|
|
return '' |
|
|
|
return '' |
|
|
|
|
|
|
|
|
|
|
|
def get_tx_status(self, tx_hash, tx_mined_status): |
|
|
|
def get_tx_status(self, tx_hash, tx_mined_info: TxMinedInfo): |
|
|
|
extra = [] |
|
|
|
extra = [] |
|
|
|
height = tx_mined_status.height |
|
|
|
height = tx_mined_info.height |
|
|
|
conf = tx_mined_status.conf |
|
|
|
conf = tx_mined_info.conf |
|
|
|
timestamp = tx_mined_status.timestamp |
|
|
|
timestamp = tx_mined_info.timestamp |
|
|
|
if conf == 0: |
|
|
|
if conf == 0: |
|
|
|
tx = self.transactions.get(tx_hash) |
|
|
|
tx = self.transactions.get(tx_hash) |
|
|
|
if not tx: |
|
|
|
if not tx: |
|
|
|
@ -554,7 +554,7 @@ class Abstract_Wallet(AddressSynchronizer): |
|
|
|
elif height == TX_HEIGHT_UNCONFIRMED: |
|
|
|
elif height == TX_HEIGHT_UNCONFIRMED: |
|
|
|
status = 0 |
|
|
|
status = 0 |
|
|
|
else: |
|
|
|
else: |
|
|
|
status = 2 |
|
|
|
status = 2 # not SPV verified |
|
|
|
else: |
|
|
|
else: |
|
|
|
status = 3 + min(conf, 6) |
|
|
|
status = 3 + min(conf, 6) |
|
|
|
time_str = format_time(timestamp) if timestamp else _("unknown") |
|
|
|
time_str = format_time(timestamp) if timestamp else _("unknown") |
|
|
|
|