1. Jun 05, 2018
    • Afri Schoedon's avatar
      parity-version: bump beta to 1.11.3 (#8806) · a66e36bf
      Afri Schoedon authored
      * parity-version: bump beta to 1.11.3
      
      * Disallow unsigned transactions in case EIP-86 is disabled (#8802)
      
      * Disallow unsigned transactions in case EIP-86 is disabled
      
      * Add tests for verification
      
      * Add disallow unsigned transactions test in machine
      
      * Fix ancient blocks queue deadlock (#8751)
      
      * Revert "Fix not downloading old blocks (#8642)"
      
      This reverts commit d1934363.
      
      * Make sure only one thread actually imports old blocks.
      
      * Add some trace timers.
      
      * Bring back pending hashes set.
      
      * Separate locks so that queue can happen while we are importing.
      
      * Address grumbles.
      v1.11.3
      a66e36bf
    • Andrew Jones's avatar
      c4c27cfa
  2. Jun 04, 2018
    • André Silva's avatar
      [beta] Backports (#8785) · 7bf16cce
      André Silva authored
      * Fix light sync with initial validator-set contract (#8528)
      
      * Fix #8468
      
      * Use U256::max_value() instead
      
      * Fix again
      
      * Also change initial transaction gas
      
      * Resumable warp-sync / Seed downloaded snapshots (#8544)
      
      * Start dividing sync chain : first supplier method
      
      * WIP - updated chain sync supplier
      
      * Finish refactoring the Chain Sync Supplier
      
      * Create Chain Sync Requester
      
      * Add Propagator for Chain Sync
      
      * Add the Chain Sync Handler
      
      * Move tests from mod -> handler
      
      * Move tests to propagator
      
      * Refactor SyncRequester arguments
      
      * Refactoring peer fork header handler
      
      * Fix wrong highest block number in snapshot sync
      
      * Small refactor...
      
      * Resume warp-sync downloaded chunks
      
      * Add comments
      
      * Refactoring the previous chunks import
      
      * Fix tests
      
      * Address PR grumbles
      
      * Fix not seeding current snapshot
      
      * Address PR Grumbles
      
      * Address PR grumble
      
      * Retry failed CI job
      
      * Update SnapshotService readiness check
      Fix restoration locking issue for previous chunks restoration
      
      * Fix tests
      
      * Fix tests
      
      * Fix test
      
      * Early abort importing previous chunks
      
      * PR Grumbles
      
      * Update Gitlab CI config
      
      * SyncState back to Waiting when Manifest peers disconnect
      
      * Move fix
      
      * Better fix
      
      * Revert GitLab CI changes
      
      * Fix Warning
      
      * Refactor resuming snapshots
      
      * Fix string construction
      
      * Revert "Refactor resuming snapshots"
      
      This reverts commit 75fd4b553a38e4a49dc5d6a878c70e830ff382eb.
      
      * Update informant log
      
      * Fix string construction
      
      * Refactor resuming snapshots
      
      * Fix informant
      
      * PR Grumbles
      
      * Update informant message : show chunks done
      
      * PR Grumbles
      
      * Fix
      
      * Fix Warning
      
      * PR Grumbles
      
      * Don't open Browser post-install on Mac (#8641)
      
      Since we start parity with the UI disabled per default now, opening the browser post installation will show an annoying error message, confusing the user. This patch removes opening the browser to prevent that annoyance.
      
      fixes #8194
      
      * Fix not downloading old blocks (#8642)
      
      * Fix PoW blockchains sealing notifications in chain_new_blocks (#8656)
      
      * Shutdown the Snapshot Service early (#8658)
      
      * Shutdown the Snapshot Service when shutting down the runner
      
      * Rename `service` to `client_service`
      
      * Fix tests
      
      * Fix cli signer (#8682)
      
      * Update ethereum-types so `{:#x}` applies 0x prefix
      
      * Set the request index to that of the current request (#8683)
      
      * Set the request index to that of the current request
      
      When setting up the chain of (two) requests to look up a block by hash, the second need to refer to the first. This fixes an issue where the back ref was set to the subsequent request, not the current one. When the requests are executed we loop through them in order and ensure the requests that should produce headers all match up. We do this by index so they better be right.
      
      In other words: off by one.
      
      * network-devp2p: handle UselessPeer disconnect (#8686)
      
      * Fix local transactions policy. (#8691)
      
      * CI: Fixes for Android Pipeline (#8745)
      
      * ci: Remove check for shared libraries in gitlab script
      
      * ci: allow android arm build to fail
      
      * Custom Error Messages on ENFILE and EMFILE IO Errors (#8744)
      
      * Custom Error Messages on ENFILE and EMFILE IO Errors
      
      Add custom mapping of ENFILE and EMFILE IO Errors (Failure because of missing system resource) right when chaining ioError into ::util::Network::Error to improve Error Messages given to user
      
      Note: Adds libc as a dependency to util/network
      
      * Use assert-matches for more readable tests
      
      * Fix Wording and consistency
      
      * ethcore-sync: fix connection to peers behind chain fork block (#8710)
      v1.11.2-ci0
      7bf16cce
  3. Jun 01, 2018
  4. May 15, 2018
    • Andrew Jones's avatar
      [beta] Backports (#8624) · 6654d021
      Andrew Jones authored
      * Trace precompiled contracts when the transfer value is not zero (#8486)
      
      * Trace precompiled contracts when the transfer value is not zero
      
      * Add tests for precompiled CALL tracing
      
      * Use byzantium test machine for the new test
      
      * Add notes in comments on why we don't trace all precompileds
      
      * Use is_transferred instead of transferred
      
      * Return error if RLP size of transaction exceeds the limit (#8473)
      
      * Return error if RLP size of transaction exceeds the limit
      
      * Review comments fixed
      
      * RLP check moved to verifier, corresponding pool test added
      
      * Don't block sync when importing old blocks (#8530)
      
      * Alter IO queueing.
      
      * Don't require IoMessages to be Clone
      
      * Ancient blocks imported via IoChannel.
      
      * Get rid of private transactions io message.
      
      * Get rid of deadlock and fix disconnected handler.
      
      * Revert to old disconnect condition.
      
      * Fix tests.
      
      * Fix deadlock.
      
      * Refactoring `ethcore-sync` - Fixing warp-sync barrier (#8543)
      
      * Start dividing sync chain : first supplier method
      
      * WIP - updated chain sync supplier
      
      * Finish refactoring the Chain Sync Supplier
      
      * Create Chain Sync Requester
      
      * Add Propagator for Chain Sync
      
      * Add the Chain Sync Handler
      
      * Move tests from mod -> handler
      
      * Move tests to propagator
      
      * Refactor SyncRequester arguments
      
      * Refactoring peer fork header handler
      
      * Fix wrong highest block number in snapshot sync
      
      * Small refactor...
      
      * Address PR grumbles
      
      * Retry failed CI job
      
      * Fix tests
      
      * PR Grumbles
      
      * Handle socket address parsing errors (#8545)
      
      Unpack errors and check for io::ErrorKind::InvalidInput and return our own AddressParse error. Remove the foreign link to std::net::AddrParseError and add an `impl From` for that error. Test parsing properly.
      
      * Fix packet count when talking with PAR2 peers (#8555)
      
      * Support diferent packet counts in different protocol versions.
      
      * Fix light timeouts and eclipse protection.
      
      * Fix devp2p tests.
      
      * Fix whisper-cli compilation.
      
      * Fix compilation.
      
      * Fix ethcore-sync tests.
      
      * Revert "Fix light timeouts and eclipse protection."
      
      This reverts commit 06285ea8c1d9d184d809f64b5507aece633da6cc.
      
      * Increase timeouts.
      
      * Add whisper CLI to the pipelines (#8578)
      
      * Add whisper CLI to the pipelines
      
      * Address todo, ref #8579
      
      * Rename `whisper-cli binary` to `whisper` (#8579)
      
      * rename whisper-cli binary to whisper
      
      * fix tests
      
      * Remove manually added text to the errors (#8595)
      
      These messages were confusing for the users especially the help message.
      
      * Fix account list double 0x display (#8596)
      
      * Remove unused self import
      
      * Fix account list double 0x display
      
      * Fix BlockReward contract "arithmetic operation overflow" (#8611)
      
      * Fix BlockReward contract "arithmetic operation overflow"
      
      * Add docs on how execute_as_system works
      
      * Fix typo
      
      * Rlp decode returns Result (#8527)
      
      rlp::decode returns Result
      
      Make a best effort to handle decoding errors gracefully throughout the code, using `expect` where the value is guaranteed to be valid (and in other places where it makes sense).
      
      * Remove expect (#8536)
      
      * Remove expect and propagate rlp::DecoderErrors as TrieErrors
      
      * Decoding headers can fail (#8570)
      
      * rlp::decode returns Result
      
      * Fix journaldb to handle rlp::decode Result
      
      * Fix ethcore to work with rlp::decode returning Result
      
      * Light client handles rlp::decode returning Result
      
      * Fix tests in rlp_derive
      
      * Fix tests
      
      * Cleanup
      
      * cleanup
      
      * Allow panic rather than breaking out of iterator
      
      * Let decoding failures when reading from disk blow up
      
      * syntax
      
      * Fix the trivial grumbles
      
      * Fix failing tests
      
      * Make Account::from_rlp return Result
      
      * Syntx, sigh
      
      * Temp-fix for decoding failures
      
      * Header::decode returns Result
      
      Handle new return type throughout the code base.
      
      * Do not continue reading from the DB when a value could not be read
      
      * Fix tests
      
      * Handle header decoding in light_sync
      
      * Handling header decoding errors
      
      * Let the DecodeError bubble up unchanged
      
      * Remove redundant error conversion
      
      * fix compiler warning (#8590)
      
      * Attempt to fix intermittent test failures (#8584)
      
      Occasionally should_return_correct_nonces_when_dropped_because_of_limit fails, possibly because of multiple threads competing to finish. See CI logs here for an example: https://gitlab.parity.io/parity/parity/-/jobs/86738
      
      * block_header can fail so return Result (#8581)
      
      * block_header can fail so return Result
      
      * Restore previous return type based on feedback
      
      * Fix failing doc tests running on non-code
      
      * Block::decode() returns Result (#8586)
      
      * Gitlab test script fixes (#8573)
      
      * Exclude /docs from modified files.
      
      * Ensure all references in the working tree are available
      
      * Remove duplicated line from test script
      v1.11.1
      6654d021
  5. May 14, 2018
  6. May 07, 2018
    • Wei Tang's avatar
      [beta] Backports (#8558) · 62ccdd7a
      Wei Tang authored
      * Fetching logs by hash in blockchain database (#8463)
      
      * Fetch logs by hash in blockchain database
      
      * Fix tests
      
      * Add unit test for branch block logs fetching
      
      * Add docs that blocks must already be sorted
      
      * Handle branch block cases properly
      
      * typo: empty -> is_empty
      
      * Remove return_empty_if_none by using a closure
      
      * Use BTreeSet to avoid sorting again
      
      * Move is_canon to BlockChain
      
      * typo: pass value by reference
      
      * Use loop and wrap inside blocks to simplify the code
      
      Borrowed from https://github.com/paritytech/parity/pull/8463#discussion_r183453326
      
      * typo: missed a comment
      
      * Pass on storage keys tracing to handle the case when it is not modified (#8491)
      
      * Pass on storage keys even if it is not modified
      
      * typo: account and storage query
      
      `to_pod_diff` builds both `touched_addresses` merge and storage keys merge.
      
      * Fix tests
      
      * Use state query directly because of suicided accounts
      
      * Fix a RefCell borrow issue
      
      * Add tests for unmodified storage trace
      
      * Address grumbles
      
      * typo: remove unwanted empty line
      
      * ensure_cached compiles with the original signature
      
      * Update wasmi and pwasm-utils (#8493)
      
      * Update wasmi to 0.2
      
      New wasmi supports 32bit platforms and no longer requires a special feature to build for such platforms.
      
      * Update pwasm-utils to 0.1.5
      
      * Show imported messages for light client (#8517)
      
      * Enable WebAssembly and Byzantium for Ellaism (#8520)
      
      * Enable WebAssembly and Byzantium for Ellaism
      
      * Fix indentation
      
      * Remove empty lines
      
      * Don't panic in import_block if invalid rlp (#8522)
      
      * Don't panic in import_block if invalid rlp
      
      * Remove redundant type annotation
      
      * Replace RLP header view usage with safe decoding
      
      Using the view will panic with invalid RLP. Here we use Rlp decoding directly which will return a `Result<_, DecoderError>`. While this path currently should not have any invalid RLP - it makes it safer if ever called with invalid RLP from other code paths.
      
      * Node table sorting according to last contact data (#8541)
      
      * network-devp2p: sort nodes in node table using last contact data
      
      * network-devp2p: rename node contact types in node table json output
      
      * network-devp2p: fix node table tests
      
      * network-devp2p: note node failure when failed to establish connection
      
      * network-devp2p: handle UselessPeer error
      
      * network-devp2p: note failure when marking node as useless
      v1.11.0
      62ccdd7a
  7. Apr 26, 2018
    • Afri Schoedon's avatar
      Betalize 1.11 :) (#8475) · aae451de
      Afri Schoedon authored
      * Betalize 1.11 :)
      
      * Update Gitlab scripts
      
      * Use master as gitlab latest
      
      * Fix snap builds (#8483)
      
      * Update hardcodedSync for Ethereum, Kovan, and Ropsten (#8489)
      aae451de
  8. Apr 24, 2018
  9. Apr 23, 2018
  10. Apr 21, 2018
  11. Apr 20, 2018
  12. Apr 19, 2018
  13. 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
  14. Apr 14, 2018
  15. 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
  16. Apr 12, 2018