mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-06-28 08:37:45 +02:00
parent
56243a57ab
commit
f64401eed3
|
@ -430,14 +430,13 @@ class Bigchain(object):
|
||||||
# check if the owner is in the condition `owners_after`
|
# check if the owner is in the condition `owners_after`
|
||||||
if len(output['public_keys']) == 1:
|
if len(output['public_keys']) == 1:
|
||||||
if output['condition']['details']['public_key'] == owner:
|
if output['condition']['details']['public_key'] == owner:
|
||||||
tx_link = TransactionLink(tx['id'], index)
|
links.append(TransactionLink(tx['id'], index))
|
||||||
else:
|
else:
|
||||||
# for transactions with multiple `public_keys` there will be several subfulfillments nested
|
# for transactions with multiple `public_keys` there will be several subfulfillments nested
|
||||||
# in the condition. We need to iterate the subfulfillments to make sure there is a
|
# in the condition. We need to iterate the subfulfillments to make sure there is a
|
||||||
# subfulfillment for `owner`
|
# subfulfillment for `owner`
|
||||||
if utils.condition_details_has_owner(output['condition']['details'], owner):
|
if utils.condition_details_has_owner(output['condition']['details'], owner):
|
||||||
tx_link = TransactionLink(tx['id'], index)
|
links.append(TransactionLink(tx['id'], index))
|
||||||
links.append(tx_link)
|
|
||||||
return links
|
return links
|
||||||
|
|
||||||
def get_owned_ids(self, owner):
|
def get_owned_ids(self, owner):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user