aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2014-10-13 21:08:45 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2014-10-13 21:08:45 +0800
commit5723beb8757c8d0eb05ff1a6f596d01c6be3e96e (patch)
tree2e7ddd450906b22d1b9031f8812a42824c320321
parent95a3a06f339c3113b5ce4805e820a0867bd719f5 (diff)
parentea27fbe5f33e982babf13df25334dccd112dd96b (diff)
downloaddexon-solidity-5723beb8757c8d0eb05ff1a6f596d01c6be3e96e.tar.gz
dexon-solidity-5723beb8757c8d0eb05ff1a6f596d01c6be3e96e.tar.zst
dexon-solidity-5723beb8757c8d0eb05ff1a6f596d01c6be3e96e.zip
Merge branch 'develop' into mk_jsonrpc
-rw-r--r--dagger.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/dagger.cpp b/dagger.cpp
index 555c5d77..9422b6a9 100644
--- a/dagger.cpp
+++ b/dagger.cpp
@@ -17,12 +17,12 @@
/** @file dagger.cpp
* @author Gav Wood <i@gavwood.com>
* @date 2014
- * Dagger test functions.
+ * ProofOfWork test functions.
*/
#include <chrono>
#include <libdevcore/Log.h>
-#include <libethcore/Dagger.h>
+#include <libethcore/ProofOfWork.h>
using namespace std;
using namespace std::chrono;
using namespace dev;
@@ -30,20 +30,20 @@ using namespace dev::eth;
int daggerTest()
{
- cnote << "Testing Dagger...";
+ cnote << "Testing ProofOfWork...";
// Test dagger
{
auto s = steady_clock::now();
- cout << hex << Dagger().eval((h256)(u256)1, (h256)(u256)0);
+ cout << hex << ProofOfWork().eval((h256)(u256)1, (h256)(u256)0);
cout << " " << dec << duration_cast<milliseconds>(steady_clock::now() - s).count() << " ms" << endl;
- cout << hex << Dagger().eval((h256)(u256)1, (h256)(u256)1);
+ cout << hex << ProofOfWork().eval((h256)(u256)1, (h256)(u256)1);
cout << " " << dec << duration_cast<milliseconds>(steady_clock::now() - s).count() << " ms" << endl;
}
{
auto s = steady_clock::now();
- cout << hex << Dagger().eval((h256)(u256)1, (h256)(u256)0);
+ cout << hex << ProofOfWork().eval((h256)(u256)1, (h256)(u256)0);
cout << " " << dec << duration_cast<milliseconds>(steady_clock::now() - s).count() << " ms" << endl;
- cout << hex << Dagger().eval((h256)(u256)1, (h256)(u256)1);
+ cout << hex << ProofOfWork().eval((h256)(u256)1, (h256)(u256)1);
cout << " " << dec << duration_cast<milliseconds>(steady_clock::now() - s).count() << " ms" << endl;
}
return 0;