Adds a mutex to getSiblingPathByLeafIndex route in order to avoid a race condition in merkle tree operations that were leading to Proof Generation Fail errors. This mutex was originally added to the controller layer but was changed to route level to increase the scope of the mutex.
QA Instructions
[ ] Run a DE
[ ] Check that no Proof Generation Failed error show up
Checklist
[x] I have tested the endpoints of the basic nightfall operations withdraw, transfer, and deposit.
[x] I have run a full-ZKP Dividend Event.
[x] If there are any TODOs or FIXME, they are left as TODO|FIXME: <description>
[x] I have removed unused code (e.g., console.logs, commented out blocks, etc.)
[x] Execute functionality locally, add screenshot evidence to the PR
[ ] The branch name is related to the ticket. /-
[x] Include a link to the PR of the JIRA ticket in the description
[x] Include a brief description of the changes (at least 2 lines). Include any dependent changes
in the description.
Related Ticket
https://eyblockchain.atlassian.net/browse/TAX-8482
Dependent PR's
Description
Adds a mutex to getSiblingPathByLeafIndex route in order to avoid a race condition in merkle tree operations that were leading to Proof Generation Fail errors. This mutex was originally added to the controller layer but was changed to route level to increase the scope of the mutex.
QA Instructions
Checklist
withdraw
,transfer
, anddeposit
.TODOs
orFIXME
, they are left asTODO|FIXME: <description>