aboutsummaryrefslogtreecommitdiffstats
path: root/core/rawdb
Commit message (Collapse)AuthorAgeFilesLines
* core, ethdb, metrics, p2p: expose various counter metrics for grafanaPéter Szilágyi2019-06-113-43/+76
|
* core/rawdb: avoid O_APPEND (#19676)Frank Szendzielarz2019-06-101-24/+62
| | | | | | | | * Fix file system access for Windows * Encapsulate file accesses * Style fixes
* core: concurrent database reinit from freezer dumpPéter Szilágyi2019-05-272-1/+129
| | | | | | | | * core: reinit chain from freezer in batches * core/rawdb: concurrent database reinit from freezer dump * core/rawdb: reinit from freezer in sequential order
* core/rawdb: keep genesis in key-value store for full sync tooPéter Szilágyi2019-05-271-4/+10
|
* core/rawdb, eth/downloader: align 64bit atomic fieldsPéter Szilágyi2019-05-172-2/+10
|
* cmd/geth, core/rawdb: seamless freezer consistency, friendly removedbPéter Szilágyi2019-05-164-32/+67
|
* cosensus, core, eth, params, trie: fixes + clique history capPéter Szilágyi2019-05-163-27/+48
|
* core, cmd, vendor: fixes and database inspection tool (#15)gary rong2019-05-167-10/+207
| | | | | | | | | | | | | | | | | | | | | | * core, eth: some fixes for freezer * vendor, core/rawdb, cmd/geth: add db inspector * core, cmd/utils: check ancient store path forceily * cmd/geth, common, core/rawdb: a few fixes * cmd/geth: support windows file rename and fix rename error * core: support ancient plugin * core, cmd: streaming file copy * cmd, consensus, core, tests: keep genesis in leveldb * core: write txlookup during ancient init * core: bump database version
* freezer: disable compression on hashes and difficulties (#14)Martin Holst Swende2019-05-163-5/+15
| | | | | | | | * freezer: disable compression on hashes and difficulties * core/rawdb: address review concerns * core/rawdb: address review concerns
* core/rawdb: support starting offset for future deletionMartin Holst Swende2019-05-162-30/+175
|
* all: integrate the freezer with fast syncgary rong2019-05-168-136/+364
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * all: freezer style syncing core, eth, les, light: clean up freezer relative APIs core, eth, les, trie, ethdb, light: clean a bit core, eth, les, light: add unit tests core, light: rewrite setHead function core, eth: fix downloader unit tests core: add receipt chain insertion test core: use constant instead of hardcoding table name core: fix rollback core: fix setHead core/rawdb: remove canonical block first and then iterate side chain core/rawdb, ethdb: add hasAncient interface eth/downloader: calculate ancient limit via cht first core, eth, ethdb: lots of fixes * eth/downloader: print ancient disable log only for fast sync
* core/rawdb: add file lock for freezerrjl4934564422019-05-162-5/+36
|
* freezer: implement split files for dataMartin Holst Swende2019-05-162-95/+815
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * freezer: implement split files for data * freezer: add tests * freezer: close old head-file when opening next * freezer: fix truncation * freezer: more testing around close/open * rawdb/freezer: address review concerns * freezer: fix minor review concerns * freezer: fix remaining concerns + testcases around truncation * freezer: docs * freezer: implement multithreading * core/rawdb: fix freezer nitpicks + change offsets to uint32 * freezer: preopen files, simplify lock constructs * freezer: delete files during truncation
* cmd, core, eth, les, node: chain freezer on top of db reworkPéter Szilágyi2019-05-166-26/+683
|
* core, eth, trie: bloom filter for trie node dedup during fast sync (#19489)Péter Szilágyi2019-05-131-0/+7
| | | | | | | | | | | | * core, eth, trie: bloom filter for trie node dedup during fast sync * eth/downloader, trie: address review comments * core, ethdb, trie: restart fast-sync bloom construction now and again * eth/downloader: initialize fast sync bloom on startup * eth: reenable eth/62 until we properly remove it
* core/rawdb: fix typo (#19526)유용환2019-05-041-2/+2
|
* core/rawdb: typo fix storea => stores (#19498)Hongbin Mao2019-04-261-1/+1
| | | | | | * typo fix * change to stores
* core: lookup txs by block number instead of block hash (#19431)Matthew Halpern2019-04-252-67/+93
| | | | | | | | | | | | | | | | | | | * core: lookup txs by block number instead of block hash Transaction hashes now store a reference to their corresponding block number as opposed to their hash. In benchmarks this was shown to reduce storage by over 12 GB. The main limitation of this approach is that transactions on non-canonical blocks could never be looked up, however that is currently not supported. The database version has been upgraded to version 5 and the transaction lookup process is backwards-compatible with the prior two transaction lookup formats prexisting in the database instance. Tests have been added to ensure this. * core/rawdb: tiny review nit fixes
* core, eth, les, light: scope receipt functionality a bit cleanerPéter Szilágyi2019-04-153-238/+28
|
* core, eth, les, light: store transaction receipts without txHash and gasCostMatthew Halpern2019-04-152-27/+295
|
* core/types: add block location fields to receipt (#17662)Brent2019-03-271-0/+3
| | | | Solves #15210 without changing consensus, in a backwards compatible way, by adding tx inclusion information to the Receipt struct.
* core, ethdb, trie: mode dirty data to clean cache on flush (#19307)Martin Holst Swende2019-03-263-9/+14
| | | | | This PR is a more advanced form of the dirty-to-clean cacher (#18995), where we reuse previous database write batches as datasets to uncache, saving a dirty-trie-iteration and a dirty-trie-rlp-reencoding per block.
* all: clean up and proerly abstract database accessPéter Szilágyi2019-03-069-96/+298
|
* core: remove unnecessary fields in logs, receipts and tx lookups (#17106)gary rong2019-02-215-30/+76
| | | | | | | | | | | | * core: remove unnecessary fields in log * core: bump blockchain database version * core, les: remove unnecessary fields in txlookup * eth: print db version explicitly * core/rawdb: drop txlookup entry struct wrapper
* core, eth: fix database version (#18429)gary rong2019-01-111-7/+15
| | | | | | * core, eth: fix database version * eth: polish error message
* vendor, crypto, swarm: switch over to upstream sha3 packageDave McGregor2019-01-041-4/+4
|
* core, eth/downloader: fix ancestor lookup for fast syncPéter Szilágyi2018-11-161-0/+9
|
* rawdb: remove unused parameter for WritePreimages func (#18059)Corey Lin2018-11-092-4/+3
| | | | | | | * rawdb: remove unused parameter for WritePreimages func and modify a spelling mistake * rawdb: update the doc for function WritePreimages
* core: fix a typo (#17941)Wuxiang2018-10-191-1/+1
|
* core/rawdb: wrap db key creations (#16914)Wenbiao Zheng2018-06-114-48/+85
| | | | | | | | * core/rawdb: use wrappered helper to assemble key * core/rawdb: wrappered helper to assemble key * core/rawdb: rewrite the wrapper, pass common.Hash
* all: get rid of error when creating memory database (#16716)gary rong2018-05-092-9/+9
| | | | | | | | * all: get rid of error when create mdb * core: clean up variables definition * all: inline mdb definition
* core/rawdb: separate raw database access to own package (#16666)Péter Szilágyi2018-05-077-0/+1089