aboutsummaryrefslogtreecommitdiff
path: root/src/rpcnet.cpp
AgeCommit message (Collapse)Author
2013-11-28Store and use a sanitized subVerMike Hearn
Rebased-from: a946aa8d3ec7009ac670eeb65a525efe5eeb6e84
2013-04-09Merge pull request #2461 from sipa/syncnodeGavin Andresen
Make sure we always have a node to do IBD from
2013-04-07Add bytessent, bytesrecv and syncnode to getpeerinfoPieter Wuille
2013-04-04Drop release times for CNodePieter Wuille
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.
2013-01-27Add a getaddednodeinfo RPC.Matt Corallo
2013-01-27Add addnode RPC command.Matt Corallo
2012-09-18Trim trailing whitespace for src/*.{h,cpp}Jeff Garzik
2012-06-30RPC getpeerinfo: s/height/startingheight/ for returned nStartingHeight valueJeff Garzik
2012-06-29RPC: add 'getpeerinfo', returning easy-to-retrieve per-CNode dataJeff Garzik
2012-06-28Create new rpcnet module, and move 'getconnectioncount' RPC to itJeff Garzik