aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb
Commit message (Collapse)AuthorAgeFilesLines
* trie: more node iterator improvements (#14615)Felix Lange2017-06-211-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á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
|
* all: gofmt -w -sFelix Lange2017-01-061-1/+1
|
* 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-092-7/+18
|
* Merge pull request #2242 from jimenezrick/upstream-cryptoJeffrey Wilcke2016-02-241-11/+0
|\ | | | | Closes #2241: Use Keccak-256 from golang.org/x/crypto/sha3 and mention explicitly
| * ethdb: Remove outdated README pointing to an old linkRicardo Catalinas Jiménez2016-02-221-11/+0
| |
* | ethdb: fully disable metrics if not requested (oops?)Péter Szilágyi2016-02-231-0/+4
|/
* core/state, ethdb, trie: test intermediate secure key leak, fix memdb bugPéter Szilágyi2016-01-201-1/+1
|
* common: remove old RLP implementation, Value and ExtPackageFelix Lange2015-12-181-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 issuesPéter Szilágyi2015-10-211-3/+7
|
* eth/downloader: concurrent receipt and state processingPéter Szilágyi2015-10-191-12/+39
|
* ethdb: remove FlushFelix Lange2015-09-153-18/+8
|
* ethdb: copy stored memdb valuesFelix Lange2015-09-151-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 NewBatchFelix Lange2015-09-153-0/+49
|
* all: move common.Database to package ethdbFelix Lange2015-09-151-0/+25
|
* eth, eth/downloader: handle header requests, table driven proto testsPéter Szilágyi2015-08-241-0/+8
|
* 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-283-3/+3
|\ | | | | all: fix license headers one more time
| * all: fix license headers one more timeFelix Lange2015-07-243-3/+3
| | | | | | | | 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-233-12/+12
|\| | | | | all: license fixes
| * all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-233-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 usePéter Szilágyi2015-07-222-8/+26
|/
* eth, ethdb: fix a data race during startup/shutdownPéter Szilágyi2015-07-091-36/+80
|
* all: update license informationFelix Lange2015-07-073-0/+48
|
* 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-212-3/+5
|
* common, ethdb: removed caching and LastTDobscuren2015-05-281-58/+6
|
* ethdb: documentation and corruption recoveryobscuren2015-05-211-8/+13
|
* removed redundant newlines in import blockBas van Kervel2015-05-121-1/+0
|
* replaced several path.* with filepath.* which is platform independentBas van Kervel2015-05-121-2/+3
|
* 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-232-25/+7
| | | | | | change order of block insert and update LastBlock bugfix, wrong hash stored in blockDb
* Queued level db writes and batch writes. Closes #647obscuren2015-04-082-44/+94
|
* common: drop accessors for Value.ValFelix Lange2015-03-201-1/+1
| | | | I don't see why we would need two different accessors for a public field.
* Moved ethutil => commonobscuren2015-03-162-6/+6
|
* cmd/evm, core, ethdb, state, tests/helper: remove ReadConfig callsFelix Lange2015-03-101-2/+0
|
* 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 caching and database interface to trieobscuren2014-11-191-0/+4
| | | | | * Reimplemented caching for trie * Reimplemented resetting and persisting trie
* Added storage root to dumpobscuren2014-11-041-1/+0
|
* Compress data on db level. Closes #174obscuren2014-11-032-19/+58
|
* Merge eth-go repository into go-ethereumFelix Lange2014-10-232-2/+3
| | | | mist, etheruem have been moved to cmd/
* Removed old codeobscuren2014-08-231-10/+3
|
* Moved keyring to ethutil & removed old methods. Implements #20obscuren2014-05-142-0/+4
|
* Added a GetKeys method to support multiple accountsobscuren2014-02-281-0/+6
|
* 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-242-0/+10
|
* Removed RlpValue in favour of Valueobscuren2014-02-151-3/+2
|
* The great mergeobscuren2014-02-155-0/+142