- Apr 10, 2015
-
-
Felix Lange authored
As of this commit, p2p will disconnect nodes directly after the encryption handshake if too many peer connections are active. Errors in the protocol handshake packet are now handled more politely by sending a disconnect packet before closing the connection.
-
Felix Lange authored
netWrapper already sets a read deadline in ReadMsg.
-
Felix Lange authored
-
Felix Lange authored
There were multiple synchronization issues in the disconnect handling, all caused by the odd special-casing of Peer.readLoop errors. Remove the special handling of read errors and make readLoop part of the Peer WaitGroup. Thanks to @Gustav-Simonsson for pointing at arrows in a diagram and playing rubber-duck.
-
Felix Lange authored
This commit introduces a new (temporary) peer selection strategy based on random lookups. While we're here, also implement the TODOs in dialLoop.
-
Felix Lange authored
-
Felix Lange authored
-
Jeffrey Wilcke authored
-
Jeffrey Wilcke authored
-
Jeffrey Wilcke authored
xeth: fix #640, panic converting nil recipient to hex.
-
Péter Szilágyi authored
-
Péter Szilágyi authored
Fetching the recipient address from a transaction was changed to return nil instead of a zero-address, but this code path was not updated, so whenever a contract was created, a nil panic occured.
-
- Apr 09, 2015
-
-
Jeffrey Wilcke authored
bugfix as a result of PR 671
-
Bas van Kervel authored
-
Jeffrey Wilcke authored
-
Jeffrey Wilcke authored
-
Jeffrey Wilcke authored
-
Jeffrey Wilcke authored
-
Jeffrey Wilcke authored
-
Jeffrey Wilcke authored
-
Jeffrey Wilcke authored
@zelig: Temporarily commented out TD check untill the rest of the network has been fixed.
-
Jeffrey Wilcke authored
-
Jeffrey Wilcke authored
Merge branch 'frontier/blockpool' of https://github.com/ethersphere/go-ethereum into ethersphere-frontier/blockpool
-
Jeffrey Wilcke authored
-
Viktor Trón authored
-
Viktor Trón authored
-
Viktor Trón authored
-
Viktor Trón authored
- add peer switch channel arg to activateChain - no peer locking within - proper locking in AddBlock - fixes deadlock issue - comment out TD check and skip incorrect TD test again for hotfix
-
Viktor Trón authored
- queued bool // flag for blockpool to skip TD check - set to true when future block queued - in checkTD: skip check if queued - TODO: add test (insertchain sets future block)
-
Viktor Trón authored
-
Viktor Trón authored
- TestPeerPromotionByTdOnBlock renamed and skipped for now test should pass iff if TD is updated based on an agreement - senders register in AddBlock, flag records if they are coming from newblock message (and therefore advertise their TD with the block) or block message (TODO: latter are stored on the cache and updated by checkTD call; protocol should also call AddBlock on newblock messages by non-best peers) - remove TD update from optional TD field in addBlock: this is no longer part of the eth protocol spec -> TODO: reflect in wiki - only initialise peer map if at least two
-
Viktor Trón authored
- do not break from headsection on error [remove peer after protocol quit will close switchC, until then head block can arrive and block on channel while keeping peers lock causing a deadlock.] - more careful locking in AddBlock
-
Viktor Trón authored
-
Jeffrey Wilcke authored
-
Jeffrey Wilcke authored
-
Jeffrey Wilcke authored
Support for import/export hex encoded keys
-
Jeffrey Wilcke authored
Add path expansion support for command line arguments, closes 567
-
Bas van Kervel authored
-
Bas van Kervel authored
-
- Apr 08, 2015
-
-
Jeffrey Wilcke authored
Removed the from as a requiremet from the RPC eth_call. Xeth#Call now also default values to: 1. Supplied account 2. First account if any 3. No managed account => 000000..00
-