Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ethdb: add leveldb write delay statistic (#16499) | gary rong | 2018-04-16 | 1 | -14/+81 |
| | |||||
* | compression/rle: delete RLE compression (#16468) | Felix Lange | 2018-04-09 | 1 | -6/+0 |
| | |||||
* | cmd: export preimages in RLP, support GZIP, uniform with block export | Péter Szilágyi | 2018-03-26 | 1 | -2/+2 |
| | |||||
* | cmd: implement preimage dump and import cmds | rjl493456442 | 2018-03-26 | 1 | -0/+6 |
| | |||||
* | cmd, ethdb, vendor: integrate leveldb iostats (#16277) | Kurkó Mihály | 2018-03-08 | 1 | -43/+59 |
| | | | | | | | | | | | | * cmd, dashboard, ethdb, vendor: send iostats to dashboard * ethdb: change names * ethdb: handle parsing errors * ethdb: handle iostats syntax error * ethdb: r -> w | ||||
* | metrics: pull library and introduce ResettingTimer and InfluxDB reporter ↵ | Anton Evangelatov | 2018-02-23 | 1 | -20/+18 |
| | | | | | | | | | | | | | | | | | | | | (#15910) * go-metrics: fork library and introduce ResettingTimer and InfluxDB reporter. * vendor: change nonsense/go-metrics to ethersphere/go-metrics * go-metrics: add tests. move ResettingTimer logic from reporter to type. * all, metrics: pull in metrics package in go-ethereum * metrics/test: make sure metrics are enabled for tests * metrics: apply gosimple rules * metrics/exp, internal/debug: init expvar endpoint when starting pprof server * internal/debug: tiny comment formatting fix | ||||
* | ethdb: reset the batch size too on reset | Péter Szilágyi | 2018-01-31 | 1 | -0/+1 |
| | |||||
* | core, ethdb: reuse database batches (#15989) | Martin Holst Swende | 2018-01-31 | 3 | -0/+15 |
| | | | | | | * leveldb: Update leveldb to 211f780 (poolfix) * core, ethdb: reuse database batches | ||||
* | cmd, core, eth/tracers: support fancier js tracing (#15516) | Péter Szilágyi | 2017-12-21 | 1 | -8/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cmd, core, eth/tracers: support fancier js tracing * eth, internal/web3ext: rework trace API, concurrency, chain tracing * eth/tracers: add three more JavaScript tracers * eth/tracers, vendor: swap ottovm to duktape for tracing * core, eth, internal: finalize call tracer and needed extras * eth, tests: prestate tracer, call test suite, rewinding * vendor: fix windows builds for tracer js engine * vendor: temporary duktape fix * eth/tracers: fix up 4byte and evmdis tracer * vendor: pull in latest duktape with my upstream fixes * eth: fix some review comments * eth: rename rewind to reexec to make it more obvious * core/vm: terminate tracing using defers | ||||
* | core, eth/downloader: commit block data using batches (#15115) | Felix Lange | 2017-09-10 | 3 | -13/+50 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ethdb: add Putter interface and Has method * ethdb: improve docs and add IdealBatchSize * ethdb: remove memory batch lock Batches are not safe for concurrent use. * core: use ethdb.Putter for Write* functions This covers the easy cases. * core/state: simplify StateSync * trie: optimize local node check * ethdb: add ValueSize to Batch * core: optimize HasHeader check This avoids one random database read get the block number. For many uses of HasHeader, the expectation is that it's actually there. Using Has avoids a load + decode of the value. * core: write fast sync block data in batches Collect writes into batches up to the ideal size instead of issuing many small, concurrent writes. * eth/downloader: commit larger state batches Collect nodes into a batch up to the ideal size instead of committing whenever a node is received. * core: optimize HasBlock check This avoids a random database read to get the number. * core: use numberCache in HasHeader numberCache has higher capacity, increasing the odds of finding the header without a database lookup. * core: write imported block data using a batch Restore batch writes of state and add blocks, tx entries, receipts to the same batch. The change also simplifies the miner. This commit also removes posting of logs when a forked block is imported. * core: fix DB write error handling * ethdb: use RLock for Has * core: fix HasBlock comment | ||||
* | ethdb: return copied value from MemDatabase.Get (#14958) | gary rong | 2017-08-11 | 2 | -1/+16 |
| | |||||
* | ethdb: add basic and parallel sanity tests (#14938) | Egon Elbre | 2017-08-08 | 1 | -9/+152 |
| | | | | | | | | * ethdb: add basic sanity test * ethdb: test MemDatabase * ethdb: add parallel tests | ||||
* | trie: more node iterator improvements (#14615) | Felix Lange | 2017-06-21 | 1 | -7/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ethdb: remove Set Set deadlocks immediately and isn't part of the Database interface. * trie: add Err to Iterator This is useful for testing because the underlying NodeIterator doesn't need to be kept in a separate variable just to get the error. * trie: add LeafKey to iterator, panic when not at leaf LeafKey is useful for callers that can't interpret Path. * trie: retry failed seek/peek in iterator Next Instead of failing iteration irrecoverably, make it so Next retries the pending seek or peek every time. Smaller changes in this commit make this easier to test: * The iterator previously returned from Next on encountering a hash node. This caused it to visit the same path twice. * Path returned nibbles with terminator symbol for valueNode attached to fullNode, but removed it for valueNode attached to shortNode. Now the terminator is always present. This makes Path unique to each node and simplifies Leaf. * trie: add Path to MissingNodeError The light client trie iterator needs to know the path of the node that's missing so it can retrieve a proof for it. NodeIterator.Path is not sufficient because it is updated when the node is resolved and actually visited by the iterator. Also remove unused fields. They were added a long time ago before we knew which fields would be needed for the light client. | ||||
* | Logger updates 3 (#3730) | Péter Szilágyi | 2017-03-02 | 1 | -82/+69 |
| | | | | | | | | * accounts, cmd, eth, ethdb: port logs over to new system * ethdb: drop concept of cache distribution between dbs * eth: fix some log nitpicks to make them nicer | ||||
* | all: blidly swap out glog to our log15, logs need rework | Péter Szilágyi | 2017-02-23 | 1 | -13/+11 |
| | |||||
* | ethdb: Implement interface for prefixed operations to the DB (#3536) | Nick Johnson | 2017-01-11 | 1 | -0/+52 |
| | |||||
* | all: gofmt -w -s | Felix Lange | 2017-01-06 | 1 | -1/+1 |
| | |||||
* | cmd, eth: added light client and light server modes | zsfelfoldi | 2016-11-09 | 1 | -2/+4 |
| | |||||
* | Merge pull request #2914 from fjl/node-coinhabit | Felix Lange | 2016-09-29 | 1 | -0/+5 |
|\ | | | | | cmd/utils, node: make datadir reusable for bzzd | ||||
| * | ethdb: add accessor for database directory | Felix Lange | 2016-09-16 | 1 | -0/+5 |
| | | |||||
* | | core, eth, trie: reuse trie journals in all our code | Péter Szilágyi | 2016-09-28 | 1 | -0/+2 |
|/ | |||||
* | eth: remove dapp database remains | Felix Lange | 2016-08-17 | 1 | -2/+0 |
| | |||||
* | ethdb, p2p/discover: replace "alloted" with "allotted" (#2785) | villesundell | 2016-07-12 | 1 | -3/+3 |
| | |||||
* | cmd, eth, ethdb, node: prioritise chaindata for resources, bump cache | Péter Szilágyi | 2016-03-09 | 2 | -7/+18 |
| | |||||
* | Merge pull request #2242 from jimenezrick/upstream-crypto | Jeffrey Wilcke | 2016-02-24 | 1 | -11/+0 |
|\ | | | | | Closes #2241: Use Keccak-256 from golang.org/x/crypto/sha3 and mention explicitly | ||||
| * | ethdb: Remove outdated README pointing to an old link | Ricardo Catalinas Jiménez | 2016-02-22 | 1 | -11/+0 |
| | | |||||
* | | ethdb: fully disable metrics if not requested (oops?) | Péter Szilágyi | 2016-02-23 | 1 | -0/+4 |
|/ | |||||
* | core/state, ethdb, trie: test intermediate secure key leak, fix memdb bug | Péter Szilágyi | 2016-01-20 | 1 | -1/+1 |
| | |||||
* | common: remove old RLP implementation, Value and ExtPackage | Felix Lange | 2015-12-18 | 1 | -22/+1 |
| | | | | | In order to make this happen, kill all remaining trivial uses of common/{rlp,value}.go. The non-trivial ones have been updated earlier. | ||||
* | core, eth, trie: fix data races and merge/review issues | Péter Szilágyi | 2015-10-21 | 1 | -3/+7 |
| | |||||
* | eth/downloader: concurrent receipt and state processing | Péter Szilágyi | 2015-10-19 | 1 | -12/+39 |
| | |||||
* | ethdb: remove Flush | Felix Lange | 2015-09-15 | 3 | -18/+8 |
| | |||||
* | ethdb: copy stored memdb values | Felix Lange | 2015-09-15 | 1 | -2/+1 |
| | | | | | | Storing a value in LevelDB copies the bytes, modifying the value afterwards does not affect the content of the database. This commit ensures that MemDatabase satisfies the same property. | ||||
* | ethdb: add NewBatch | Felix Lange | 2015-09-15 | 3 | -0/+49 |
| | |||||
* | all: move common.Database to package ethdb | Felix Lange | 2015-09-15 | 1 | -0/+25 |
| | |||||
* | eth, eth/downloader: handle header requests, table driven proto tests | Péter Szilágyi | 2015-08-24 | 1 | -0/+8 |
| | |||||
* | core, eth, trie, xeth: merged state, chain, extra databases in one | Jeffrey Wilcke | 2015-08-08 | 1 | -3/+2 |
| | |||||
* | Merge pull request #1515 from fjl/license-fixes | Jeffrey Wilcke | 2015-07-28 | 3 | -3/+3 |
|\ | | | | | all: fix license headers one more time | ||||
| * | all: fix license headers one more time | Felix Lange | 2015-07-24 | 3 | -3/+3 |
| | | | | | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a. | ||||
* | | ethdb, trie: removed RLE compression | Jeffrey Wilcke | 2015-07-23 | 1 | -5/+5 |
| | | |||||
* | | Merge pull request #1510 from fjl/license-fixes | Jeffrey Wilcke | 2015-07-23 | 3 | -12/+12 |
|\| | | | | | all: license fixes | ||||
| * | all: update license headers to distiguish GPL/LGPL | Felix Lange | 2015-07-23 | 3 | -12/+12 |
| | | | | | | | | | | 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, ethdb: cache flag to allocate memory for db internal use | Péter Szilágyi | 2015-07-22 | 2 | -8/+26 |
|/ | |||||
* | eth, ethdb: fix a data race during startup/shutdown | Péter Szilágyi | 2015-07-09 | 1 | -36/+80 |
| | |||||
* | all: update license information | Felix Lange | 2015-07-07 | 3 | -0/+48 |
| | |||||
* | cmd/geth, eth, ethdb: monitor database compactions | Péter Szilágyi | 2015-06-30 | 1 | -13/+84 |
| | |||||
* | ethdb: accessor for LDB. TODO remove this interface | obscuren | 2015-06-30 | 1 | -0/+4 |
| | |||||
* | eth, ethdb: measure database operation latencies too | Péter Szilágyi | 2015-06-24 | 1 | -11/+28 |
| | |||||
* | core, eth, eth/fetcher, ethdb: polish metrics gathering a bit | Péter Szilágyi | 2015-06-24 | 1 | -4/+16 |
| | |||||
* | core, ethdb: instrument the block and state db | Péter Szilágyi | 2015-06-24 | 1 | -5/+14 |
| | | | | | Conflicts: ethdb/database.go | ||||
* | core, ethdb, trie: validate database errors | obscuren | 2015-06-21 | 2 | -3/+5 |
| | |||||
* | common, ethdb: removed caching and LastTD | obscuren | 2015-05-28 | 1 | -58/+6 |
| | |||||
* | ethdb: documentation and corruption recovery | obscuren | 2015-05-21 | 1 | -8/+13 |
| | |||||
* | removed redundant newlines in import block | Bas van Kervel | 2015-05-12 | 1 | -1/+0 |
| | |||||
* | replaced several path.* with filepath.* which is platform independent | Bas van Kervel | 2015-05-12 | 1 | -2/+3 |
| | |||||
* | eth, ethdb: lower the amount of open files & improve err messages for db | obscuren | 2015-05-12 | 1 | -2/+2 |
| | | | | Closes #880 | ||||
* | ethdb: set open file limit to 128 for all leveldbs | obscuren | 2015-05-10 | 1 | -1/+4 |
| | |||||
* | Moved leveldb update loop to eth/backend | Bas van Kervel | 2015-04-23 | 2 | -25/+7 |
| | | | | | | change order of block insert and update LastBlock bugfix, wrong hash stored in blockDb | ||||
* | Queued level db writes and batch writes. Closes #647 | obscuren | 2015-04-08 | 2 | -44/+94 |
| | |||||
* | common: drop accessors for Value.Val | Felix Lange | 2015-03-20 | 1 | -1/+1 |
| | | | | I don't see why we would need two different accessors for a public field. | ||||
* | Moved ethutil => common | obscuren | 2015-03-16 | 2 | -6/+6 |
| | |||||
* | cmd/evm, core, ethdb, state, tests/helper: remove ReadConfig calls | Felix Lange | 2015-03-10 | 1 | -2/+0 |
| | |||||
* | ethutil: remove Config variable | Felix Lange | 2015-03-06 | 1 | -8/+3 |
| | | | | | | | | | | | 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 | ||||
* | removed messages | obscuren | 2015-02-13 | 1 | -2/+2 |
| | |||||
* | Decode from stream directly | obscuren | 2014-12-23 | 1 | -0/+4 |
| | |||||
* | Added caching and database interface to trie | obscuren | 2014-11-19 | 1 | -0/+4 |
| | | | | | * Reimplemented caching for trie * Reimplemented resetting and persisting trie | ||||
* | Added storage root to dump | obscuren | 2014-11-04 | 1 | -1/+0 |
| | |||||
* | Compress data on db level. Closes #174 | obscuren | 2014-11-03 | 2 | -19/+58 |
| | |||||
* | Merge eth-go repository into go-ethereum | Felix Lange | 2014-10-23 | 2 | -2/+3 |
| | | | | mist, etheruem have been moved to cmd/ | ||||
* | Removed old code | obscuren | 2014-08-23 | 1 | -10/+3 |
| | |||||
* | Moved keyring to ethutil & removed old methods. Implements #20 | obscuren | 2014-05-14 | 2 | -0/+4 |
| | |||||
* | Added a GetKeys method to support multiple accounts | obscuren | 2014-02-28 | 1 | -0/+6 |
| | |||||
* | leveldb API changed for NewIterator. Fixes #20 | obscuren | 2014-02-28 | 1 | -1/+7 |
| | |||||
* | Addad db name for new ldb | obscuren | 2014-02-25 | 1 | -2/+6 |
| | |||||
* | Added delete to database interfaces | obscuren | 2014-02-24 | 2 | -0/+10 |
| | |||||
* | Removed RlpValue in favour of Value | obscuren | 2014-02-15 | 1 | -3/+2 |
| | |||||
* | The great merge | obscuren | 2014-02-15 | 5 | -0/+142 |