Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update from parity #5

Merged
merged 57 commits into from
May 11, 2018
Merged

update from parity #5

merged 57 commits into from
May 11, 2018

Commits on Apr 20, 2018

  1. Use forked app_dirs crate for reverted Windows dir behavior (#8438)

    * Remove unused appdirs dependency in CLI
    
    * Use forked app_dirs crate for reverted Windows dir behavior
    sorpaas authored and niklasad1 committed Apr 20, 2018
    Configuration menu
    Copy the full SHA
    92b5b56 View commit details
    Browse the repository at this point in the history
  2. Permission fix (#8441)

    sorpaas authored and 5chdn committed Apr 20, 2018
    Configuration menu
    Copy the full SHA
    9c5e355 View commit details
    Browse the repository at this point in the history
  3. Block reward contract (#8419)

    * engine: add block reward contract abi and helper client
    
    * aura: add support for block reward contract
    
    * engine: test block reward contract client
    
    * aura: test block reward contract
    
    * engine + aura: add missing docs
    
    * engine: share SystemCall type alias
    
    * aura: add transition for block reward contract
    
    * engine: fix example block reward contract source link and bytecode
    andresilva authored and 5chdn committed Apr 20, 2018
    Configuration menu
    Copy the full SHA
    24f6d82 View commit details
    Browse the repository at this point in the history
  4. Improve VM executor stack size estimation rules (#8439)

    * Improve VM executor stack size estimation rules
    
    * typo: docs add "(Debug build)" comment
    
    * Fix an off by one typo and set minimal stack size
    
    This avoids the case if `depth_threshold == max_depth`. Usually setting stack size to zero will just rebound it to
    platform minimal stack size, but we set it here just in case.
    
    * Use saturating_sub to avoid potential overflow
    sorpaas authored and 5chdn committed Apr 20, 2018
    Configuration menu
    Copy the full SHA
    28b5906 View commit details
    Browse the repository at this point in the history
  5. Private transactions processing error handling (#8431)

    * Integration test for private transaction returned
    
    * Do not interrupt verification in case of errors
    
    * Helpers use specified
    
    * Review comments fixed
    grbIzl authored and 5chdn committed Apr 20, 2018
    Configuration menu
    Copy the full SHA
    d86333a View commit details
    Browse the repository at this point in the history
  6. Update Cargo hidapi-rs dependency (#8447)

    chebykin authored and 5chdn committed Apr 20, 2018
    Configuration menu
    Copy the full SHA
    9e9045a View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2018

  1. Allow 32 bit pipelines to fail (#8454)

    * Disable 32bit tragets for gitlab
    
    * Rename linux pipelines
    5chdn authored Apr 21, 2018
    Configuration menu
    Copy the full SHA
    4e76cce View commit details
    Browse the repository at this point in the history
  2. Update wasmi (#8452)

    pepyakin authored and 5chdn committed Apr 21, 2018
    Configuration menu
    Copy the full SHA
    650948f View commit details
    Browse the repository at this point in the history
  3. Return error in case eth_call returns VM errors (#8448)

    * Add VMError generator
    
    * Return executed exceptions in eth_call
    sorpaas authored and 5chdn committed Apr 21, 2018
    Configuration menu
    Copy the full SHA
    c983efe View commit details
    Browse the repository at this point in the history
  4. ParityShell::open Return result (#8377)

    * start
    
    * add error handling for winapi
    
    * fix typo
    
    * fix warnings and windows errors
    
    * formatting
    
    * Address review comments
    niklasad1 authored and 5chdn committed Apr 21, 2018
    Configuration menu
    Copy the full SHA
    b0cc44a View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2018

  1. fix docker build (#8462)

    General-Beck authored and 5chdn committed Apr 23, 2018
    Configuration menu
    Copy the full SHA
    1ab06ce View commit details
    Browse the repository at this point in the history
  2. Add changelog for 1.9.7 and 1.10.2 (#8460)

    * Add changelog for 1.9.7
    
    * Add Changelog for 1.10.2
    
    * Apply proper markdown
    
    * Run a spellchecker :)
    
    * Be pedantic about the 32-bit pipelines :)
    5chdn authored Apr 23, 2018
    Configuration menu
    Copy the full SHA
    7a28f72 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2018

  1. Configuration menu
    Copy the full SHA
    baeda93 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2018

  1. Use rename_all for RichBlock and RichHeader serialization (#8471)

    * typo: fix a resolved TODO comment
    
    * Use rename_all instead of individual renames
    sorpaas authored and 5chdn committed Apr 25, 2018
    Configuration menu
    Copy the full SHA
    7fdb87a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fa261eb View commit details
    Browse the repository at this point in the history
  3. 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
    5chdn authored Apr 25, 2018
    Configuration menu
    Copy the full SHA
    adc3457 View commit details
    Browse the repository at this point in the history
  4. Fix snap builds (#8483)

    5chdn authored Apr 25, 2018
    Configuration menu
    Copy the full SHA
    f56c065 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4e85015 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2018

  1. 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
    pepyakin authored and niklasad1 committed Apr 26, 2018
    Configuration menu
    Copy the full SHA
    f135c09 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2018

  1. Remove three old warp boot nodes. (#8497)

    ddorgan authored and 5chdn committed Apr 27, 2018
    Configuration menu
    Copy the full SHA
    9376796 View commit details
    Browse the repository at this point in the history
  2. 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
    grbIzl authored and 5chdn committed Apr 27, 2018
    Configuration menu
    Copy the full SHA
    01d399a View commit details
    Browse the repository at this point in the history
  3. duration_ns: u64 -> duration: Duration (#8457)

    * duration_ns: u64 -> duration: Duration
    
    * format on millis {:.2} -> {}
    niklasad1 authored and 5chdn committed Apr 27, 2018
    Configuration menu
    Copy the full SHA
    e36c4ec View commit details
    Browse the repository at this point in the history
  4. Remove unused dependency bigint (#8505)

    * remove unused dependency bigint in
    
    * remove bigint in rpc_cli
    niklasad1 authored and 5chdn committed Apr 27, 2018
    Configuration menu
    Copy the full SHA
    44c6822 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2018

  1. Configuration menu
    Copy the full SHA
    2a829b1 View commit details
    Browse the repository at this point in the history
  2. Directly return None if tracing is disabled (#8504)

    * Directly return None if tracing is disabled
    
    * Address gumbles: release read locks as fast as possible
    sorpaas authored and 5chdn committed May 1, 2018
    Configuration menu
    Copy the full SHA
    7a76916 View commit details
    Browse the repository at this point in the history
  3. Hardware Wallet trait (#8071)

    * getting started with replacing HardwareWalletManager
    
    * trezor and ledger impls the new trait with some drawbacks
    
    * Everything move to the new trait
    
    * It required lifetime annotations in the trait because [u8] in unsized
    * Lets now start moving entry point from HardwareWalletManager
    
    * rename trait to Wallet
    
    * move thread management to the actual wallets
    
    * Moved thread management to each respective Wallet
    * Cleaned up pub items that is needed to be pub
    * Wallet trait more or less finished
    * Cleaned up docs
    
    * fix tests
    
    * omit removed docs
    
    * fix spelling, naming och remove old comments
    
    * ledger test is broken, add correct logging format
    
    * So locally on my machine Linux Ubuntu 17.10 the test doesn't panic but on the CI server libusb::Context::new()
    fails which I don't understand because it has worked before
    * Additionally the ledger test is optional so I lean toward ignoring it the CI Server
    
    * ignore hardware tests by default
    
    * more verbose checking in ledger test
    niklasad1 authored and 5chdn committed May 1, 2018
    Configuration menu
    Copy the full SHA
    849f5d9 View commit details
    Browse the repository at this point in the history
  4. SecretStore: merge two types of errors into single one + Error::is_no…

    …n_fatal (#8357)
    
    * SecretStore: error unify initial commit
    
    SecretStore: pass real error in error messages
    
    SecretStore: is_internal_error -> Error::is_non_fatal
    
    warnings
    
    SecretStore: ConsensusTemporaryUnreachable
    
    fix after merge
    
    removed comments
    
    removed comments
    
    SecretStore: updated HTTP error responses
    
    SecretStore: more ConsensusTemporaryUnreachable tests
    
    fix after rebase
    
    * fixed grumbles
    
    * use HashSet in tests
    svyatonik authored and 5chdn committed May 1, 2018
    Configuration menu
    Copy the full SHA
    d1f5284 View commit details
    Browse the repository at this point in the history
  5. Enable WebAssembly and Byzantium for Ellaism (#8520)

    * Enable WebAssembly and Byzantium for Ellaism
    
    * Fix indentation
    
    * Remove empty lines
    ellaismer authored and andresilva committed May 1, 2018
    Configuration menu
    Copy the full SHA
    10a3464 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2018

  1. More changes for Android (#8421)

    tomaka authored and debris committed May 2, 2018
    Configuration menu
    Copy the full SHA
    629da8f View commit details
    Browse the repository at this point in the history
  2. Transaction Pool improvements (#8470)

    * Don't use ethereum_types in transaction pool.
    
    * Hide internal insertion_id.
    
    * Fix tests.
    
    * Review grumbles.
    tomusdrw authored and debris committed May 2, 2018
    Configuration menu
    Copy the full SHA
    8e86798 View commit details
    Browse the repository at this point in the history
  3. 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 #8463 (comment)
    
    * typo: missed a comment
    sorpaas authored and debris committed May 2, 2018
    Configuration menu
    Copy the full SHA
    b100945 View commit details
    Browse the repository at this point in the history
  4. Pass on storage keys tracing to handle the case when it is not modifi…

    …ed (#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
    sorpaas authored and andresilva committed May 2, 2018
    Configuration menu
    Copy the full SHA
    eec7364 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2018

  1. 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.
    ascjones authored and debris committed May 3, 2018
    Configuration menu
    Copy the full SHA
    66c0638 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2018

  1. Remove expect (#8536)

    * Remove expect and propagate rlp::DecoderErrors as TrieErrors
    dvdplm authored May 4, 2018
    Configuration menu
    Copy the full SHA
    f0c6d17 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2018

  1. EIP 145: Bitwise shifting instructions in EVM (#8451)

    * Add SHL, SHR, SAR opcodes
    
    * Add have_bitwise_shifting schedule flag
    
    * Add all EIP tests for SHL
    
    * Add SHR implementation and tests
    
    * Implement SAR and add tests
    
    * Add eip145transition config param
    
    * Change map_or to map_or_else when possible
    sorpaas authored and debris committed May 5, 2018
    Configuration menu
    Copy the full SHA
    a4c7843 View commit details
    Browse the repository at this point in the history
  2. Consolidate crypto functionality in ethcore-crypto. (#8432)

    * Consolidate crypto functionality in `ethcore-crypto`.
    
    - Move `ecdh`/`ecies` modules to `ethkey`.
    - Refactor `ethcore-crypto` to use file per module.
    - Replace `subtle` with `ethcore_crypto::is_equal`.
    - Add `aes_gcm` module to `ethcore-crypto`.
    
    * Rename `aes::{encrypt,decrypt,decrypt_cbc}` ...
    
    ... to `aes::{encrypt_128_ctr,decrypt_128_ctr,decrypt_128_cbc}`.
    twittner authored and debris committed May 5, 2018
    Configuration menu
    Copy the full SHA
    e30839e View commit details
    Browse the repository at this point in the history

Commits on May 7, 2018

  1. Configuration menu
    Copy the full SHA
    32c32ec View commit details
    Browse the repository at this point in the history
  2. Keep all enacted blocks notify in order (#8524)

    * Keep all enacted blocks notify in order
    
    * Collect is unnecessary
    
    * Update ChainNotify to use ChainRouteType
    
    * Fix all ethcore fn defs
    
    * Wrap the type within ChainRoute
    
    * Fix private-tx and sync api
    
    * Fix secret_store API
    
    * Fix updater API
    
    * Fix rpc api
    
    * Fix informant api
    
    * Eagerly cache enacted/retracted and remove contain_enacted/retracted
    
    * Fix indent
    
    * tests: should use full expr form for struct constructor
    
    * Use into_enacted_retracted to further avoid copy
    
    * typo: not a function
    
    * rpc/tests: ChainRoute -> ChainRoute::new
    sorpaas authored and 5chdn committed May 7, 2018
    Configuration menu
    Copy the full SHA
    528497b View commit details
    Browse the repository at this point in the history
  3. 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
    andresilva authored and 5chdn committed May 7, 2018
    Configuration menu
    Copy the full SHA
    a7a46f4 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2018

  1. 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).
    dvdplm authored May 8, 2018
    Configuration menu
    Copy the full SHA
    28c7318 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2018

  1. Parity as a library (#8412)

    * Parity as a library
    
    * Fix concerns
    
    * Allow using a null on_client_restart_cb
    
    * Fix more concerns
    
    * Test the C library in test.sh
    
    * Reduce CMake version to 3.5
    
    * Move the clib test before cargo test
    
    * Add println in test
    tomaka authored and 5chdn committed May 9, 2018
    Configuration menu
    Copy the full SHA
    ac3de4c View commit details
    Browse the repository at this point in the history
  2. 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
    sorpaas authored and 5chdn committed May 9, 2018
    Configuration menu
    Copy the full SHA
    7a00d97 View commit details
    Browse the repository at this point in the history
  3. 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.
    tomusdrw authored and 5chdn committed May 9, 2018
    Configuration menu
    Copy the full SHA
    24838bb View commit details
    Browse the repository at this point in the history
  4. Make trace-time publishable. (#8568)

    tomusdrw authored and 5chdn committed May 9, 2018
    Configuration menu
    Copy the full SHA
    f20f9f3 View commit details
    Browse the repository at this point in the history
  5. Remove State::replace_backend (#8569)

    sorpaas authored and 5chdn committed May 9, 2018
    Configuration menu
    Copy the full SHA
    b846821 View commit details
    Browse the repository at this point in the history
  6. 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
    ngotchac authored and 5chdn committed May 9, 2018
    Configuration menu
    Copy the full SHA
    8b0ba97 View commit details
    Browse the repository at this point in the history
  7. 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
    dvdplm authored and 5chdn committed May 9, 2018
    Configuration menu
    Copy the full SHA
    842b75c View commit details
    Browse the repository at this point in the history
  8. Update CHANGELOG for 1.9, 1.10, and 1.11 (#8556)

    * Move changelog for 1.10.x
    
    * Mark 1.9 EOL
    
    * Prepare changelog for 1.10.3 stable
    
    * Prepare changelog for 1.11.0 stable
    
    * Update changelogs
    
    * Update CHANGELOG for 1.10.3 beta
    
    * Update CHANGELOG for 1.11.0 beta
    
    * Update CHANGELOG for 1.11.0 beta
    
    * Update CHANGELOG for 1.11.0 beta
    
    * Format changelog
    5chdn authored May 9, 2018
    Configuration menu
    Copy the full SHA
    25536c5 View commit details
    Browse the repository at this point in the history
  9. 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.
    dvdplm authored May 9, 2018
    Configuration menu
    Copy the full SHA
    cb7ad23 View commit details
    Browse the repository at this point in the history
  10. Remove unnecessary cloning in overwrite_with (#8580)

    * Remove unnecessary cloning in overwrite_with
    
    * Remove into_iter
    sorpaas authored and rphmeier committed May 9, 2018
    Configuration menu
    Copy the full SHA
    cddc33b View commit details
    Browse the repository at this point in the history
  11. changelog nit (#8585)

    niklasad1 authored and 5chdn committed May 9, 2018
    Configuration menu
    Copy the full SHA
    1d42b7f View commit details
    Browse the repository at this point in the history
  12. Rename whisper-cli binary to whisper (#8579)

    * rename whisper-cli binary to whisper
    
    * fix tests
    niklasad1 authored and 5chdn committed May 9, 2018
    Configuration menu
    Copy the full SHA
    21dad1d View commit details
    Browse the repository at this point in the history
  13. Add whisper CLI to the pipelines (#8578)

    * Add whisper CLI to the pipelines
    
    * Address todo, ref #8579
    5chdn authored May 9, 2018
    Configuration menu
    Copy the full SHA
    b2cc1c5 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    a57c45b View commit details
    Browse the repository at this point in the history

Commits on May 10, 2018

  1. Changelog and Readme (#8591)

    * Move changelog for 1.10.x
    
    * Mark 1.9 EOL
    
    * Prepare changelog for 1.10.3 stable
    
    * Prepare changelog for 1.11.0 stable
    
    * Update changelogs
    
    * Update CHANGELOG for 1.10.3 beta
    
    * Update CHANGELOG for 1.11.0 beta
    
    * Update CHANGELOG for 1.11.0 beta
    
    * Update CHANGELOG for 1.11.0 beta
    
    * Format changelog
    
    * Update README for 1.11
    
    * Fix typo
    5chdn authored May 10, 2018
    Configuration menu
    Copy the full SHA
    fb0e6cf View commit details
    Browse the repository at this point in the history
  2. 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
    dvdplm authored and 5chdn committed May 10, 2018
    Configuration menu
    Copy the full SHA
    6e2e086 View commit details
    Browse the repository at this point in the history
  3. Make mio optional in ethcore-io (#8537)

    * Make mio optional in ethcore-io
    
    * Add some annotations, plus a check for features
    
    * Increase timer for test
    tomaka authored and 5chdn committed May 10, 2018
    Configuration menu
    Copy the full SHA
    1b8f299 View commit details
    Browse the repository at this point in the history