aboutsummaryrefslogtreecommitdiffstats
path: root/eth/protocol_test.go
Commit message (Collapse)AuthorAgeFilesLines
* core, eth: minor txpool event cleanupsPéter Szilágyi2018-05-181-1/+1
|
* all: collate new transaction events togetherrjl4934564422018-05-181-1/+1
|
* core, trie: intermediate mempool between trie and database (#15857)Péter Szilágyi2018-02-061-3/+3
| | | This commit reduces database I/O by not writing every state trie to disk.
* core, eth, les, light: get rid of redundant methodsPéter Szilágyi2018-01-311-5/+9
|
* core, eth, les: polish txpool API around local/remote txsPéter Szilágyi2017-07-051-1/+1
|
* cmd, eth, les, mobile: make networkid uint64 everywherePéter Szilágyi2017-04-251-2/+2
|
* cmd/geth: add --config file flag (#13875)Felix Lange2017-04-121-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p2p/discover, p2p/discv5: add marshaling methods to Node * p2p/netutil: make Netlist decodable from TOML * common/math: encode nil HexOrDecimal256 as 0x0 * cmd/geth: add --config file flag * cmd/geth: add missing license header * eth: prettify Config again, fix tests * eth: use gasprice.Config instead of duplicating its fields * eth/gasprice: hide nil default from dumpconfig output * cmd/geth: hide genesis block in dumpconfig output * node: make tests compile * console: fix tests * cmd/geth: make TOML keys look exactly like Go struct fields * p2p: use discovery by default This makes the zero Config slightly more useful. It also fixes package node tests because Node detects reuse of the datadir through the NodeDatabase. * cmd/geth: make ethstats URL settable through config file * cmd/faucet: fix configuration * cmd/geth: dedup attach tests * eth: add comment for DefaultConfig * eth: pass downloader.SyncMode in Config This removes the FastSync, LightSync flags in favour of a more general SyncMode flag. * cmd/utils: remove jitvm flags * cmd/utils: make mutually exclusive flag error prettier It now reads: Fatal: flags --dev, --testnet can't be used at the same time * p2p: fix typo * node: add DefaultConfig, use it for geth * mobile: add missing NoDiscovery option * cmd/utils: drop MakeNode This exposed a couple of places that needed to be updated to use node.DefaultConfig. * node: fix typo * eth: make fast sync the default mode * cmd/utils: remove IPCApiFlag (unused) * node: remove default IPC path Set it in the frontends instead. * cmd/geth: add --syncmode * cmd/utils: make --ipcdisable and --ipcpath mutually exclusive * cmd/utils: don't enable WS, HTTP when setting addr * cmd/utils: fix --identity
* eth: accept transactions when starting CPU mining (#13882)Péter Szilágyi2017-04-101-1/+1
|
* eth, les: shorten genesis block mismatch error messageFelix Lange2017-02-281-1/+1
|
* all: disable log message colors outside of gethFelix Lange2017-02-271-1/+1
| | | | Also tweak behaviour so colors are only enabled when stderr is a terminal.
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-231-2/+1
|
* all: fix spelling errorsPéter Szilágyi2017-01-071-1/+1
|
* all: gofmt -w -sFelix Lange2017-01-061-1/+1
|
* core, eth, internal, miner: optimize txpool for quick opsPéter Szilágyi2016-09-021-1/+1
|
* eth, eth/downloader, eth/fetcher: delete eth/61 codeFelix Lange2016-07-221-3/+0
| | | | | The eth/61 protocol was disabled in #2776, this commit removes its message handlers and hash-chain sync logic.
* eth: don't accept transactions until we sync up with the networkPéter Szilágyi2016-06-061-0/+1
|
* all: fix go vet warningsFelix Lange2016-04-151-1/+1
|
* accounts, crypto: move keystore to package accountsFelix Lange2016-04-121-2/+1
| | | | | | | | | | The account management API was originally implemented as a thin layer around crypto.KeyStore, on the grounds that several kinds of key stores would be implemented later on. It turns out that this won't happen so KeyStore is a superflous abstraction. In this commit crypto.KeyStore and everything related to it moves to package accounts and is unexported.
* eth: clean out light node notions from ethPéter Szilágyi2015-10-191-6/+3
|
* cmd, eth: support switching client modes of operationPéter Szilágyi2015-10-191-3/+3
|
* cmd/geth, cmd/utils, core, rpc: renamed to blockchainJeffrey Wilcke2015-10-041-1/+1
| | | | | | * Renamed ChainManager to BlockChain * Checkpointing is no longer required and never really properly worked when the state was corrupted.
* eth: kill off protocol eth/60 in preparation for eth/62Péter Szilágyi2015-08-241-3/+0
|
* eth, eth/downloader: handle header requests, table driven proto testsPéter Szilágyi2015-08-241-105/+76
|
* core, eth, trie, xeth: merged state, chain, extra databases in oneJeffrey Wilcke2015-08-081-2/+2
|
* Merge pull request #1515 from fjl/license-fixesJeffrey Wilcke2015-07-281-1/+1
|\ | | | | all: fix license headers one more time
| * all: fix license headers one more timeFelix Lange2015-07-241-1/+1
| | | | | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* | cmd/geth, core, eth: Version 1.0.0Jeffrey Wilcke2015-07-251-2/+2
|/ | | | | | | Genesis release. Closes #1402 Conflicts: cmd/geth/main.go
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-4/+4
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* cmd, core, eth, common: genesis preparationJeffrey Wilcke2015-07-101-2/+3
| | | | | Implemented the --genesis flag thru which we can set a custom genesis block, including the official Ethereum genesis block.
* all: update license informationFelix Lange2015-07-071-0/+16
|
* core, miner: miner header validation, transaction & receipt writingJeffrey Wilcke2015-07-031-1/+1
| | | | | | | | * Miners do now verify their own header, not their state. * Changed old putTx and putReceipts to be exported * Moved writing of transactions and receipts out of the block processer in to the chain manager. Closes #1386 * Miner post ChainHeadEvent & ChainEvent. Closes #1388
* eth: add the blocks from numbers protocol messagePéter Szilágyi2015-07-011-4/+4
|
* eth: clean up peer struct a bit, fix double txn bcastPéter Szilágyi2015-07-011-3/+3
|
* core/types: make transactions immutableFelix Lange2015-06-301-2/+2
|
* eth: fix test breakage from the previous commitPéter Szilágyi2015-06-181-1/+1
|
* eth: fix an accidental test compile errorPéter Szilágyi2015-06-151-3/+1
|
* eth: add protocol testsFelix Lange2015-06-091-336/+190
| | | | The protocol tests were commented out when eth/downloader was introduced.
* 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