Arkadiy Paronyan
340f0b6f58
Don't ping all nodes on start ( #1656 )
...
* Don't ping all nodes on start
* Fixed test
2016-07-19 09:24:19 +02:00
Arkadiy Paronyan
4e447ccc68
More performance optimizations ( #1649 )
...
* Use tree index for DB
* Set uncles_hash, tx_root, receipts_root from verified block
* Use Filth instead of a bool
* Fix empty root check
* Flush block queue properly
* Expunge deref
2016-07-19 09:23:53 +02:00
Gav Wood
34b7cf2e0a
Pro paths ( #1650 )
...
* Util funtions to get OS-standard config path.
* Build fix.
2016-07-17 23:00:47 +02:00
Arkadiy Paronyan
5ab18d1313
Performance optimizations ( #1642 )
...
* Optimize ethash verification
* disable WAL for puts
* Clear account cache after commit
* Commit only modified accounts
* Optimize existing block check
* Cache last hashes
2016-07-17 09:18:15 +02:00
Arkadiy Paronyan
64417594c7
Delete values immediately from DB overlay ( #1631 )
...
* Delete values immediately from DB overlay
* Match remove behaviour; test
* Warning fixed
2016-07-16 14:48:54 +02:00
Nikolay Volf
7b5d39e0a1
fix network_start regression ( #1629 )
...
* fix network_start regression
* network io handler
* move registration to the network start
2016-07-16 11:31:59 +02:00
Gav Wood
d14b6871a5
Cleanup of colour code. Use is_a_tty. ( #1621 )
...
* Cleanup of colour code. Use is_a_tty.
* Fix test build.
* Another fix.
2016-07-15 10:11:14 +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
Nikolay Volf
06e8ae19e3
Merge pull request #1614 from ethcore/cache-pref
...
Couple of rocksdb optimizations
2016-07-14 12:37:08 +02:00
Tomasz Drwięga
6c205067b1
Miner tests ( #1597 )
...
* Un-ignoring RPC test
* Additional tests for importing transactions
2016-07-14 12:16:53 +02:00
Arkadiy Paronyan
8d0e05adb7
Make sure reserved peers are in the node table ( #1616 )
2016-07-14 10:38:53 +02:00
Robert Habermeier
a7511b6b02
fix benchmark compilation ( #1612 )
2016-07-13 20:45:15 +02:00
Robert Habermeier
36d3d0d7d7
replace synchronization primitives with those from parking_lot ( #1593 )
...
* parking_lot in cargo.toml
* replace all lock invocations with parking_lot ones
* use parking_lot synchronization primitives
2016-07-13 19:59:59 +02:00
NikVolf
9fd95e6694
wiping also for non-prefixed db
2016-07-13 19:51:03 +02:00
NikVolf
9a0a5b4c22
disable wal & set block based cache when prefix specified
2016-07-13 19:05:06 +02:00
NikVolf
3ac33ceda0
block options for prefixed
2016-07-13 18:43:24 +02:00
NikVolf
e75274df66
more pow opts
2016-07-13 11:58:08 +02:00
NikVolf
02ecb6b37b
pow uses shifts and zero comp
2016-07-13 11:29:18 +02:00
Nikolay Volf
d956b7cea3
Merge pull request #1577 from ethcore/pv64
...
bring snapshotting work into master
2016-07-12 13:46:55 +02:00
Tomasz Drwięga
fbc0e0039a
Bump clippy ( #1587 )
...
* Bumping clippy
* Fixing warnings
2016-07-12 10:34:08 +02:00
Robert Habermeier
7200cfcbc9
expunge &Vec<T> pattern ( #1579 )
...
* expunge &Vec<T> pattern
* fix travis
2016-07-12 10:28:35 +02:00
Nikolay Volf
d3695d0b72
Major sync <-> client interactions refactoring ( #1572 )
...
* chain notify trait
* replaced network service with io service
* fix ethcore crate warnings
* refactored network service without generic
* ethcore fix
* ethsync refactoring
* proper linking of notify
* manage network interface
* rpc crate rebinding
* full rewire
* sync internal io service
* fix deadlock
* fix warnings and removed async io
* sync imported message propagation
* fix rpc warnings
* binart warnings
* test fixes
* rpc mocks and tests
* fix util doctest
* fix message name and removed empty notifier
* pointers mess & dark mode fixed
* fixed sync doctest
* added few warnings
* fix review
* new convention match
* fix error unwraps
* doctest fix
2016-07-11 17:02:42 +02:00
Marek Kotewicz
2382d779ca
failing state root with overlayrecent pruning ( #1567 )
2016-07-11 15:22:08 +02:00
Arkadiy Paronyan
da4b1c36cb
Enable state queries for overlayrecent db ( #1575 )
2016-07-11 12:34:29 +02:00
Robert Habermeier
3dd7ce5566
merge accountdb_migration
2016-07-11 11:08:41 +02:00
Robert Habermeier
bdf4446173
have AccountDB use address hash for uniqueness ( #1533 )
...
* partially done alternate migration scheme
* finish altering migration framework
* migrate tests to new migration framework
* address comments
* remove superfluous newline
[ci skip]
* TempIdx -> TempIndex
[ci skip]
* modify account_db to work on address hash, not address
* add a database migration for new accountdb
* preserve first 96 bits of keys when combining
* handle metadata keys in migration and preserve first 96 bits
* fix comments and hash address instead of hash
* different migrations based on pruning
* migrations mutably borrow self
* batch abstraction for migration
* added missing licence headers
* overlay recent v7 migration
* better error handling, migrate version key as well
* fix migration tests
* commit final batch and migrate journaled insertions
* two passes on journal to migrate all possible deleted keys
2016-07-11 09:46:33 +02:00
Robert Habermeier
c8b565805e
merge with master
2016-07-10 21:43:16 +02:00
Nikolay Volf
e15f631ec7
Some obvious evm & uint optimizations ( #1576 )
...
* fix name and tests for endians
* using renamed func
* zero and sign opt
2016-07-10 20:18:23 +02:00
Tomasz Drwięga
d7caae2241
Fixing clippy warnings ( #1568 )
...
* Fixing clippy warnings
* Fixing more warnings
2016-07-10 13:18:33 +02:00
Nikolay Volf
ae757afe15
Merge pull request #1570 from ethcore/dynamic-gas-price
...
Miner's gas price gets updated dynamically
2016-07-10 00:08:29 +02:00
Robert Habermeier
36dfa4743e
merge accountdb migration
2016-07-09 17:33:14 +02:00
Gav Wood
172553c81e
Fix test.
2016-07-09 16:39:59 +02:00
Gav Wood
d4d63a5688
Merge branches 'kill_unwraps' and 'dynamic-gas-price' of github.com:ethcore/parity into dynamic-gas-price
2016-07-09 12:29:06 +02:00
arkpar
f48d030f0b
Init public interface with IO message
2016-07-09 11:48:52 +02:00
Gav Wood
c648171f91
Fix the HTTP client for getting price.
2016-07-08 20:01:20 +02:00
Robert Habermeier
274e7767b4
fix migration tests
2016-07-08 18:28:11 +02:00
Gav Wood
9afbc9816d
Merge branch 'master' into kill_unwraps
2016-07-08 17:31:30 +02:00
Gav Wood
25e6b2b827
Initial implementation of dynamic gas pricer.
2016-07-08 17:26:06 +02:00
Robert Habermeier
aaf9490c91
Merge branch 'master' into accountdb_migration
2016-07-08 16:14:53 +02:00
Robert Habermeier
a160adadaa
batch abstraction for migration
2016-07-08 15:37:37 +02:00
Robert Habermeier
3e61d6f3f9
migrations mutably borrow self
2016-07-08 13:08:51 +02:00
Gav Wood
57c14eedfa
Place ideal peers in the log output. ( #1563 )
2016-07-07 15:25:58 +02:00
Gav Wood
3b662c285f
Switch out .X().unwrap() for .unwrapped_X
2016-07-07 09:37:31 +02:00
Gav Wood
456ad9e21b
Remove .lock().unwrap() idiom into locked().
2016-07-06 19:52:34 +02:00
Arkadiy Paronyan
d7e225c0af
Kill timers when removing IO handler ( #1554 )
2016-07-06 19:14:53 +02:00
Gav Wood
cd7b046d80
Fix and add info messages ( #1552 )
...
* Display information on journal database on startup.
* Minor restyling.
* Client handles the enode message to avoid repeats.
* Avoid unneeded copies *and* reduce code.
* Fix up typo.
2016-07-06 18:28:11 +02:00
Robert Habermeier
b7d243368b
Extend migration framework ( #1546 )
...
* partially done alternate migration scheme
* finish altering migration framework
* migrate tests to new migration framework
* address comments
* remove superfluous newline
[ci skip]
* TempIdx -> TempIndex
[ci skip]
2016-07-06 12:05:23 +02:00
Marek Kotewicz
bcb63bce12
serde is no longer util dependency ( #1534 )
...
* removed old json-tests
* simplify folds in triehash.rs
* removed unused json_aid
* removed unused squeeze.rs
* json branching tests for trie
* removing todos from util
* separated UsingQueue and Table
* further cleanup, removing unused code
* serde serialization of hash moved to rpc module
* uint wrapper for rpc in progress
* serialization of uint moved to rpc module
* updated eth-secp256k1
* updated igd, serde is no longer dependency of util
* loading trie consensus tests
* renamed aliases in rpc imports
2016-07-06 11:23:29 +02:00
Marek Kotewicz
62b9c1b14f
util cleanup ( #1474 )
...
* removed old json-tests
* simplify folds in triehash.rs
* removed unused json_aid
* removed unused squeeze.rs
* json branching tests for trie
* loading trie consensus tests
2016-07-05 15:16:27 +02:00
Nikolay Volf
45d532368d
Merge pull request #1536 from rphmeier/nibblevec
...
add owning NibbleVec
2016-07-05 14:20:22 +04:00
Nikolay Volf
a2b4997888
Merge pull request #1525 from ethcore/client-api-refact2
...
Client API refactoring - limiting errors to crate-level error types
2016-07-05 12:15:38 +04:00
Robert Habermeier
39a46eee8f
add owning NibbleVec
2016-07-04 17:45:01 +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
Robert Habermeier
465aae71e7
merge branch accountdb_migration into pv64
2016-07-04 12:53:01 +02:00
Tomasz Drwięga
5c438cc58a
Bumping clippy ( #1532 )
2016-07-04 11:52:59 +02:00
NikVolf
43027b36ea
Merge branch 'master' into client-api-refact2
2016-07-01 22:43:51 +03:00
NikVolf
edb8663195
ethcore finished
2016-07-01 22:34:50 +03:00
Nikolay Volf
0a513ad06e
Merge pull request #1517 from ethcore/shr-opt
...
Optimizing/simplifying shr
2016-07-01 17:58:01 +04:00
Tomasz Drwięga
654cd570b4
Optimizing shr
2016-07-01 13:07:41 +02:00
Nikolay Volf
c71dff04c5
Merge pull request #1514 from ethcore/fix-warnings
...
Fix warnings
2016-07-01 14:55:17 +04:00
debris
9f5abd01b5
Merge branch 'master' of github.com:ethcore/parity into fatdb
2016-07-01 10:17:08 +02:00
Tomasz Drwięga
5c2ca9a0cb
Fixing warnings
2016-07-01 02:08:14 +02:00
Gav Wood
9c58ebf2d2
Merge branch 'master' into clone-work
2016-06-30 13:16:48 +02:00
Gav Wood
9c07e5c355
Optionally clone block behind work-package.
2016-06-30 12:56:58 +02:00
Gav Wood
5665083e20
UsingQueue can clone rather than just take.
2016-06-30 12:21:04 +02:00
Arkadiy Paronyan
30fad64621
Merge pull request #1488 from ethcore/notification-on-mine
...
Colourful notification on mine
2016-06-30 11:42:43 +02:00
Tomasz Drwięga
af65945b58
Specifying max open files ( #1494 )
2016-06-30 08:24:01 +02:00
Gav Wood
93a89049ed
More colour!
2016-06-30 08:20:34 +02:00
Gav Wood
92edf7f511
Safe coloured logging.
2016-06-30 08:20:34 +02:00
Gav Wood
86ba6f1912
Fix test compilation.
2016-06-29 22:05:00 +02:00
Robert Habermeier
49024a4f28
Merge with master
2016-06-29 14:46:29 +02:00
Marek Kotewicz
4f56f8b27c
removed unsafe code ( #1466 )
2016-06-28 11:52:59 +02:00
Arkadiy Paronyan
a3a68a20f4
Merge pull request #1461 from ethcore/db-repair
...
Attempt DB repair if corrupted
2016-06-28 07:37:49 +02:00
NikVolf
f94f061f6a
disable wal when commiting transactions
2016-06-27 22:12:23 +03:00
arkpar
ed153995f9
Attempt DB repair if corrupted
2016-06-27 20:41:02 +02:00
arkpar
150d7c1c78
Merge remote-tracking branch 'origin/master' into db-config-ext
2016-06-27 20:33:07 +02:00
Arkadiy Paronyan
60b70dada1
Reduced IO messages; removed panics on IO notifications ( #1457 )
2016-06-27 19:30:13 +02:00
Nikolay Volf
9f4bfd9e7a
fix tests
2016-06-27 18:47:50 +02:00
debris
06cf2a3f41
updated FatDB description
2016-06-27 14:01:17 +02:00
debris
7904464d24
use mem::replace instead of mem::swap in ArchiveDB, add aux_remove()
2016-06-27 14:01:06 +02:00
Nikolay Volf
2e5d5f12dd
ethcore client config
2016-06-27 13:58:12 +02:00
Nikolay Volf
627b67db0a
jdb to new settings config
2016-06-27 13:23:50 +02:00
Nikolay Volf
07098fd16f
extra helpers for prefix
2016-06-27 13:14:40 +02:00
Nikolay Volf
e4763e90bc
compaction struct and helpers
2016-06-27 13:03:34 +02:00
debris
36626f96a8
separated TrieMut from Trie, added Generic Trie type to TrieFactory
2016-06-27 11:19:27 +02:00
debris
5ecbeaa82f
trie factory in progress
2016-06-27 10:59:59 +02:00
Gav Wood
4f1f33d1b8
Retweak BASE and MULTIPLIER in rocksdb config. ( #1445 )
2016-06-27 09:20:38 +02:00
debris
f3a6da7c1e
Merge branch 'master' of github.com:ethcore/parity
2016-06-27 09:16:45 +02:00
debris
1b4f67151f
fatdb and fatdb iterator module
2016-06-27 09:16:34 +02:00
Gav Wood
2400001675
More conservative settings for rocksdb. ( #1440 )
2016-06-25 23:13:34 +02:00
Arkadiy Paronyan
a72d8ee0e7
v1.3.0 ( #1421 )
2016-06-25 10:32:05 +02:00
Nikolay Volf
27b18df3dd
further rocksdb tuning ( #1409 )
2016-06-23 18:56:43 +02:00
Robert Habermeier
082294fe81
Merge pull request #1403 from ethcore/bump-clippy
...
Bump clippy
2016-06-23 14:23:46 +02:00
Tomasz Drwięga
5bf906625b
Fixing warnings
2016-06-23 12:19:38 +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
Tomasz Drwięga
a76e3a134f
Bumping clippy
2016-06-23 10:54:25 +02:00
Tomasz Drwięga
bc1f603e0c
Fixing overflow during multiplication ( #1381 )
2016-06-22 15:37:41 +02:00
Arkadiy Paronyan
11314a660d
Sync optimization ( #1385 )
...
* Minor sync fixes
* Fixed session count sub
* handle NewBlock when downloading
* Accept new blocks right away
* block collection update fixed
2016-06-22 12:10:26 +02:00
NikVolf
de079ebe31
Merge branch 'master' into rocksdb-flush-limit
2016-06-21 17:32:07 +03:00
NikVolf
9132895d0e
limit flush rate
2016-06-21 17:20:47 +03:00