Gav Wood
87770dad0b
More logging stuff.
Fixes #1680
10 years ago
Gav Wood
55b9038d6f
More awesome logging stuff.
10 years ago
Gav Wood
dad9a32d33
Better logging.
10 years ago
Gav Wood
86804fedf1
Fix deadlock.
10 years ago
Gav Wood
a5f2dc881e
New strategy - send all new blocks out, even when (re)syncing (though
only when resyncing < 20 blocks).
Make a note of bad transactions to avoid re-importing when bad nodes
pass them to us.
10 years ago
subtly
2dbee779c8
naming. consistent use of uint16_t for port.
10 years ago
subtly
280df58d94
More explicit initialization of nodes and peers.
10 years ago
subtly
6cad687c3b
Fix neighbours timeout to timeout-based on destination nodeid and not nodeid of the query. Update timeout to allow multiple packets.
10 years ago
subtly
7492c9c833
fix typo
10 years ago
subtly
8cbf9439be
remove unneeded cast
10 years ago
subtly
dd71358825
proper neighbours packet size w/test
10 years ago
subtly
49c4bba993
cleanup/prep endpoint semantics for #1558 and #1557
10 years ago
subtly
08a913921b
Drop unsolicited neighbours packets. Resolves #1556 .
10 years ago
subtly
a0e3e82689
NodeTable bug fixes. Fix rlp message size calculation for neighbours packet. Increase refersh interval. Fix log output.
10 years ago
subtly
521bf5b384
style
10 years ago
subtly
29f40bff0f
makePeer and support setting listen IP.
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
015c1681fb
adopt node IP address from udp header when ping.ipAddress isn't public
10 years ago
Gav Wood
22b45721d8
Better NodeTable error detection.
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
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
a78eee5861
bump discovery version
10 years ago
subtly
eaa5908a3d
code review. collapse if statement.
10 years ago
subtly
f5e03f5550
code review
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
subtly
b4661aeb4c
Reduce verbosity of node table logging.
10 years ago
Gav Wood
2c6b18f01b
Add EVMJIT.
10 years ago
subtly
57f6aacf9e
update last discovery timepoint
10 years ago
subtly
3291bc1d9a
perform node discovery when there aren't enough nodes
10 years ago
subtly
7a126cf223
update nodebucket modification time when node is inserted or bucket is refreshed so bucket-refresh doesn't loop
10 years ago
subtly
a153d078bc
Prevent infinite sleep on connect. Write settings before shutdown of web3.
10 years ago
subtly
a406402a4c
Fixes for uninit. shared pointers and add const&.
10 years ago
subtly
e9538b23c8
updates for code-review
10 years ago
Felix Lange
3d2e72ce77
libp2p: distinguish discovery packets by packet type
10 years ago
subtly
98a2d193c2
updates and fixes for code review
10 years ago
subtly
a73f1fa7c5
add packet-type. prep for node-discovery interop.
10 years ago
subtly
8845967a1d
coding standards
10 years ago
subtly
c01b6da434
cleanup
10 years ago
subtly
f63e53f735
cleanup, sanity checks, and last pass of noting todos.
10 years ago
subtly
f0a06fa115
evictions logic
10 years ago
subtly
75f231419a
Connectivity and nodetable callbacks. Disable stale code.
10 years ago