CreateJoinSplit: add start_profiling() call
This solves the problem of profiling output displaying nonsensical large time values.
This commit is contained in:
@@ -5,11 +5,14 @@
|
|||||||
#include "../util.h"
|
#include "../util.h"
|
||||||
#include "primitives/transaction.h"
|
#include "primitives/transaction.h"
|
||||||
#include "zcash/JoinSplit.hpp"
|
#include "zcash/JoinSplit.hpp"
|
||||||
|
#include "libsnark/common/profiling.hpp"
|
||||||
|
|
||||||
using namespace libzcash;
|
using namespace libzcash;
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
libsnark::start_profiling();
|
||||||
|
|
||||||
auto p = ZCJoinSplit::Unopened();
|
auto p = ZCJoinSplit::Unopened();
|
||||||
p->loadVerifyingKey((ZC_GetParamsDir() / "sprout-verifying.key").string());
|
p->loadVerifyingKey((ZC_GetParamsDir() / "sprout-verifying.key").string());
|
||||||
p->setProvingKeyPath((ZC_GetParamsDir() / "sprout-proving.key").string());
|
p->setProvingKeyPath((ZC_GetParamsDir() / "sprout-proving.key").string());
|
||||||
|
|||||||
Reference in New Issue
Block a user