Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: integration test throws warnings for each transaction: Service account does not contain a service challenge #201

Closed
smuu opened this issue Jan 9, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@smuu
Copy link
Collaborator

smuu commented Jan 9, 2025

WARN prism_prover::prover > Failed to process transaction: Transaction { id: "6@gmail.com", operation: CreateAccount { id: "6@gmail.com", service_id: "test_service", challenge: Signed(Ed25519(Signature { R_bytes: "c3c398b3f9b6fb2a9baae6d0b3623f32c004806656176092e8a0a0021042d509", s_bytes: "e81ebe79a50a41dffc622cf793d894af72dd4054fe84b57b9bdbbd96251a1501" })), key: Ed25519(VerificationKey("a149cf2036bf78dfeb32b8e3201af1df24339e07efad9f83430644f8d417ec13")) }, nonce: 0, signature: Ed25519(Signature { R_bytes: "26211f99939e6ca2f628b76faa5b21a06b62e5efb52958867b68ad6ca3ecd276", s_bytes: "8cdd5df27302a0371b49d24821ad72ae90cec33100606949699d59ccbd3b7907" }), vk: Ed25519(VerificationKey("a149cf2036bf78dfeb32b8e3201af1df24339e07efad9f83430644f8d417ec13")) }. Error: Service account does not contain a service challenge

@smuu smuu added the bug Something isn't working label Jan 9, 2025
@distractedm1nd
Copy link
Contributor

I believe this is caused by a bug in rocksdb actually, which is fixed in #189

@jns-ps
Copy link
Contributor

jns-ps commented Jan 13, 2025

My theory is:

  • Is it possible that the accounts field in TransactionBuilder is never updated?
  • As a result, let acc = self.builder.accounts.entry(self.transaction.id.clone()).or_default(); would always take the "or_default" route when creating "RegisterService" Transactions
  • And then you'd end up with an invalid transaction on the DA layer (because the default for Account is probably service_challenge = None)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants
@jns-ps @distractedm1nd @smuu and others