Bitcoin Forum
December 05, 2016, 08:50:55 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: svn r172: minor RPC changes  (Read 1181 times)
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!