Skip to content

Commit

Permalink
Namecoin / AuxPoW: Avoid some copying in deserialize_merkle_branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Jul 2, 2018
1 parent c2d7c5c commit 78afbaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auxpow.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def deserialize_auxpow_header(base_header, s, expect_trailing_data=False):
# TODO: Audit this function carefully.
def deserialize_merkle_branch(s, start_position=0):
vds = BCDataStream()
vds.write(s)
vds.input = s
vds.read_cursor = start_position
hashes = []
n_hashes = vds.read_compact_size()
Expand Down

0 comments on commit 78afbaa

Please sign in to comment.