aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_peerlist.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-01-23Remove unreachable returnsMiguel Herranz1-3/+0
CATCH_ENTRY_L0 already returns the second value.
2017-01-21Rename method to get_random_gray_peerMiguel Herranz1-3/+3
2017-01-21Add gray peer list housekeeping systemMiguel Herranz1-0/+46
A random peer from the gray peer list is selected and a connection is made to check if the peer is alive. If the connection and handshake are successful the peer is promoted to the white peer list, in case of failure the peer is evicted from the gray peer list. The connection is closed after the check in either case.
2017-01-18Honor depth in get_peerlist_head methodMiguel Herranz1-2/+4
The method returned depth + 2 because: - push_back was executed before the condition. - > instead of >= causing one more iteration.
2016-12-20also use portable serializer for boost_serialization_helper.h and ↵kenshi841-1/+2
net_node.inl, completely adandon boost/archive/binary_oarchive.hpp
2015-12-31updated copyright yearRiccardo Spagni1-1/+1
2015-12-30net_peerlist: move a couple functions from public to privatemoneromooo-monero1-2/+2
They do not take the object lock, and are meant to be used only internally, called from a function which does take the lock.
2015-11-23Add IP blocking for misbehaving nodes (adapted from Boolberry)Javier Smooth1-1/+2
With minor cleanup and fixes (spelling, indent) by moneromooo
2015-05-28net_peerlist: fix grayt/white naming mismatchmoneromooo-monero1-2/+2
Looking at how these are called confirms this must have been a mistake
2015-01-02year updated in licenseRiccardo Spagni1-1/+1
2014-09-15Fix time_t serialization issueZachary Michaels1-2/+2
On 32-bit MinGW-w64, time_t is int32_t. The existing code was serializing time_t directly and implicitly assuming that time_t is int64_t. This commit formalizes that assumption by serializing int64_t directly and casting to time_t where appropriate. Thanks go to greatwolf for reporting this issue. monero-project/bitmonero#88
2014-07-23License updated to BSD 3-clausefluffypony1-3/+29
2014-03-20some fixesAntonio Juarez1-6/+2
2014-03-03moved all stuff to githubAntonio Juarez1-0/+375