- Sep 28, 2016
-
-
ken10100147 authored
-
- Sep 16, 2016
-
-
Felix Lange authored
Port mapper auto discovery used to run immediately after parsing the --nat flag, giving it a slight performance boost. But this is becoming inconvenient because we create node.Node for all geth operations including account management and bare chain interaction. Delay autodiscovery until the first use instead, which avoids any network interaction until the node is actually started.
-
- Jul 14, 2016
-
-
Nchinda Nchinda authored
-
- Jul 12, 2016
-
-
Ville Sundell authored
-
- May 18, 2016
-
-
Felix Lange authored
This silences a go vet message about copying p2p.Server in package node.
-
- May 02, 2016
-
-
Felix Lange authored
-
Felix Lange authored
-
- Apr 15, 2016
-
-
Felix Lange authored
-
- Apr 03, 2016
-
-
Felix Lange authored
With the Ethereum Homestead fork is now behind us, we can assume that everyone runs an EIP-8 capable client.
-
- Mar 14, 2016
-
-
Péter Szilágyi authored
-
- Feb 24, 2016
-
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
- Feb 21, 2016
-
-
Ricardo Catalinas Jiménez authored
As we aren't really using the standarized SHA-3
-
- Feb 19, 2016
-
-
Felix Lange authored
-
Felix Lange authored
-
- Jan 22, 2016
-
-
Felix Lange authored
On Windows, UDPConn.ReadFrom returns an error for packets larger than the receive buffer. The error is not marked temporary, causing our loop to exit when the first oversized packet arrived. The fix is to treat this particular error as temporary. Fixes: #1579, #2087 Updates: #2082
-
- Dec 17, 2015
-
-
Felix Lange authored
The test expected the timeout to fire after a matcher for the response was added, but the timeout is random and fired sooner sometimes.
-
Felix Lange authored
This change makes it possible to add peers without providing their IP address. The endpoint of the target node is resolved using the discovery protocol.
-
Felix Lange authored
This change simplifies the dial scheduling logic because it no longer needs to track whether the discovery table has been bootstrapped.
-
Felix Lange authored
-
- Dec 03, 2015
-
-
Péter Szilágyi authored
-
- Nov 30, 2015
-
-
Gustav Simonsson authored
thanks to Felix Lange (fjl) for help with design & impl
-
- Nov 27, 2015
-
-
Péter Szilágyi authored
-
- Oct 29, 2015
-
-
Felix Lange authored
-
Felix Lange authored
-
- Oct 28, 2015
-
-
Péter Szilágyi authored
-
- Sep 30, 2015
-
-
Felix Lange authored
The strict matching can get in the way of protocol upgrades.
-
Felix Lange authored
-
Felix Lange authored
nodeDB.querySeeds was not safe for concurrent use but could be called concurrenty on multiple goroutines in the following case: - the table was empty - a timed refresh started - a lookup was started and initiated refresh These conditions are unlikely to coincide during normal use, but are much more likely to occur all at once when the user's machine just woke from sleep. The root cause of the issue is that querySeeds reused the same leveldb iterator until it was exhausted. This commit moves the refresh scheduling logic into its own goroutine (so only one refresh is ever active) and changes querySeeds to not use a persistent iterator. The seed node selection is now more random and ignores nodes that have not been contacted in the last 5 days.
-
- Aug 21, 2015
-
-
Péter Szilágyi authored
-
- Aug 19, 2015
-
-
Jeffrey Wilcke authored
This reverts commit 5c949d3b.
-
Felix Lange authored
PR #1621 changed Table locking so the mutex is not held while a contested node is being pinged. If multiple nodes ping the local node during this time window, multiple ping packets will be sent to the contested node. The changes in this commit prevent multiple packets by tracking whether the node is being replaced.
-
Felix Lange authored
-
Felix Lange authored
Might solve #1579
-
- Aug 12, 2015
-
-
Felix Lange authored
We had the wrong value (12) since forever.
-
- Aug 11, 2015
-
-
Felix Lange authored
If the timeout fired (even just nanoseconds) before the deadline of the next pending reply, the timer was not rescheduled. The timer would've been rescheduled anyway once the next packet was sent, but there were cases where no next packet could ever be sent due to the locking issue fixed in the previous commit. As timing-related bugs go, this issue had been present for a long time and I could never reproduce it. The test added in this commit did reproduce the issue on about one out of 15 runs.
-
Felix Lange authored
Table.mutex was being held while waiting for a reply packet, which effectively made many parts of the whole stack block on that packet, including the net_peerCount RPC call.
-
- Aug 06, 2015
-
-
Felix Lange authored
-
Felix Lange authored
Not closing the table used to be fine, but now the table has a database.
-
- Aug 04, 2015
-
-
Felix Lange authored
Package fdtrack logs statistics about open file descriptors. This should help identify the source of #1549.
-