OpenST / mosaic-contracts

Mosaic-0: Gateways and anchors on top of Ethereum to scale DApps
https://discuss.openst.org/c/mosaic
MIT License
114 stars 31 forks source link

Remove mutex from OSTComposer::acceptStakeRequest function #767

Closed pgev closed 5 years ago

pgev commented 5 years ago

We can safely remove a mutex from OSTComposer::acceptStakeRequest and execute the following statements after the first require statement in the function:

delete stakeRequestHashes[stakeRequest.staker][address(stakeRequest.gateway)];
delete stakeRequests[_stakeRequestHash];
deepesh-kn commented 5 years ago

This will be handled in this ticket.https://github.com/openst/mosaic-contracts/issues/763