aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb/database.go
Commit message (Collapse)AuthorAgeFilesLines
* ethdb: add leveldb write delay statistic (#16499)gary rong2018-04-161-14/+81
|
* compression/rle: delete RLE compression (#16468)Felix Lange2018-04-091-6/+0
|
* cmd: export preimages in RLP, support GZIP, uniform with block exportPéter Szilágyi2018-03-261-2/+2
|
* cmd: implement preimage dump and import cmdsrjl4934564422018-03-261-0/+6
|
* cmd, ethdb, vendor: integrate leveldb iostats (#16277)Kurkó Mihály2018-03-081-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 Evangelatov2018-02-231-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 resetPéter Szilágyi2018-01-311-0/+1
|
* core, ethdb: reuse database batches (#15989)Martin Holst Swende2018-01-311-0/+8
| | | | | | * leveldb: Update leveldb to 211f780 (poolfix) * core, ethdb: reuse database batches
* core, eth/downloader: commit block data using batches (#15115)Felix Lange2017-09-101-4/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Logger updates 3 (#3730)Péter Szilágyi2017-03-021-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 reworkPéter Szilágyi2017-02-231-13/+11
|
* ethdb: Implement interface for prefixed operations to the DB (#3536)Nick Johnson2017-01-111-0/+52
|
* cmd, eth: added light client and light server modeszsfelfoldi2016-11-091-2/+4
|
* Merge pull request #2914 from fjl/node-coinhabitFelix Lange2016-09-291-0/+5
|\ | | | | cmd/utils, node: make datadir reusable for bzzd
| * ethdb: add accessor for database directoryFelix Lange2016-09-161-0/+5
| |
* | core, eth, trie: reuse trie journals in all our codePéter Szilágyi2016-09-281-0/+2
|/
* eth: remove dapp database remainsFelix Lange2016-08-171-2/+0
|
* ethdb, p2p/discover: replace "alloted" with "allotted" (#2785)villesundell2016-07-121-3/+3
|
* cmd, eth, ethdb, node: prioritise chaindata for resources, bump cachePéter Szilágyi2016-03-091-6/+17
|
* ethdb: fully disable metrics if not requested (oops?)Péter Szilágyi2016-02-231-0/+4
|
* ethdb: remove FlushFelix Lange2015-09-151-13/+8
|
* ethdb: add NewBatchFelix Lange2015-09-151-0/+20
|
* core, eth, trie, xeth: merged state, chain, extra databases in oneJeffrey Wilcke2015-08-081-3/+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.
* | ethdb, trie: removed RLE compressionJeffrey Wilcke2015-07-231-5/+5
| |
* | Merge pull request #1510 from fjl/license-fixesJeffrey Wilcke2015-07-231-4/+4
|\| | | | | all: license fixes
| * 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, ethdb: cache flag to allocate memory for db internal usePéter Szilágyi2015-07-221-6/+25
|/
* eth, ethdb: fix a data race during startup/shutdownPéter Szilágyi2015-07-091-36/+80
|
* all: update license informationFelix Lange2015-07-071-0/+16
|
* cmd/geth, eth, ethdb: monitor database compactionsPéter Szilágyi2015-06-301-13/+84
|
* ethdb: accessor for LDB. TODO remove this interfaceobscuren2015-06-301-0/+4
|
* eth, ethdb: measure database operation latencies tooPéter Szilágyi2015-06-241-11/+28
|
* core, eth, eth/fetcher, ethdb: polish metrics gathering a bitPéter Szilágyi2015-06-241-4/+16
|
* core, ethdb: instrument the block and state dbPéter Szilágyi2015-06-241-5/+14
| | | | | Conflicts: ethdb/database.go
* core, ethdb, trie: validate database errorsobscuren2015-06-211-2/+2
|
* common, ethdb: removed caching and LastTDobscuren2015-05-281-58/+6
|
* ethdb: documentation and corruption recoveryobscuren2015-05-211-8/+13
|
* eth, ethdb: lower the amount of open files & improve err messages for dbobscuren2015-05-121-2/+2
| | | | Closes #880
* ethdb: set open file limit to 128 for all leveldbsobscuren2015-05-101-1/+4
|
* Moved leveldb update loop to eth/backendBas van Kervel2015-04-231-25/+3
| | | | | | change order of block insert and update LastBlock bugfix, wrong hash stored in blockDb
* Queued level db writes and batch writes. Closes #647obscuren2015-04-081-27/+84
|
* Moved ethutil => commonobscuren2015-03-161-2/+2
|
* ethutil: remove Config variableFelix Lange2015-03-061-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 messagesobscuren2015-02-131-2/+2
|
* Decode from stream directlyobscuren2014-12-231-0/+4
|
* Added storage root to dumpobscuren2014-11-041-1/+0
|
* Compress data on db level. Closes #174obscuren2014-11-031-17/+34
|
* Merge eth-go repository into go-ethereumFelix Lange2014-10-231-1/+1
| | | | mist, etheruem have been moved to cmd/
* Removed old codeobscuren2014-08-231-10/+3
|
* Moved keyring to ethutil & removed old methods. Implements #20obscuren2014-05-141-0/+2
|
* leveldb API changed for NewIterator. Fixes #20obscuren2014-02-281-1/+7
|
* Addad db name for new ldbobscuren2014-02-251-2/+6
|
* Added delete to database interfacesobscuren2014-02-241-0/+4
|
* The great mergeobscuren2014-02-151-0/+64