Browse Source
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.0.8
Pieter Wuille
12 years ago
committed by
Pieter Wuille
3 changed files with 9 additions and 23 deletions
Loading…
Reference in new issue