aboutsummaryrefslogtreecommitdiffstats
path: root/eth/protocol.go
Commit message (Collapse)AuthorAgeFilesLines
* core, light: send chain events using event.Feed (#14865)Miya Chen2017-08-181-0/+6
|
* core, eth, les: polish txpool API around local/remote txsPéter Szilágyi2017-07-051-2/+2
|
* cmd, eth, les, mobile: make networkid uint64 everywherePéter Szilágyi2017-04-251-1/+1
|
* cmd/geth: add --config file flag (#13875)Felix Lange2017-04-121-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* core: bugfix state change race condition in txpool (#3412)bas-vk2016-12-111-2/+2
| | | | | | | | The transaction pool keeps track of the current nonce in its local pendingState. When a new block comes in the pendingState is reset. During the reset it fetches multiple times the current state through the use of the currentState callback. When a second block comes in during the reset its possible that the state changes during the reset. If that block holds transactions that are currently in the pool the local pendingState that is used to determine nonces can get out of sync.
* core, eth, internal, miner: optimize txpool for quick opsPéter Szilágyi2016-09-021-4/+4
|
* eth, eth/downloader, eth/fetcher: delete eth/61 codeFelix Lange2016-07-221-41/+5
| | | | | The eth/61 protocol was disabled in #2776, this commit removes its message handlers and hash-chain sync logic.
* eth: disable eth/61 to prepare for more elaborate fork sync algosPéter Szilágyi2016-07-041-2/+2
|
* eth, p2p, rpc/api: polish protocol info gatheringPéter Szilágyi2015-10-281-0/+3
|
* eth: clean out light node notions from ethPéter Szilágyi2015-10-191-25/+2
|
* core, eth: receipt chain reconstructionPéter Szilágyi2015-10-191-1/+1
|
* cmd, eth: support switching client modes of operationPéter Szilágyi2015-10-191-0/+17
|
* eth: kill off protocol eth/60 in preparation for eth/62Péter Szilágyi2015-08-241-14/+11
|
* eth, eth/downloader: handle header requests, table driven proto testsPéter Szilágyi2015-08-241-19/+105
|
* eth, metrics, p2p: prepare metrics and net packets to eth/62Péter Szilágyi2015-08-211-6/+19
|
* 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-1/+1
|/ | | | | | | 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".
* all: update license informationFelix Lange2015-07-071-0/+16
|
* eth: add the blocks from numbers protocol messagePéter Szilágyi2015-07-011-3/+26
|
* cmd/geth, cmd/utils, eth: advertise both eth/60 and eth/61Péter Szilágyi2015-07-011-3/+8
|
* core, eth: document that result of GetTransactions is modifiableFelix Lange2015-06-091-2/+4
|
* eth: implement the NewBlockHashes protocol proposalPéter Szilágyi2015-06-081-1/+1
|
* eth, eth/downloader: remove duplicate consts, bump hash fetch to 2KPéter Szilágyi2015-05-211-2/+0
|
* eth: began split up of peers and protocol managerobscuren2015-04-181-376/+7
|
* eth: basic implementation of the downloaderobscuren2015-04-171-0/+25
|
* Merge branch 'develop' into downloader-protoobscuren2015-04-161-7/+5
|\
| * blockpool stability fixes:zelig2015-04-131-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | - follow up locks and fix them - chainManager: call SetQueued for parentErr future blocks, uncomment TD checks, unskip test - make ErrIncorrectTD non-fatal to be forgiving to genuine mistaken nodes (temp) but demote them to guard against stuck best peers. - add purging to bounded nodeCache (config nodeCacheSize) - use nodeCache when creating blockpool entries and let non-best peers add blocks (performance boost) - minor error in addError - reduce idleBestPeerTimeout to 1 minute - correct status counts and unskip status passing status test - glogified logging
* | eth: added downloader for syncing up the chainobscuren2015-04-131-36/+67
|/
* Disabled TD checkobscuren2015-04-091-1/+1
| | | | | @zelig: Temporarily commented out TD check untill the rest of the network has been fixed.
* Moved log to debugobscuren2015-04-091-5/+10
|
* Changed log to new loggingobscuren2015-04-041-1/+1
|
* correctedobscuren2015-04-011-1/+1
|
* bumped network protocolobscuren2015-04-011-1/+1
|
* change StatusMsgData.TD back to pointer type *big.Intzelig2015-04-011-3/+3
|
* check TxMsgzelig2015-04-011-1/+4
| | | | | | - 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-1/+4
| | | | | | | - 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
* eth: SEC-29 eth wire protocol decoding invalid message data crashes clientzelig2015-04-011-3/+6
| | | | | | - add validate method to types.Block - validate after Decode -> error - add tests for NewBlockMsg
* Protocol bumpobscuren2015-04-011-1/+1
|
* Updated for PV59obscuren2015-03-241-1/+1
| | | | * Value XFER are refunded back to the sender if the execution fails
* iterator returned wrong valueobscuren2015-03-211-2/+1
|
* peer suspension to disallow reconnect after disconnect on fatal error for ↵zelig2015-03-201-4/+9
| | | | set period (PeerSuspensionInterval)
* eth, whisper: adapt for RLP encoder switch in package p2pFelix Lange2015-03-191-51/+44
| | | | | I have rewritten the protocol test to use p2p.MsgPipe because p2p.NewMsg is gone.
* Merge branch 'develop' into conversionobscuren2015-03-191-22/+26
|\
| * private network supportzelig2015-03-181-23/+27
| | | | | | | | | | | | - protocolversion, networkid global int flags to cli and mist - fix bug with protocolversion check using wrong db - log protocolversion & networkid in backend
* | conversions. -compilable-obscuren2015-03-181-30/+31
|/
* Moved ethutil => commonobscuren2015-03-161-7/+7
|
* Bump protocol version 58obscuren2015-03-131-1/+1
|
* debug comments & pow handlingobscuren2015-03-061-2/+1
|
* Merge branch 'p2p-handshake-2' of https://github.com/fjl/go-ethereum into ↵obscuren2015-03-061-15/+21
|\ | | | | | | fjl-p2p-handshake-2
| * eth, whisper: fix msg.Payload readsFelix Lange2015-03-041-15/+21
| |
* | Miner fixes and updates (including miner)obscuren2015-03-051-1/+1
|/
* Clean up REPLobscuren2015-03-041-1/+2
|
* Merge branch 'jsonlogs' of https://github.com/ethersphere/go-ethereum into ↵obscuren2015-03-041-0/+16
|\ | | | | | | | | | | | | | | | | | | ethersphere-jsonlogs Conflicts: eth/block_pool.go eth/block_pool_test.go eth/protocol_test.go miner/worker.go
| * add eth.chain.received.new_block log to eth protocolzelig2015-03-031-1/+9
| |
| * Add event eth.tx.receivedTaylor Gerring2015-03-021-0/+7
| |
* | fixed pow stuffobscuren2015-03-041-1/+1
| |
* | integrate blockpool into ethzelig2015-02-251-26/+43
|/ | | | | | - remove blockpool code - remove blockpool integration test (kinda embarrassing) - remove errors.go
* Minor updates for releaseobscuren2015-02-211-1/+1
|
* dirty tracking for state objects fixedobscuren2015-02-201-1/+1
|
* cmd/ethereum, cmd/mist, core, eth, javascript, xeth: fixes for new p2p APIFelix Lange2015-02-061-1/+2
|
* Propagate known transactions to new peers on connectobscuren2015-02-051-0/+12
|
* upped pvobscuren2015-01-291-1/+1
|
* Limit hashes. Closes #249obscuren2015-01-091-0/+7
|
* no need to call AddBlockHashes when receiving new blockzelig2015-01-091-10/+0
|
* Adjusted difficulty and skip get tx messagesobscuren2015-01-061-1/+1
|
* Don't auto push jeff ...obscuren2015-01-061-0/+1
|
* Changed to poc-8 & removed GetTxsobscuren2015-01-061-1/+0
|
* eth, p2p: remove EncodeMsg from p2p.MsgWriterFelix Lange2015-01-061-4/+4
| | | | | | | | | | | | ...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-45/+55
|
* Updated protocol versionobscuren2015-01-031-1/+1
|
* Refactored block & Transactionobscuren2014-12-231-1/+1
| | | | * Includes new rlp decoder
* Removed goroutine from "Run"obscuren2014-12-161-8/+8
|
* removed filter manager from baseobscuren2014-12-151-21/+22
|
* blockpool rewritten , tests broken FIXMEzelig2014-12-151-292/+0
|
* protocolzelig2014-12-151-7/+83
| | | | | - new interface explicit backend components txPool, chainManager, blockPool - added protoErrorDisconnect for blockpool callback (FIXME: handling peer disconnects)
* eth protocol changeszelig2014-12-151-3/+94
| | | | | | | | | - 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-1/+126
|
* protocolzelig2014-12-151-50/+52
| | | | | - new interface explicit backend components txPool, chainManager, blockPool - added protoErrorDisconnect for blockpool callback (FIXME: handling peer disconnects)
* eth protocol changeszelig2014-12-151-57/+79
| | | | | | | | | - 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/+294