Gav Wood
dad9a32d33
Better logging.
10 years ago
Gav Wood
6aff7a03b1
More colourful logging.
10 years ago
Gav Wood
616cb14385
Nicer logging. Much nicer.
10 years ago
Gav Wood
04a3464606
JSON build fix.
Removal of unneeded code.
10 years ago
Gav Wood
6aaee1f711
Avoid threading issues.
10 years ago
subtly
b8f93a6b37
set socketid for logging
10 years ago
subtly
49c4bba993
cleanup/prep endpoint semantics for #1558 and #1557
10 years ago
Gav Wood
9bcedf12cb
Windows warning fix.
10 years ago
Gav Wood
13fbf06eb9
Windows warning fix.
10 years ago
Gav Wood
105be32bb4
Decent transaction import result provision.
Give network a hint about what's going on for peer backoffs.
Avoid sleeping in main loop when there's still work on.
10 years ago
subtly
591a3ceb21
Reset lastDisconnect when session is started.
10 years ago
subtly
ca0ce068c6
implicit fallback update
10 years ago
subtly
1744a32547
less tolerant connection errors
10 years ago
subtly
29f40bff0f
makePeer and support setting listen IP.
10 years ago
subtly
93593a8751
updae legacy codepath
10 years ago
Gav Wood
65de6aaa4d
Diagnostics and API cleanup.
10 years ago
subtly
f1efb7c3f9
fix coding standards
10 years ago
subtly
80edf61630
changes from code review
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
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
643499e491
Add p2p disconnected structured log event
10 years ago
Gav Wood
2c6b18f01b
Add EVMJIT.
10 years ago
Gav Wood
0696ee87da
Windows compile fix.
10 years ago
subtly
572e451bab
Added session to hostcapabilityface::peers to ensure it isn't deallocated when shared-ptr to cap is returned. Previously hosts depended on using Session however this could result in an infinite session when hostcapface::peers is processed concurrently (mutexes can make this a likely event). This will be cleaner with better integration of Session and Peer.
10 years ago
subtly
c60b0099c7
update last disconnect for fallback timer after successful connect.
10 years ago
subtly
e9538b23c8
updates for code-review
10 years ago
Gav Wood
cfea250787
Avoid pulling in unnecessary stuff.
Avoid over-warning.
10 years ago
subtly
92f9ec8c42
import/export peers and nodes
10 years ago
subtly
6381706c66
fix ping-timeouts
10 years ago
subtly
98a2d193c2
updates and fixes for code review
10 years ago
subtly
d7e3065f97
Remove unused code paths with confidence. Rename key/identity to alias. Inherit Peer from Node and update Host/Session to use Node::endpoint instead of previous Peer::address.
10 years ago
subtly
f63e53f735
cleanup, sanity checks, and last pass of noting todos.
10 years ago
subtly
7ac5c12978
peerinfo created closer to authentication (when it's known). fixes missing m_peer on connect.
10 years ago
subtly
75f231419a
Connectivity and nodetable callbacks. Disable stale code.
10 years ago
subtly
94c09508fd
Merging in new data structure for nodes from node-table. End result will be consolidation into NodeId, Node (id and endpoints), NodeEntry (as in table), and Peer (connected node as in host). Rename PeerInfo to PeerSessionInfo. Rename NodeInfo to PeerInfo. PeerSessionInfo which is information about the Peer connection and will be split/merged into Node and PeerInfo. Add node-table callbacks for Host to perform connect node if there are not enough nodes.
10 years ago
subtly
fa11fc0149
Persist host identifier to disk. Replace noteNode with addNode. Add udp node port to connect. Add addNode to node table which pings node, potentially adding node to table if node respons. Rename NodeEndpoint to NodeIPEndpoint.
10 years ago
subtly
da9668c0f5
Pass 2 integrating node table. Pruning and merging old node lifecycle logic with new.
Begin moving node identification and authentication into Host so session can be directly-constructed with NodeInfo and is not created until after authentication.
Require session to be passed a valid node.
10 years ago
subtly
5436f90f04
Pass 1 integrating node table. TBD: whether to store/relay cap info.
10 years ago
Gav Wood
ac583f503f
Implemented 256-long history for PREVHASH, though still optional.
10 years ago
subtly
71bf6e7ede
udp != tcp. history-commit.
10 years ago
subtly
a23251e9ac
network: move static system-network functions into Network class. Further simplifaction of network lifecycle.
10 years ago
subtly
24bbbefd5d
pr fixes. refactor of network code. moved network-start methods into static methods, as they can only be called during certain stages or do not need Host class. Mutex start/stop. Added m_ifAddresses and removed m_addresses. Rewrite determinePublic. IP address preference is now: user-supplied public > user-supplied private (if localnetwork enabled) > first public4 interface > upnp4 > first private4 interface (if localnetwork enabled) > unspecified. IPv6 addresses are currently ignored (unless manually entered by user) until link-local addresses can be properly detected.
10 years ago
Gav Wood
844a50d2bb
Fix for moving to super-low number of ideal peers.
10 years ago