1. Apr 19, 2018
  2. Apr 16, 2018
    • Wei Tang's avatar
      Fix TODO comments (#8413) · 9e09d5b6
      Wei Tang authored
      9e09d5b6
    • Andrew Jones's avatar
      Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) · a04c5b18
      Andrew Jones authored
      * WIP
      
      * Replace Rlp with UntrustedRlp in views, explicity unwrap with expect
      
      First pass to get it to compile. Need to figure out whether to do this or to propogate Errors upstream, which would require many more changes to dependent code. If we do this way we are assuming that the views are always used in a context where the rlp is trusted to be valid e.g. when reading from our own DB. So need to fid out whether views are used with data received from an untrusted (e.g. extrernal peer).
      
      * Remove original Rlp impl, rename UntrustedRlp -> Rlp
      
      * Create rlp views with view! macro to record debug info
      
      Views are assumed to be over valid rlp, so if there is a decoding error we record where the view was created in the first place and report it in the expect
      
      * Use $crate in view! macro to avoid import, fix tests
      
      * Expect valid rlp in decode functions for now
      
      * Replace spaces with tabs in new file
      
      * Add doc tests for creating views with macro
      
      * Update rlp docs to reflect removing of UntrustedRlp
      
      * Replace UntrustedRlp usages in private-tx merge
      a04c5b18
    • Svyatoslav Nikolsky's avatar
      db7a8c4a
  3. Apr 14, 2018
  4. Apr 13, 2018
    • Wei Tang's avatar
      Use tokio::spawn in secret_store listener and fix Uri (#8373) · f6998cb0
      Wei Tang authored
      * Directly wait for future to resolve in a threadpool
      
      * Ignore return value
      
      * Use path.starts_with instead of req_uri.is_absolute
      
      The later now means something else in hyper 0.11..
      
      * Use tokio::spawn
      
      * typo: remove accidential unsafe impl
      f6998cb0
    • Wei Tang's avatar
      Unify and limit rocksdb dependency places (#8371) · 897a9464
      Wei Tang authored
      * secret_store: remove kvdb_rocksdb dependency
      
      * cli: init db mod for open dispatch
      
      * cli: move db, client_db, restoration_db, secretstore_db to a separate mod
      
      * migration: rename to migration-rocksdb and remove ethcore-migrations
      
      * ethcore: re-move kvdb-rocksdb dep to test
      
      * mark test_helpers as test only and fix migration mod naming
      
      * Move restoration_db_handler to test_helpers_internal
      
      * Fix missing preambles in test_helpers_internal and rocksdb/helpers
      
      * Move test crates downward
      
      * Fix missing docs
      
      * cli, db::open_db: move each argument to a separate line
      
      * Use featuregate instead of dead code for `open_secretstore_db`
      
      * Move pathbuf import to open_secretstore_db
      
      Because it's only used there behind a feature gate
      897a9464
    • Niklas Adolfsson's avatar
      3f677c61
    • Tomasz Drwięga's avatar
      New Transaction Queue implementation (#8074) · 1cd93e4c
      Tomasz Drwięga authored and Marek Kotewicz's avatar Marek Kotewicz committed
      * Implementation of Verifier, Scoring and Ready.
      
      * Queue in progress.
      
      * TransactionPool.
      
      * Prepare for txpool release.
      
      * Miner refactor [WiP]
      
      * WiP reworking miner.
      
      * Make it compile.
      
      * Add some docs.
      
      * Split blockchain access to a separate file.
      
      * Work on miner API.
      
      * Fix ethcore tests.
      
      * Refactor miner interface for sealing/work packages.
      
      * Implement next nonce.
      
      * RPC compiles.
      
      * Implement couple of missing methdods for RPC.
      
      * Add transaction queue listeners.
      
      * Compiles!
      
      * Clean-up and parallelize.
      
      * Get rid of RefCell in header.
      
      * Revert "Get rid of RefCell in header."
      
      This reverts commit 0f2424c9b7319a786e1565ea2a8a6d801a21b4fb.
      
      * Override Sync requirement.
      
      * Fix status display.
      
      * Unify logging.
      
      * Extract some cheap checks.
      
      * Measurements and optimizations.
      
      * Fix scoring bug, heap size of bug and add cache
      
      * Disable tx queueing and parallel verification.
      
      * Make ethcore and ethcore-miner compile again.
      
      * Make RPC compile again.
      
      * Bunch of txpool tests.
      
      * Migrate transaction queue tests.
      
      * Nonce Cap
      
      * Nonce cap cache and tests.
      
      * Remove stale future transactions from the queue.
      
      * Optimize scoring and write some tests.
      
      * Simple penalization.
      
      * Clean up and support for different scoring algorithms.
      
      * Add CLI parameters for the new queue.
      
      * Remove banning queue.
      
      * Disable debug build.
      
      * Change per_sender limit to be 1% instead of 5%
      
      * Avoid cloning when propagating transactions.
      
      * Remove old todo.
      
      * Post-review fixes.
      
      * Fix miner options default.
      
      * Implement back ready transactions for light client.
      
      * Get rid of from_pending_block
      
      * Pass rejection reason.
      
      * Add more details to drop.
      
      * Rollback heap size of.
      
      * Avoid cloning hashes when propagating and include more details on rejection.
      
      * Fix tests.
      
      * Introduce nonces cache.
      
      * Remove uneccessary hashes allocation.
      
      * Lower the mem limit.
      
      * Re-enable parallel verification.
      
      * Add miner log. Don't check the type if not below min_gas_price.
      
      * Add more traces, fix disabling miner.
      
      * Fix creating pending blocks twice on AuRa authorities.
      
      * Fix tests.
      
      * re-use pending blocks in AuRa
      
      * Use reseal_min_period to prevent too frequent update_sealing.
      
      * Fix log to contain hash not sender.
      
      * Optimize local transactions.
      
      * Fix aura tests.
      
      * Update locks comments.
      
      * Get rid of unsafe Sync impl.
      
      * Review fixes.
      
      * Remove excessive matches.
      
      * Fix compilation errors.
      
      * Use new pool in private transactions.
      
      * Fix private-tx test.
      
      * Fix secret store tests.
      
      * Actually use gas_floor_target
      
      * Fix config tests.
      
      * Fix pool tests.
      
      * Address grumbles.
      1cd93e4c
    • Pierre Krieger's avatar
      Some tweaks to main.rs for parity as a library (#8370) · 03b96a7c
      Pierre Krieger authored
      * Some tweaks to main.rs for parity as a library
      
      * Remove pub from PostExecutionAction
      03b96a7c
    • asynchronous rob's avatar
  5. Apr 12, 2018
  6. Apr 11, 2018
  7. Apr 10, 2018
  8. 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
    • Wei Tang's avatar
      replace_home for password_files, reserved_peers and log_file (#8324) · 431b27d3
      Wei Tang authored and Marek Kotewicz's avatar Marek Kotewicz committed
      * replace_home for password_files, reserved_peers and log_file
      
      * typo: arg_log_file is Option
      431b27d3
    • Akira Takizawa's avatar
      Add Ethereum Social support (#8325) · d97cf341
      Akira Takizawa authored
      d97cf341
    • 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
    • lihuafeng's avatar
      remove the clone operation of code_cache (#8334) · 9436e88d
      lihuafeng authored
      * Some tiny modifications.
      1. fix some typo in the comment.
      2. sort the order of methods in 'impl state::Backend for StateDB`
      
      * Remove the clone of code_cache, as it has been done in clone_basic.
      9436e88d
  9. Apr 08, 2018