Skip to content

Commit 26bd0d2

Browse files
rikublockUdjinM6
authored andcommitted
Fix bls and bls_dkg bench (#2955)
Properly start the blsWorker before running any BLS related benchmarks.
1 parent d28d318 commit 26bd0d2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/bench/bench_dash.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#include "bls/bls.h"
1313

14+
void InitBLSTests();
1415
void CleanupBLSTests();
1516
void CleanupBLSDkgTests();
1617

@@ -24,6 +25,7 @@ main(int argc, char** argv)
2425
ECCVerifyHandle verifyHandle;
2526

2627
BLSInit();
28+
InitBLSTests();
2729
SetupEnvironment();
2830
fPrintToDebugLog = false; // don't want to write to debug.log file
2931

src/bench/bls.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
CBLSWorker blsWorker;
1313

14+
void InitBLSTests()
15+
{
16+
blsWorker.Start();
17+
}
18+
1419
void CleanupBLSTests()
1520
{
1621
blsWorker.Stop();

0 commit comments

Comments
 (0)