aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-01-08 10:10:02 +0800
committerGav Wood <i@gavwood.com>2014-01-08 10:10:02 +0800
commit1aefdda8975b9a259be0b7c52f02484ff9f2d315 (patch)
treeeef227732a5274365bcbb000b01ec31d2fec288e /main.cpp
parent7a769e3f397be3f409b0a60c2d3c82aba62e2914 (diff)
downloaddexon-solidity-1aefdda8975b9a259be0b7c52f02484ff9f2d315.tar.gz
dexon-solidity-1aefdda8975b9a259be0b7c52f02484ff9f2d315.tar.zst
dexon-solidity-1aefdda8975b9a259be0b7c52f02484ff9f2d315.zip
Dagger algo.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 551b21ab..2216e877 100644
--- a/main.cpp
+++ b/main.cpp
@@ -21,18 +21,28 @@
*/
#include <random>
+#include <chrono>
#include <Common.h>
#include <secp256k1.h>
+#include "Dagger.h"
#include "RLP.h"
#include "Trie.h"
#include "State.h"
using namespace std;
+using namespace std::chrono;
using namespace eth;
// TODO: utilise the shared testdata.
int main()
{
+ // Test dagger
+ {
+ Dagger d(1);
+ auto s = steady_clock::now();
+ cout << hex << d.eval(0);
+ cout << " " << dec << duration_cast<milliseconds>(steady_clock::now() - s).count() << " ms" << endl;
+ }
/*
// Test transaction.
bytes tx = fromUserHex("88005401010101010101010101010101010101010101011f0de0b6b3a76400001ce8d4a5100080181c373130a009ba1f10285d4e659568bfcfec85067855c5a3c150100815dad4ef98fd37cf0593828c89db94bd6c64e210a32ef8956eaa81ea9307194996a3b879441f5d");