Skip to content

Commit

Permalink
ST-600 & ST-601 -- fix shadowing
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Khateev <[email protected]>
  • Loading branch information
Nikita Khateev committed Jul 6, 2019
1 parent db4451e commit 00a541a
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ def get_result(self, request: Request):
continue
outputs.add(Output(addr, int(seq_no), int(amount)))

list = outputs.sorted_list
next = None
if len(list) > UTXO_LIMIT:
next = list[UTXO_LIMIT].seqNo
list = list[:UTXO_LIMIT]
utxos = outputs.sorted_list
next_seqno = None
if len(utxos) > UTXO_LIMIT:
next_seqno = utxos[UTXO_LIMIT].seqNo
utxos = utxos[:UTXO_LIMIT]

result = {f.IDENTIFIER.nm: request.identifier,
f.REQ_ID.nm: request.reqId, OUTPUTS: list}
f.REQ_ID.nm: request.reqId, OUTPUTS: utxos}

result.update(request.operation)
if next:
result[NEXT_SEQNO] = next
if next_seqno:
result[NEXT_SEQNO] = next_seqno
if proof:
res_sub = deepcopy(result)
res_sub[STATE_PROOF] = proof
Expand Down

0 comments on commit 00a541a

Please sign in to comment.