aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorTim Hughes <tim@twistedfury.com>2014-01-17 21:05:47 +0800
committerTim Hughes <tim@twistedfury.com>2014-01-17 21:05:47 +0800
commit0ccc676f4ef60796afb91ba6d4fbe7863ef6b2c4 (patch)
treee2ae7c1a90f683a876537056b9ff838e45f350a5 /main.cpp
parent16eddcb35d4f484a9210e4d3961b12b5468dd3d3 (diff)
downloaddexon-solidity-0ccc676f4ef60796afb91ba6d4fbe7863ef6b2c4.tar.gz
dexon-solidity-0ccc676f4ef60796afb91ba6d4fbe7863ef6b2c4.tar.zst
dexon-solidity-0ccc676f4ef60796afb91ba6d4fbe7863ef6b2c4.zip
Tweak Dagger API to facilitate more complex mining.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/main.cpp b/main.cpp
index 0613bd27..6152f2d7 100644
--- a/main.cpp
+++ b/main.cpp
@@ -39,22 +39,23 @@ int main()
/*
// Test dagger
{
- Dagger d((h256)0);
+ Dagger d;
auto s = steady_clock::now();
- cout << hex << d.eval(0);
+ cout << hex << d.eval((h256)1, 0);
cout << " " << dec << duration_cast<milliseconds>(steady_clock::now() - s).count() << " ms" << endl;
- cout << hex << d.eval(1);
+ cout << hex << d.eval((h256)1, 1);
cout << " " << dec << duration_cast<milliseconds>(steady_clock::now() - s).count() << " ms" << endl;
}
{
- Dagger d((h256)1);
+ Dagger d;
auto s = steady_clock::now();
- cout << hex << d.eval(0);
+ cout << hex << d.eval((h256)1, 0);
cout << " " << dec << duration_cast<milliseconds>(steady_clock::now() - s).count() << " ms" << endl;
- cout << hex << d.eval(1);
+ cout << hex << d.eval((h256)1, 1);
cout << " " << dec << duration_cast<milliseconds>(steady_clock::now() - s).count() << " ms" << endl;
}
- */
+ //*/
+
/*
// Test transaction.
bytes tx = fromUserHex("88005401010101010101010101010101010101010101011f0de0b6b3a76400001ce8d4a5100080181c373130a009ba1f10285d4e659568bfcfec85067855c5a3c150100815dad4ef98fd37cf0593828c89db94bd6c64e210a32ef8956eaa81ea9307194996a3b879441f5d");