mirror of https://github.com/CIRCL/AIL-framework
fix: [expand btc adress] filter empty addr fields
parent
165119883a
commit
f139e9564e
|
@ -34,9 +34,11 @@ def get_bitcoin_info(bitcoin_address, nb_transaction=50):
|
|||
|
||||
for transaction in jreq['txs']:
|
||||
for input in transaction['inputs']:
|
||||
if 'addr' in input['prev_out']:
|
||||
if input['prev_out']['addr'] != bitcoin_address:
|
||||
set_btc_in.add(input['prev_out']['addr'])
|
||||
for output in transaction['out']:
|
||||
if 'addr' in output:
|
||||
if output['addr'] != bitcoin_address:
|
||||
set_btc_out.add(output['addr'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue