aboutsummaryrefslogtreecommitdiffstats
path: root/eth
Commit message (Collapse)AuthorAgeFilesLines
* correctedobscuren2015-04-011-1/+1
|
* bumped network protocolobscuren2015-04-011-1/+1
|
* eth: update cpp bootnode addressFelix Lange2015-04-011-2/+2
|
* change StatusMsgData.TD back to pointer type *big.Intzelig2015-04-012-8/+8
|
* check TxMsgzelig2015-04-012-1/+43
| | | | | | - 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-012-7/+32
| | | | | | | - 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-012-22/+104
| | | | | | - add validate method to types.Block - validate after Decode -> error - add tests for NewBlockMsg
* Protocol bumpobscuren2015-04-011-1/+1
|
* Update Go bootnode addressTaylor Gerring2015-03-311-1/+1
|
* settable etherbasezelig2015-03-271-4/+23
| | | | | | | | - etherbase flag for block reward destination - coinbase => etherbase - CLI- eth Config -> eth, xeth -> RPC / Miner - use primary instead of coinbase as the unlock magic wildcard - accounts: firstAddr/Coinbase -> Primary
* Merge pull request #560 from tgerring/xethcleanupJeffrey Wilcke2015-03-251-18/+21
|\ | | | | XEth cleanup
| * Improve protocol version reportingTaylor Gerring2015-03-251-18/+21
| |
* | Store protocol version in the block db **NOT** extra dbobscuren2015-03-251-2/+2
|/
* Updated for PV59obscuren2015-03-241-1/+1
| | | | * Value XFER are refunded back to the sender if the execution fails
* better block propagationobscuren2015-03-241-2/+2
|
* Implement RPC net_versionTaylor Gerring2015-03-241-5/+7
|
* Merge pull request #551 from ethersphere/frontier/eth-version-exportsTaylor Gerring2015-03-241-9/+10
|\ | | | | eth: fix protocol version/network id copied from config to Ethereum field
| * eth: fix protocol version/network id copied from config to Ethereum fieldzelig2015-03-241-9/+10
| |
* | moved state and vm to coreobscuren2015-03-231-1/+1
|/
* Merge branch 'jsonlog' of https://github.com/ethersphere/go-ethereum into ↵obscuren2015-03-231-17/+21
|\ | | | | | | | | | | | | ethersphere-jsonlog Conflicts: eth/backend.go
| * independent flag for json structured loggingzelig2015-03-221-14/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | - logjson flag remove logformat flag - passed to eth Config - logsystem not a field of Ethereum - LogSystem does not need to expose GetLogLevel/SetLogLevel - message struct just implements more generic LogMsg interface - LogMsg is a fmt.Stringer with Level() - jsonMsg ([]byte) implements LogMsg - remove "raw" systems - move level logic inside StdLogSystem - logsystems only print their kind of msg: jsonLogSystem prints jsonMsg, StdLogSystem prints stdMsg
* | Get work / submit work partially implemented.obscuren2015-03-221-3/+3
|/ | | | | * WIP missing arguments for submitting new work * GetWork **done**
* eth: enable whisper againFelix Lange2015-03-211-1/+1
|
* Merge branch 'ethersphere-frontier/blockpool' into conversionobscuren2015-03-214-97/+15
|\
| * iterator returned wrong valueobscuren2015-03-211-2/+1
| |
| * remove eth/wallet.go (only commented out content)zelig2015-03-201-80/+0
| |
| * use own total difficulty to limit best peerzelig2015-03-202-11/+5
| | | | | | | | | | | | | | | | | | - 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
| * peer suspension to disallow reconnect after disconnect on fatal error for ↵zelig2015-03-201-4/+9
| | | | | | | | set period (PeerSuspensionInterval)
* | wipobscuren2015-03-211-1/+1
|/
* eth, whisper: adapt for RLP encoder switch in package p2pFelix Lange2015-03-193-167/+121
| | | | | I have rewritten the protocol test to use p2p.MsgPipe because p2p.NewMsg is gone.
* Merge branch 'develop' into conversionobscuren2015-03-194-62/+49
|\
| * fix eth testszelig2015-03-181-3/+3
| |
| * private network supportzelig2015-03-183-40/+51
| | | | | | | | | | | | - protocolversion, networkid global int flags to cli and mist - fix bug with protocolversion check using wrong db - log protocolversion & networkid in backend
| * eth/backend: remove spurious and incorrent PeerInfo()zelig2015-03-181-5/+4
| |
| * eth: remove disused peer_util.gozelig2015-03-181-23/+0
| |
* | conversions. -compilable-obscuren2015-03-182-35/+36
|/
* Merge branch 'frontier/js' into frontier/nodeadmin.jszelig2015-03-164-25/+25
|\
| * Moved ethutil => commonobscuren2015-03-164-25/+25
| |
* | eth:zelig2015-03-151-3/+65
|/ | | | | | - NodeInfo, PeerInfo types, PeersInfo(), NodeInfo() in eth/backend to support node admin IF - start net only if MaxPeers > 0, close extraDb in Stop() - defer s.extraDb.Close()
* mergeobscuren2015-03-151-6/+21
|\
| * eth: add ResetWithGenesisBlockFelix Lange2015-03-141-4/+11
| | | | | | | | This depends on a change in ethash which exposes UpdateCache.
| * eth: add hook for database creationFelix Lange2015-03-141-2/+10
| |
* | Merge branch 'rpcfrontier' into developobscuren2015-03-131-0/+3
|\ \
| * | Add web3_clientVersionTaylor Gerring2015-03-131-0/+3
| | |
* | | Bump protocol version 58obscuren2015-03-131-1/+1
|/ /
* / Add additional extra database for non-protocol related dataobscuren2015-03-121-7/+9
|/ | | | * Add transaction to extra database after a successful block process
* miner: provide coinbase when starting the minerFelix Lange2015-03-121-8/+15
| | | | | | | | | | This avoids having to query the coinbase when creating the miner, which in turn eliminates the dreaded startup error when no accounts are set up. Later, this will also allow us to simply restart the miner when the user picks a different coinbase. This causes a lot of changes in other packages. These are included in this commit because they're impossible to separate.
* Merge branch origin/develop into accounts-integrationFelix Lange2015-03-111-0/+11
|\ | | | | | | | | | | | | Conflicts: cmd/blocktest/main.go cmd/mist/debugger.go cmd/utils/cmd.go
| * Add empty total difficulty to test blocks and clean up stopping the nodeGustav Simonsson2015-03-101-0/+11
| |
* | eth: return account errors directlyFelix Lange2015-03-101-1/+1
| |
* | eth: fix testsFelix Lange2015-03-101-7/+7
| |
* | Merge ethereum/poc-9 into accounts-integrationFelix Lange2015-03-103-11/+23
|\| | | | | | | | | | | | | | | | | | | Conflicts: cmd/utils/cmd.go cmd/utils/flags.go core/manager.go eth/backend.go rpc/http/server.go xeth/xeth.go
| * Fix logger import pathTaylor Gerring2015-03-081-1/+1
| |
| * Fixed testsobscuren2015-03-071-0/+1
| |
| * Separated block db from state db. Partial fix for #416obscuren2015-03-071-10/+18
| |
| * Debug option for VM & command line flagobscuren2015-03-061-0/+4
| |
| * Merge branch 'poc-9' of github.com-obscure:ethereum/go-ethereum into poc-9obscuren2015-03-061-2/+5
| |\
| * | debug comments & pow handlingobscuren2015-03-061-2/+1
| | |
* | | eth: delete unused RpcServer fieldFelix Lange2015-03-101-7/+0
| | |
* | | accounts: AccountManager -> ManagerFelix Lange2015-03-081-17/+17
| | |
* | | accounts, core, eth, xeth: use account manager for everythingFelix Lange2015-03-071-33/+14
| | | | | | | | | | | | | | | The account manager is now responsible for picking the default account and the coinbase.
* | | Integrate eth_accounts and eth_transact to use new account managerGustav Simonsson2015-03-061-17/+24
| |/ |/| | | | | | | | | | | * Add from to eth_transact / xeth.Transact and add static pass in lieu of integrating with native Mist window for user passphrase entry * Make eth_accounts return AccountManager.Accounts() * Add a Generate Key menu item in Mist
* | Merge pull request #433 from fjl/newcliFelix Lange2015-03-061-2/+5
|\ \ | |/ |/| Improved CLI
| * ethutil: remove Config variableFelix Lange2015-03-061-2/+5
| | | | | | | | | | | | | | | | | | | | | | Various functions throughout the codebase used it to grab settings. This has to stop because I want to use them without reading the config file. These functions can now be used without reading the config first: * ethdb.NewLDBDatabase * ethrepl.NewJSRepl * vm.New
* | Merge branch 'p2p-handshake-2' of https://github.com/fjl/go-ethereum into ↵obscuren2015-03-062-23/+22
|\ \ | |/ |/| | | fjl-p2p-handshake-2
| * eth, p2p: delete p2p.BlacklistFelix Lange2015-03-041-8/+1
| | | | | | | | | | It is unused and untested right now. We can bring it back later if required.
| * eth, whisper: fix msg.Payload readsFelix Lange2015-03-041-15/+21
| |
* | Miner fixes and updates (including miner)obscuren2015-03-052-3/+2
|/
* Clean up REPLobscuren2015-03-041-1/+2
|
* Merge branch 'develop' into poc-9obscuren2015-03-041-5/+2
|\ | | | | | | | | Conflicts: cmd/utils/cmd.go
| * Merge pull request #411 from ethersphere/readmeJeffrey Wilcke2015-03-041-1/+1
| |\ | | | | | | [WIP] Update Readme
| | * db name database -> blockchain in backend error messagezelig2015-03-031-1/+1
| | |
| * | Merge pull request #409 from tgerring/jsonlogsJeffrey Wilcke2015-03-045-19/+26
| |\ \ | | | | | | | | Updated JSON log events
| * | | Remove Websockets RPC transportTaylor Gerring2015-03-011-4/+1
| | |/ | |/|
* | | Merge branch 'jsonlogs' of https://github.com/ethersphere/go-ethereum into ↵obscuren2015-03-043-13/+28
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | |/ | |/|
| * | Fix logger import in testsTaylor Gerring2015-03-022-5/+5
| | |
| * | Add event eth.tx.receivedTaylor Gerring2015-03-021-0/+7
| | |
| * | Don't import logger as ethloggerTaylor Gerring2015-03-022-14/+14
| |/
* | fixed pow stuffobscuren2015-03-042-3/+6
| |
* | Merge branch 'ethersphere-blockpool2' into poc-9obscuren2015-03-0127-2570/+61
|\ \ | |/ |/|
| * integrate blockpool into ethzelig2015-02-2527-2570/+61
| | | | | | | | | | | | - remove blockpool code - remove blockpool integration test (kinda embarrassing) - remove errors.go
* | Report proper database directory. Closes #397obscuren2015-02-271-1/+2
|/
* Merge pull request #359 from fjl/p2p-identityJeffrey Wilcke2015-02-221-6/+30
|\ | | | | Persistent Node Key
| * eth: persist node key between sessions (#304)Felix Lange2015-02-201-6/+27
| |
| * eth: add poc-8.ethdev.com as second default bootstrap nodeFelix Lange2015-02-201-0/+3
| |
* | Minor updates for releaseobscuren2015-02-211-1/+1
|/
* dirty tracking for state objects fixedobscuren2015-02-201-1/+1
|
* Merge pull request #345 from maran/feature/minerthreadsJeffrey Wilcke2015-02-201-1/+3
|\ | | | | Implement command line argument to set the amount miner threads
| * Implement command line argument to set the amount of agents created by the minerMaran2015-02-191-1/+3
| | | | | | | | Defaults to the amount of cores available on the CPU
* | Merge pull request #339 from tgerring/jsonlogTaylor Gerring2015-02-191-2/+0
|\ \ | |/ |/| JSON log updates
| * Update JSON Log typesTaylor Gerring2015-02-181-2/+0
| |
* | Disabled ability to disable whisper. Closes #334obscuren2015-02-181-1/+5
|/
* added bootnode back inobscuren2015-02-181-2/+1
|
* Changed to ChainEvent and fixed a nil pointer in transactobscuren2015-02-181-2/+2
|
* Filter and mutex locks addedobscuren2015-02-171-0/+1
|
* "centralised" mining to backend. Closes #323obscuren2015-02-171-63/+19
|
* eth: add default bootnodeFelix Lange2015-02-141-2/+11
|
* mergeobscuren2015-02-131-11/+10
|
* wipobscuren2015-02-133-81/+75
|\
| * cmd/ethereum, cmd/mist, eth, p2p: use package p2p/natFelix Lange2015-02-131-9/+5
| | | | | | | | This deletes the old NAT implementation.
| * eth: remove unused Ethereum sync fieldsFelix Lange2015-02-101-4/+0
| |
| * cmd/mist, cmd/ethereum: add CLI arguments for node keyFelix Lange2015-02-101-3/+10
| |
| * eth: don't warn if no BootNodes are specifiedFelix Lange2015-02-091-0/+3
| |
| * cmd/ethereum, cmd/mist: add flag for discovery bootstrap nodesFelix Lange2015-02-071-9/+28
| |
| * cmd/mist, eth, javascript, p2p: use Node URLs for peer suggestionsFelix Lange2015-02-071-6/+4
| |
| * cmd/ethereum, cmd/mist, core, eth, javascript, xeth: fixes for new p2p APIFelix Lange2015-02-063-63/+37
| |
* | mergeobscuren2015-02-135-15/+33
|\ \
| * | Temporarily skip broken TestVerifyPoWTaylor Gerring2015-02-111-0/+1
| |/
| * Merge pull request #287 from ethereum/system-testingJeffrey Wilcke2015-02-061-8/+4
| |\ | | | | | | Seednode CLI param updates
| | * Move hardcoded seed node address to app flagTaylor Gerring2015-02-031-8/+4
| | | | | | | | | | | | Replaces functionality `-seed=true` with `-seed="ip:port"`
| * | fixed testobscuren2015-02-051-0/+2
| | |
| * | Propagate known transactions to new peers on connectobscuren2015-02-051-0/+12
| | |
| * | Docs & old code removedobscuren2015-02-031-2/+2
| | |
| * | Added (disabled) Jit validationobscuren2015-02-011-2/+1
| |/
| * Merge branch 'develop' into qt5.4obscuren2015-01-292-2/+2
| |\
| | * upped pvobscuren2015-01-292-2/+2
| | |
| * | moving to a better xethobscuren2015-01-291-0/+4
| | |
| * | Update CLI to use new Websocket RPCTaylor Gerring2015-01-281-0/+4
| | | | | | | | | | | | Use “wsport” flag to change default port
| * | Move HTTP transport to sub package of RPCTaylor Gerring2015-01-281-1/+1
| |/
* | Move standard fields to LogEventTaylor Gerring2015-02-121-1/+1
| |
* | Move event names within each objectTaylor Gerring2015-02-111-1/+1
| |
* | Use strongly-typed objectsTaylor Gerring2015-02-111-8/+7
| |
* | Rename jsonlogger methodTaylor Gerring2015-01-221-1/+1
| |
* | Add JsonLogger typeTaylor Gerring2015-01-221-0/+9
| |
* | Add LogFormat flagTaylor Gerring2015-01-221-1/+2
|/
* Print error instead of returning for seed node errobscuren2015-01-191-1/+1
| | | | | Returning an error would indicate a complete failure initialising the Ethereum backend. Instead we should print the message and continue.
* Limit hashes. Closes #249obscuren2015-01-091-0/+7
|
* Merge remote-tracking branch 'upstream/develop' into developzelig2015-01-091-7/+3
|\
| * just enable by defaultobscuren2015-01-091-7/+3
| |
* | major blockpool changezelig2015-01-091-117/+350
| | | | | | | | | | | | | | | | | | | | | | | | - the spec says response to getBlockHashes(from, max) should return all hashes starting from PARENT of from. This required major changes and results in much hackier code. - Introduced a first round block request after peer introduces with current head, so that hashes can be linked to the head - peerInfo records currentBlockHash, currentBlock, parentHash and headSection - AddBlockHashes checks header section and creates the top node from the peerInfo of the best peer - AddBlock checks peerInfo and updates the block there rather than in a node - request further hashes once a section is created but then no more until the root block is found (so that we know when to stop asking) - in processSection, when root node is checked and receives a block, we need to check if the section has a parent known to blockchain or blockPool - when peers are switched, new peer launches a new requestHeadSection loop or activates its actual head section, i.e., the section for it currentBlockHash - all tests pass
* | add ErrInsufficientChainInfo errorzelig2015-01-091-0/+2
| |
* | adapt unit tests to speczelig2015-01-091-53/+139
| | | | | | | | | | | | | | - AddBlockHashes ignores the first hash (just used to match getBlockHashes query) sends the rest as blocksMsg - new test TestPeerWithKnownParentBlock - new test TestChainConnectingWithParentHash - adapt all other tests to the new scheme
* | no need to call AddBlockHashes when receiving new blockzelig2015-01-091-10/+0
| |
* | minor changes in integration testszelig2015-01-093-8/+8
|/
* Refactored ethutil.Config.Db outobscuren2015-01-071-4/+4
|
* Adjusted difficulty and skip get tx messagesobscuren2015-01-061-1/+1
|
* Don't auto push jeff ...obscuren2015-01-061-0/+1
|
* Fixed port numobscuren2015-01-061-1/+1
|
* Changed to poc-8 & removed GetTxsobscuren2015-01-062-2/+1
|
* eth, p2p: remove EncodeMsg from p2p.MsgWriterFelix Lange2015-01-062-8/+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.
* unclean shutdown for nowobscuren2015-01-061-1/+1
|
* Mergeobscuren2015-01-0627-1019/+2015
|
* BlockManager => BlockProcessorobscuren2015-01-052-9/+89
|
* Cleaned up some of that utilobscuren2015-01-041-16/+74
|
* Fixed bug where logging could crash client during tx addingobscuren2015-01-031-2/+4
|
* Updated protocol versionobscuren2015-01-031-1/+1
|
* Removed the need of having a backend for the tx poolobscuren2015-01-021-1/+1
|
* Refactored block & Transactionobscuren2014-12-232-2/+2
| | | | * Includes new rlp decoder
* Merge fixesobscuren2014-12-181-2/+2
|
* Added whisper handlerobscuren2014-12-161-0/+4
|
* Removed goroutine from "Run"obscuren2014-12-161-8/+8
|
* made mist in a compilable, workable state using the new refactored packagesobscuren2014-12-152-0/+27
|
* Moved peer helper methedsobscuren2014-12-151-17/+0
|
* removed filter manager from baseobscuren2014-12-152-36/+22
|
* Added old filter. Needs some refactoringobscuren2014-12-151-57/+6
|
* WIPobscuren2014-12-151-3/+5
|
* added protocol handlerobscuren2014-12-151-1/+1
|
* added whisperobscuren2014-12-151-18/+19
|
* WIPobscuren2014-12-151-43/+10
|
* adapt blockpool/backend to use pow/ezp with pow.Block for VerifyPoW funczelig2014-12-152-12/+3
|
* blockmanager start/stop obsoletezelig2014-12-151-2/+0
|
* blockpool rewritten , tests broken FIXMEzelig2014-12-152-292/+8
|
* protocolzelig2014-12-151-7/+83
| | | | | - new interface explicit backend components txPool, chainManager, blockPool - added protoErrorDisconnect for blockpool callback (FIXME: handling peer disconnects)
* initial commit for eth blockpool + testzelig2014-12-151-2/+3
|
* eth protocol changeszelig2014-12-152-11/+132
| | | | | | | | | - 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-152-1/+165
|
* blockpool rewritten , tests broken FIXMEzelig2014-12-151-363/+863
|
* add protocol error types specific to blockpoolzelig2014-12-151-0/+4
|
* protocolzelig2014-12-151-50/+52
| | | | | - new interface explicit backend components txPool, chainManager, blockPool - added protoErrorDisconnect for blockpool callback (FIXME: handling peer disconnects)
* initial commit for new backend (eth.Ethereum)zelig2014-12-151-0/+357
|
* initial commit for eth blockpool + testzelig2014-12-152-0/+712
|
* eth protocol changeszelig2014-12-152-70/+122
| | | | | | | | | - 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)
* no logging in error (to be refactored into p2p)zelig2014-12-151-6/+0
|
* initial commit for eth-p2p integrationzelig2014-12-153-0/+500