Skip to content

Commit

Permalink
Bugfix: Expose blkmk.submitm for submitting results for blkmk.get_mdata
Browse files Browse the repository at this point in the history
Ported from C libblkmaker commit 7bf7e80a6a2d09e25888e1325612797fcf81037c
  • Loading branch information
luke-jr committed May 30, 2016
1 parent c31d113 commit 0568973
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blkmaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ def submit(tmpl, data, dataid, nonce, foreign=False):
def submit_foreign(tmpl, data, dataid, nonce):
return _submit(tmpl, data, None, dataid, nonce, True)

def submitm(tmpl, data, extranonce, nonce, foreign=False):
return _submit(tmpl, data, extranonce, None, nonce, foreign)

def address_to_script(addr):
addrbin = _base58.b58decode(addr, 25)
if addrbin is None:
Expand Down

0 comments on commit 0568973

Please sign in to comment.