connector
This commit is contained in:
parent
15acca0c44
commit
b965bfd005
@ -52,6 +52,7 @@ class Connector:
|
|||||||
self.chain_tail = list(chain_tail) if chain_tail else []
|
self.chain_tail = list(chain_tail) if chain_tail else []
|
||||||
self.rpc_timeout = rpc_timeout
|
self.rpc_timeout = rpc_timeout
|
||||||
self.batch_limit = rpc_batch_limit
|
self.batch_limit = rpc_batch_limit
|
||||||
|
self.utxo_test = dict()
|
||||||
|
|
||||||
# state and stats
|
# state and stats
|
||||||
self.node_last_block = None
|
self.node_last_block = None
|
||||||
@ -629,6 +630,7 @@ class Connector:
|
|||||||
else:
|
else:
|
||||||
address = b"".join((bytes([out["nType"]]), out["addressHash"]))
|
address = b"".join((bytes([out["nType"]]), out["addressHash"]))
|
||||||
outpoint = b"".join((tx["txId"], int_to_bytes(i)))
|
outpoint = b"".join((tx["txId"], int_to_bytes(i)))
|
||||||
|
self.utxo_test[outpoint] = (pointer, out["value"], address)
|
||||||
# self.utxo.set(outpoint, pointer, out["value"], address)
|
# self.utxo.set(outpoint, pointer, out["value"], address)
|
||||||
|
|
||||||
async def get_stxo(self, tx, block_height, block_index):
|
async def get_stxo(self, tx, block_height, block_index):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user