connector

This commit is contained in:
4tochka 2019-05-06 12:31:45 +04:00
parent ff081c2aa5
commit 79544a046e

View File

@ -592,8 +592,8 @@ class Connector:
if not tx["coinbase"]: if not tx["coinbase"]:
if block_height is not None: if block_height is not None:
await self.wait_block_dependences(tx) await self.wait_block_dependences(tx)
# if self.utxo: if self.utxo:
# stxo = await self.get_stxo(tx, block_height, block_index) stxo = await self.get_stxo(tx, block_height, block_index)
if self.tx_handler and not self.cache_loading: if self.tx_handler and not self.cache_loading:
await self.tx_handler(tx, stxo, block_time, block_height, block_index) await self.tx_handler(tx, stxo, block_time, block_height, block_index)
@ -872,7 +872,7 @@ class UTXO():
def get(self, key, block_height): def get(self, key, block_height):
self._requests += 1 self._requests += 1
try: try:
i = self.cached.pop(key) i = self.cached.get(key)
self.destroyed_utxo += 1 self.destroyed_utxo += 1
# try: # try:
# self.destroyed[block_height].add(key) # self.destroyed[block_height].add(key)