subtly
14e83ffb28
clarify method doc
10 years ago
subtly
5959a58071
abstract overriding tcp endpoint
10 years ago
subtly
a5d2567e81
only override tcp address if udp address is public. allow remotes which advertise 0.0.0.0.
10 years ago
subtly
89b484e3ef
better handshake error logging, esp when remote disconnects
10 years ago
subtly
015c1681fb
adopt node IP address from udp header when ping.ipAddress isn't public
10 years ago
subtly
45df4ab10f
isIPType helpers
10 years ago
subtly
1cb510dbd0
Fallback to 0.0.0.0 if bind fails. Bump handshake timeout until we switch back to secp256k1.
10 years ago
Gav Wood
22b45721d8
Better NodeTable error detection.
10 years ago
subtly
887cdf4bfb
gracefully handle old pingnode packet
10 years ago
subtly
74335368ff
add version to packet payload
10 years ago
subtly
5c5c01a6e9
fix public-key discovery ping
10 years ago
subtly
f64bf8f17a
Bug fix. Add destination node to expected discovery ping instead of ourselves.
10 years ago
subtly
6093170990
consistent and explicit use of constant for devp2p protocol version
10 years ago
subtly
7445f9020e
Merge host and nodetable network protocol version.
10 years ago
subtly
14c2e4cab8
fix net/ unit tests for nodetable updates
10 years ago
Gav Wood
65de6aaa4d
Diagnostics and API cleanup.
10 years ago
subtly
ee7608fe60
NodeTable constructor requires and listens to explicit IP address instead of defaulting to 0.0.0.0 (all addresses).
10 years ago
subtly
8cc7fb94ba
codingstandards
10 years ago
subtly
3e2572e6a2
constant for discovery protocol version
10 years ago
subtly
b8f49b0929
Ignore 0.0.0.0 addresses.
10 years ago
subtly
11c1b13e27
clarify peersAdded log. Increment failedAttempts so fallback timer goes up.
Temporarily exclude private addresses from network-restore. This exclusion will be removed when unit tests are written for local/private/public/failed-pnp scenarios.
10 years ago
subtly
360e2a32bc
update version number for save/restore of nodeTable
10 years ago
subtly
14568fc839
logging for handshake timeout
10 years ago
subtly
bc0100e48e
Add response timeout to handshake. Update cancel() to prevent race condition.
10 years ago
subtly
a78eee5861
bump discovery version
10 years ago
subtly
eaa5908a3d
code review. collapse if statement.
10 years ago
subtly
f5e03f5550
code review
10 years ago
chriseth
79fb35fd69
Exception-throwing assert.
10 years ago
subtly
29cce7b80d
remove commented code
10 years ago
subtly
46692bcf32
track pings where pubk is unknown so pongs are properly handled
correct mutex usage
notify Host of new node only when it is inserted into table
temporarily double discovery timeout until concatenated packets are supported
remove duplicate eviction-timeout entry
update node's udp endpoint when node is noted as active (fixes bug which duplicates NodeEntry)
don't note pending nodes as active, don't add pending nodes to table
change NodeEntryRemoved to NodeEntryDroppped (Remove will be permanent)
note active node after packet is processed instead of before
do not respond to unsolicited packets
store node pubk and tcp endpoint when Ping is received
fix bug in Host causing empty Peer shared-ptr to be created
10 years ago
Gav Wood
634ee69474
Extend reach of exception handling for UPnP.
10 years ago
subtly
b4661aeb4c
Reduce verbosity of node table logging.
10 years ago
subtly
bf4dedf92c
Reduce log verbosity. Fix typo for 'recving ack' error.
10 years ago
subtly
55d83c40fa
fix for -warning in cryptopp.cpp. add mutex to host iteration of peers for connect. only try to connect to as many peers as is necessary. update unit test.
10 years ago
subtly
f1efb7c3f9
fix coding standards
10 years ago
subtly
eeeb842192
update doc for disabled code
10 years ago
subtly
80edf61630
changes from code review
10 years ago
subtly
3292c58599
bugfix and doc clarification. fix test.
10 years ago
subtly
529fda3a95
lifecycle management of handshake sessions
10 years ago
subtly
fada98b8d9
update headers, docs, remove unused length argument from fixed-length read
10 years ago
subtly
41109e2b6c
docs. ensure non-random memory allocation headermac bytes.
10 years ago
subtly
5902a8c2b0
docs. better method name. remove unused code.
10 years ago
subtly
778b180282
aes256, as per the spec.
10 years ago
subtly
fc1ea097aa
packet-type interop w/go
10 years ago
subtly
4955f33797
-whitespace
10 years ago
subtly
d6c37b7562
don't deallocate keys
10 years ago
subtly
df96fcd03b
separate packet type. add coding.
10 years ago
subtly
a0aaf614f3
sharedptr wrapper class for socket
10 years ago
subtly
23a64667e3
classify handshake and begin pulling rlpx into session
10 years ago
subtly
7386ad2606
prep for framing. remove unused raw network send() methods from capabilities. bump protocol version. back out magic sequence packet prefix.
10 years ago