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
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
f5e03f5550
code review
10 years ago
chriseth
79fb35fd69
Exception-throwing assert.
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
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
eeeb842192
update doc for disabled code
10 years ago
subtly
529fda3a95
lifecycle management of handshake sessions
10 years ago
subtly
fc1ea097aa
packet-type interop w/go
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
subtly
d137581c7f
authenticated capability (hello) and handshake authentication
10 years ago
jhuntley
6d62e3ab26
Revert all asio.h includes except for in 2 files, DebuggingStateWrapper.h and Transact.cpp. After enabling WIN32_LEAN_AND_MEAN, all the asio.h include issues, commit 20b6e24ffcab088e71092e07030a377d3135da3c, went away.
10 years ago
jhuntley
0bf7d15a57
asio.h and windows.h build comments as per request.
10 years ago
jhuntley
e1e7b227df
Avoid boost include order issue on windows:
http://stackoverflow.com/questions/9750344/boostasio-winsock-and-winsock-2-compatibility-issue
http://stackoverflow.com/questions/9750344/boostasio-winsock-and-winsock-2-compatibility-issue/16288859#16288859
Make sure boost/asio.hpp is included before windows.h.
10 years ago
Lefteris Karapetsas
3874c78d06
More style fixes
10 years ago
subtly
69e48c2707
initial rlpx framing classes
10 years ago
subtly
e79d427902
update host for ecies interop. test sha3 output of interim digest.
10 years ago
Lefteris Karapetsas
4a9b2fa0c5
StructuredLogger's functions all become static and call the singleton getter.
10 years ago
Lefteris Karapetsas
0fba1cc063
Adding number of connections in the p2p events
10 years ago
Lefteris Karapetsas
623d640fb5
StructuredLogger becomes a global singleton class
10 years ago
Lefteris Karapetsas
6c4faef732
Add remote version to p2pconnected log event
10 years ago
Lefteris Karapetsas
643499e491
Add p2p disconnected structured log event
10 years ago
Lefteris Karapetsas
ba81493976
StructuredLogger propagated as a const reference
10 years ago
Lefteris Karapetsas
d0c1c510bd
Adding StructuredLogger class and using it in various places
- Structured logger is injected as a dependency where needed.
- Still a work in progress
10 years ago
Lefteris Karapetsas
5695d0ee25
Adding argument for structured logging and propagating it forward
- Also style fixes when problems encountered
10 years ago
subtly
30e75e2659
initial ecies interop w/go
10 years ago
subtly
953bfd2400
start of ecies interop with go
10 years ago
subtly
a0f0812fcb
fix #1055
10 years ago
Gav Wood
1fce862e1b
Improvement to AZ - confirmation disabler.
Fix network crash.
10 years ago
Gav Wood
2c6b18f01b
Add EVMJIT.
10 years ago
subtly
f6fc86e992
fix curlies. remove unused transition methods.
10 years ago
subtly
8e8b6de255
advance transition
10 years ago
subtly
4ebc2f8320
reenable sessions. more refactor.
10 years ago
subtly
f6d5aa75a0
refactor of handshake. first pass, compiles.
10 years ago
subtly
ecb06feb85
verification of and placeholder for capabilities handshake
10 years ago
subtly
ec4ba8e532
fix magic. disable ping for now, as it can trigger prior to hello packet.
10 years ago
subtly
4814303c09
initial handshake on the wire
10 years ago
subtly
261c04314f
fix snapshot when nodetable #1055
10 years ago
Gav Wood
0696ee87da
Windows compile fix.
10 years ago
subtly
3291bc1d9a
perform node discovery when there aren't enough nodes
10 years ago
subtly
38230cb1e4
Increase connect timeout for upnp initialization and fix resolver.
10 years ago
subtly
a153d078bc
Prevent infinite sleep on connect. Write settings before shutdown of web3.
10 years ago
subtly
c60b0099c7
update last disconnect for fallback timer after successful connect.
10 years ago