* Upgrade parity-crypto to 0.6
* More fixes
* Upgrade ethabi and ethabi-derive
* Fix lockfile
* Patch ethabi from master
* quickfix for ethash
* Update forkid
* Add secret store back
* Fetch ethabi from crates
* fetch secret-store from the right place
* update to keccak-hash 0.5.1
* ethash: upgrade keccak-hash
* ethash: sneaky spaces
* ethash: use overlapping bytes after all
* revert submodule update
Co-authored-by: Andronik Ordian <write@reusable.software>
The Clique engine changes the header during the call to `check_and_lock_block()` and so when the block is committed we need to use the original header from the `PreverifiedBlock`, so we're back to cloning the `Header`.
Fixes https://github.com/openethereum/openethereum/issues/11603
The exported hardcoded sync was previously generating invalid JSON, with
the CHT list ending in a trailing comma. In order to remedy this, this
commit uses serde_json to serialize the SpecHardcodedSync struct
into valid JSON.
Fixes#11415
`Tempdir` is deprecated, but the functionality has been merged into
another crate: `tempfile`. This commit removes all `tempdir` dependencies
and replaces them with `tempfile` and the equivalent bindings.
Fixes#11560
* ci: workaround for the cache bug
* ci: use the workaround only for linux
* cleanup
* REVERTME: invalidate cache
* test I
* test II
* simplify checkout
* try bash on windows
* fix checkout
* sudo bash?
* ok, I don't have time for this sh*t
* revert Cargo.lock change
* Test rules for .cargo in windows-latest
* update rules
* Get Acl
* new path to windows cargo home
7584c7b879/images/win/scripts/Installers/Install-Rust.ps1 (L10)
* Set-ExecutionPolicy
* Test
* another experiment
* another experiment II
* revert temp changes
Co-authored-by: Denis S. Soldatov aka General-Beck <general.beck@gmail.com>
* Log block number and earliest available block when snapshots fail to start
* Increase default pruning history to 128
Increase default pruning memory to 48Mb
* Decrease SNAPSHOT_PERIOD to 200 to get them snapshots started quicker
* Sync updates to defaults with the args parser
* Fix tests
* Restore the SNAPSHOT_PERIOD to 5000
* One more
* Update ethcore/src/client/config.rs
* Add github action for dockerhub deployment
* Add VCS_REF and BUILD_DATE as buildargs for docker image
* deploy docker images also based on tag
* move docker deployment to it's own github action so it can be parallelized
* remove unnecesary OS check in the docker deployment script
* adding initial steps of checkout and basic toolchain for docker github action
* Update deploy-docker.yml
Remove unnecesary line for checkout sources on deploy docker script
* remove build args from deploy docker script
* Update deploy-docker.yml
OpenEthereum is outside of the current scope for Parity's BugBounty program.
Unfortunately, this means that this Security Policy needs to go.
I urge other OpenEthereum stakeholders to come up with a replacement policy ASAP, and will glad to provide help in setting those processes up/sharing some templates and accumulated knowledge.
* [devp2p discovery]: cleanup
* [devp2p]: remove lifetime from Discovery
This commit it removes the lifetime on type `Discovery` by making `request_backoff: &'static [Duration]`
instead.
* [devp2p discovery]: pass SockAddr by value
* [devp2p discovery]: remove needless clones
* [devp2p discovery]: take payload by value
* Code cleanup
`flush_queue()` is mostly used by tests
remove some unused params
avoid clones in a few places
* Consistent params naming
Consistent use of log calls
* Fix todo
It'a actually not trivial to find out the size of these collections, likely we keep blocks from all kinds of forks in the `self.blocks`/`self.parents` collections and there's no good way to anticipate how many blocks we're going to drain. Most of the time we end up draining 0 blocks and then we drain a whole bunch of them, up to 30 000.
* Revert making flush_queue() test-only
Address review grumbles
* More review grumbles
* fix build
* cleanup
* upbork
* review grumble: rename client id prefix
* rpc-tests: make one of the clients open-ethereum
* fix doctest
* README: mention clang version and that our wiki is old
* ethcore: cleanup after #11531
* fix verification benches
* ethcore: remove enact_verified
* ethcore: replace PreverifiedBlock with a tuple
* ethcore: more descriptive Vec<u8> type alias
* actions
* add build scripts
* chmod +x
* remove clang env
* add ARM builds
* install LLVM for Windows
* check LLVM
* remove fi
* check platform
* fix LLVM install on windows
* diff cache
* remove unexpected token &&
* remove build directory cache from windows
* remove Show ENV
* remove checksum
* fix cross and RUSTFLAGS
* final fix for ARM and Windows build
* typo
* fix PATH for artifacts
* sudo for install
set PATH . for artifacts.zip
* target names for artifacts
* platform names for artifacts
* remove ARM builds
PLATFORM for build scripts
* remove PLATFORM and change PATH for artifacts.zip
* change PATH for artifacts
* add sccache
div to test and build
* env RUSTC_WRAPPER sccache
* sccache tag 0.2.13
up cache to latest v1.1.2
set SCCACHE_CACHE_SIZE: "1G"
* remove dependencies from build
* add audit check
add tags for Build sccache --show-stats
* remove beta and nightly toolchains
* refactoring cache && sccache
* fix Windows PATH o sccache HOME
* "*"->'*'
* install scache from https://github.com/mozilla/sccache/releases
* fix lint
* url for sccache
* sccache up
* shell: pwsh for sccache
* up install script for sccache
* fix link
* splitting tests into multiple tasks
* Jobs renaming
* typo fix
* remove Continue on error
* TEST: remove cargo build cache
* TEST: sccache show stats before
* TEST: 1
* TEST: 2
* TEST: 3
MacOS fix sccache PATH
* TEST 4: enable target cache
* remove build
* TEST 5: check cache and up Cargo.toml
* TEST 6
* TEST 7: restore cargo cache
splt build-tests and run-tests
* TEST 8: fix build-test
* TEST 9: fix sccache
* TEST 10: lint run-test
* TEST 11: build and test in one job
* prepare for merge
* test.yml -> check.yml
* add install sccache script
* sh -> ps1
* add os arg to ps cript
* os up
* fix os arg
* ls sccache tar
* echo url
* echo sccache url
* add swith for select platform
* fix args
* TEST CLEAN 1: clean biuld dir for all platforms
* TEST CLEAN 2: incude build step
continue-on-error in test
* TEST CLEAN 3: script for clean
* ready for merge
* update all the changelogs
* update only github URLs in README.md
* sed magic
find . -type f -exec sed -i 's_paritytech/parity-ethereum_OpenEthereum/open-ethereum_g' {} \;
* Faster kill_garbage
Benchmark shows that almost half the time `apply()`-ing a transaction is spent in garbage collection. This PR avoids visiting each cache item and `collect()`-ing accounts to clean up.
* Walk back panicking behaviour
* Review grumble: prefer `and_then` to `if let`