Consensys / web3signer

Web3Signer is an open-source signing service capable of signing on multiple platforms (Ethereum1 and 2, Filecoin) using private keys stored in an external vault, or encrypted on a disk.
https://docs.web3signer.consensys.net/
Apache License 2.0
201 stars 78 forks source link

fix: Make cached GVR thread-safe #980

Closed usmansaleem closed 8 months ago

usmansaleem commented 8 months ago

PR Description

Make cached GVR calculation thread-safe. During Web3Signer first boot, if multiple requests for signing comes in, it can result in multiple threads attempting to insert gvr in a fresh database. This would show an constraint violation in database logs.

Fixed Issue(s)

Fixes #978

Documentation

Changelog

Testing