iotaledger / entangled

enTangle'd is an amalgamation of all things Tangle
Apache License 2.0
113 stars 66 forks source link

crypto: investigate if we can get rid of pearldiver status lock #1414

Open thibault-martinez opened 4 years ago

semenov-vladyslav commented 4 years ago

Pearl diver's status can only be asynchronously assigned value of SEARCH_FINISHED. So even if two threads change status value it's always going to be SEARCH_FINISHED.

The lock might be needed if pearl diver supported interruption logic. In this case the access to status variable must be exclusive.