Make some globals static that can be
External linkage does not help and just encourages sloppy dependencies and can lead to weird issues when there are name collisions.
This commit is contained in:
@@ -24,8 +24,7 @@ namespace libzcash {
|
||||
|
||||
#include "zcash/circuit/gadget.tcc"
|
||||
|
||||
CCriticalSection cs_ParamsIO;
|
||||
CCriticalSection cs_LoadKeys;
|
||||
static CCriticalSection cs_ParamsIO;
|
||||
|
||||
template<typename T>
|
||||
void saveToFile(const std::string path, T& obj) {
|
||||
|
||||
@@ -216,7 +216,7 @@ ZCProof ZCProof::random_invalid()
|
||||
return p;
|
||||
}
|
||||
|
||||
std::once_flag init_public_params_once_flag;
|
||||
static std::once_flag init_public_params_once_flag;
|
||||
|
||||
void initialize_curve_params()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user