- 14 May, 2015 16 commits
-
-
Jeffrey Wilcke authored
Introduced default unlock duration when an account is unlocked from t…
-
Bas van Kervel authored
-
Jeffrey Wilcke authored
p2p/nat: fix UPnP auto discovery
-
Jeffrey Wilcke authored
Make read of ethash hashrate atomic and update ethash godep
-
Jeffrey Wilcke authored
eth/downloader: fix deliveries to check for sync cancels
-
Jeffrey Wilcke authored
removed invalid filename characters
-
Felix Lange authored
Some of the dependencies use package log. This change ensures that the log output looks uniform and respects glog flags.
-
Felix Lange authored
People stil get confused about the messages. This commit changes the levels so that the only thing printed at the default level (info) is a successful mapping.
-
Jeffrey Wilcke authored
Created separate family and ancestors environment objects
-
Felix Lange authored
-
Felix Lange authored
The test listens for multicast UDP packets on the default interface because I couldn't get it to work reliably on loopback without massive changes to goupnp. This means that the test might fail when there is a UPnP-enabled router attached on that interface. I checked that locally by looping the test and it passes reliably because the local SSDP server always responds faster.
-
Vitalik Buterin authored
-
Gustav Simonsson authored
-
Felix Lange authored
Concurrent calls to Interface methods on autodisc could return a "not discovered" error if the discovery did not finish before the call. autodisc.wait expected the done channel to carry the found Interface but it was closed instead. The fix is to use sync.Once for now, which is easier to get right. And there is a test. Finally. This will have to change again when we introduce re-discovery.
-
Vitalik Buterin authored
-
Vitalik Buterin authored
-
- 13 May, 2015 18 commits
-
-
Felix Lange authored
p2p/discover: fix out-of-bounds slicing for chunked neighbors packets
-
Felix Lange authored
The code assumed that Table.closest always returns at least 13 nodes. This is not true for small tables (e.g. during bootstrap).
-
Jeffrey Wilcke authored
Update keystore code comments
-
Felix Lange authored
Better UDP & interop. Limit all received datagrams to 1280bytes.
-
subtly authored
-
subtly authored
-
subtly authored
We don't have a UDP which specifies any messages that will be 4KB. Aside from being implemented for months and a necessity for encryption and piggy-backing packets, 1280bytes is ideal, and, means this TODO can be completed! Why 1280 bytes? * It's less than the default MTU for most WAN/LAN networks. That means fewer fragmented datagrams (esp on well-connected networks). * Fragmented datagrams and dropped packets suck and add latency while OS waits for a dropped fragment to never arrive (blocking readLoop()) * Most of our packets are < 1280 bytes. * 1280 bytes is minimum datagram size and MTU for IPv6 -- on IPv6, a datagram < 1280bytes will *never* be fragmented. UDP datagrams are dropped. A lot! And fragmented datagrams are worse. If a datagram has a 30% chance of being dropped, then a fragmented datagram has a 60% chance of being dropped. More importantly, we have signed packets and can't do anything with a packet unless we receive the entire datagram because the signature can't be verified. The same is true when we have encrypted packets. So the solution here to picking an ideal buffer size for receiving datagrams is a number under 1400bytes. And the lower-bound value for IPv6 of 1280 bytes make's it a non-decision. On IPv4 most ISPs and 3g/4g/let networks have an MTU just over 1400 -- and *never* over 1500. Never -- that means packets over 1500 (in reality: ~1450) bytes are fragmented. And probably dropped a lot. Just to prove the point, here are pings sending non-fragmented packets over wifi/ISP, and a second set of pings via cell-phone tethering. It's important to note that, if *any* router between my system and the EC2 node has a lower MTU, the message would not go through: On wifi w/normal ISP: localhost:Debug $ ping -D -s 1450 52.6.250.242 PING 52.6.250.242 (52.6.250.242): 1450 data bytes 1458 bytes from 52.6.250.242: icmp_seq=0 ttl=42 time=104.831 ms 1458 bytes from 52.6.250.242: icmp_seq=1 ttl=42 time=119.004 ms ^C --- 52.6.250.242 ping statistics --- 2 packets transmitted, 2 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 104.831/111.918/119.004/7.087 ms localhost:Debug $ ping -D -s 1480 52.6.250.242 PING 52.6.250.242 (52.6.250.242): 1480 data bytes ping: sendto: Message too long ping: sendto: Message too long Request timeout for icmp_seq 0 ping: sendto: Message too long Request timeout for icmp_seq 1 Tethering to O2: localhost:Debug $ ping -D -s 1480 52.6.250.242 PING 52.6.250.242 (52.6.250.242): 1480 data bytes ping: sendto: Message too long ping: sendto: Message too long Request timeout for icmp_seq 0 ^C --- 52.6.250.242 ping statistics --- 2 packets transmitted, 0 packets received, 100.0% packet loss localhost:Debug $ ping -D -s 1450 52.6.250.242 PING 52.6.250.242 (52.6.250.242): 1450 data bytes 1458 bytes from 52.6.250.242: icmp_seq=0 ttl=42 time=107.844 ms 1458 bytes from 52.6.250.242: icmp_seq=1 ttl=42 time=105.127 ms 1458 bytes from 52.6.250.242: icmp_seq=2 ttl=42 time=120.483 ms 1458 bytes from 52.6.250.242: icmp_seq=3 ttl=42 time=102.136 ms
-
Gustav Simonsson authored
-
Péter Szilágyi authored
eth/downloader: fix nil panic caused by wrong variable use
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
Jeffrey Wilcke authored
eth/downloader: fix active peer shadowing, polish func names
-
Bas van Kervel authored
-
Péter Szilágyi authored
-
Jeffrey Wilcke authored
Fix hex conversion in --unlock and log when successful
-
- 12 May, 2015 6 commits
-
-
Gustav Simonsson authored
-
obscuren authored
-
obscuren authored
-
obscuren authored
-
Jeffrey Wilcke authored
Improve key store crypto
-
Gustav Simonsson authored
-