Skip to content

Commit

Permalink
Merge pull request vertcoin-project#26 from farsider350/CoinbaseString
Browse files Browse the repository at this point in the history
Coinbase String
  • Loading branch information
jtoomim authored May 14, 2019
2 parents 3308181 + 8c83a12 commit 7a18954
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions p2pool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,9 @@ def run():
parser.add_argument('--merged',
help='call getauxblock on this url to get work for merged mining (example: http://ncuser:ncpass@127.0.0.1:10332/)',
type=str, action='append', default=[], dest='merged_urls')
parser.add_argument('--coinbtext',
help='append this text to the coinbase',
type=str, action='append', default=[], dest='coinb_texts')
parser.add_argument('--give-author', metavar='DONATION_PERCENTAGE',
help='donate this percentage of work towards the development of p2pool (default: 1.0)',
type=float, action='store', default=1.0, dest='donation_percentage')
Expand Down
4 changes: 2 additions & 2 deletions p2pool/work.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ def get_work(self, pubkey_hash, desired_share_target, desired_pseudoshare_target
previous_share_hash=self.node.best_share_var.value,
coinbase=(script.create_push_script([
self.current_work.value['height'],
] + ([mm_data] if mm_data else []) + [
]) + self.current_work.value['coinbaseflags'])[:100],
] + ([mm_data] if mm_data else []) + self.args.coinb_texts
) + self.current_work.value['coinbaseflags'])[:100],
nonce=random.randrange(2**32),
pubkey_hash=pubkey_hash,
subsidy=self.current_work.value['subsidy'],
Expand Down

0 comments on commit 7a18954

Please sign in to comment.