diff options
author | Gav Wood <i@gavwood.com> | 2014-01-14 22:05:40 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-01-14 22:05:40 +0800 |
commit | 7d813c4a841cf7ed65e81cbb63a55552c0a53215 (patch) | |
tree | cfeddb18daf202ac78c45c11b4690a28c2fe79f4 | |
parent | 4fb83706c8665377320259490d7c2a42e6329a91 (diff) | |
download | dexon-solidity-7d813c4a841cf7ed65e81cbb63a55552c0a53215.tar dexon-solidity-7d813c4a841cf7ed65e81cbb63a55552c0a53215.tar.gz dexon-solidity-7d813c4a841cf7ed65e81cbb63a55552c0a53215.tar.bz2 dexon-solidity-7d813c4a841cf7ed65e81cbb63a55552c0a53215.tar.lz dexon-solidity-7d813c4a841cf7ed65e81cbb63a55552c0a53215.tar.xz dexon-solidity-7d813c4a841cf7ed65e81cbb63a55552c0a53215.tar.zst dexon-solidity-7d813c4a841cf7ed65e81cbb63a55552c0a53215.zip |
More verification work; compute header ready for mining.
-rw-r--r-- | main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -36,6 +36,7 @@ using namespace eth; int main() { +/* // Test dagger { Dagger d((h256)0); @@ -53,6 +54,7 @@ int main() cout << hex << d.eval(1); cout << " " << dec << duration_cast<milliseconds>(steady_clock::now() - s).count() << " ms" << endl; } + */ /* // Test transaction. bytes tx = fromUserHex("88005401010101010101010101010101010101010101011f0de0b6b3a76400001ce8d4a5100080181c373130a009ba1f10285d4e659568bfcfec85067855c5a3c150100815dad4ef98fd37cf0593828c89db94bd6c64e210a32ef8956eaa81ea9307194996a3b879441f5d"); @@ -111,6 +113,9 @@ int main() cout << "SENDER: " << hex << low160(eth::sha3(bytesConstRef(&pubkey).cropped(1))) << endl; } */ + cout << escaped(asString(rlp256({{"b", "B"}, {"a", "A"}})), false) << " == " << RLP(rlp256({{"b", "B"}, {"a", "A"}})) << endl; + cout << escaped(asString(rlp256({{"test", "test"}})), false) << " == " << RLP(rlp256({{"test", "test"}})) << endl; + cout << asHex(rlp256({{"test", "test"}, {"te", "test"}})) << endl; { Trie t; t.insert("dog", "puppy"); |