mirror of
https://github.com/GOSTSec/vanitygen
synced 2025-02-07 12:24:20 +00:00
Don't display error messages when last prefix is found by a different
OpenCL device.
This commit is contained in:
parent
9c6fae2965
commit
17f97ce112
20
oclengine.c
20
oclengine.c
@ -1502,11 +1502,8 @@ vg_ocl_prefix_rekey(vg_ocl_context_t *vocp)
|
|||||||
if (vocp->voc_pattern_rewrite) {
|
if (vocp->voc_pattern_rewrite) {
|
||||||
/* Count number of range records */
|
/* Count number of range records */
|
||||||
i = vg_context_hash160_sort(vcp, NULL);
|
i = vg_context_hash160_sort(vcp, NULL);
|
||||||
if (!i) {
|
if (!i)
|
||||||
fprintf(stderr,
|
|
||||||
"No range records available, exiting\n");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
|
|
||||||
if (i > vocp->voc_pattern_alloc) {
|
if (i > vocp->voc_pattern_alloc) {
|
||||||
/* (re)allocate target buffer */
|
/* (re)allocate target buffer */
|
||||||
@ -1989,9 +1986,16 @@ vg_opencl_loop(vg_exec_context_t *arg)
|
|||||||
gettimeofday(&tvstart, NULL);
|
gettimeofday(&tvstart, NULL);
|
||||||
|
|
||||||
l_rekey:
|
l_rekey:
|
||||||
if (vocp->voc_rekey_func &&
|
if (vocp->voc_rekey_func) {
|
||||||
!vocp->voc_rekey_func(vocp))
|
switch (vocp->voc_rekey_func(vocp)) {
|
||||||
goto enomem;
|
case 1:
|
||||||
|
break;
|
||||||
|
case 0:
|
||||||
|
goto nopatterns;
|
||||||
|
default:
|
||||||
|
goto enomem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
vg_exec_context_upgrade_lock(vxcp);
|
vg_exec_context_upgrade_lock(vxcp);
|
||||||
|
|
||||||
@ -2171,6 +2175,8 @@ l_rekey:
|
|||||||
if (0) {
|
if (0) {
|
||||||
enomem:
|
enomem:
|
||||||
fprintf(stderr, "ERROR: allocation failure?\n");
|
fprintf(stderr, "ERROR: allocation failure?\n");
|
||||||
|
nopatterns:
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (halt) {
|
if (halt) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user