aboutsummaryrefslogtreecommitdiffstats
path: root/eth/protocol_test.go
Commit message (Collapse)AuthorAgeFilesLines
* downloader: don't remove peers. keep them aroundobscuren2015-04-191-15/+3
|
* Updated loggingobscuren2015-04-071-2/+2
|
* change StatusMsgData.TD back to pointer type *big.Intzelig2015-04-011-5/+5
|
* check TxMsgzelig2015-04-011-0/+39
| | | | | | - add validation on TxMsg checking for nil - add test for nil transaction - add test for zero value transaction (no extra validation needed)
* test for invalid rlp encoding of block in BlocksMsgzelig2015-04-011-6/+28
| | | | | | | - rename Validate -> ValidateFields not to confure consensus block validation - add nil transaction and nil uncle header validation - remove bigint field checks: rlp already decodes *big.Int to big.NewInt(0) - add test for nil header, nil transaction
* add tests for valid blocks msg handlingzelig2015-04-011-4/+46
|
* eth: SEC-29 eth wire protocol decoding invalid message data crashes clientzelig2015-04-011-19/+98
| | | | | | - add validate method to types.Block - validate after Decode -> error - add tests for NewBlockMsg
* use own total difficulty to limit best peerzelig2015-03-201-10/+3
| | | | | | | | | - update blockpool td by subscribing to ChainHeadEvent - if ahead of best peer, demote it - addPeer now take own td as current td - removePeer now take own td as current td - add relevant tests to peers_test - eth: backend now calls blockpool with eth.eventMux and chainManager.Td
* eth, whisper: adapt for RLP encoder switch in package p2pFelix Lange2015-03-191-114/+75
| | | | | I have rewritten the protocol test to use p2p.MsgPipe because p2p.NewMsg is gone.
* fix eth testszelig2015-03-181-3/+3
|
* private network supportzelig2015-03-181-3/+3
| | | | | | - protocolversion, networkid global int flags to cli and mist - fix bug with protocolversion check using wrong db - log protocolversion & networkid in backend
* Moved ethutil => commonobscuren2015-03-161-2/+2
|
* Fix logger import pathTaylor Gerring2015-03-081-1/+1
|
* Fixed testsobscuren2015-03-071-0/+1
|
* Merge branch 'jsonlogs' of https://github.com/ethersphere/go-ethereum into ↵obscuren2015-03-041-1/+0
|\ | | | | | | | | | | | | | | | | | | ethersphere-jsonlogs Conflicts: eth/block_pool.go eth/block_pool_test.go eth/protocol_test.go miner/worker.go
| * Fix logger import in testsTaylor Gerring2015-03-021-2/+2
| |
* | integrate blockpool into ethzelig2015-02-251-4/+14
|/ | | | | | - remove blockpool code - remove blockpool integration test (kinda embarrassing) - remove errors.go
* cmd/ethereum, cmd/mist, core, eth, javascript, xeth: fixes for new p2p APIFelix Lange2015-02-061-19/+5
|
* fixed testobscuren2015-02-051-0/+2
|
* eth, p2p: remove EncodeMsg from p2p.MsgWriterFelix Lange2015-01-061-4/+0
| | | | | | | | | | | | ...and make it a top-level function instead. The original idea behind having EncodeMsg in the interface was that implementations might be able to encode RLP data to their underlying writer directly instead of buffering the encoded data. The encoder will buffer anyway, so that doesn't matter anymore. Given the recent problems with EncodeMsg (copy-pasted implementation bug) I'd rather implement once, correctly.
* Mergeobscuren2015-01-061-131/+169
|
* eth protocol changeszelig2014-12-151-8/+38
| | | | | | | | | - changed backend interface - using callbacks for blockPool - use rlp stream for lazy decoding - use peer as logger - add id (peer pubkey) to ethProtocol fields - add testPeer to protocol test (temporary)
* initial commit for eth-p2p integrationzelig2014-12-151-0/+39
|
* eth protocol changeszelig2014-12-151-13/+43
| | | | | | | | | - changed backend interface - using callbacks for blockPool - use rlp stream for lazy decoding - use peer as logger - add id (peer pubkey) to ethProtocol fields - add testPeer to protocol test (temporary)
* initial commit for eth-p2p integrationzelig2014-12-151-0/+133