mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-08 21:14:14 +00:00
Remove txn size debugging and enlarge gbt block string to prevent overflow.
This commit is contained in:
parent
bd384883da
commit
611c3164dc
@ -2295,7 +2295,7 @@ static bool submit_upstream_work(struct work *work, CURL *curl, bool resubmit)
|
|||||||
|
|
||||||
/* build JSON-RPC request */
|
/* build JSON-RPC request */
|
||||||
if (work->gbt) {
|
if (work->gbt) {
|
||||||
char gbt_block[512], *varint, *header;
|
char gbt_block[1024], *varint, *header;
|
||||||
unsigned char data[80];
|
unsigned char data[80];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -2310,7 +2310,6 @@ static bool submit_upstream_work(struct work *work, CURL *curl, bool resubmit)
|
|||||||
sprintf(gbt_block, "%s", header);
|
sprintf(gbt_block, "%s", header);
|
||||||
free(header);
|
free(header);
|
||||||
|
|
||||||
applog(LOG_WARNING, "%d transactions", work->gbt_txns);
|
|
||||||
if (work->gbt_txns < 0xfd) {
|
if (work->gbt_txns < 0xfd) {
|
||||||
uint8_t val = work->gbt_txns;
|
uint8_t val = work->gbt_txns;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user