quadratic-funding / mpc-phase2-suite

The MPC suite of tools for conducting zkSNARK Phase 2 Trusted Setup ceremonies
MIT License
16 stars 6 forks source link

[ERROR] There should be only one contribution without a doc link #316

Open baumstern opened 1 year ago

baumstern commented 1 year ago

How to reproduce

  1. run phase2cli contribute
  2. Fails above step while executing verifycontribution
  3. run phase2cli contribute again
  4. verifycontribution fails with [ERROR] There should be only one contribution without a doc link message

verifycontribution log:

DEBUG 2023-02-07T00:51:37.235157Z Callable request verification passed
DEBUG 2023-02-07T00:51:38.282093Z [DEBUG] Ceremony document zll83rWBWy5y1iwQ2Zth okay
DEBUG 2023-02-07T00:51:38.282157Z [DEBUG] Circuit document n6iqpriO4tmNjOe7U76Y okay
DEBUG 2023-02-07T00:51:38.282349Z [DEBUG] Participant document vXnTUrTucnXDDpNVzXT14Xd2d6z1 okay
DEBUG 2023-02-07T00:53:14.878274Z [DEBUG] pot/powersOfTau28_hez_final_22.ptau downloaded
DEBUG 2023-02-07T00:54:32.311938Z [DEBUG] circuits/multiplier2/contributions/multiplier2_00000.zkey downloaded
DEBUG 2023-02-07T00:55:42.227411Z [DEBUG] circuits/multiplier2/contributions/multiplier2_00001.zkey downloaded
INFO 2023-02-07T00:55:42.227516Z [INFO] Downloads from storage completed
INFO 2023-02-07T01:04:22.912199Z [INFO] Contribution is valid
INFO 2023-02-07T01:04:22.912332Z [INFO] Verification computation time 520683 ms
DEBUG 2023-02-07T01:04:28.409013Z [DEBUG] File uploaded successfully
ERROR 2023-02-07T01:04:28.410067Z Error: [ERROR] There should be only one contribution without a doc link at entryFromArgs (/workspace/node_modules/firebase-functions/lib/logger/index.js:130:19) at Object.error (/workspace/node_modules/firebase-functions/lib/logger/index.js:116:11) at logMsg (/workspace/dist/src/functions/index.node.js:125:41) at /workspace/dist/src/functions/index.node.js:1465:17 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async /workspace/node_modules/firebase-functions/lib/common/providers/https.js:447:26
ERROR 2023-02-07T01:04:28.428280Z [httpRequest.requestMethod: POST] [httpRequest.status: 500] [httpRequest.responseSize: 818 B] [httpRequest.latency: 774.533 s] [httpRequest.userAgent: node-fetch 1.0] https://redacted.app/
WARNING 2023-02-07T01:06:14.465741424Z Container called exit(0).

Solution

Should remove contribution record of participants in Firestore when verifycontribution failed