Skip to content

Commit

Permalink
Serialize coinbase_payload into coinbase tx
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Jan 26, 2019
1 parent 1f67daf commit a06d068
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stratum/coinbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,9 @@ void coinbase_create(YAAMP_COIND *coind, YAAMP_JOB_TEMPLATE *templ, json_value *
strcat(templ->coinb2, script_dests);
job_pack_tx(coind, templ->coinb2, available, NULL);
strcat(templ->coinb2, "00000000"); // locktime
if(coinbase_payload && strlen(coinbase_payload) > 0)
strcat(templ->coinb2, coinbase_payload);

coind->reward = (double)available/100000000*coind->reward_mul;
//debuglog("%s total %u available %u\n", coind->symbol, templ->value, available);
//debuglog("%s %d dests %s\n", coind->symbol, npayees, script_dests);
Expand Down

0 comments on commit a06d068

Please sign in to comment.