Selaa lähdekoodia

debugging reputation proof synchronization

tristangurtler 3 vuotta sitten
vanhempi
commit
182378bf04
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      prsona/src/networkClient.cpp

+ 6 - 0
prsona/src/networkClient.cpp

@@ -157,11 +157,17 @@ bool make_reputation_proof(
     std::vector<Proof> encryptedScoreProof;
     EGCiphertext encryptedScore = get_server_committed_val<EGCiphertext>(rng, serverIPs, serverPorts, REQUEST_CLIENT_TALLY_URI, REQUEST_CLIENT_TALLY_COMMITMENT_URI, encryptedScoreProof, shortTermPublicKey, bandwidthData);
 
+    std::cout << "Loading encrypted score." << std::endl;
+
     // Load this current encrypted score into client object
     prsonaClient->receive_vote_tally(encryptedScoreProof, encryptedScore);
 
+    std::cout << "Converting encrypted score to an int." << std::endl;
+
     // Choose a random (valid) threshold to make a proof for
     mpz_class maxScore = prsonaClient->get_score().toInt();
+
+    std::cout << "Converting encrypted score to a usable int." << std::endl;
     int maxScoreInt = 0;
     while (maxScoreInt < maxScore)
         maxScoreInt++;