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.pull/145/head
![pieter.wuille@gmail.com](/assets/img/avatar_default.png)
committed by
Pieter Wuille
![Pieter Wuille](/assets/img/avatar_default.png)
3 changed files with 9 additions and 23 deletions
Loading…
Reference in new issue