Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | trie: add start key to NodeIterator constructors | Felix Lange | 2017-04-25 | 1 | -1/+1 |
| | | | | | | | | | The 'step' method is split into two parts, 'peek' and 'push'. peek returns the next state but doesn't make it current. The end of iteration was previously tracked by setting 'trie' to nil. End of iteration is now tracked using the 'iteratorEnd' error, which is slightly cleaner and requires less code. | ||||
* | trie: clean up iterator constructors | Felix Lange | 2017-04-25 | 1 | -1/+1 |
| | | | | | | | Make it so each iterator has exactly one public constructor: - NodeIterators can be created through a method. - Iterators can be created through NewIterator on any NodeIterator. | ||||
* | trie: add difference iterator (#3637) | Nick Johnson | 2017-02-23 | 1 | -2/+2 |
| | | | | | This PR implements a differenceIterator, which allows iterating over trie nodes that exist in one trie but not in another. This is a prerequisite for most GC strategies, in order to find obsolete nodes. | ||||
* | all: fix issues reported by honnef.co/go/simple/cmd/gosimple | Felix Lange | 2017-01-07 | 1 | -1/+1 |
| | |||||
* | all: gofmt -w -s | Felix Lange | 2017-01-06 | 1 | -2/+2 |
| | |||||
* | trie: remove dependency on ethdb | Felix Lange | 2017-01-06 | 1 | -6/+6 |
| | | | | This removes the core/types -> leveldb dependency. | ||||
* | core/state, eth/downloader, trie: reset fast-failure on progress | Péter Szilágyi | 2016-10-31 | 1 | -6/+6 |
| | |||||
* | core, trie: replace state caches with trie journal | Felix Lange | 2016-09-28 | 1 | -9/+0 |
| | |||||
* | core/state, trie: switch iterator panics to error fields | Péter Szilágyi | 2016-02-16 | 1 | -12/+6 |
| | |||||
* | core/state, trie: surface iterator entry hashes | Péter Szilágyi | 2016-02-16 | 1 | -2/+1 |
| | |||||
* | core/state, trie: add node iterator, test state/trie sync consistency | Péter Szilágyi | 2016-02-16 | 1 | -5/+97 |
| | |||||
* | core, eth, trie: direct state trie synchronization | Péter Szilágyi | 2015-10-19 | 1 | -0/+257 |