diff options
author | Gav Wood <i@gavwood.com> | 2014-10-13 02:57:25 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-10-13 02:57:25 +0800 |
commit | ea27fbe5f33e982babf13df25334dccd112dd96b (patch) | |
tree | 24aa51a07c502063aff20e85480ce456967e06cc /dagger.cpp | |
parent | 8472a0f06f89298ba4ab828291784673ae7bc31c (diff) | |
download | dexon-solidity-ea27fbe5f33e982babf13df25334dccd112dd96b.tar.gz dexon-solidity-ea27fbe5f33e982babf13df25334dccd112dd96b.tar.zst dexon-solidity-ea27fbe5f33e982babf13df25334dccd112dd96b.zip |
Move Dagger to ProofOfWork and refactor in preparation for ARPoW.
Diffstat (limited to 'dagger.cpp')
-rw-r--r-- | dagger.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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; |