48 Commits (5e408d99a219f80e3dab06d3ba03f102d404b886)

Author SHA1 Message Date
practicalswift a47da4b6fe Use z = std::max(x - y, 0); instead of z = x - y; if (z < 0) z = 0; 8 years ago
practicalswift cc16d99f1d [trivial] Fix typos in comments 8 years ago
practicalswift 90fd29bd0d Remove unused int64_t nSinceLastSeen 8 years ago
isle2983 27765b6403 Increment MIT Licence copyright header year on files modified in 2016 8 years ago
Wladimir J. van der Laan 5eaaa83ac1 Kill insecure_random and associated global state 8 years ago
Gregory Maxwell 6d0ced1865 Do not set an addr time penalty when a peer advertises itself. 8 years ago
Pieter Wuille ee06e04369 Introduce enum ServiceFlags for service flags 9 years ago
Pieter Wuille 3764dec36c Keep addrman's nService bits consistent with outbound observations 9 years ago
Gregory Maxwell 6182d10503 Do not increment nAttempts by more than one for every Good connection. 9 years ago
Gregory Maxwell c769c4af11 Avoid counting failed connect attempts when probably offline. 9 years ago
Ethan Heilman 40c87b6e69 Increase test coverage for addrman and addrinfo 9 years ago
MarcoFalke fa60d05a4e Add missing copyright headers 9 years ago
EthanHeilman 1534d9a83c Creates unittests for addrman, makes addrman testable. 9 years ago
Pieter Wuille c33c11ebac Improve addrman Select() performance when buckets are nearly empty 9 years ago
Philip Kaufmann 26a639e21f remove using namespace std from addrman.cpp 10 years ago
Gregory Maxwell a784f90c98 Cap nAttempts penalty at 8 and switch to pow instead of a division loop. 10 years ago
Pieter Wuille 1d5b47a903 nLastTry is only used for addrman entries 10 years ago
Pieter Wuille c6a63ceeb4 Always use a 50% chance to choose between tried and new entries 10 years ago
Pieter Wuille f68ba3f67b Do not bias outgoing connections towards fresh addresses 10 years ago
Pieter Wuille a8ff7c62ed Simplify hashing code 10 years ago
Pieter Wuille e6b343d880 Make addrman's bucket placement deterministic. 10 years ago
Pieter Wuille b23add5521 Switch addrman key from vector to uint256 10 years ago
Pieter Wuille 9c2737901b Reduce fingerprinting through timestamps in 'addr' messages. 10 years ago
Wladimir J. van der Laan 807658549c Replace GetLow64 with GetCheapHash 10 years ago
Michael Ford 24f5c94015 Update comments in addrman to be doxygen compatible 10 years ago
Cory Fields fa7361907a boost: split stream classes out of serialize.h 10 years ago
Pieter Wuille 20e01b1a03 Apply clang-format on some infrequently-updated files 10 years ago
Teran McKinney f79323b0dd
Improve readability of CAddrInfo::IsTerrible 10 years ago
Jeff Garzik 3a56de7fc3 addrman: Do not propagate obviously poor addresses onto the network 10 years ago
Wladimir J. van der Laan 7d9d134bf9 Remove redundant .c_str()s 11 years ago
Thomas Holenstein e85e19be06 Changed Get64(.) to GetLow64() 11 years ago
Brandon Dahler 51ed9ec971 Cleanup code using forward declarations. 11 years ago
Gavin Andresen 881a85a22d Replace printf with LogPrintf / LogPrint 11 years ago
Pieter Wuille 0fb9073edd Split off hash.h from util.h 12 years ago
Jeff Garzik ea0796bde3 Trim trailing whitespace for src/*.{h,cpp} 12 years ago
Philip Kaufmann 30c8a40847 fix a comment in addrman.cpp 12 years ago
Fordy 3a25a2b9b0 Update License in File Headers 13 years ago
Pieter Wuille f621326c24 Clean up warnings 13 years ago
Pieter Wuille 56f1e91239 Fix addrman crashes 13 years ago
Pieter Wuille 29a86a1735 Add extra asserts to addrman 13 years ago
Pieter Wuille 6b6aaa1698 Further reduce header dependencies 13 years ago
Jeff Garzik c376ac359e Fix loop index var types, fixing many minor sign comparison warnings 13 years ago
Wladimir J. van der Laan 6642ffb761 fix warnings: '&&' within '||' [-Wlogical-op-parentheses] 13 years ago
Pieter Wuille 5fee401fe1 CAddrMan: stochastic address manager 13 years ago