- 11 4月, 2015 1 次提交
-
-
由 Jeffrey Wilcke 提交于
td update from node + bugfix
-
- 10 4月, 2015 20 次提交
-
-
由 Jeffrey Wilcke 提交于
p2p: a bunch of fixes
-
由 zelig 提交于
- reorg and simplify AddBlock - introduce nodeCache - TestPeerPromotionByTdOnBlock unskipped and passes - move switchC/idleC channel creation around: solves deadlock (now respects the contract with section process: either can activate or complete at any one time)
-
由 Felix Lange 提交于
This is supposed to apply some back pressure so Server is not accepting more connections than it can actually handle. The current limit is 50. This doesn't really need to be configurable, but we'll see how it behaves in our test nodes and adjust accordingly.
-
由 Felix Lange 提交于
-
由 Felix Lange 提交于
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 提交于
netWrapper already sets a read deadline in ReadMsg.
-
由 Felix Lange 提交于
-
由 Felix Lange 提交于
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 提交于
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 提交于
-
由 Felix Lange 提交于
-
由 obscuren 提交于
-
由 obscuren 提交于
-
由 Jeffrey Wilcke 提交于
xeth: fix #640, panic converting nil recipient to hex.
-
由 Péter Szilágyi 提交于
-
由 Péter Szilágyi 提交于
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.
-
由 Jeffrey Wilcke 提交于
bugfix as a result of PR 671
-
由 Bas van Kervel 提交于
-
由 obscuren 提交于
-
由 obscuren 提交于
-
- 09 4月, 2015 19 次提交
-
-
由 obscuren 提交于
-
由 obscuren 提交于
-
由 obscuren 提交于
-
由 obscuren 提交于
-
由 obscuren 提交于
@zelig: Temporarily commented out TD check untill the rest of the network has been fixed.
-
由 obscuren 提交于
-
由 obscuren 提交于
Merge branch 'frontier/blockpool' of https://github.com/ethersphere/go-ethereum into ethersphere-frontier/blockpool
-
由 obscuren 提交于
-
由 zelig 提交于
-
由 zelig 提交于
-
由 zelig 提交于
-
由 zelig 提交于
- 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
-
由 zelig 提交于
- 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)
-
由 zelig 提交于
-
由 zelig 提交于
- 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
-
由 zelig 提交于
- 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
-
由 zelig 提交于
-
由 obscuren 提交于
-
由 obscuren 提交于
-