mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
Avoid applog while ch_lock is held.
This commit is contained in:
parent
29f0ac77da
commit
b948669a4f
@ -3588,8 +3588,9 @@ static void set_curblock(char *hexstr, unsigned char *hash)
|
|||||||
free(current_fullhash);
|
free(current_fullhash);
|
||||||
current_fullhash = bin2hex(block_hash_swap, 32);
|
current_fullhash = bin2hex(block_hash_swap, 32);
|
||||||
get_timestamp(blocktime, &block_timeval);
|
get_timestamp(blocktime, &block_timeval);
|
||||||
applog(LOG_INFO, "New block: %s... diff %s", current_hash, block_diff);
|
|
||||||
cg_wunlock(&ch_lock);
|
cg_wunlock(&ch_lock);
|
||||||
|
|
||||||
|
applog(LOG_INFO, "New block: %s... diff %s", current_hash, block_diff);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Search to see if this string is from a block that has been seen before */
|
/* Search to see if this string is from a block that has been seen before */
|
||||||
|
Loading…
Reference in New Issue
Block a user