From f237105430a10b81527770aa10a1bacd33ece26e Mon Sep 17 00:00:00 2001 From: Vincent Gariepy Date: Mon, 3 Mar 2014 16:07:35 -0500 Subject: [PATCH] Add 'block' command to see current block number --- eth/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eth/main.cpp b/eth/main.cpp index b8e26aefb..d3e50b7f7 100644 --- a/eth/main.cpp +++ b/eth/main.cpp @@ -237,6 +237,13 @@ int main(int argc, char** argv) cout << "Current secret: " + asHex(us.secret().asArray()) << endl; cout << "===" << endl; } + else if (cmd == "block") + { + eth::uint n = c.blockChain().details().number; + cout << endl; + cout << "Current block # " << n << endl; + cout << "===" << endl; + } else if (cmd == "balance") { u256 balance = c.state().balance(us.address());