Permalink
Browse files

Document parse_AuxPow in comments.

  • Loading branch information...
1 parent 57baf9b commit 9a61d23c68e7d5300bc2c340d449e3acb119c92d John Tobey committed Aug 8, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 deserialize.py
View
5 deserialize.py
@@ -146,6 +146,11 @@ def deserialize_WalletTx(d, transaction_index=None, owner_keys=None):
result += " fromMe:"+str(d['fromMe'])+" spent:"+str(d['spent'])
return result
+# The CAuxPow (auxiliary proof of work) structure supports merged mining.
+# A flag in the block version field indicates the structure's presence.
+# As of 8/2011, the Original Bitcoin Client does not use it. CAuxPow
+# originated in Namecoin; see
+# https://github.com/vinced/namecoin/blob/mergedmine/doc/README_merged-mining.md.
def parse_AuxPow(vds):
d = parse_MerkleTx(vds)
n_chainMerkleBranch = vds.read_compact_size()

0 comments on commit 9a61d23

Please sign in to comment.