diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-11-08 08:33:35 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-11-08 08:46:50 +0100 |
| commit | 5ef3b6967b5c8936a137acf2e1a71d6f1d84c63c (patch) | |
| tree | 027baa08e949677467e1e9140bcc027218e78474 /src/httpserver.cpp | |
| parent | Merge #11562: bench: use std::chrono rather than gettimeofday (diff) | |
| parent | [net] De-duplicate connection eviction logic (diff) | |
| download | discoin-5ef3b6967b5c8936a137acf2e1a71d6f1d84c63c.tar.xz discoin-5ef3b6967b5c8936a137acf2e1a71d6f1d84c63c.zip | |
Merge #11524: [net] De-duplicate connection eviction logic
5ce7cb9 [net] De-duplicate connection eviction logic (Thomas Snider)
Pull request description:
While reviewing the safeguards against deliberate node isolation on the network by malicious actors, I found a good de-duplication candidate.
I think this form is much more legible (the type of `cutoffs` notwithstanding). ReverseCompareNodeTimeConnected is not included in the list since the cutoff size is a function of the remaining number of nodes in the candidate eviction set.
Tree-SHA512: ed17999fa9250dcf8448329219324477117e4ecd2d41dedd72ad253e44630eef50b3232c420f1862ebbfb9b8c94efbba1a235b519e39ff5946865c7d69a75280
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions