Browse Source

Add 'block' command to see current block number

cl-refactor
Vincent Gariepy 11 years ago
parent
commit
f237105430
  1. 7
      eth/main.cpp

7
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());

Loading…
Cancel
Save