-
Notifications
You must be signed in to change notification settings - Fork 36
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
Concurrent creation of two users fails, while FLOW_WALLET_ADMIN_PROPOSAL_KEY_COUNT is set #233
Comments
Admin account actually has 30 keys: https://flow-view-source.com/testnet/account/0xeac6eb45fad808df But wallet api produces error:
This bug is on both mainnet and testnet. |
Thank you @uhbif19 for posting this! We will look into it. |
UPD It works okay on mainnet with 0.7 version, but gives error on testnet 0.8 version. |
@latenssi Yes it is set to 30. |
@uhbif19 Ok, thanks! Are you running multiple instances of the wallet service with the same settings? I assume you are not using the |
I've encountered the same error with v0.8.0 but not in the latest main branch. |
We using one instance per one depolyment and not using |
@uhbif19 Couple of important questions I should have asked first: is this happening every time you try to create multiple accounts and how are you creating multiple accounts concurrently? |
@uhbif19 Looks like it happens every time. We POSTing /accounts to create account. |
@uhbif19 Do the accounts eventually get created? The wallet should retry failed attempts (max 10 retries). |
@latenssi How does this work? We do not cover retrying in our code. |
@latenssi Is there any way to disable retrying. |
The service will retry failed jobs (transactions) by itself (you don't have to do anything). You can set a webhook to receive updates on jobs so you don't have to poll for the results: https://github.com/flow-hydraulics/flow-wallet-api#updates-on-async-requests-webhook
No, this is a necessary part of the functionality of the service. I am curious tho', why would you want to disable this? Regarding the initial issue: I have discovered a bug regarding concurrent database calls and the way workers are started. Temporary fix: Set |
@latenssi I encountered this error while performing a batch (more than 100) of transactions (not account creation). Any insight on why this error is produced?
|
@latenssi I reduced the batch size to 50 but still facing the above issue. Can you please help here? |
Is this still happening?
|
If more than one user is created, all but one transaction fails.
The text was updated successfully, but these errors were encountered: