aboutsummaryrefslogtreecommitdiffstats
path: root/interfaces.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@users.noreply.github.com>2019-01-30 00:39:20 +0800
committerFelix Lange <fjl@twurst.com>2019-01-30 00:50:15 +0800
commit4cd90e02e23ecf2bb11bcb4bba4fea2ae164ef74 (patch)
tree9f4752c2ead76a83998eb9aec12fb1b136cf51b6 /interfaces.go
parent1f3dfed19e0d1e0e2536d547e8fd37e9d0ad3cdf (diff)
downloadgo-tangerine-4cd90e02e23ecf2bb11bcb4bba4fea2ae164ef74.tar
go-tangerine-4cd90e02e23ecf2bb11bcb4bba4fea2ae164ef74.tar.gz
go-tangerine-4cd90e02e23ecf2bb11bcb4bba4fea2ae164ef74.tar.bz2
go-tangerine-4cd90e02e23ecf2bb11bcb4bba4fea2ae164ef74.tar.lz
go-tangerine-4cd90e02e23ecf2bb11bcb4bba4fea2ae164ef74.tar.xz
go-tangerine-4cd90e02e23ecf2bb11bcb4bba4fea2ae164ef74.tar.zst
go-tangerine-4cd90e02e23ecf2bb11bcb4bba4fea2ae164ef74.zip
p2p/discover, p2p/enode: rework endpoint proof handling, packet logging (#18963)
This change resolves multiple issues around handling of endpoint proofs. The proof is now done separately for each IP and completing the proof requires a matching ping hash. Also remove waitping because it's equivalent to sleep. waitping was slightly more efficient, but that may cause issues with findnode if packets are reordered and the remote end sees findnode before pong. Logging of received packets was hitherto done after handling the packet, which meant that sent replies were logged before the packet that generated them. This change splits up packet handling into 'preverify' and 'handle'. The error from 'preverify' is logged, but 'handle' happens after the message is logged. This fixes the order. Packet logs now contain the node ID.
Diffstat (limited to 'interfaces.go')
0 files changed, 0 insertions, 0 deletions