aboutsummaryrefslogtreecommitdiff
path: root/src/escrow/plugin_escrow_gns.c
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-09-04 21:08:25 +0200
committerjospaeth <spaethj@in.tum.de>2020-09-04 21:08:25 +0200
commita889768a2ffaa033ae36e6fc26d78203cfd84569 (patch)
tree38da3a3c53296da2b1455dd2ed42523f1945ac5f /src/escrow/plugin_escrow_gns.c
parent4456a5db60bea8a878f3fe822aa388c0d20c755a (diff)
downloadgnunet-a889768a2ffaa033ae36e6fc26d78203cfd84569.tar.gz
gnunet-a889768a2ffaa033ae36e6fc26d78203cfd84569.zip
fix implementation of escrow STATUS
Diffstat (limited to 'src/escrow/plugin_escrow_gns.c')
-rw-r--r--src/escrow/plugin_escrow_gns.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/escrow/plugin_escrow_gns.c b/src/escrow/plugin_escrow_gns.c
index eb37f75b3..96a7252ec 100644
--- a/src/escrow/plugin_escrow_gns.c
+++ b/src/escrow/plugin_escrow_gns.c
@@ -542,8 +542,8 @@ keyshare_distribution_finished (void *cls)
542 542
543 p_op->anchor_wrap->anchor = anchor; 543 p_op->anchor_wrap->anchor = anchor;
544 544
545 /* set the last escrow time */ 545 /* update escrow status, i.e. set the last escrow method */
546 ESCROW_update_escrow_status (p_op->h, p_op->ego, "gns"); 546 ESCROW_update_escrow_status_put (p_op->h, p_op->ego, "gns");
547 547
548 /* call the continuation */ 548 /* call the continuation */
549 start_cont (plugin_op_wrap); 549 start_cont (plugin_op_wrap);
@@ -1422,6 +1422,10 @@ verify_restored_pk (void *cls,
1422 count_keyshares (p_op->restored_keyshares, p_op->shares) < p_op->shares) 1422 count_keyshares (p_op->restored_keyshares, p_op->shares) < p_op->shares)
1423 verificationResult = GNUNET_ESCROW_SHARES_MISSING; 1423 verificationResult = GNUNET_ESCROW_SHARES_MISSING;
1424 1424
1425 /* update the escrow status if valid */
1426 if (GNUNET_ESCROW_VALID == verificationResult)
1427 ESCROW_update_escrow_status_verify (p_op->h, p_op->ego, "gns");
1428
1425 p_op->verify_wrap->verificationResult = verificationResult; 1429 p_op->verify_wrap->verificationResult = verificationResult;
1426 verify_cont (plugin_op_wrap); 1430 verify_cont (plugin_op_wrap);
1427} 1431}