diff options
| author | Pieter Wuille <[email protected]> | 2013-03-29 00:43:31 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-04-04 14:45:45 +0200 |
| commit | cedaa714462871213472019545b8e862dacdac91 (patch) | |
| tree | 624e3d8ff65f5f2978abe5fa0c7274b8c6c41f47 /src/test/script_tests.cpp | |
| parent | Merge pull request #2423 from TheBlueMatt/limitedmapalreadyaskedfor (diff) | |
| download | discoin-cedaa714462871213472019545b8e862dacdac91.tar.xz discoin-cedaa714462871213472019545b8e862dacdac91.zip | |
Drop release times for CNode
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.
Diffstat (limited to 'src/test/script_tests.cpp')
0 files changed, 0 insertions, 0 deletions