CreateJoinSplit: add start_profiling() call

This solves the problem of profiling output displaying nonsensical large time values.
This commit is contained in:
Eran Tromer
2017-01-05 11:25:41 -05:00
parent 258b0a7552
commit 894a0b3295

View File

@@ -5,11 +5,14 @@
#include "../util.h"
#include "primitives/transaction.h"
#include "zcash/JoinSplit.hpp"
#include "libsnark/common/profiling.hpp"
using namespace libzcash;
int main(int argc, char **argv)
{
libsnark::start_profiling();
auto p = ZCJoinSplit::Unopened();
p->loadVerifyingKey((ZC_GetParamsDir() / "sprout-verifying.key").string());
p->setProvingKeyPath((ZC_GetParamsDir() / "sprout-proving.key").string());