not send new blocks in reset state
@@ -120,6 +120,7 @@ static void *xdag_send_new_block_thread(void *arg)
struct xdag_new_block_elem *elem = NULL;
int processed = 0;
while(1) {
+ if(g_xdag_state != XDAG_STATE_REST) {
pthread_mutex_lock(&g_send_new_block_mutex);
elem = list_new_blocks;
pthread_mutex_unlock(&g_send_new_block_mutex);
@@ -140,6 +141,7 @@ static void *xdag_send_new_block_thread(void *arg)
free(elem);
processed = 1;
}
+ }
if(!processed) {
sleep(1);
