aboutsummaryrefslogtreecommitdiff
path: root/src/rpcnet.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Introduce a CChainParameters singleton class and regtest mode.Mike Hearn2013-06-191-1/+1
| | | | | | | | | | | | | The new class is accessed via the Params() method and holds most things that vary between main, test and regtest networks. The regtest mode has two purposes, one is to run the bitcoind/bitcoinj comparison tool which compares two separate implementations of the Bitcoin protocol looking for divergence. The other is that when run, you get a local node which can mine a single block instantly, which is highly convenient for testing apps during development as there's no need to wait 10 minutes for a block on the testnet.
* Merge pull request #2461 from sipa/syncnodeGavin Andresen2013-04-091-0/+4
|\ | | | | Make sure we always have a node to do IBD from
| * Add bytessent, bytesrecv and syncnode to getpeerinfoPieter Wuille2013-04-071-0/+4
| |
* | Drop release times for CNodePieter Wuille2013-04-041-1/+0
|/ | | | | | | | | | | | | | It seems there were two mechanisms for assessing whether a CNode was still in use: a refcount and a release timestamp. The latter seems to have been there for a long time, as a safety mechanism. However, this timer also keeps CNode objects alive for far longer than necessary after disconnects, potentially opening up a DoS window. This commit removes the timestamp-based mechanism, and replaces it with an assert(nRefCount >= 0), to verify that the refcounting is indeed correctly working.
* Add a getaddednodeinfo RPC.Matt Corallo2013-01-271-0/+92
|
* Add addnode RPC command.Matt Corallo2013-01-271-0/+42
|
* Trim trailing whitespace for src/*.{h,cpp}Jeff Garzik2012-09-181-1/+1
|
* RPC getpeerinfo: s/height/startingheight/ for returned nStartingHeight valueJeff Garzik2012-06-301-1/+1
|
* RPC: add 'getpeerinfo', returning easy-to-retrieve per-CNode dataJeff Garzik2012-06-291-0/+46
|
* Create new rpcnet module, and move 'getconnectioncount' RPC to itJeff Garzik2012-06-281-0/+21