Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

bench_dash.cpp
Go to the documentation of this file.
1 // Copyright (c) 2015 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #include <bench/bench.h>
6 
7 #include <crypto/sha256.h>
8 #include <key.h>
9 #include <stacktraces.h>
10 #include <validation.h>
11 #include <util.h>
12 #include <random.h>
13 
14 #include <bls/bls.h>
15 
16 void InitBLSTests();
17 void CleanupBLSTests();
18 void CleanupBLSDkgTests();
19 
20 int
21 main(int argc, char** argv)
22 {
24 
27 
28  RandomInit();
29  ECC_Start();
30  ECCVerifyHandle verifyHandle;
31 
32  BLSInit();
33  InitBLSTests();
35  fPrintToDebugLog = false; // don't want to write to debug.log file
36 
38 
39  // need to be called before global destructors kick in (PoolAllocator is needed due to many BLSSecretKeys)
42 
43  ECC_Stop();
44 }
void RandomInit()
Initialize the RNG.
Definition: random.cpp:487
int main(int argc, char **argv)
Definition: bench_dash.cpp:21
void ECC_Start()
Initialize the elliptic curve support.
Definition: key.cpp:323
std::string SHA256AutoDetect()
Autodetect the best available SHA256 implementation.
Definition: sha256.cpp:573
void InitBLSTests()
Definition: bls.cpp:14
void CleanupBLSDkgTests()
Definition: bls_dkg.cpp:131
Users of this module must hold an ECCVerifyHandle.
Definition: pubkey.h:248
void ECC_Stop()
Deinitialize the elliptic curve support.
Definition: key.cpp:340
void CleanupBLSTests()
Definition: bls.cpp:19
void RegisterPrettyTerminateHander()
bool fPrintToDebugLog
Definition: util.cpp:110
void RegisterPrettySignalHandlers()
void SetupEnvironment()
Definition: util.cpp:1314
static void RunAll(duration elapsedTimeForOne=std::chrono::seconds(1))
Definition: bench.cpp:23
bool BLSInit()
Definition: bls.cpp:466
Released under the MIT license