mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 09:27:25 +00:00
stratum: correctly create blocks with 253-255 transactions (#260)
According to [1], varints of 0xfd to 0xff are prefixed with 0xfd too. [1]: http://learnmeabitcoin.com/glossary/varint
This commit is contained in:
parent
dd9b467ecb
commit
10be25ee82
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ static void client_do_submit(YAAMP_CLIENT *client, YAAMP_JOB *job, YAAMP_JOB_VAL
|
|||
if(hash_int <= coin_target)
|
||||
{
|
||||
char count_hex[8] = { 0 };
|
||||
if (templ->txcount <= 255)
|
||||
if (templ->txcount <= 252)
|
||||
sprintf(count_hex, "%02x", templ->txcount & 0xFF);
|
||||
else
|
||||
sprintf(count_hex, "fd%02x%02x", templ->txcount & 0xFF, templ->txcount >> 8);
|
||||
|
|
Loading…
Add table
Reference in a new issue