gary rong
a4a2343cdc
ethdb, core: implement delete for db batch ( #17101 )
6 years ago
gary rong
f991995918
ethdb: gracefullly handle quit channel ( #16794 )
...
* ethdb: gratefullly handle quit channel
* ethdb: minor polish
7 years ago
gary rong
6ce21a4744
vendor, ethdb: print warning log if leveldb is performing compaction ( #16766 )
...
* vendor: update leveldb package
* ethdb: print warning log if db is performing compaction
* ethdb: update annotation and log
7 years ago
gary rong
6b2b328cdb
ethdb: add leveldb write delay statistic ( #16499 )
7 years ago
Felix Lange
0fac705ed0
compression/rle: delete RLE compression ( #16468 )
7 years ago
Péter Szilágyi
495bdb0c71
cmd: export preimages in RLP, support GZIP, uniform with block export
7 years ago
rjl493456442
b6b6f52ec8
cmd: implement preimage dump and import cmds
7 years ago
Kurkó Mihály
39c16c8a1e
cmd, ethdb, vendor: integrate leveldb iostats ( #16277 )
...
* cmd, dashboard, ethdb, vendor: send iostats to dashboard
* ethdb: change names
* ethdb: handle parsing errors
* ethdb: handle iostats syntax error
* ethdb: r -> w
7 years ago
Anton Evangelatov
ae9f97221a
metrics: pull library and introduce ResettingTimer and InfluxDB reporter ( #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
7 years ago
Péter Szilágyi
3e89b80ccb
ethdb: reset the batch size too on reset
7 years ago
Martin Holst Swende
017b9f7eac
core, ethdb: reuse database batches ( #15989 )
...
* leveldb: Update leveldb to 211f780 (poolfix)
* core, ethdb: reuse database batches
7 years ago
Felix Lange
10181b57a9
core, eth/downloader: commit block data using batches ( #15115 )
...
* 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
7 years ago
Péter Szilágyi
9184249b39
Logger updates 3 ( #3730 )
...
* 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
8 years ago
Péter Szilágyi
d4fd06c3dc
all: blidly swap out glog to our log15, logs need rework
8 years ago
Nick Johnson
d30d7800e0
ethdb: Implement interface for prefixed operations to the DB ( #3536 )
8 years ago
zsfelfoldi
7db7109a5b
cmd, eth: added light client and light server modes
8 years ago
Péter Szilágyi
710435b51b
core, eth, trie: reuse trie journals in all our code
8 years ago
Felix Lange
52ede09b17
ethdb: add accessor for database directory
8 years ago
Felix Lange
84d11c19fd
eth: remove dapp database remains
8 years ago
villesundell
c7442ef0d2
ethdb, p2p/discover: replace "alloted" with "allotted" ( #2785 )
8 years ago
Péter Szilágyi
e90958cd29
cmd, eth, ethdb, node: prioritise chaindata for resources, bump cache
9 years ago
Péter Szilágyi
f1ddb1a7ad
ethdb: fully disable metrics if not requested (oops?)
9 years ago
Felix Lange
b252589960
ethdb: remove Flush
9 years ago
Felix Lange
8b32f10f16
ethdb: add NewBatch
9 years ago
Jeffrey Wilcke
a23478c0be
core, eth, trie, xeth: merged state, chain, extra databases in one
9 years ago
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a
.
9 years ago
Jeffrey Wilcke
8f56eea77d
ethdb, trie: removed RLE compression
9 years ago
Felix Lange
3f047be5aa
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
9 years ago
Péter Szilágyi
c7e7778f2a
cmd, core, eth, ethdb: cache flag to allocate memory for db internal use
9 years ago
Péter Szilágyi
eb2d168710
eth, ethdb: fix a data race during startup/shutdown
9 years ago
Felix Lange
ea54283b30
all: update license information
9 years ago
Péter Szilágyi
ccbb56b4f2
cmd/geth, eth, ethdb: monitor database compactions
9 years ago
obscuren
2a5a55efaf
ethdb: accessor for LDB. TODO remove this interface
9 years ago
Péter Szilágyi
803b3c4a82
eth, ethdb: measure database operation latencies too
10 years ago
Péter Szilágyi
792b0ddccd
core, eth, eth/fetcher, ethdb: polish metrics gathering a bit
10 years ago
Péter Szilágyi
43e4a6501b
core, ethdb: instrument the block and state db
...
Conflicts:
ethdb/database.go
10 years ago
obscuren
c590b505ed
core, ethdb, trie: validate database errors
10 years ago
obscuren
020006a8ed
common, ethdb: removed caching and LastTD
10 years ago
obscuren
84cd618585
ethdb: documentation and corruption recovery
10 years ago
obscuren
13f8f65a58
eth, ethdb: lower the amount of open files & improve err messages for db
...
Closes #880
10 years ago
obscuren
0e211ae203
ethdb: set open file limit to 128 for all leveldbs
10 years ago
Bas van Kervel
c273ed7d82
Moved leveldb update loop to eth/backend
...
change order of block insert and update LastBlock
bugfix, wrong hash stored in blockDb
10 years ago
Bas van Kervel
07e85d8e14
Moved leveldb update loop to eth/backend
10 years ago
obscuren
7f32a08b60
Queued level db writes and batch writes. Closes #647
10 years ago
obscuren
b523441361
Moved ethutil => common
10 years ago
Felix Lange
bdba044a80
ethutil: remove Config variable
...
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
10 years ago
obscuren
38faf2c51a
removed messages
10 years ago
obscuren
34f72ddb3d
Decode from stream directly
10 years ago
obscuren
a82b89e2d5
Added storage root to dump
10 years ago
obscuren
76c9c8d653
Compress data on db level. Closes #174
10 years ago