aboutsummaryrefslogtreecommitdiff
path: root/src/escrow/plugin_escrow_gns.c
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-08-17 10:19:55 +0200
committerjospaeth <spaethj@in.tum.de>2020-08-17 10:19:55 +0200
commit5e99dcb2e58a1960043811929b14c7bd44e03851 (patch)
treee090415c67dcb311335f000e9d3c495357c318ed /src/escrow/plugin_escrow_gns.c
parentd92ff2d49b468150e61d192fb0c490d5da1f0cb5 (diff)
downloadgnunet-5e99dcb2e58a1960043811929b14c7bd44e03851.tar.gz
gnunet-5e99dcb2e58a1960043811929b14c7bd44e03851.zip
fix failing assertion at namestore
Diffstat (limited to 'src/escrow/plugin_escrow_gns.c')
-rw-r--r--src/escrow/plugin_escrow_gns.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/escrow/plugin_escrow_gns.c b/src/escrow/plugin_escrow_gns.c
index 3f7f8a47c..36de5d551 100644
--- a/src/escrow/plugin_escrow_gns.c
+++ b/src/escrow/plugin_escrow_gns.c
@@ -434,8 +434,9 @@ split_private_key (struct ESCROW_GnsPluginOperation *p_op)
434 434
435 435
436static void 436static void
437keyshare_distribution_finished (struct ESCROW_PluginOperationWrapper *plugin_op_wrap) 437keyshare_distribution_finished (void *cls)
438{ 438{
439 struct ESCROW_PluginOperationWrapper *plugin_op_wrap = cls;
439 struct ESCROW_GnsPluginOperation *p_op; 440 struct ESCROW_GnsPluginOperation *p_op;
440 struct GNUNET_ESCROW_Anchor *anchor; 441 struct GNUNET_ESCROW_Anchor *anchor;
441 int anchorDataSize; 442 int anchorDataSize;
@@ -468,6 +469,7 @@ keyshare_distributed (void *cls,
468 struct NamestoreQueueEntry *ns_qe = cls; 469 struct NamestoreQueueEntry *ns_qe = cls;
469 struct ESCROW_PluginOperationWrapper *plugin_op_wrap; 470 struct ESCROW_PluginOperationWrapper *plugin_op_wrap;
470 struct ESCROW_GnsPluginOperation *p_op; 471 struct ESCROW_GnsPluginOperation *p_op;
472 struct GNUNET_TIME_Relative delay;
471 473
472 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Keyshare distributed\n"); 474 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Keyshare distributed\n");
473 475
@@ -492,7 +494,10 @@ keyshare_distributed (void *cls,
492 ns_qe); 494 ns_qe);
493 GNUNET_free (ns_qe); 495 GNUNET_free (ns_qe);
494 if (NULL == p_op->ns_qes_head) 496 if (NULL == p_op->ns_qes_head)
495 keyshare_distribution_finished (plugin_op_wrap); 497 {
498 delay.rel_value_us = 100 * GNUNET_TIME_relative_get_millisecond_().rel_value_us;
499 GNUNET_SCHEDULER_add_delayed (delay, &keyshare_distribution_finished, plugin_op_wrap);
500 }
496} 501}
497 502
498 503