From 0ccc676f4ef60796afb91ba6d4fbe7863ef6b2c4 Mon Sep 17 00:00:00 2001 From: Tim Hughes Date: Fri, 17 Jan 2014 13:05:47 +0000 Subject: Tweak Dagger API to facilitate more complex mining. --- main.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'main.cpp') 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(steady_clock::now() - s).count() << " ms" << endl; - cout << hex << d.eval(1); + cout << hex << d.eval((h256)1, 1); cout << " " << dec << duration_cast(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(steady_clock::now() - s).count() << " ms" << endl; - cout << hex << d.eval(1); + cout << hex << d.eval((h256)1, 1); cout << " " << dec << duration_cast(steady_clock::now() - s).count() << " ms" << endl; } - */ + //*/ + /* // Test transaction. bytes tx = fromUserHex("88005401010101010101010101010101010101010101011f0de0b6b3a76400001ce8d4a5100080181c373130a009ba1f10285d4e659568bfcfec85067855c5a3c150100815dad4ef98fd37cf0593828c89db94bd6c64e210a32ef8956eaa81ea9307194996a3b879441f5d"); -- cgit