Commit Graph

470 Commits (master)

Author SHA1 Message Date
moneromooo-monero 28a7d31565
p2p: do not send last_seen timestamp to peers
5 years ago
Riccardo Spagni 8d16e92dcb
Merge pull request #5425
5 years ago
moneromooo-monero 5858598604
p2p: fix integer overflow in host bans
5 years ago
stoffu a2195b9b7f
crypto: replace rand<T>()%N idiom with unbiased rand_idx(N)
5 years ago
Riccardo Spagni 6e0242f861
Merge pull request #5334
5 years ago
moneromooo-monero 19f8089fca
p2p: don't lookup seed nodes when offline
5 years ago
rbrunner7 85f2f8c933 Fix daemon startup parameter '--limit-rate' processing after parameter defaults
5 years ago
Riccardo Spagni bf0f85221b
Merge pull request #5195
5 years ago
Riccardo Spagni 848591c4d8
Merge pull request #5190
5 years ago
binaryFate 1f2930ce0b Update 2019 copyright
5 years ago
moneromooo-monero ceb72be329
p2p: avoid busy loop when we have nothing to connect to
5 years ago
moneromooo-monero e396146aee
default initialize rpc structures
5 years ago
Riccardo Spagni 4466f4504e
Merge pull request #5091
5 years ago
xiphon a54e81e572 daemon: add '--no-sync' arg to optionally disable blockchain sync
5 years ago
xiphon 551104fbf1 daemon: add --public-node mode, RPC port propagation over P2P
5 years ago
moneromooo-monero 2456945408
epee: add SSL support
5 years ago
Jethro Grassie 123fc2a25a
i2p: initial support
5 years ago
Lee Clagett 973403bc9f Adding initial support for broadcasting transactions over Tor
5 years ago
moneromooo-monero b750fb27b0
Pruning
5 years ago
Riccardo Spagni e59813c3d7
Merge pull request #5029
5 years ago
Riccardo Spagni 3e9bb9626a
Merge pull request #5001
5 years ago
Riccardo Spagni 846362842c
Merge pull request #4976
5 years ago
moneromooo-monero d1b3990d40
p2p: don't stop the idle thread when no gray peers are found
5 years ago
moneromooo-monero 85665003a7
epee: better network buffer data structure
5 years ago
Lee Clagett a5ffc2d5ad Remove boost::lexical_cast for uuid and unused uuid function
5 years ago
moneromooo-monero 570dd3690e
p2p: use vector instead of list for peer lists
6 years ago
Riccardo Spagni c00ac446fd
Merge pull request #4854
6 years ago
Riccardo Spagni 46d0dc2808
Merge pull request #4776
6 years ago
Martijn Otto bd98e99c80
Removed a lot of unnecessary includes
6 years ago
moneromooo-monero 03fc731bf2
p2p: less frequent incoming connections check
6 years ago
moneromooo-monero 14a5c2068f
p2p: tone down "no incoming connections" warning to info if in peers is 0
6 years ago
RaskaRuby 2bd46065ae Expose limit-rate defaults from command line help
6 years ago
Riccardo Spagni ecc690a613
Merge pull request #4612
6 years ago
moneromooo-monero 2d48861db7
p2p: only deinitialize what's been initialized in offline mode
6 years ago
moneromooo-monero 0fbbb065d4
p2p: a negative result from UPNP_GetValidIGD is an error
6 years ago
Riccardo Spagni fa7278d6b5
Merge pull request #4578
6 years ago
moneromooo-monero 76d6d832d2
Revert "p2p: connect via the bound ip, if any"
6 years ago
moneromooo-monero e736964a0c
Remove epee header dependency on cryptonote_core
6 years ago
luigi1111 b586ae1310
Merge pull request #4089
6 years ago
luigi1111 f6d7e87b67
Merge pull request #4075
6 years ago
luigi1111 025187e6c9
Merge pull request #3854
6 years ago
moneromooo-monero 909398efc7
p2p: connect via the bound ip, if any
6 years ago
victorsintnicolaas 34cb6b4b70 add --regtest and --fixed-difficulty for regression testing
6 years ago
moneromooo-monero 438d52deaf
remove epee from link lines where it's redundant
6 years ago
luigi1111 3ad4ecd4ff
Merge pull request #3982
6 years ago
luigi1111 cb130c7590
Merge pull request #3861
6 years ago
stoffu 0cf80baea4
net_node: resolve host for node addresses given via command line flags
6 years ago
stoffu 08b85a8e00
cryptonote_config: add get_config to refactor x = testnet ? config::testnet::X : stagenet ? config::stagenet::X : config::X
6 years ago
moneromooo-monero de1ffe07b1
p2p: warn when no incoming connections are seen for a while
6 years ago
moneromooo-monero 1590183965
p2p: fix fallback seed node usage
6 years ago
rbrunner7 f9d0827bba Fix broken interactive daemon 'limit' commands plus RPC calls
6 years ago
anonimal 6b85398031
Build: update CMake and p2p for in-tree miniupnp
6 years ago
anonimal 859db52fda
CMake: update new location of in-tree miniupnpc
6 years ago
Riccardo Spagni 5053f8f40b
Merge pull request #3502
6 years ago
moneromooo-monero 11c933e137
fix lambda compile error on openbsd
6 years ago
stoffu 5f6647934b
p2p: correct port number for seed nodes
6 years ago
moneromooo-monero 523371c042
p2p: fix network ID being uninitialised when using exclusive peers
6 years ago
stoffu af773211cb
Stagenet
6 years ago
Riccardo Spagni 299af8e43e
Merge pull request #3290
6 years ago
whythat 1d28c0d8a9 p2p: restore m_testnet assignment lost during rebase
6 years ago
stoffu 10f78f63f1
p2p: need libcryptonote_core due to arg_testnet_on being used
6 years ago
whythat b3b2d4d20c options: add testnet option dependencies
6 years ago
whythat 05a12ccc2d options: remove testnet-* options
6 years ago
Riccardo Spagni ef91d6e61e
Merge pull request #3196
6 years ago
Riccardo Spagni f4a6bc79d9
Merge pull request #3226
6 years ago
Riccardo Spagni a54247b993
Merge pull request #3221
6 years ago
moneromooo-monero 2e3e90acbe
pass large parameters by const ref, not value
6 years ago
moneromooo-monero 2e584dcb1f
p2p: do not try to connect to peers in offline mode
6 years ago
Erik de Castro Lopo 32c0f908cd Allow the number of incoming connections to be limited
6 years ago
Erik de Castro Lopo d609a2c164 Rename delete_connections to delete_out_connections
6 years ago
Erik de Castro Lopo b927c0fc7a Rename connections_count to max_out_connection_count
6 years ago
moneromooo-monero eda9fb5b98
p2p: fix testnet/mainnet port mixup
6 years ago
Riccardo Spagni a4ae78a335
Merge pull request #3145
6 years ago
xmr-eric 18216f19dd Update 2018 copyright
6 years ago
moneromooo-monero ab58b150ef
p2p: fix picking peers off an empty gray list
6 years ago
moneromooo-monero fd1dfac5d2
p2p: don't lookup seed IPs if using an exclusive peer
6 years ago
moneromooo-monero b50182aee7
p2p: don't connect to seeds if using an exclusive peer
6 years ago
stoffu 6d8b29ef28
fix some link errors in debug mode for macos
6 years ago
Riccardo Spagni c611cca462
Merge pull request #2928
6 years ago
moneromooo-monero fe568db83d
p2p: use size_t for arbitrary counters instead of uint8_t
7 years ago
Riccardo Spagni 066fd7aced
Merge pull request #2877
7 years ago
moneromooo-monero bb89ae8b20
move connection_basic and network_throttle from src/p2p to epee
7 years ago
moneromooo-monero 4abf25f3c9
cryptonote_core does not depend on p2p anymore
7 years ago
moneromooo-monero 09ce03d612
move includes around to lessen overall load
7 years ago
Riccardo Spagni 8da24c2a57
Merge pull request #2878
7 years ago
moneromooo-monero d28c388f88
p2p: stop net server before closing starting connections
7 years ago
moneromooo-monero 7696e84952
core: make --offline also disable DNS lookups
7 years ago
rbrunner7 cf5f623616 Corrections in rate limiting / trottle code, especially in 'out' direction
7 years ago
Riccardo Spagni edebe4e3b6
Merge pull request #2736
7 years ago
moneromooo-monero 082db75f28
move cryptonote command line options to cryptonote_core
7 years ago
moneromooo-monero 383ff4f689
remove "using namespace std" from headers
7 years ago
moneromooo-monero 7dbf76d0da
Fix an object lifetime bug in net load tests
7 years ago
Lee Clagett 8b00687735 Upgrades to epee::net_utils::network_address
7 years ago
moneromooo-monero 8e0670c684
version: fix link to new version strings
7 years ago
Riccardo Spagni c2346c6c59
Merge pull request #2424
7 years ago
Riccardo Spagni b911130a46
Merge pull request #2442
7 years ago
moneromooo-monero 1399e26d7e
net_peerlist: remove dead code
7 years ago
Riccardo Spagni 174f2fb4da
Merge pull request #2428
7 years ago
Riccardo Spagni 07312a7d6e
Merge pull request #2302
7 years ago
stoffu e29282d208
build: auto update version info without manually deleting version.h
7 years ago
Riccardo Spagni 75563db6e3
Merge pull request #2376
7 years ago
moneromooo-monero 054054c92f
p2p: disable gray list housekeeping when an exclusive node is given
7 years ago
Riccardo Spagni 5551fcf60b
Merge pull request #2329
7 years ago
MaxXor e3680b6936 Rename m_listenning_port to m_listening_port
7 years ago
MaxXor a1ea475fff Delete UPnP port mapping on exit
7 years ago
moneromooo-monero 5524bc3151
print peer id in 0 padded hex for consistency
7 years ago
moneromooo-monero e3c4395ab7
p2p: init hashes after deserializing a network address
7 years ago
moneromooo-monero 70b8c6d77a
cryptonote_protocol: misc fixes to the new sync algorithm
7 years ago
moneromooo-monero ef005f5e72
p2p: add a couple early outs when the stop signal is received
7 years ago
Riccardo Spagni 4bfb58328d
Merge pull request #2282
7 years ago
Riccardo Spagni f980b2ca89
Merge pull request #2277
7 years ago
Riccardo Spagni 74522c7e84
Merge pull request #2236
7 years ago
moneromooo-monero cb2d5110ff
Tweak net logs so we get more info on why networking can't start
7 years ago
moneromooo-monero 7fdc178abb
p2p: fix random peer index being too large
7 years ago
moneromooo-monero 6ce769c123
p2p: get net log spam down a bit
7 years ago
moneromooo-monero 7591c528d0
p2p: fallback on seed nodes if we can't make a connection
7 years ago
moneromooo-monero e49f6d439d
net_node: fix m_in_timedsync initialization
7 years ago
Riccardo Spagni 6db8a60a18
Merge pull request #2149
7 years ago
Riccardo Spagni ea46a5527a
Merge pull request #2234
7 years ago
Riccardo Spagni 9b0daf49db
Merge pull request #2220
7 years ago
Riccardo Spagni 43c6e452fa
Merge pull request #2219
7 years ago
Riccardo Spagni a6ea26e7fa
Merge pull request #2215
7 years ago
moneromooo-monero 5be43fcdba
cryptonote_protocol_handler: sync speedup
7 years ago
moneromooo-monero 41f935ddb2
network_throttle: remove unneeded heap allocations
7 years ago
moneromooo-monero c6ba7d110f
p2p: move m_in_timedsync from connection_context to p2p_connection_context
7 years ago
moneromooo-monero 214fd81e93
some include cleanup
7 years ago
moneromooo-monero 04ebfbfefa
p2p: close connections when exiting
7 years ago
moneromooo-monero 9a10148c01
p2p: fix thread leak
7 years ago
moneromooo-monero 06aea2cf0a
move get_proof_of_trust_hash from util.h to p2p_protocol_defs.h
7 years ago
moneromooo-monero 8f96cfc20a
Remove typeid use in network_address
7 years ago
Riccardo Spagni f31b89012d
Merge pull request #2073
7 years ago
Howard Chu 07c4276cbe
Don't issue a new timedsync while one is already in progress
7 years ago
moneromooo-monero 072102cfd2
abstracted nework addresses
7 years ago
Riccardo Spagni ed09652a17
Merge pull request #1701
7 years ago
moneromooo-monero c1c9eeaaf7
p2p: use the fallback seed IPs when not enough seeds are found
7 years ago
Miguel Herranz 1a7e18bfdf Make gray peer selection uniform
7 years ago
Miguel Herranz f3be9991d7 Make get_random_gray_peer distribution uniform
7 years ago
Riccardo Spagni 72deb4846d
updated fallback nodes
7 years ago
Riccardo Spagni c3599fa7b9
update copyright year, fix occasional lack of newline at line end
7 years ago
moneromooo-monero e74b3ab5f7
core: add p2p bind port options from net_node
7 years ago
moneromooo-monero d43fde8a9b
network_throttle: demote spammy logs to TRACE
7 years ago
moneromooo-monero 8ec2a8d2b0
net_node: fix spurious warning about using uninitialized data
7 years ago
Miguel Herranz 8277e67f11 Add anchor connections
7 years ago
kenshi84 8027ce0c75 extract some basic code from libcryptonote_core into libcryptonote_basic
7 years ago
Riccardo Spagni fcb299b4ae
Merge pull request #1641
7 years ago
Riccardo Spagni f9e60dcd55
Merge pull request #1617
7 years ago
Miguel Herranz ca94d0a43c Separate data per P2P port
7 years ago
Miguel Herranz 8141973e00 Remove unreachable returns
7 years ago
Miguel Herranz 0644eed772 Remove boost/foreach.cpp includes
7 years ago
Miguel Herranz 36dd3e238f Replace BOOST_REVERSE_FOREACH with ranged for
7 years ago
Miguel Herranz 629e3101ab Replace BOOST_FOREACH with C++11 ranged for
7 years ago
Riccardo Spagni add98edfc3
Merge pull request #1609
7 years ago
Riccardo Spagni f798a2ab85
Merge pull request #1606
7 years ago
moneromooo-monero 4cdf0a35c9
p2p: always recreate a new peer id on startup
7 years ago
moneromooo-monero f8b97aef34
p2p: show ban/unban logs by default again
7 years ago
Miguel Herranz 1c4d65c011 Rename method to get_random_gray_peer
7 years ago
Miguel Herranz 03a54ee0c9 Fix logging that broke after rebasing
7 years ago
Miguel Herranz 6bdd3a59b5 Use set_peer_just_seen to keep last_seen updated
7 years ago
Miguel Herranz 82dbeedd1b Add gray peer list housekeeping system
7 years ago
Riccardo Spagni 3db3a6ee1a
Merge pull request #1593
7 years ago
Riccardo Spagni d10425025a
Merge pull request #1572
7 years ago
Miguel Herranz cbcdf8ad35 Honor depth in get_peerlist_head method
7 years ago
Miguel Herranz 0e0e6c5f39 Reduce to one connection per IP
7 years ago
moneromooo-monero 5833d66f65
Change logging to easylogging++
7 years ago
Miguel Herranz 3f269e988c Limit incoming connections from the same IP
7 years ago
Chris Vickio fcf66925c1 remove unused fields from network_throttle (unused-private-field warning)
7 years ago
kenshi84 2ac8007544 also use portable serializer for boost_serialization_helper.h and net_node.inl, completely adandon boost/archive/binary_oarchive.hpp
8 years ago
Riccardo Spagni f2ea2afb77
Merge pull request #1398
8 years ago
Riccardo Spagni 8086379680
Merge pull request #1397
8 years ago
Riccardo Spagni 4a0be41dfe
Merge pull request #1396
8 years ago
Pierre Boyer f4772bae81 Fix a few minor typos
8 years ago
moneromooo-monero 3f7d6fb57d
Fix delayed exit when syncing
8 years ago
moneromooo-monero 7c0dd5e46c
net_node: drop connections from banned IPs after looping through connections
8 years ago
moneromooo-monero 4adde0423b
p2p: possibly fix crash in relay_blocks
8 years ago
moneromooo-monero 17b6bd6d35
Fix DNS failures in offline mode preventing daemon startup
8 years ago
Dion Ahmetaj d61bd8187e add lightweight block propagation ("fluffy blocks")
8 years ago
Riccardo Spagni e72b6a7ade
Merge pull request #1165
8 years ago
moneromooo-monero e57379a819
p2p: drop any existing connection to a banned IP
8 years ago
Randi Joseph 78b13d6dac Cleanup. Dropped "bit" from bitmonero.
8 years ago
Randi Joseph 1e6aedba8b Cleanup. Dropped "bit" from bitmonero.
8 years ago
Riccardo Spagni 70bd7d8871
remove dead backup seed nodes, add new ones
8 years ago
redfish e1c7af35d4 cmake: transitive deps and remove deprecated LINK_*
8 years ago
moneromooo-monero c2ad9caf01
allow peers without port
8 years ago
Riccardo Spagni ba61f37f9c
Merge pull request #846
8 years ago
Riccardo Spagni e97d96ccfb
Merge pull request #775
8 years ago
redfish 68987416ad src: p2p: add exception spec to throwing destructors
8 years ago
moneromooo-monero 7450656bf3
net_node: fix connection leak when ping fails with bad response
8 years ago
moneromooo-monero ef4ff4252a
connection_basic: avoid gratuitous exception
8 years ago
moneromooo-monero f7301c3563
Revert "Print stack trace upon exceptions"
8 years ago
moneromooo-monero fff238ec94
Print stack trace upon exceptions
8 years ago
moneromooo-monero 474e4c00f0
p2p: lock access to the blocked ips map
8 years ago
Howard Chu b937a2c915 Use boost::thread instead of std::thread
8 years ago
Howard Chu 7c86c5997d Use boost::thread instead of std::thread
8 years ago
binaryFate 0100e951d3 'max limit of...' is redundant wording, rephrase
8 years ago
Riccardo Spagni de03926850
updated copyright year
9 years ago
moneromooo-monero af2106122d
net_peerlist: move a couple functions from public to private
9 years ago
moneromooo-monero 17ff6f2114
net_node: fix a hang on exit
9 years ago
moneromooo-monero 3f2970fadb
Add missing semicolons after log statements
9 years ago
Riccardo Spagni 64ff3c7201
Merge pull request #543
9 years ago
moneromooo-monero 02827d5155
p2p: minor log formatting fix
9 years ago
warptangent 725acc7f17
Replace tabs with two spaces for consistency with rest of codebase
9 years ago
Riccardo Spagni e175205e6e
Merge pull request #527
9 years ago
moneromooo-monero 336b37580f
Register daemon command line arguments to core if they're used in core
9 years ago
Riccardo Spagni b87f073a60
Merge pull request #526
9 years ago
moneromooo-monero 2c83055597
net_node: add a --offline argument
9 years ago
moneromooo-monero 34e388949d
p2p: failure to load p2pstate.bin is not fatal anymore
9 years ago
moneromooo-monero 38ceb73848
add RPC calls and commands to get/set bans
9 years ago
moneromooo-monero 7bc4dce6ed
net_node: allow bans for custom amounts of time
9 years ago
Javier Smooth 4cea2b13b2 Add IP blocking for misbehaving nodes (adapted from Boolberry)
9 years ago
Javier Smooth 9c64b12320 quiet down p2p logging a bit
9 years ago
warptangent ee27559724
Update to compile with latest miniupnpc
9 years ago
warptangent 7424cfc7b8
net_node: Use DNS resolver singleton
9 years ago
moneromooo-monero 7764cd7006
net_node: skimplify rate limit code, and log as appropriate
9 years ago
NoodleDoodleNoodleDoodleNoodleDoodleNoo e5d2680094 ** CHANGES ARE EXPERIMENTAL (FOR TESTING ONLY)
9 years ago
Thomas Winget d7df08d6ec
properly decrement p2p socket count
9 years ago
Riccardo Spagni e01d32e52d
cleaning up, removing redundant files, renaming, fixing incorrect licenses
9 years ago
moneromooo-monero 39a9508a20
net_peerlist: fix grayt/white naming mismatch
9 years ago
Riccardo Spagni 8cd6072090
Merge pull request #292
9 years ago
warptangent 696225321f
Fix compile for GCC 5.1.0
9 years ago
warptangent c44755a5e2
Build seed node list without duplicates
9 years ago
moneromooo-monero f278fe3883
s/terget/target/
9 years ago
moneromooo-monero d8ee0a95c7
print limits when running limit commands with no arguments
9 years ago
Sergey Kazenyuk 867e98d739 Merge branch 'clang_fixes' into clang_fixes-master
9 years ago
Sergey Kazenyuk 2ff0d757eb Fix missing virtual destructor
9 years ago
rfree2monero 9bfa593eee [fix] Network 1.8: unlimited the RPC connections
9 years ago
Riccardo Spagni 6f0d93097e
Merge pull request #252
9 years ago
rfree2monero 618f20ce49 Network 1.7; Quieted the debug a bit.
9 years ago
Riccardo Spagni 0823c98bbc
update hardcoded fallback seeds
9 years ago
rfree2monero c511abf005 remerged; commands JSON. logging upgrade. doxygen
9 years ago
rfree2monero 3cbdf198f1 Merge remote-tracking branch 'monero-official/master' into network-1.6-work1
9 years ago
rfree2monero f79821ac7e fix locking in count-peers thread (2)
9 years ago
rfree2monero 0198ffb220 2014 network limit 1.3 fix log/path/data +utils
9 years ago
Thomas Winget 9193d6fb5b
Daemonize changes pulled in -- daemon builds
9 years ago
rfree2monero ae2a50659f 2014 network limit 1.2 +utils +toc -doc -drmonero
9 years ago
rfree2monero 5ce4256e3d 2014 network limit 1.1 +utils +toc -doc -drmonero
9 years ago
rfree2monero eabb519605 2014 network limit 1.0a +utils +toc -doc -drmonero
9 years ago
warptangent f74792b778
Fix seed node threaded DNS lookup
9 years ago
Riccardo Spagni 24ddfa792e
Merge pull request #206
10 years ago
Riccardo Spagni f4b69d553a
year updated in license
10 years ago
Thomas Winget 1b462261b8
std::atomic_flag has no copy/move constructor, can't have a vector
10 years ago
Thomas Winget df53c0a595
small typo in previous commit
10 years ago
Thomas Winget 4a53898764
DNS seed timeout and fallback
10 years ago
Riccardo Spagni 18281f4d20 remove dangling upnp port mappings, updated miniupnpc
10 years ago
Thomas Winget 30caebfce3 reload checkpoints file every ~hr and print if any fail
10 years ago
Riccardo Spagni d1a7f699c6
use boost::asio::ip::address because cross-platform plz
10 years ago
Thomas Winget 3fb0fc020f seed node DNS code updated to use DNSResolver
10 years ago
Thomas Winget 578050e91d ipv4 and ipv6 resolution working
10 years ago
Zachary Michaels 9db881864d Fix time_t serialization issue
10 years ago
Zachary Michaels 120c84d04f Make P2P use the testnet data dir
10 years ago
Zachary Michaels 23525655fa Replace macro with equivalent function call
10 years ago