ledgerwatch
8cb96471a3
Skeleton of RPC daemon, for 1 operation eth_blockNumber ( #209 )
...
* Finish CmdSeek and add CmdNext
* Add remoteDb listener and RPC daemon CLI
* Fix test
* Fix CLI
* Fix lint
* Fix unreachable code
* Fix lint
* First working RPC command eth_blockNumber
* Fix lint
* Fix lint
* Fix memprofile/cpuprofile confusion
* Add comment
2019-12-02 13:47:00 +00:00
Andrew Ashikhmin
84285a5ab1
Roughly finish with adding BadgerDB (first cut) ( #203 )
...
* Bumping GOMAXPROCS for Badger
* fixes related to database size
* Schedule GC for Badger
* pacify linter
* Don't start GC for ephemeral Badger
* Don't log "Value log GC attempt didn't result in any cleanup"
* Start GC in backround
* Bump GC period and IdealBatchSize for Badger
* BadgerDatabase RewindData
* Boolean badger flag -> string database flag
* cosmetic change
2019-11-27 13:15:25 +00:00
ledgerwatch
b9b4904e8d
First steps for RPC deamon (remote DB access) ( #199 )
...
* Remote DB initial commit
* Fix lint
* Fix lint
* Fix lint
2019-11-25 13:39:32 +00:00
Evgeny Danilenko
992e34745c
Replace red black trees ( #184 )
...
* use map instead of rb tree
* GetModifiedAccounts
* introduce tuples
* linters
* linters
* init puts
* init maps
* remove GetSortedKeys
* fix string bucket case
* use append in tuples
* fix tuples
* fix tests
* all tests are green
* fmt
* fmt
* rename tuple to tuples
2019-11-21 18:38:00 +00:00
Andrew Ashikhmin
1c0cf9be72
BadgerDB: MultiWalk & some other APIs, command line flag, scaffolding for testing ( #183 )
...
* BadgerDatabase MemCopy
* fix err shadowing
* BadgerDatabase MultiPut & NewBatch
* Remove goOn from MultiWalk & MultiWalkAsOf
* BadgerDatabase MultiWalk. Scaffolding for testing Badger in blockchain_test
* Badger Flag
* fix error logging
* Split IdealBatchSize between BoltDB and BadgerDB
* NewEphemeralBadger
2019-11-21 16:12:38 +01:00
andrew
0eb9d3915b
Add method stubs to BadgerDatabase so it formally implements the Database interface
2019-11-14 13:00:38 +01:00
andrew
62d36ada39
BadgerDatabase Walk
2019-11-13 17:43:26 +01:00
andrew
109217a9da
BadgerDatabase Has
2019-11-12 11:40:46 +01:00
andrew
6352fc024c
Don't expose Bolt DB in the interface
2019-11-11 20:28:27 +01:00
andrew
8cb8544c45
Merge branch 'master' into badger2
2019-11-11 17:12:28 +01:00
andrew
a6d0e795c0
BadgerDatabase GetAsOf
2019-11-11 17:02:37 +01:00
b00ris
6e880cc945
suffix to changeset rename ( #152 )
2019-11-07 18:51:25 +03:00
andrew
93ff66f900
Merge branch 'master' into badger2
2019-11-07 15:55:57 +01:00
andrew
26cb9bd33b
BadgerDatabase GetS
2019-11-07 15:55:21 +01:00
andrew
e25303a51e
re-enable a check in testParallelPutGet
2019-11-06 11:30:02 +01:00
andrew
069343d5a8
BadgerDatabase DeleteTimestamp
2019-11-06 11:24:48 +01:00
Giulio
138241bd2c
linting
2019-11-05 22:51:11 +01:00
Giulio
f0d8c108cc
added visualization table
2019-11-05 22:50:24 +01:00
andrew
9be775c8bd
Port my work from badger after the master rebase
2019-11-05 13:28:36 +01:00
b00ris
9eb7d8b1c2
Suffix reorg ( #113 )
2019-11-04 14:15:26 +01:00
Andrew Ashikhmin
e14b02e1c9
Merge pull request #135 from ledgerwatch/badger
2019-11-04 14:15:26 +01:00
Alexey Akhunov
fe01bccbb8
Apply Turbo-Geth modifications to go-ethereum codebase
2019-11-01 21:52:03 +01:00
gary rong
df89233b57
ethdb/leveldb: disable seek compaction ( #20130 )
...
* vendor: update leveldb
* ethdb/leveldb: disable seek compaction and add metrics
* vendor: udpate latest levledb
* ethdb/leveldb: fix typo
2019-09-26 17:44:00 +03:00
Andrey Petrov
46ec63b849
ethdb/dbtest: addd test suite for ethdb backends ( #19960 )
...
- Move the existing tests from memorydb into a generalized testsuite
that can be run by any ethdb backend implementation.
- Add several more test cases to clarify some non-obvious nuances when
implementing a custom ethdb backend, such as the behaviour of
NewIteratorWithPrefix vs NewIteratorWithStart.
- Add leveldb to the testsuite using in-memory storage for fast
execution.
2019-08-22 11:47:24 +02:00
Péter Szilágyi
e46a01d56c
ethdb/memorydb: allow noop compact on memdb ( #19907 )
...
* ethdb/memorydb: allow noop compact on memdb
* ethdb/memorydb: fix comment type
2019-08-01 11:00:56 +03:00
Péter Szilágyi
1a83114c74
all: update author list and licenses
2019-07-22 12:17:27 +03:00
Péter Szilágyi
b02958b9c5
core, ethdb, metrics, p2p: expose various counter metrics for grafana
2019-06-11 09:49:13 +03:00
gary rong
37d280da41
core, cmd, vendor: fixes and database inspection tool ( #15 )
...
* 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
2019-05-16 10:39:34 +03:00
gary rong
80469bea0c
all: integrate the freezer with fast sync
...
* 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
2019-05-16 10:39:32 +03:00
rjl493456442
b6cac42e9f
core/rawdb: add file lock for freezer
2019-05-16 10:39:31 +03:00
Péter Szilágyi
006c21efc7
cmd, core, eth, les, node: chain freezer on top of db rework
2019-05-16 10:39:29 +03:00
Péter Szilágyi
9effd64290
core, eth, trie: bloom filter for trie node dedup during fast sync ( #19489 )
...
* 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
2019-05-13 15:28:01 +03:00
Martin Holst Swende
59e1953246
core, ethdb, trie: mode dirty data to clean cache on flush ( #19307 )
...
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.
2019-03-26 15:48:31 +01:00
Péter Szilágyi
8111b9dda5
ethdb, trie: tiny API tidy-up from the database rework pr
2019-03-12 12:32:02 +02:00
Péter Szilágyi
054412e335
all: clean up and proerly abstract database access
2019-03-06 13:35:03 +02:00
Péter Szilágyi
d6225ab846
cmd/utils, eth: relinquish GC cache to read cache in archive mode
2019-02-07 14:36:25 +02:00
Dmitrij Koniajev
6a7695e367
ethdb, rpc: support building on js/wasm ( #17709 )
...
The changes allow building WebAssembly applications which use ethclient.Client.
2018-10-16 00:47:25 +02:00
gary rong
5d1d1a808d
consensus, ethdb, metrics: implement forced-meter ( #17667 )
2018-09-17 15:32:34 +03:00
gary rong
dcdd57df62
core, ethdb: two tiny fixes ( #17183 )
...
* ethdb: fix memory database
* core: fix bloombits checking
* core: minor polish
2018-07-18 13:41:36 +03:00
gary rong
e8824f6e74
vendor, ethdb: resume write operation asap ( #17144 )
...
* vendor: update leveldb
* ethdb: remove useless warning log
2018-07-12 11:07:51 +03:00
gary rong
a4a2343cdc
ethdb, core: implement delete for db batch ( #17101 )
2018-07-02 11:16:30 +03:00
gary rong
f991995918
ethdb: gracefullly handle quit channel ( #16794 )
...
* ethdb: gratefullly handle quit channel
* ethdb: minor polish
2018-06-11 16:11:48 +03:00
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
2018-05-22 11:12:52 +03:00
gary rong
7beccb29be
all: get rid of error when creating memory database ( #16716 )
...
* all: get rid of error when create mdb
* core: clean up variables definition
* all: inline mdb definition
2018-05-09 15:24:25 +03:00
gary rong
6b2b328cdb
ethdb: add leveldb write delay statistic ( #16499 )
2018-04-16 11:18:24 +03:00
Felix Lange
0fac705ed0
compression/rle: delete RLE compression ( #16468 )
2018-04-09 13:47:06 +02:00
Péter Szilágyi
495bdb0c71
cmd: export preimages in RLP, support GZIP, uniform with block export
2018-03-26 14:08:01 +03:00
rjl493456442
b6b6f52ec8
cmd: implement preimage dump and import cmds
2018-03-26 12:51:46 +03:00
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
2018-03-08 14:59:00 +02:00
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
2018-02-23 11:56:08 +02:00