Bitcoin Forum
October 22, 2025, 07:06:18 PM *
News: Pumpkin carving contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: svn r172: minor RPC changes  (Read 1549 times)
Gavin Andresen (OP)
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2412


Chief Scientist


View Profile WWW
October 22, 2010, 03:19:58 PM
 #1

svn rev 172 (bitcoin 0.3.14.01) adds:

"testnet" and "keypoololdest" to getinfo output.  testnet will be true if you are running on the test network.
keypoololdest is the Unix timestamp of the oldest entry in the keypool.

For example:
Code:
./bitcoind getinfo
{
    "version" : 31401,
    "balance" : 100.63000000,
    "blocks" : 86925,
    "connections" : 1,
    "proxy" : "",
    "generate" : true,
    "genproclimit" : 1,
    "difficulty" : 2149.02181495,
    "hashespersec" : 998425,
    "testnet" : false,
    "keypoololdest" : 1286757166,
    "errors" : ""
}

I also made bitcoin return proper HTTP Date: headers to better follow the HTTP spec.

How often do you get the chance to work on a potentially world-changing project?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!