Skip to content

Commit

Permalink
fix bug in lookup
Browse files Browse the repository at this point in the history
Signed-off-by: Lovesh Harchandani <[email protected]>
  • Loading branch information
lovesh committed May 23, 2018
1 parent 0a1aee5 commit 4e08c46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion indy_node/server/domain_req_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,8 @@ def lookup(self, path, isCommitted=True, get_proof=True) -> (str, int):
"""
assert path is not None
encoded = self.state.get(path, isCommitted)
proof = self.make_proof(path) if get_proof else None
head_hash = self.state.committedHeadHash if isCommitted else self.state.headHash
proof = self.make_proof(path, head_hash=head_hash) if get_proof else None
if encoded is not None:
value, last_seq_no, last_update_time = domain.decode_state_value(encoded)
return value, last_seq_no, last_update_time, proof
Expand Down

0 comments on commit 4e08c46

Please sign in to comment.