From 90f1279d9ae2739ae5bc22a294c5c9169fefc00f Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 8 Feb 2023 23:08:01 +0000 Subject: [PATCH] addr_sync: (trivial) don't use private utxo._is_coinbase_output --- electrum/address_synchronizer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/address_synchronizer.py b/electrum/address_synchronizer.py index 62339bbdb..ccc9606dd 100644 --- a/electrum/address_synchronizer.py +++ b/electrum/address_synchronizer.py @@ -845,14 +845,14 @@ class AddressSynchronizer(Logger, EventListener): c = u = x = 0 mempool_height = self.get_local_height() + 1 # height of next block - for utxo in coins.values(): + for utxo in coins.values(): # type: PartialTxInput if utxo.spent_height is not None: continue if utxo.prevout.to_str() in excluded_coins: continue v = utxo.value_sats() tx_height = utxo.block_height - is_cb = utxo._is_coinbase_output + is_cb = utxo.is_coinbase_output() if is_cb and tx_height + COINBASE_MATURITY > mempool_height: x += v elif tx_height > 0: