Niklas Adolfsson
7fb33796b1
light client : failsafe crate (circuit breaker) ( #9790 )
...
* refactor(light) : N/W calls with `circuit breaker`
* fix(nits) : forgot to commit new files
* Add tests and change CLI args
* Address grumbles
* fix(failsafe-rs) : Santize input to prevent panics
* chore(failsafe) : bump failsafe, (parking_lot)
Bump failsafe to v0.3.0 to enable `parking_lot::Mutex` instead
`spin::Mutex`
* Remove `success_rate`
* feat(circuit_breaker logger)
* feat(CLI): separate CLI args request and response
* Fix tests
* Error response provide request kind
When a reponse `times-out` provide the actual request or requests that failed
* Update ethcore/light/src/on_demand/mod.rs
Co-Authored-By: niklasad1 <niklasadolfsson1@gmail.com>
* Update ethcore/light/src/on_demand/mod.rs
Co-Authored-By: niklasad1 <niklasadolfsson1@gmail.com>
* fix(grumbles): formatting nit
* fix(grumbles)
* Use second resolution on CLI args
* Use `consecutive failure policy` instead of `timeOverWindow`
* Add a couple of tests for `request_guard`
* fix(request_guard): off-by-one error, update tests
2018-12-05 10:36:53 +01:00
David
c313039526
Update a few parity-common dependencies ( #9663 )
...
* Update a few parity-common dependencies
* cleanup
* cleanup
* revert update of ethereum/tests
* better reporting of network rlp errors
* Use rlp 0.3.0-beta.1
* fix util function get_dummy_blocks
* Already a Vec
* encode_list returns vec already
* Address grumble
* No need for betas
* Fix double spaces
2018-10-09 22:07:25 +02:00
Marek Kotewicz
2609e2db5c
bump smallvec to 0.6 in ethcore-light, ethstore and whisper ( #9588 )
...
* bump smallvec to 0.6 in ethcore-light, ethstore and whisper
* bump transaction-pool
* Fix test.
2018-09-25 12:24:59 +02:00
cheme
98220442b4
Update patricia trie to 0.2.2 ( #9525 )
...
* Update patricia trie to 0.2.2 crates. Default dependencies on minor
version only.
* Putting back ethereum tests to the right commit
2018-09-11 16:20:26 +02:00
David
72fd1fa58d
Fetch parity-common
crates from crates.io ( #9410 )
...
* Fetch `parity-common` crates from crates.io
* Add doc tests from `patricia-trie` to `patricia-trie-ethereum`
Fix/update a few deps
* [ethkey] upgrade ethereum-types
* [whisper] update deps
* [network] deps
* [network-devp2p] deps
* [journaldb] deps
* [fastmap] deps
* [miner] deps and test fixes
* [machine] deps
* [json] deps
* [hw] deps
* [ethash] deps
* [registrar] deps
* Update a few more dependencies with new ethabi-*
* [updater] Update deps
* deps
* [ethcore] Update deps
* Use new parity-snappy and parity-rocksdb crates
* Updated submodules
* Use parity-snappy 0.1
* Use kvdb-rocksdb 0.1.2
* Don't use latest ethereum/tests
* Fix merge conflicts errors
* Remove superseeded comment
* Address grumbles: add newlines, add/remove spaces
2018-09-04 20:13:51 +02:00
André Silva
c0eb30b604
use kvdb-* and parity-snappy crates from crates.io ( #9441 )
...
* use kvdb-* and parity-snappy crates from crates.io
* update rocksdb-sys and snappy-sys
2018-09-03 17:40:11 +01:00
Nick Sanders
e590874a81
Update log
-> 0.4, env_logger
-> 0.5. ( #9294 )
...
* Rename a few types & methods.
* Change `(Log)Builder::format` (closure) arg.
2018-08-10 00:04:10 +01:00
David
e2095d4a5d
Move ethereum-specific H256FastMap type to own crate ( #9307 )
...
* Add a `fastmap` crate that provides the H256FastMap specialized HashMap
* Use `fastmap` instead of `plain_hasher`
* Update submodules for Reasons™
* Submodule update
2018-08-09 09:51:48 +02:00
David
c7f608ec74
Delete crates from parity-ethereum and fetch them from parity-common instead ( #9083 )
...
Use crates from parity-common: hashdb, keccak-hash, kvdb, kvdb-memorydb, kvdb-rocksdb, memorydb, parity-bytes, parity-crypto, path, patricia_trie, plain_hasher, rlp, target, test-support, trie-standardmap, triehash
2018-07-10 14:59:19 +02:00
Wei Tang
e3e2fcc285
bump parking_lot to 0.6 ( #9013 )
...
* Bump parking_lot to 0.6
* Bump parity-wasm to 0.31 so it gets rid of parking_lot
ref https://github.com/paritytech/parity-wasm/pull/206
* Update jsonrpc versions
* Update wasmi and pwasm-utils version
* Fix compile
* Update jsonrpc crates
2018-07-03 17:31:08 +02:00
David
9caa868603
Make HashDB generic ( #8739 )
...
The `patricia_trie` crate is generic over the hasher (by way of HashDB) and node encoding scheme. Adds a new `patricia_trie_ethereum` crate with concrete impls for Keccak/RLP.
2018-07-02 18:50:05 +02:00
David
4145be863b
Bump error-chain and quick_error versions ( #8972 )
...
* Update error-chain to 0.12 to silence warnings
* Bump quick_error crate to 1.2.2 to silence linter warnings
2018-06-25 14:20:44 +02:00
Wei Tang
09ee6e1477
Fix subcrate test compile ( #8862 )
...
* Fix test compile for light, node_filter, service in ethcore
* Fix ipfs, local-store, rpc, secret_store, updater subcrate test compile
2018-06-11 12:26:49 +02:00
Afri Schoedon
adc3457a89
Bump master to 1.12 ( #8477 )
...
* Bump master to 1.12
* Bump crates to 1.12
* Bump mac installer version to 1.12
* Update Gitlab scripts
2018-04-25 16:25:43 +02:00
Andrew Jones
14361cc7b1
Move ethcore::Error to error_chain ( #8386 )
...
* WIP
* Convert Ethcore error to use error_chain
* Use error_chain for ImportError and BlockImportError
* Fix error pattern matches for error_chain in miner
* Implement explicit From for AccountsError
* Fix pattern matches for ErrorKinds
* Handle ethcore error_chain in light client
* Explicitly define Result type to avoid shadowing
* Fix remaining Error pattern matches
* Fix tab space formatting
* Helps if the tests compile
* Fix error chain matching after merge
2018-04-19 11:52:54 +02:00
Tomasz Drwięga
9108a3bb50
Bump ethabi & ethereum-types. ( #8258 )
...
* Bump ethabi & ethereum-types.
* Fix test.
* Fix hex encodings.
2018-04-02 12:12:52 +01:00
Pierre Krieger
113c35af0a
Remove the time dependency where possible ( #8100 )
2018-03-14 12:29:52 +01:00
Rando
33284e988e
Bump master to 1.11.0 ( #8021 )
...
* Bump master to 1.11.0
* Bump price-info
* Bump mac installer version
* Fix gitlab builds
2018-03-03 22:02:33 +01:00
Pierre Krieger
d4205da484
Extract the hard dependency on rocksdb from the light client ( #8034 )
...
* Extract the hard dependency on rocksdb from the light client
* Remove TODO
2018-03-01 19:53:15 +01:00
Nikolay Volf
684322cd6f
Kovan WASM fork code ( #7849 )
...
* kovan fork code
* introduce ethcore level vm_factory and let it fail
* fix json tests
* wasmcosts as option
* review changes
* wasm costs in parser
* fix evm tests
* review fixes
* fix test
* remove redundant json field
2018-02-19 12:27:42 +01:00
Marek Kotewicz
c060d9584d
ethabi version 5 ( #7723 )
...
* Refactor updater to use ethabi-derive
* Grumble: do_call type alias
* Empty commit to trigger test re-run
* migration to ethabi-5.0
* migration to ethabi-5.0 in progress
* use ethabi_deriven to generate TransactAcl contract
* use ethabi_deriven to generate Registry contract
* hash-fetch uses ethabi_derive, removed retain cycle from updater, fixed #7720
* node-filter crate uses ethabi_derive to generate peer_set contract interface
* use LruCache in node-filter instead of HashMap
* validator_set engine uses ethabi_derive
* ethcore does not depend on native_contracts
* miner does no depend on native_contracts
* secret_store does not use native_contracts (in progress)
* removed native-contracts
* ethcore and updater does not depend on futures
* updated ethereum-types
* fixed all warnings caused by using new version of ethereum-types
* updated ethabi_derive && ethabi_contract to get rid of warnings
* removed another retain cycle in updater, fixed following minor version on update
* moved contracts out of native_contracts res
* updated ethabi_contract
* fixed failing test
* fixed failing test
* there is no need to create two contracts of the same kind any more
* simplify updater::ReleaseTrack conversion into u8 and add several tests for it
* applied review suggestions
* applied review suggestions
2018-02-09 09:32:06 +01:00
Marek Kotewicz
d430e7f4e2
Updated dependencies ( #7628 )
...
* Updated few dependencies
* Updated parking_lot to 0.5
* Updated backtrace to 0.3.5
* Updated crossbeam to 0.3
2018-01-19 13:46:11 +01:00
Tomasz Drwięga
f044b61f42
Extract some parts of miner from ethcore. ( #7353 )
...
* Move miner away from ethcore.
* Fix ethcore to use miner/transaction.
* Fix tests and warnings.
* fixed incorrect merge of the test in the documentation
2018-01-11 17:49:10 +01:00
Marek Kotewicz
e95b093483
dissolve util ( #7460 )
...
* ethereum-types refactor in progress
* ethereum-types refactor in progress
* ethereum-types refactor in progress
* ethereum-types refactor in progress
* ethereum-types refactor finished
* removed obsolete util/src/lib.rs
* removed commented out code
2018-01-10 15:35:18 +03:00
Robert Habermeier
81212c5031
Merge branch 'master' into upload-crates
2017-11-17 16:42:41 +01:00
debris
a22c48b6b0
removed redundant imports
2017-11-14 17:47:41 +01:00
Robert Habermeier
ec5519ccd1
rename hash crate to keccak-hash
2017-11-10 20:08:28 +01:00
Robert Habermeier
be092e7c09
prepare cargo configuration for upload of crates
2017-11-10 18:31:31 +01:00
debris
16d84f8ecf
finished removing ipc
2017-10-16 18:18:43 +02:00
debris
2ce0eae406
Merge branch 'master' into kvdb_split
2017-10-16 10:01:12 +02:00
Dmitry Kashitsyn
92a9fd3359
Uses dash instead of underscore in crate name
2017-10-16 11:05:54 +07:00
Dmitry Kashitsyn
4df541e47a
Refactors references to MemoryLruCache in ethcore ( #6693 )
2017-10-15 21:47:06 +07:00
debris
5c220ab64b
Merge branch 'master' into kvdb_split
2017-10-13 12:18:49 +02:00
Arkadiy Paronyan
f3ea2f354e
v1.9.0 ( #6727 )
2017-10-12 23:44:02 +02:00
debris
eb526b7769
separated kvdb into 3 crates: kvdb, kvdb-memorydb && kvdb-rocksdb, #6693
2017-10-12 15:36:27 +02:00
Marek Kotewicz
6279ff32f5
Separate migrations from util ( #6690 )
...
* separate migration from util and make its dependencies into libs:
* snappy
* kvdb
* error
* common
* renamed common -> macros
* util error does not depend on snappy module
* ethsync does not depend on util nor ethcore_error
* nibbleslice and nibblevec merged with patricia_trie crate
* removed unused dependencies from util
* util journaldb traits does not need to be public
* util_error
* fixed ethcore compile error
* ignore .swo files
* Update chain.rs
2017-10-10 20:01:27 +02:00
Hawstein
dd7a60c7a8
rename trie to patricia-trie
2017-09-15 11:49:26 +08:00
Hawstein
ade37be25b
separate trie from util and make its dependencies into libs:
...
* bytes
* hashdb
* memorydb
* nibbleslice
* nibblevec
2017-09-15 11:03:53 +08:00
Fredrik
e54784bfeb
Merge branch 'master' into fo-6418-dont-export-bigint
...
# Conflicts:
# dapps/src/tests/helpers/registrar.rs
# ethcore/evm/src/interpreter/shared_cache.rs
# ethcore/light/src/client/header_chain.rs
# ethcore/light/src/client/mod.rs
# ethcore/light/src/net/mod.rs
# ethcore/light/src/on_demand/request.rs
# ethcore/light/src/on_demand/tests.rs
# ethcore/light/src/provider.rs
# ethcore/node_filter/src/lib.rs
# ethcore/src/block.rs
# ethcore/src/blockchain/blockchain.rs
# ethcore/src/client/test_client.rs
# ethcore/src/engines/authority_round/mod.rs
# ethcore/src/engines/basic_authority.rs
# ethcore/src/engines/mod.rs
# ethcore/src/engines/tendermint/mod.rs
# ethcore/src/engines/validator_set/contract.rs
# ethcore/src/engines/validator_set/multi.rs
# ethcore/src/engines/validator_set/safe_contract.rs
# ethcore/src/engines/vote_collector.rs
# ethcore/src/miner/external.rs
# ethcore/src/miner/miner.rs
# ethcore/src/miner/service_transaction_checker.rs
# ethcore/src/miner/work_notify.rs
# ethcore/src/pod_account.rs
# ethcore/src/pod_state.rs
# ethcore/src/snapshot/block.rs
# ethcore/src/snapshot/consensus/work.rs
# ethcore/src/snapshot/mod.rs
# ethcore/src/snapshot/service.rs
# ethcore/src/spec/spec.rs
# ethcore/src/state/backend.rs
# ethcore/src/trace/db.rs
# ethcore/src/verification/queue/mod.rs
# ethcore/src/verification/verification.rs
# parity/informant.rs
# rpc/src/v1/helpers/dispatch.rs
# rpc/src/v1/helpers/light_fetch.rs
# rpc/src/v1/helpers/signing_queue.rs
# rpc/src/v1/impls/eth.rs
# rpc/src/v1/impls/eth_filter.rs
# rpc/src/v1/impls/eth_pubsub.rs
# rpc/src/v1/impls/light/eth.rs
# rpc/src/v1/impls/signing.rs
# rpc/src/v1/tests/helpers/miner_service.rs
# rpc/src/v1/tests/helpers/snapshot_service.rs
# rpc/src/v1/tests/helpers/sync_provider.rs
# rpc/src/v1/tests/mocked/eth.rs
# stratum/src/lib.rs
# sync/src/blocks.rs
# sync/src/chain.rs
# sync/src/light_sync/mod.rs
# sync/src/tests/helpers.rs
# sync/src/tests/snapshot.rs
# updater/src/updater.rs
# util/src/lib.rs
# util/triehash/src/lib.rs
2017-09-04 18:32:55 +02:00
Fredrik
308f36a532
Don't reexport bigint from util
2017-09-04 16:36:49 +02:00
Marek Kotewicz
b731ccea18
triehash is separated from util ( #6428 )
2017-09-03 09:11:14 +02:00
Hawstein
7b8af30590
remove re-export of parking_lot in util ( #6435 )
2017-09-02 20:09:13 +02:00
debris
94f717a255
Merge branch 'master' into keccak_fn
2017-08-31 11:53:26 +02:00
debris
7849fff41e
finished
2017-08-31 11:35:41 +02:00
Axel Chalon
6b5ad69c22
Remove reexport of HeapSizeOf in util ( #6419 )
2017-08-30 16:04:47 +02:00
Marek Kotewicz
407c8c3fb9
rlp_derive ( #6125 )
...
* rlp_derive
* RlpEncodableWrapper, RlpDecodableWrapper
* use rlp_derive in parity
* fixed broken transaction Action serialization
2017-08-20 12:01:46 +08:00
Nikolay Volf
b7006034b1
Decouple virtual machines ( #6184 )
...
* work in progress for splitting vms
* evm working
* Evm -> Vm
* wasm converted
* ethcore working
* test fixes
2017-08-01 13:37:57 +03:00
arkpar
debbfc117a
Bumped version
2017-07-13 15:52:01 +02:00
Robert Habermeier
d365281cce
Ethcore crate split part 1 ( #6041 )
...
* split out types into separate crate
* split out evm into its own crate
2017-07-12 13:09:17 +02:00
Nikolay Volf
e1fef5c732
Update dependencies and bigint api ( #5685 )
...
* update to latest bigint
* bump elastic array and deps
* fix rlp tests
* also update all smallvec deps
* fix doc test
* reduce parking in attempt to fix CI bug
* fix from/into electum bug
* remove duplicate imports
2017-05-24 12:31:33 +02:00