debris
5d6c53c9bd
triedb seek and descend is not recursive
2017-08-26 18:33:43 +02:00
debris
6c00dc71c1
Optimize trie iter by avoiding redundant copying
2017-08-21 18:35:39 +02:00
debris
10914c8346
avoid runtime underflow if nibbles are empty
2017-08-21 14:36:59 +02:00
debris
b68375d462
less unsafe code
2017-08-21 10:19:53 +02:00
debris
32d2cd74d4
ping ci
2017-08-17 17:35:00 +02:00
debris
4cb610d9ae
Itertools are no longer reexported from util, optimized triedb iter
2017-08-17 16:05:26 +02:00
debris
c4989ddc44
removed util::common
2017-07-29 22:49:10 +02:00
debris
eecd823d32
util reexports less std
2017-07-29 21:10:14 +02:00
Vurich
01ce28bc9a
Fix tests
2017-06-29 13:05:33 +02:00
Vurich
3d8dc11442
Upgrade elastic-array
to 0.9.0
...
This is a huge change, which includes some changes to replace code that
originally cloned to reuse allocations instead. The updated
`elastic-array` crate renames its consuming `Vec`-conversion method to
`into_vec`, which means that I can do a simple
`sed -i 's/to_vec/into_vec/'` and then fix the compilation errors.
This commit is probably a minor performance win and definitely a
significant readability win.
2017-06-29 13:05:33 +02:00
Gav Wood
8404edb656
Fix whitespace ( #4299 )
...
* Fix whitespace.
* Update copyright years/owner.
* Push release only for tags.
2017-01-25 18:51:41 +01:00
Robert Habermeier
9c00eb4e8a
Zero-alloc trie lookups ( #3998 )
...
* triedb cleanup
* factor out common portion of trie query
* allocate far fewer times in node decoding
* fix bench compilation
* introduce OwnedNode variant to make iter fast again
* generalize recorder trait to Query
* decode trie outputs cost-free in state
* test for passing closure as query
2017-01-06 16:18:45 +01:00
Robert Habermeier
8125b5690c
Port try
macro to new ?
operator. ( #3962 )
...
* initial untry sweep
* restore try in ipc codegen, fix inference
* change a few missed try instances
2016-12-27 12:53:56 +01:00
Gav Wood
17cc2be4b5
Rename ethcore -> parity in license.
2016-12-11 19:30:54 +01:00
arkpar
c7b359fcee
Style
2016-11-28 01:37:25 +01:00
arkpar
b0555fbe7c
State export
2016-11-28 01:37:24 +01:00
arkpar
8b3cdc513b
Seekable iterator
2016-11-28 01:37:24 +01:00
Tomasz Drwięga
f17cad9dff
Fixing clippy warnings 2 ( #2961 )
2016-10-29 13:08:49 +02:00
Tomasz Drwięga
88997801d0
Clippy bump ( #2877 )
...
* Bumping clippy
* Fixing warnings
* Fix the "fix"
2016-10-27 08:28:12 +02:00
Arkadiy Paronyan
5b978be034
Get rid of MemoryDB denote ( #2881 )
2016-10-26 13:53:47 +02:00
Robert Habermeier
33748c2046
Sweep some more panics ( #2848 )
...
* purge unwraps from ethcrypto, ethstore
* sweep panics from util
2016-10-25 22:34:52 +02:00
Tomasz Drwięga
0017a43364
Making Trie.iter non-recursive ( #2733 )
2016-10-20 14:49:44 +02:00
Robert Habermeier
a100b9d09e
Remove panickers from trie iterators ( #2209 )
...
* port trie iterators to use error handling
* use new trie iterators in snapshot
allows proper recovery from a premature periodic snapshot
2016-09-21 12:56:13 +02:00
Tomasz Drwięga
7f7e74869c
Bump clippy & Fix warnings ( #2109 )
...
* Bump clippy
* Fixing warnings
2016-09-16 23:03:26 +02:00
Robert Habermeier
eb7b62a61c
move rlp to separate crate, port ethcore-util to it
2016-09-01 13:36:32 +02:00
Robert Habermeier
190e4db266
Trie query recording and AccountDB factory for no mangling ( #1944 )
...
* optionally use no mangling for accountdb
* add the recorder module
* get_recorded for tries, no virtual dispatch on readonly tries
* add recording test
2016-08-24 16:53:36 +02:00
Tomasz Drwięga
bcf6b0b7d8
Bump clippy, fix warnings ( #1939 )
...
* Bumping clippy
* Fixing warnings
2016-08-17 16:06:41 +02:00
Tomasz Drwięga
a427208f79
Purging .derefs, fixing clippy warnings. ( #1890 )
...
* Fixing clippy warnings
* Purging derefs
* Simplifying engine derefs
* Simplifying more engine derefs
2016-08-10 16:29:40 +02:00
Robert Habermeier
11b65ce53d
Remove (almost all) panickers from trie module ( #1776 )
...
* memorydb ub patch and other cleanup
* fix denote invocations
* move trie traits into trie module
* replace "denote" with shim
* triedb returns results and no longer panics
* fix warnings
* get ethcore compiling
* warn on trie errors in ethcore
* remove unsafety from node decoder
* restore broken denote behavior for this branch
* fix overlayrecent fallout
* fix triedb tests
* remove unwrap in state
* alter Trie::get to return Result<Option<_>>
* fix refcell error in require
* fix test warnings
* fix json tests
* whitespace
[ci:skip]
* Avoid unneeded match/indentation
* whitespace
* prettify map_or_else
* remove test warning
2016-08-03 18:35:48 +02:00
Tomasz Drwięga
3f41186b2e
Fixing some clippy warnings ( #1728 )
...
* Fixing warnings
* Fixing unnecessary ref
* Removing unnecessary operation
2016-07-26 20:31:25 +02:00
gregg dourgarian
d67369a01c
fix typos ( #1644 )
2016-07-19 20:42:23 +02:00
Robert Habermeier
517c705ab5
In-memory trie operations ( #1408 )
...
* small cleanups in trie
* Memory trie skeleton
* decode nodes from RLP
* memorytrie -> memorytriedb
* implement Trie for MemoryTrie
* partially implement insert
* implement trie insertion
* don't load whole trie into memory, lookup across memory and db
* re-implement insertion and lazily load necessary nodes from DB
* node removal w/o fixing
* reduce churn in node storage
* finish remove implementation
* committing the in-memory trie
* reload root node after commit
* generate elastic arrays when converting nodes to rlp
* port triedbmut tests over to memorytriedb, fix a few bugs.
* hash count and dirty flag
* initial attempt for node inspection
* back to skeleton
* inspection framework
* implement insertion
* no panic paths in insert
* implement deletion without fixing
* node fixing
* commit nodes to db
* tracing targets and bugfix
* get tests to pass with a lot of tracing
* set playpen iterations to 10
* remove some tracing statements
* make TrieMut::root take &mut self
* replace triedbmut with memorytriedb
* treat empty insert value as removal
* add test for null insert
* fix some style concerns
* trie: use nodehandle for root_node, minor cleanup
2016-07-14 18:06:46 +02:00
Tomasz Drwięga
bb2a631885
Fixing compilation&clippy warnings ( #1531 )
...
* Fixing compilation&clippy warnings
* Adding spaces
2016-07-04 13:53:55 +02:00
debris
5ecbeaa82f
trie factory in progress
2016-06-27 10:59:59 +02:00
debris
1b4f67151f
fatdb and fatdb iterator module
2016-06-27 09:16:34 +02:00
keorn
be8f922b3f
Replace deprecated hashdb trait names ( #1394 )
...
* replace deprecated hashdb method names
* spaces -> tabs
2016-06-23 11:16:11 +02:00
Robert Habermeier
13968aaa38
Refactor triedb constructors to error on invalid state root ( #1230 )
...
* add TrieError, refactor Trie DB creation
* remove Result type alias due to glob import conflicts
* fix fallout in state.rs
* add debug, display impl for TrieError
* fix fallout in account.rs
* ethcore::Error::TrieError variant
* fix remaining fallout in ethcore crate
* added From<TrieError> impl for Error, removed map_err calls
* fix test breakages
* fix doc tests
* update docs
[ci skip]
2016-06-07 11:44:09 -07:00
Robert Habermeier
1e10445f82
exists -> contains
2016-06-02 21:23:43 +02:00
Tomasz Drwięga
d84e008e00
Removing superflous check for nightly
2016-03-11 11:16:49 +01:00
Tomasz Drwięga
cbc2c0cf0c
Fixing clippy warnings. When building on nightly it is required to enable clippy
2016-03-07 14:34:17 +01:00
debris
f50bf528e6
fixed allow warnings in util
2016-02-19 11:57:52 +01:00
debris
f1b39ee1e5
nightly fixes
2016-02-14 12:54:27 +01:00
Gav Wood
105f4262dd
Merge pull request #354 from ethcore/license
...
License
2016-02-05 14:06:10 +01:00
debris
c90d64662a
added license in every *.rs file
2016-02-05 13:40:41 +01:00
arkpar
6b3390f034
Refactored JournalDB
2016-02-04 02:40:35 +01:00
Gav Wood
fad2f3a23d
More doc updates. All Gav Wood docs done.
2016-02-03 14:51:45 +01:00
Tomusdrw
adc763325d
Merge branch 'master' into clippy
...
Conflicts:
util/src/rlp/rlptraits.rs
2016-01-19 23:22:40 +01:00
Tomusdrw
bad2a244df
Adding documentation request comments.
2016-01-19 17:02:01 +01:00
Tomusdrw
062193ceb5
Fixing clippy errors in util
2016-01-19 12:14:29 +01:00
Gav Wood
fab99e8538
Disable trieDB ref counting for now.
2016-01-18 00:51:55 +01:00