1. Apr 09, 2018
    • Svyatoslav Nikolsky's avatar
      SecretStore: get rid of engine.signer dependency (#8173) · 0d75d01c
      Svyatoslav Nikolsky authored and Marek Kotewicz's avatar Marek Kotewicz committed
      * SecretStore: get rid of engine.signer dependency
      
      * SecretStore: fixed self for transact_contract
      
      * SecretStore: fixed pending requests + 1-of-1 sessions completion
      
      * SecretStore: fixed completion signal in 1-of-1 case
      
      * fixed test(s)
      
      * removed obsolete TODO && redundant statement
      
      * ok_or -> ok_or_else
      0d75d01c
    • Niklas Adolfsson's avatar
      Whisper cli (#8201) · 1c75e8eb
      Niklas Adolfsson authored and Marek Kotewicz's avatar Marek Kotewicz committed
      * getting started
      
      * wip wip
      
      * add parsing of pool-size and enable panic-hook
      
      * more cli options
      
      * remove explicit unwrapping
      
      * bump dependencies to parity-jsonrpc
      
      * add tests
      
      * remove tests
      
      * bump jsonrpc
      
      * Remove unused dependencies
      
      * add logging to the cli
      
      * Fix so `FilterManager` drops its resources
      
      * Introduced an AtomicBool flag in FilterManager to cancel the `Decryption Worker Thread`
      * Added some very basic test to faulty arguments
      
      * ignore privileged port test
      1c75e8eb
    • Anton Gavrilov's avatar
      Private transactions integration pr (#6422) · e6f75bcc
      Anton Gavrilov authored and Marek Kotewicz's avatar Marek Kotewicz committed
      * Private transaction message added
      
      * Empty line removed
      
      * Private transactions logic removed from client into the separate module
      
      * Fixed compilation after merge with head
      
      * Signed private transaction message added as well
      
      * Comments after the review fixed
      
      * Private tx execution
      
      * Test update
      
      * Renamed some methods
      
      * Fixed some tests
      
      * Reverted submodules
      
      * Fixed build
      
      * Private transaction message added
      
      * Empty line removed
      
      * Private transactions logic removed from client into the separate module
      
      * Fixed compilation after merge with head
      
      * Signed private transaction message added as well
      
      * Comments after the review fixed
      
      * Encrypted private transaction message and signed reply added
      
      * Private tx execution
      
      * Test update
      
      * Main scenario completed
      
      * Merged with the latest head
      
      * Private transactions API
      
      * Comments after review fixed
      
      * Parameters for private transactions added to parity arguments
      
      * New files added
      
      * New API methods added
      
      * Do not process packets from unconfirmed peers
      
      * Merge with ptm_ss branch
      
      * Encryption and permissioning with key server added
      
      * Fixed compilation after merge
      
      * Version of Parity protocol incremented in order to support private transactions
      
      * Doc strings for constants added
      
      * Proper format for doc string added
      
      * fixed some encryptor.rs grumbles
      
      * Private transactions functionality moved to the separate crate
      
      * Refactoring in order to remove late initialisation
      
      * Tests fixed after moving to the separate crate
      
      * Fetch method removed
      
      * Sync test helpers refactored
      
      * Interaction with encryptor refactored
      
      * Contract address retrieving via substate removed
      
      * Sensible gas limit for private transactions implemented
      
      * New private contract with nonces added
      
      * Parsing of the response from key server fixed
      
      * Build fixed after the merge, native contracts removed
      
      * Crate renamed
      
      * Tests moved to the separate directory
      
      * Handling of errors reworked in order to use error chain
      
      * Encodable macro added, new constructor replaced with default
      
      * Native ethabi usage removed
      
      * Couple conversions optimized
      
      * Interactions with client reworked
      
      * Errors omitting removed
      
      * Fix after merge
      
      * Fix after the merge
      
      * private transactions improvements in progress
      
      * private_transactions -> ethcore/private-tx
      
      * making private transactions more idiomatic
      
      * private-tx encryptor uses shared FetchClient and is more idiomatic
      
      * removed redundant tests, moved integration tests to tests/ dir
      
      * fixed failing service test
      
      * reenable add_notify on private tx provider
      
      * removed private_tx tests from sync module
      
      * removed commented out code
      
      * Use plain password instead of unlocking account manager
      
      * remove dead code
      
      * Link to the contract changed
      
      * Transaction signature chain replay protection module created
      
      * Redundant type conversion removed
      
      * Contract address returned by private provider
      
      * Test fixed
      
      * Addressing grumbles in PrivateTransactions (#8249)
      
      * Tiny fixes part 1.
      
      * A bunch of additional comments and todos.
      
      * Fix ethsync tests.
      
      * resolved merge conflicts
      
      * final private tx pr (#8318)
      
      * added cli option that enables private transactions
      
      * fixed failing test
      
      * fixed failing test
      
      * fixed failing test
      
      * fixed failing test
      e6f75bcc
    • Wei Tang's avatar
      Decouple rocksdb dependency from ethcore (#8320) · c039ab79
      Wei Tang authored
      * Move client DB opening logic to CLI
      
      * Move restoration db open logic to CLI
      
      This adds KeyValueDBHandler which handles opening a new database, thus allow us to move the restoration db open logic
      out of ethcore.
      
      * Move rocksdb's compactionprofile conversion to CLI
      
      * Move kvdb_rocksdb as test dependency for ethcore
      
      * Fix tests due to interface change
      
      * Fix service tests
      
      * Remove unused migration dep for ethcore
      c039ab79
  2. Apr 05, 2018
  3. Apr 04, 2018
  4. Apr 03, 2018
    • André Silva's avatar
    • André Silva's avatar
      Auto-updater improvements (#8078) · dcaff6f4
      André Silva authored
      * updater: refactor updater flow into state machine
      
      * updater: delay update randomly within max range
      
      * updater: configurable update delay
      
      * updater: split polling and updater state machine step
      
      * updater: drop state to avoid deadlocking
      
      * updater: fix fetch backoff
      
      * updater: fix overflow in update delay calculation
      
      * updater: configurable update check frequency
      
      * updater: fix update policy frequency comparison
      
      * updater: use lazy_static for platform and platform_id_hash
      
      * updater: refactor operations contract calls into OperationsClient
      
      * updater: make updater generic over operations and fetch client
      
      * updater: fix compilation
      
      * updater: add testing infrastructure and minimal test
      
      * updater: fix minor grumbles
      
      * updater: add test for successful updater flow
      
      * updater: add test for update delay
      
      * updater: add test for update check frequency
      
      * updater: mock time and rng for deterministic tests
      
      * updater: test backoff on failure
      
      * updater: add test for backoff short-circuit on new release
      
      * updater: refactor to increase readability
      
      * updater: cap maximum backoff to one month
      
      * updater: add test for detecting already downloaded update
      
      * updater: add test for updater disable on fatal errors
      
      * updater: add test for pending outdated fetch
      
      * updater: test auto install of updates
      
      * updater: add test for capability updates
      
      * updater: fix capability update
      
      * updater: use ethabi to create event topic filter
      
      * updater: decrease maximum backoff to 1 day
      
      * updater: cap maximum update delay with upcoming fork block number
      
      * updater: receive state mutex guard in updater_step
      
      * updater: overload execute_upgrade to take state mutex guard
      
      * updater: remove unnecessary clone of latest operations info
      
      * updater: remove latest operations info clone when triggering fetch
      dcaff6f4
  5. Apr 02, 2018
  6. Mar 30, 2018
  7. Mar 28, 2018
  8. Mar 27, 2018
  9. Mar 26, 2018
  10. Mar 24, 2018
  11. Mar 22, 2018
  12. Mar 21, 2018
  13. Mar 20, 2018
  14. Mar 19, 2018
  15. Mar 14, 2018
    • Toralf Wittner's avatar
      Const time comparison (#8113) · 236692cf
      Toralf Wittner authored and Marek Kotewicz's avatar Marek Kotewicz committed
      * Use `subtle::slices_equal` for constant time comparison.
      
      Also update the existing version of subtle in `ethcrypto` from
      0.1 to 0.5
      
      * Test specifically for InvalidPassword error.
      236692cf
    • Toralf Wittner's avatar
      Replace reqwest with hyper (#8099) · 322dfbcd
      Toralf Wittner authored
      * Very primitive test of the Client API
      
      * [WIP] getting rid of request
      
      * Add support for redirects.
      
      * Remove CpuPool from `fetch::Client`.
      
      * Adapt code to API changes and fix tests.
      
      * Use reference counter to stop background thread.
      
      On `clone` the counter is incremented, on `drop` decremented. Once 0 we
      send `None` over the channel, expecting the background thread to end.
      
      * Fix tests.
      
      * Comment.
      
      * Change expect messages.
      
      * Use local test server for testing fetch client.
      
      * Ensure max_size also in BodyReader.
      
      * Replace `Condvar` with `sync_channel`.
      
      * Re-export `url::Url` from `fetch` crate.
      
      * Remove spaces.
      
      * Use random ports in local test server.
      322dfbcd
    • Pierre Krieger's avatar
      Remove the time dependency where possible (#8100) · 113c35af
      Pierre Krieger authored and Marek Kotewicz's avatar Marek Kotewicz committed
      113c35af
    • Niklas Adolfsson's avatar
      Replace std::env::temp_dir with tempdir in tests (#8103) · 23fc5517
      Niklas Adolfsson authored and Marek Kotewicz's avatar Marek Kotewicz committed
      * std::env::temp_dir -> tempdir in test context
      
      * fix lifetime issue so tempdir removes tmpfiles
      23fc5517
  16. Mar 13, 2018
  17. Mar 12, 2018
    • Niklas Adolfsson's avatar
      [contract-client] refactor (#7978) · e0f71b0c
      Niklas Adolfsson authored
      * Refactor usage of registry contract
      
      * remove unsed file
      
      * Rename methods & fix comments
      
      * refactor contract_client:
      
      * Intoduced separate traits for asyncronous and syncronous contract clients
      * Removed registrar from ethcore::client
      * s/ContractClient/AsyncContractClient
      
      * make the tests compile and pass
      
      * omit changes in ethcore
      
      * Use only one trait for ContractClient
      
      * Use an associated type in the trait to determine syncronous or asyncronous communication
      * Export the types from contract-client crate
      * Document that "A" in the hash correspons to a DNS A Record A.K.A Address Record
      
      * contract_client -> registrar
      
      * address review feedback
      e0f71b0c
    • Marek Kotewicz's avatar
      revert removing blooms (#8066) · 66f3c508
      Marek Kotewicz authored
      * Revert "fix traces, removed bloomchain crate, closes #7228, closes #7167"
      
      This reverts commit 1bf62038678295e5586f02a38a0c5aab9a9efe62.
      
      * Revert "fixed broken logs (#7934)"
      
      This reverts commit f8a2e53f.
      
      * fixed broken logs
      
      * bring back old lock order
      
      * remove migration v13
      
      * revert CURRENT_VERSION to 12 in migration.rs
      66f3c508
    • Nikolay Volf's avatar
      WASM libraries bump (#7970) · e0a21e5a
      Nikolay Volf authored
      * update wasmi, parity-wasm, wasm-utils to latest version
      
      * Update to new wasmi & error handling
      
      * also utilize new stack limiter
      
      * fix typo
      
      * replace dependency url
      
      * Cargo.lock update
      e0a21e5a
  18. Mar 05, 2018
  19. Mar 03, 2018
    • Rando's avatar
      Bump master to 1.11.0 (#8021) · 33284e98
      Rando authored
      * Bump master to 1.11.0
      
      * Bump price-info
      
      * Bump mac installer version
      
      * Fix gitlab builds
      33284e98
    • Dmitry Kashitsyn's avatar
      `Client` refactoring (#7038) · 9d7d6f71
      Dmitry Kashitsyn authored and Marek Kotewicz's avatar Marek Kotewicz committed
      * Improves `BestBlock` comment
      
      * Improves `TraceDB` comment
      
      * Improves `journaldb::Algorithm` comment.
      
      Probably the whole enum should be renamed to `Strategy` or something alike.
      
      * Comments some of the `Client`'s fields
      
      * Deglobs client imports
      
      * Fixes comments
      
      * Extracts `import_lock` to `Importer` struct
      
      * Extracts `verifier` to `Importer` struct
      
      * Extracts `block_queue` to `Importer` struct
      
      * Extracts `miner` to `Importer` struct
      
      * Extracts `ancient_verifier` to `Importer` struct
      
      * Extracts `rng` to `Importer` struct
      
      * Extracts `import_old_block` to `Importer` struct
      
      * Adds `Nonce` trait
      
      * Adds `Balance` trait
      
      * Adds `ChainInfo` trait
      
      * Fixes imports for tests using `chain_info` method
      
      * Adds `BlockInfo` trait
      
      * Adds more `ChainInfo` imports
      
      * Adds `BlockInfo` imports
      
      * Adds `ReopenBlock` trait
      
      * Adds `PrepareOpenBlock` trait
      
      * Fixes import in tests
      
      * Adds `CallContract` trait
      
      * Fixes imports in tests using `call_contract` method
      
      * Adds `TransactionInfo` trait
      
      * Adds `RegistryInfo` trait
      
      * Fixes imports in tests using `registry_address` method
      
      * Adds `ScheduleInfo` trait
      
      * Adds `ImportSealedBlock` trait
      
      * Fixes imports in test using `import_sealed_block` method
      
      * Adds `BroadcastProposalBlock` trait
      
      * Migrates `Miner` to static dispatch
      
      * Fixes tests
      
      * Moves `calculate_enacted_retracted` to `Importer`
      
      * Moves import-related methods to `Importer`
      
      * Removes redundant `import_old_block` wrapper
      
      * Extracts `import_block*` into separate trait
      
      * Fixes tests
      
      * Handles `Pending` in `LightFetch`
      
      * Handles `Pending` in filters
      
      * Handles `Pending` in `ParityClient`
      
      * Handles `Pending` in `EthClient`
      
      * Removes `BlockId::Pending`, partly refactors dependent code
      
      * Adds `StateInfo` trait
      
      * Exports `StateOrBlock` and `BlockChain` types from `client` module
      
      * Refactors `balance` RPC using generic API
      
      * Refactors `storage_at` RPC using generic API
      
      * Makes `MinerService::pending_state`'s return type dynamic
      
      * Adds `StateOrBlock` and `BlockChain` types
      
      * Adds impl of `client::BlockChain` for `Client`
      
      * Exports `StateInfo` trait from `client` module
      
      * Missing `self` use
      
      To be fixed up to "Adds impl of `client::BlockChain` for `Client`"
      
      * Adds `number_to_id` and refactors dependent RPC methods
      
      * Refactors `code_at` using generic API
      
      * Adds `StateClient` trait
      
      * Refactors RPC to use `StateClient` trait
      
      * Reverts `client::BlockChain` trait stuff, refactors methods to accept `StateOrBlock`
      
      * Refactors TestClient
      
      * Adds helper function `block_number_to_id`
      
      * Uses `block_number_to_id` instead of local function
      
      * Handles `Pending` in `list_accounts` and `list_storage_keys`
      
      * Attempt to use associated types for state instead of trait objects
      
      * Simplifies `state_at_beginning`
      
      * Extracts `call` and `call_many` into separate trait
      
      * Refactors `build_last_hashes` to accept reference
      
      * Exports `Call` type from the module
      
      * Refactors `call` and `call_many` to accept state and header
      
      * Exports `state_at` in `StateClient`
      
      * Exports `pending_block_header` from `MinerService`
      
      * Refactors RPC `call` method using new API
      
      * Adds missing parentheses
      
      * Refactors `parity::call` to use new call API
      
      * Update .gitlab-ci.yml
      
      fix gitlab lint
      
      * Fixes error handling
      
      * Refactors `traces::call` and `call_many` to use new call API
      
      * Refactors `call_contract`
      
      * Refactors `block_header`
      
      * Refactors internal RPC method `block`
      
      * Moves `estimate_gas` to `Call` trait, refactors parameters
      
      * Refactors `estimate_gas` in RPC
      
      * Refactors `uncle`
      
      * Refactors RPC `transaction`
      
      * Covers missing branches
      
      * Makes it all compile, fixes compiler grumbles
      
      * Adds casts in `blockchain` module
      
      * Fixes `PendingBlock` tests, work on `MinerService`
      
      * Adds test stubs for StateClient and EngineInfo
      
      * Makes `state_db` public
      
      * Adds missing impls for `TestBlockChainClient`
      
      * Adds trait documentation
      
      * Adds missing docs to the `state_db` module
      
      * Fixes trivial compilation errors
      
      * Moves `code_hash` method to a `BlockInfo` trait
      
      * Refactors `Verifier` to be generic over client
      
      * Refactors `TransactionFilter` to be generic over client
      
      * Refactors `Miner` and `Client` to reflect changes in verifier and txfilter API
      
      * Moves `ServiceTransactionChecker` back to `ethcore`
      
      * Fixes trait bounds in `Miner` API
      
      * Fixes `Client`
      
      * Fixes lifetime bound in `FullFamilyParams`
      
      * Adds comments to `FullFamilyParams`
      
      * Fixes imports in `ethcore`
      
      * Fixes BlockNumber handling in `code_at` and `replay_block_transactions`
      
      * fix compile issues
      
      * First step to redundant trait merge
      
      * Fixes compilation error in RPC tests
      
      * Adds mock `State` as a stub for `TestClient`
      
      * Handles `StateOrBlock::State` in `TestBlockChainClient::balance`
      
      * Fixes `transaction_count` RPC
      
      * Fixes `transaction_count`
      
      * Moves `service_transaction.json` to the `contracts` subfolder
      
      * Fixes compilation errors in tests
      
      * Refactors client to use `AccountData`
      
      * Refactors client to use `BlockChain`
      
      * Refactors miner to use aggregate traits
      
      * Adds `SealedBlockImporter` trait
      
      * Refactors miner to use `SealedBlockImporter` trait
      
      * Removes unused imports
      
      * Simplifies `RegistryInfo::registry_address`
      
      * Fixes indentation
      
      * Removes commented out trait bound
      9d7d6f71
  20. Mar 01, 2018