1. Aug 30, 2018
    • Afri Schoedon's avatar
      stable backports for 1.11.10 (#9228) · 31720e61
      Afri Schoedon authored
      * parity-version: bump stable to 1.11.9
      
      * Fix compilation error on nightly rust (#8707)
      
      On nightly rust passing `public_url` works but that breaks on stable. This works for both.
      
      * parity-version: bump stable to 1.11.10
      
      * Check if synced when using eth_getWork (#9193) (#9210)
      
      * Check if synced when using eth_getWork (#9193)
      
      * Don't use fn syncing
      
      * Fix identation
      
      * Fix typo
      
      * Don't check for warping
      
      * rpc: avoid calling queue_info twice on eth_getWork
      
      * Fix potential as_usize overflow when casting from U256 in miner (#9221)
      
      * Allow old blocks from peers with lower difficulty (#9226)
      
      Previously we only allow downloading of old blocks if the peer
      difficulty was greater than our syncing difficulty. This change allows
      downloading of blocks from peers where the difficulty is greater then
      the last downloaded old block.
      
      * Update Dockerfile (#9242)
      
      * Update Dockerfile
      
      fix Docker build
      
      * fix dockerfile paths: parity -> parity-ethereum (#9248)
      
      * Update tobalaba.json (#9313)
      
      * Light client `Provide default nonce in transactions when it´s missing` (#9370)
      
      * Provide `default_nonce` in tx`s when it´s missing
      
      When `nonce` is missing in a `EthTransaction` will cause it to fall in
      these cases provide `default_nonce` value instead!
      
      * Changed http:// to https:// on Yasm link (#9369)
      
      Changed http:// to https:// on Yasm link in README.md
      
      * Provide `default_nonce` in tx`s when it´s missing
      
      When `nonce` is missing in a `EthTransaction` will cause it to fall in
      these cases provide `default_nonce` value instead!
      
      * Address grumbles
      
      * ethcore: kovan: delay activation of strict score validation (#9406)
      
      * Use impl Future in the light client RPC helpers (#8628)
      
      * Better support for eth_getLogs in light mode (#9186)
      
      * Light client on-demand request for headers range.
      
      * Cache headers in HeaderWithAncestors response.
      
      Also fulfills request locally if all headers are in cache.
      
      * LightFetch::logs fetches missing headers on demand.
      
      * LightFetch::logs limit the number of headers requested at a time.
      
      * LightFetch::logs refactor header fetching logic.
      
      * Enforce limit on header range length in light client logs request.
      
      * Fix light request tests after struct change.
      
      * Respond to review comments.
      
      * Propagate transactions for next 4 blocks. (#9265)
      
      Closes #9255
      
      This PR also removes the limit of max 64 transactions per packet, currently we only attempt to prevent the packet size to go over 8MB. This will only be the case for super-large transactions or high-block-gas-limit chains.
      
      Patching this is important only for chains that have blocks that can fit more than 4k transactions (over 86M block gas limit)
      
      For mainnet, we should actually see a tiny bit faster propagation since instead of computing 4k pending set, we only need `4 * 8M / 21k = 1523` transactions.
      
      Running some tests on `dekompile` node right now, to check how it performs in the wild.
      
      * ethcore: fix pow difficulty validation (#9328)
      
      * ethcore: fix pow difficulty validation
      
      * ethcore: validate difficulty is not zero
      
      * ethcore: add issue link to regression test
      
      * ethcore: fix tests
      
      * ethcore: move difficulty_to_boundary to ethash crate
      
      * ethcore: reuse difficulty_to_boundary and boundary_to_difficulty
      
      * ethcore: fix grumbles in difficulty_to_boundary_aux
      v1.11.10
      31720e61
  2. Jul 28, 2018
  3. Jul 25, 2018
    • Afri Schoedon's avatar
      Backports to 1.11.8-stable (#9144) · c754a028
      Afri Schoedon authored
      * parity-version: bump stable to 1.11.8
      
      * ci: update version strings for snaps
      
      * Be more graceful on Aura difficulty validation (#9164)
      
      * Be more graceful on Aura difficulty validation
      
      * test: rejects_step_backwards
      
      * test: proposer_switching
      
      * test: rejects_future_block
      
      * test: reports_skipped
      
      * test: verify_empty_seal_steps
      
      * parity: fix UserDefaults json parser (#9189)
      
      * parity: fix UserDefaults json parser
      
      * parity: use serde_derive for UserDefaults
      
      * parity: support deserialization of old UserDefault json format
      
      * parity: make UserDefaults serde backwards compatible
      
      * parity: tabify indentation in UserDefaults
      
      * Fix bugfix hard fork logic (#9138)
      
      * Fix bugfix hard fork logic
      
      * Remove dustProtectionTransition from bugfix category
      
      EIP-168 is not enabled by default
      
      * Remove unnecessary 'static
      
      * Disable per-sender limit for local transactions. (#9148)
      
      * Disable per-sender limit for local transactions.
      
      * Add a missing new line.
      
      * rpc: fix is_major_importing sync state condition (#9112)
      
      * rpc: fix is_major_importing sync state condition
      
      * rpc: fix informant printout when waiting for peers
      
      * fix verification in ethcore-sync collect_blocks (#9135)
      
      * docker: update hub dockerfile (#9173)
      
      * update Dockerfile for hub
      
      update to Ubuntu Xenial 16.04
      fix cmake version
      
      * docker: fix tab indentation in hub dockerfile
      
      * ethcore: update to parity-wasm 0.31
      
      * rpc: fix broken merge
      v1.11.8
      c754a028
  4. Jul 17, 2018
    • Afri Schoedon's avatar
      Backports to 1.11.7-stable (#9093) · 085035fa
      Afri Schoedon authored
      * parity-version: stabelize 1.11
      
      * parity-version: bump stable to 1.11.7
      
      * Don't fetch snapshot chunks at random (#9088)
      
      * Offload cull to IoWorker.
      
      * Limit the number of transactions in pending set (#8777)
      
      * Unordered iterator.
      
      * Use unordered and limited set if full not required.
      
      * Split timeout work into smaller timers.
      
      * Avoid collecting all pending transactions when mining
      
      * Remove println.
      
      * Use priority ordering in eth-filter.
      
      * Fix ethcore-miner tests and tx propagation.
      
      * Review grumbles addressed.
      
      * Add test for unordered not populating the cache.
      
      * Fix ethcore tests.
      
      * Fix light tests.
      
      * Fix ethcore-sync tests.
      
      * Fix RPC tests.
      
      * Make sure to produce full blocks.
      
      * Update hidapi, fixes #7542 (#9108)
      
      * docker: add cmake dependency (#9111)
      
      * Fix miner tests.
      
      * Revert "Make sure to produce full blocks."
      
      This reverts commit b12d5920.
      
      * Update light client hardcoded headers (#9098)
      
      * Insert Kovan hardcoded headers until #7690241
      
      * Insert Kovan hardcoded headers until block 7690241
      
      * Insert Ropsten hardcoded headers until #3612673
      
      * Insert Mainnet hardcoded headers until block 5941249
      
      * Make sure to produce full blocks. (#9115)
      
      * Insert ETC (classic) hardcoded headers until block #6170625 (#9121)
      
      * fix verification in ethcore-sync collect_blocks (#9135)
      
      * `evm bench` fix broken dependencies (#9134)
      
      * `evm bench` use valid dependencies
      
      Benchmarks of the `evm` used stale versions of a couple a crates that
      this commit fixes!
      
      * fix warnings
      v1.11.7
      085035fa
  5. Jul 09, 2018
    • Afri Schoedon's avatar
      Beta: 1.11.6 backports (#9015) · 4ba600fc
      Afri Schoedon authored
      * parity-version: bump beta to 1.11.6
      
      * scripts: remove md5 checksums (#8884)
      
      * Add support for --chain tobalaba
      
      * Convert indents to tabs :)
      
      * Fixes for misbehavior reporting in AuthorityRound (#8998)
      
      * aura: only report after checking for repeated skipped primaries
      
      * aura: refactor duplicate code for getting epoch validator set
      
      * aura: verify_external: report on validator set contract instance
      
      * aura: use correct validator set epoch number when reporting
      
      * aura: use epoch set when verifying blocks
      
      * aura: report skipped primaries when generating seal
      
      * aura: handle immediate transitions
      
      * aura: don't report skipped steps from genesis to first block
      
      * aura: fix reporting test
      
      * aura: refactor duplicate code to handle immediate_transitions
      
      * aura: let reporting fail on verify_block_basic
      
      * aura: add comment about possible failure of reporting
      
      * Only return error log for rustls (#9025)
      
      * Transaction Pool improvements (#8470)
      
      * Don't use ethereum_types in transaction pool.
      
      * Hide internal insertion_id.
      
      * Fix tests.
      
      * Review grumbles.
      
      * Improve should_replace on NonceAndGasPrice (#8980)
      
      * Additional tests for NonceAndGasPrice::should_replace.
      
      * Fix should_replace in the distinct sender case.
      
      * Use natural priority ordering to simplify should_replace.
      
      * Minimal effective gas price in the queue (#8934)
      
      * Minimal effective gas price.
      
      * Fix naming, add test
      
      * Fix minimal entry score and add test.
      
      * Fix worst_transaction.
      
      * Remove effective gas price threshold.
      
      * Don't leak gas_price decisions out of Scoring.
      
      * Never drop local transactions from different senders. (#9002)
      
      * Recently rejected cache for transaction queue (#9005)
      
      * Store recently rejected transactions.
      
      * Don't cache AlreadyImported rejections.
      
      * Make the size of transaction verification queue dependent on pool size.
      
      * Add a test for recently rejected.
      
      * Fix logging for recently rejected.
      
      * Make rejection cache smaller.
      
      * obsolete test removed
      
      * obsolete test removed
      
      * Construct cache with_capacity.
      
      * Optimize pending transactions filter (#9026)
      
      * rpc: return unordered transactions in pending transactions filter
      
      * ethcore: use LruCache for nonce cache
      
      Only clear the nonce cache when a block is retracted
      
      * Revert "ethcore: use LruCache for nonce cache"
      
      This reverts commit b382c19abdb9985be1724c3b8cde83906da07d68.
      
      * Use only cached nonces when computing pending hashes.
      
      * Give filters their own locks, so that they don't block one another.
      
      * Fix pending transaction count if not sealing.
      
      * Clear cache only when block is enacted.
      
      * Fix RPC tests.
      
      * Address review comments.
      
      * A last bunch of txqueue performance optimizations (#9024)
      
      * Clear cache only when block is enacted.
      
      * Add tracing for cull.
      
      * Cull split.
      
      * Cull after creating pending block.
      
      * Add constant, remove sync::read tracing.
      
      * Reset debug.
      
      * Remove excessive tracing.
      
      * Use struct for NonceCache.
      
      * Fix build
      
      * Remove warnings.
      
      * Fix build again.
      
      * miner: add missing macro use for trace_time
      
      * ci: remove md5 merge leftovers
      v1.11.6
      4ba600fc
  6. Jun 29, 2018
    • Afri Schoedon's avatar
      Bump beta to 1.11.5 / Backports (#8955) · 0487c5b7
      Afri Schoedon authored
      * parity-version: bump beta to 1.11.5
      
      * Update ropsten.json (#8926)
      
      * Update hardcoded headers (#8925)
      
      * Update kovan.json
      
      Update Kovan to block 7693549
      
      * Update foundation.json
      
      Updated to block #5812225
      
      * Update ropsten.json
      
      Update to 3465217
      
      * Update ropsten.json
      
      use tabs
      
      * Update foundation.json
      
      use tabs
      
      * Update kovan.json
      
      use tabs
      
      * scripts: minor improvements (#8930)
      
      * CI: enable 'latest' docker tag on master pipeline
      
      * CI: mark both beta and stable as stable snap.
      
      * CI: sign all windows binaries
      
      * scripts: fix docker build tag on latest using master (#8952)
      
      * rpc: cap gas limit of local calls (#8943)
      
      * snap: downgrade rust to revision 1.26.2, ref snapcraft/+bug/1778530 (#8984)
      
      * snap: downgrade rust to revision 1.26.2, ref snapcraft/+bug/1778530
      
      * snap: use plugin rust
      
      * Fix deadlock in blockchain. (#8977)
      
      * Remove js-glue from workspace
      
      This fixes test error on Rust 1.27 but also prevents js-glue from building itself. Builtin dapp users can still use
      js-glue from crates.io.
      
      * Fix Android build on beta (#9003)
      v1.11.5
      0487c5b7
  7. Jun 19, 2018
    • André Silva's avatar
      [beta] Backports (#8916) · cc44ae9c
      André Silva authored
      * `duration_ns: u64 -> duration: Duration` (#8457)
      
      * duration_ns: u64 -> duration: Duration
      
      * format on millis {:.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
      
      * Handle removed logs in filter changes and add geth compatibility field (#8796)
      
      * Add removed geth compatibility field in log
      
      * Fix mocked tests
      
      * Add field block hash in PollFilter
      
      * Store last block hash info for log filters
      
      * Implement canon route
      
      * Use canon logs for fetching reorg logs
      
      Light client removed logs fetching is disabled. It looks expensive.
      
      * Make sure removed flag is set
      
      * Address grumbles
      
      * Fixed AuthorityRound deadlock on shutdown, closes #8088 (#8803)
      
      * CI: Fix docker tags (#8822)
      
      * scripts: enable docker builds for beta and stable
      
      * scripts: docker latest should be beta not master
      
      * scripts: docker latest is master
      
      * ethcore: fix ancient block error msg handling (#8832)
      
      * Disable parallel verification and skip verifiying already imported txs. (#8834)
      
      * Reject transactions that are already in pool without verifying them.
      
      * Avoid verifying already imported transactions.
      
      * Fix concurrent access to signer queue (#8854)
      
      * Fix concurrent access to signer queue
      
      * Put request back to the queue if confirmation failed
      
      * typo: fix docs and rename functions to be more specific
      
      `request_notify` does not need to be public, and it's renamed to `notify_result`.
      `notify` is renamed to `notify_message`.
      
      * Change trace info "Transaction" -> "Request"
      
      * Don't allocate in expect_valid_rlp unless necessary (#8867)
      
      * don't allocate via format! in case there's no error
      
      * fix test?
      
      * fixed ipc leak, closes #8774 (#8876)
      
      * Add new ovh bootnodes and fix port for foundation bootnode 3.2 (#8886)
      
      * Add new ovh bootnodes and fix port for foundation bootnode 3.2
      
      * Remove old bootnodes.
      
      * Remove duplicate 1118980bf48b0a3640bdba04e0fe78b1add18e1cd99bf22d53daac1fd9972ad650df52176e7c7d89d1114cfef2bc23a2959aa54998a46afcf7d91809f0855082
      
      * Block 0 is valid in queries (#8891)
      
      Early exit for block nr 0 leads to spurious error about pruning: `…your node is running with state pruning…`.
      
      Fixes #7547, #8762
      
      * Add ETC Cooperative-run load balanced parity node (#8892)
      
      * Minor fix in chain supplier and light provider (#8906)
      
      * fix chain supplier increment
      
      * fix light provider block_headers
      
      * Check whether we need resealing in miner and unwrap has_account in account_provider (#8853)
      
      * Remove unused Result wrap in has_account
      
      * Check whether we need to reseal for external transactions
      
      * Fix reference to has_account interface
      
      * typo: missing )
      
      * Refactor duplicates to prepare_and_update_sealing
      
      * Fix build
      
      * Allow disabling local-by-default for transactions with new config entry (#8882)
      
      * Add tx_queue_allow_unknown_local config option
      
      - Previous commit messages:
      
      dispatcher checks if we have the sender account
      
      Add `tx_queue_allow_unknown_local` to MinerOptions
      
      Add `tx_queue_allow_unknown_local` to config
      
      fix order in MinerOptions to match Configuration
      
      add cli flag for tx_queue_allow_unknown_local
      
      Update refs to `tx_queue_allow_unknown_local`
      
      Add tx_queue_allow_unknown_local to config test
      
      revert changes to dispatcher
      
      Move tx_queue_allow_unknown_local to `import_own_transaction`
      
      Fix var name
      
      if statement should return the values
      
      derp de derp derp derp semicolons
      
      Reset dispatch file to how it was before
      
      fix compile issues + change from FLAG to ARG
      
      add test and use `into`
      
      import MinerOptions, clone the secret
      
      Fix tests?
      
      Compiler/linter issues fixed
      
      Fix linter msg - case of constants
      
      IT LIVES
      
      refactor to omit yucky explict return
      
      update comments
      
      Fix based on diff AccountProvider.has_account method
      
      * Refactor flag name + don't change import_own_tx behaviour
      
      fix arg name
      
      Note: force commit to try and get gitlab tests working again 😠
      
      * Add fn to TestMinerService
      
      * Avoid race condition from trusted sources
      
      - refactor the miner tests a bit to cut down on code reuse
      - add `trusted` param to dispatch_transaction and import_claimed_local_transaction
      
      Add param to `import_claimed_local_transaction`
      
      Fix fn sig in tests
      v1.11.4
      cc44ae9c
  8. Jun 12, 2018
  9. 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
  10. 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
  11. Jun 01, 2018
  12. 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
  13. May 14, 2018
  14. 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
  15. 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
  16. Apr 24, 2018
  17. Apr 23, 2018
  18. Apr 21, 2018
  19. Apr 20, 2018
  20. Apr 19, 2018
  21. 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
  22. Apr 14, 2018