Use unique_ptr for pdbCopy (Db) and fix potential memory leak
[bitcoinplatinum.git] / src / bench / bench_bitcoin.cpp
blob37fd772435ed70ce760fc1ad8f3b36f1f37776e1
1 // Copyright (c) 2015-2016 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.
5 #include "bench.h"
7 #include "crypto/sha256.h"
8 #include "key.h"
9 #include "validation.h"
10 #include "util.h"
11 #include "random.h"
13 int
14 main(int argc, char** argv)
16 SHA256AutoDetect();
17 RandomInit();
18 ECC_Start();
19 SetupEnvironment();
20 fPrintToDebugLog = false; // don't want to write to debug.log file
22 benchmark::BenchRunner::RunAll();
24 ECC_Stop();