From a2ec430b27eb2f6a7ac42ed5c2fa16adc85f61a0 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Fri, 31 Jan 2014 14:10:05 +0000 Subject: [PATCH] Manage GetBlocks properly; should work for when > 256 blocks away. Use GetTransactions on connect & respect it. DONE --- crypto.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto.cpp b/crypto.cpp index 75ac9e919..71fc41292 100644 --- a/crypto.cpp +++ b/crypto.cpp @@ -35,7 +35,7 @@ int cryptoTest() cout << "TX: " << RLP(tx) << endl; Transaction t2(tx); - cout << "SENDER: " << hex << t2.sender() << endl; + cout << "SENDER: " << hex << t2.sender() << dec << endl; secp256k1_start(); @@ -76,7 +76,7 @@ int cryptoTest() int v = 0; cout << asHex(hmsg) << endl; cout << asHex(privkey) << endl; - cout << hex << nonce << endl; + cout << hex << nonce << dec << endl; int ret = secp256k1_ecdsa_sign_compact((byte const*)hmsg.data(), hmsg.size(), sig.data(), privkey.data(), (byte const*)&nonce, &v); cout << "MYSIG: " << dec << ret << " " << sig.size() << " " << asHex(sig) << " " << v << endl; @@ -93,7 +93,7 @@ int cryptoTest() int ret = secp256k1_ecdsa_recover_compact((byte const*)hmsg.data(), hmsg.size(), (byte const*)sig64.data(), pubkey.data(), &pubkeylen, 0, (int)t.vrs.v - 27); pubkey.resize(pubkeylen); cout << "RECPUB: " << dec << ret << " " << pubkeylen << " " << asHex(pubkey) << endl; - cout << "SENDER: " << hex << low160(eth::sha3(bytesConstRef(&pubkey).cropped(1))) << endl; + cout << "SENDER: " << hex << low160(eth::sha3(bytesConstRef(&pubkey).cropped(1))) << dec << endl; } return 0; }