1
0

addr_sync: (trivial) don't use private utxo._is_coinbase_output

This commit is contained in:
SomberNight
2023-02-08 23:08:01 +00:00
parent 6b8f9f8fe2
commit 90f1279d9a

View File

@@ -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: