Bitcoin Forum
November 20, 2018, 02:44:26 PM *
News: Latest Bitcoin Core release: 0.17.0 [Torrent].
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: svn r172: minor RPC changes  (Read 1382 times)
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 1014


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!