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

[pull] master from paritytech:master #6

Open
wants to merge 357 commits into
base: master
Choose a base branch
from

Conversation

pull[bot]
Copy link

@pull pull bot commented Sep 22, 2019

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added the ⤵️ pull label Sep 22, 2019
@pull pull bot added the merge-conflict Resolve conflicts manually label Feb 19, 2020
cheme and others added 28 commits March 27, 2020 20:11
* Switch from `parity-rocksdb` to upstream `rust-rocksdb`

* Update to latest rocksdb

* Delete prefix as range exept when start is full of 255 (corner case).

* forcing ignore lifetime (not more unsafe than before, columnfamily is
probably not an issue, dbiterator is one as it will fail on close db).

* remove temporarilly path deps for easier patch usage.

* being a bit more exhaustive

* Tests for delete prefix, fix rocksdb full column delete.

* revert util-mem

* update versionning.

* better end prefix from review

* revert test error check

* Update kvdb-memorydb/src/lib.rs

Co-Authored-By: Andronik Ordian <[email protected]>

* Update kvdb-shared-tests/src/lib.rs

Co-Authored-By: Andronik Ordian <[email protected]>

* Update kvdb/src/lib.rs

Co-Authored-By: Andronik Ordian <[email protected]>

* Update kvdb/src/lib.rs

Co-Authored-By: Andronik Ordian <[email protected]>

* applying suggestions, and remove delete by prefix method.

* io stats num column

* end_prefix test

* format

* Redundant delete.

* Update kvdb/src/lib.rs

Co-Authored-By: David <[email protected]>

* Update kvdb/src/lib.rs

Co-Authored-By: David <[email protected]>

* Documentation fix and additional test case in end_prefix_test

* Doc.

* doc

Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Benjamin Kampmann <[email protected]>
Co-authored-by: Andronik Ordian <[email protected]>
Co-authored-by: David <[email protected]>
* Allow pubkey recovery for all-zero messages

After https://github.com/openethereum/openethereum/pull/11406 it is no longer possible to to public key recovery from messages that are all-zero. This create issues when using the `ecrecover` builtin because externally produced signatures may well provide a message (i.e. a preimage) that is all-zeroes.
This works around the problem at the cost of cloning the incoming message and create a `ZeroesAllowedMessage` wrapper around it. The `ZeroesAllowedMessage` implements the `ThirtyTwoByteHash` trait from `rust-secp256k1` which circumvents the zero-check.

In a follow-up PR we'll likely change the interface of `recover()` to take a `ZeroesAllowedMessage` directly, thus removing the unneeded clone.

* Inner doesn't need to be pub

* Update parity-crypto/src/publickey/ecdsa_signature.rs

Co-Authored-By: Andronik Ordian <[email protected]>

* Docs and review grumbles

* Add `recover_allowing_all_zero_message()`
Revert `recover()` to previous behaviour: no zero-messages allowed
Docs and cleanup

* Obey the fmt

Co-authored-by: Andronik Ordian <[email protected]>
* keccak-hash: add keccak256_range and keccak512_range functions

* keccak-hash: prep for release

* keccak-hash: update the date in changelog

* keccak-hash: more docs

* Update keccak-hash/src/lib.rs

Co-Authored-By: David <[email protected]>

Co-authored-by: David <[email protected]>
…and fix construction of `ZeroesAllowedMessage`
* keccak-hash: fix bench and add one for range

* fmt
* parity-util-mem: try to fix compilation on windows

* appveyor: test parity-util-mem with no-std

* appveyor: test parity-util-mem with default features

* fmt
* parity-util-mem: bump minor version

* parity-util-mem: update the changelog

* parity-util-mem: update README
* kvdb: small cleanup

* kvdb-rocksdb: rename and optimize iter_with_prefix

* fix links in changelogs

* apply suggestions from code review

* 🤦

* fmt
* Add arbitrary trait implementation

Signed-off-by: Kirk Baird <[email protected]>

* Add arbitrary trait to Ethereum Types

Signed-off-by: Kirk Baird <[email protected]>

* Tidy up creation of empty array

Signed-off-by: Kirk Baird <[email protected]>

* Resolve minor issues

Signed-off-by: Kirk Baird <[email protected]>

* Update README.md and fix features

Signed-off-by: Kirk Baird <[email protected]>

* Add arbitrary support for Uint, ethbool and primitive-types

Signed-off-by: Kirk Baird <[email protected]>

* Update add ethbloom/arbitrary

Co-Authored-By: Andronik Ordian <[email protected]>

* Update uint/README.md

Co-Authored-By: David <[email protected]>

* Rewrite arbitrary comments

Signed-off-by: Kirk Baird <[email protected]>

* Update fixed-hash/src/hash.rs

Co-Authored-By: David <[email protected]>

* Update fixed-hash/src/hash.rs

Co-Authored-By: David <[email protected]>

Co-authored-by: Andronik Ordian <[email protected]>
Co-authored-by: David <[email protected]>
* Fix limit prefix delete case. Warning this uses iter by prefix for
it in rocksdb.

* Comment

* Changes needed for merging, end_prefix returning option in new code and
renaming of iter with prefix.

* reduce cornercase iteration windows size.

* extract common iter prefix delete corner case code.

* Update kvdb-rocksdb/src/lib.rs

Co-Authored-By: Andronik Ordian <[email protected]>

* Remove unused code, there can be call to 'delete_range_cf' on empty range,
but that is fine.

Co-authored-by: Andronik Ordian <[email protected]>
* uint: fix UB in uint::from_fig_endian

* uint: add regression tests
* update changelogs

* update versions

* update dev-dependency in impl/serde
* kvdb-rocksdb: update to new set_upper_bound API

* kvdb-rocksdb: update rocksdb to crates.io version

* kvdb-rocksdb: update the changelog

* Fix build? Set VM template.

* Fix build? correct image name

* Fix build? Maybe it's 2019?

* appveyor: try release build

* Revert "appveyor: try release build"

This reverts commit ace87ee.

* checkout rust-rocksdb/rust-rocksdb#412

* revert patch

* revert unrelated changes

Co-authored-by: David Palm <[email protected]>
* kvdb-rocksdb: update to new set_upper_bound API

* kvdb-rocksdb: update rocksdb to crates.io version

* kvdb-rocksdb: update the changelog

* Fix build? Set VM template.

* Fix build? correct image name

* Fix build? Maybe it's 2019?

* appveyor: try release build

* Revert "appveyor: try release build"

This reverts commit ace87ee.

* checkout rust-rocksdb/rust-rocksdb#412

* revert patch

* revert unrelated changes

* add open as secondary rocksdb api

* Update kvdb-rocksdb/src/lib.rs

Co-Authored-By: Andronik Ordian <[email protected]>

* add more information to secondary mode comment

* add function to catch up a secondary instance with a primary instance

* one more doc comment for more clarity

* style fixes

* Update kvdb-rocksdb/src/lib.rs

Co-Authored-By: David <[email protected]>

* Update kvdb-rocksdb/src/lib.rs

Co-Authored-By: David <[email protected]>

* change name of `secondary_mode` option to `secondary`

* Update kvdb-rocksdb/src/lib.rs

Co-Authored-By: David <[email protected]>

* fix some punctuation

* specify a different directory for secondary instance to store its logs

* Update kvdb-rocksdb/src/lib.rs

Co-authored-by: Andronik Ordian <[email protected]>

* remove catching up on primary db in test

* doc comment fixes

expand on what `try_catch_up_with_secondary` does, since
it may have some implications on the primary instance of rocksdb
according to L503-566 in `db/db_impl/db_impl_secondary.cc` of facebook/rocksdb

* remove wrong info about blocking primary instance

* more docs for catch-up-with-primary

* grammar

* make `max_open_files` comment clearer

Co-authored-by: Andronik Ordian <[email protected]>
Co-authored-by: David Palm <[email protected]>
* primitive-types: add no_std support for serde feature

This adds no_std support to primitive-types with serde.

Due to rust-lang/cargo#3494,
a separate new feature `serde_no_std` is created.

* primitive-types: update changelog

* travis: add tests for primitive-types
* update changelogs and bump versions

* update kvdb-web changelog

* kvdb-rocksdb: mark second instance as breaking

It added a public field to a public struct
`DatabaseConfig`.

* maybe today is the day?
* Implement codec for ethereum types

* Bump patch version

* Update changelog for ethbloom and ethereum-types

* Fix import order

* Add CI test of --all-features for ethbloom and ethereum-types

* Fix CI
* uint: simplify Ord impl

* uint: fix u512_ord bench to not optimize it away

* uint: fix u256_ord bench as well :/
* uint: manually implement some traits

* uint: remove unused attr and add Eq tests

* uint: fix formatting

* uint: add a comment why a manual impl is used

* uint: simply Eq impl

* uint: simplify Hash and add a regression test

* uint: fmt and changelog update
* parity-util-mem: optimize MallocSizeOf for flat collections

* parity-util-mem: obey Nikolay's suggestion to use fold

* parity-util-mem: implement size_of_is_zero for more types

* parity-util-mem: generalize 0 size to constant size
Put `Secret` memory on heap.
* parity-util-mem: export MallocShallowSizeOf

* parity-util-mem: cargo fmt
* primitive-types: type-metadata support

* primitive-types: cargo fmt

* switch to scale-info

* primitive-types: use scale-info from crates.io

* ci: remove duplicate test

* primitive-types: fix compilation for test

* primitive-types: fmt

* primitive-types: update scale-info to 0.2
parity-util-mem: bump version and deps and update changelog
* prepare publish

* update date

* missing pr number

* Update kvdb-web/CHANGELOG.md

Co-authored-by: Andronik Ordian <[email protected]>
ordian and others added 30 commits September 17, 2023 21:44
* bounded-collections: fix build for no_std + serde

* put serde test under feature

* try something

* try something else

* try without
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.6.2 to 2.7.0.
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](Swatinem/rust-cache@e207df5...a95ba19)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* schemars

* comment

* clean up, aligned version of schema with CosmWasm for now

* Update bounded-collections/src/bounded_vec.rs

Co-authored-by: ordian <[email protected]>

---------

Co-authored-by: ordian <[email protected]>
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* primitive-types: release 0.12.2

* bounded-collections: release 0.1.9
* Add BoundedVec::try_rotate_{left,right}

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Update changelog

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

---------

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
…serde_no_std/json-schema feature/targets combinations (#801)

* more std

* fixes of std and improvement of schema

* better alloc support
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.7.0 to 2.7.1.
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](Swatinem/rust-cache@a95ba19...3cf7f8c)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* imp: fixed-hash allow opting out rand when std enabled

* Update fixed-hash/Cargo.toml

* fix: cargo test --no-default-features

* Update fixed-hash/Cargo.toml

Co-authored-by: Bastian Köcher <[email protected]>

---------

Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: ordian <[email protected]>
`mips64-unknown-linux-muslabi64 target` (used to test bigendian) was removed in 1.75.0.

The workaround for now is to pin the toolchain to 1.74.0.
We could try using `cross` instead in the future.
the overflow behaviour depends on the width of usize, conditionalize
accordingly.

Fixes: #802

Signed-off-by: Fabian Grünbichler <[email protected]>
Co-authored-by: ordian <[email protected]>
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.7.1 to 2.7.2.
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](Swatinem/rust-cache@3cf7f8c...a226033)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.7.2 to 2.7.3.
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](Swatinem/rust-cache@a226033...23bce25)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Release 0.2.0

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* CHANGELOG release date

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

---------

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
* Add more comment

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <[email protected]>

---------

Co-authored-by: ordian <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
This adds the repository URL to the Cargo manifest of `primitive-types`,
so that the crate published on crates.io can be automatically linked
back to the source repository.
* fix compile errors with new Rust

* try fixing rug compilation error
* update uint and deps

* Fix uppercase

* Apply suggestions from code review

Co-authored-by: Alexander Theißen <[email protected]>

* Update changelogs

* Apply suggestions from code review

* Apply suggestions from code review

---------

Co-authored-by: Alexander Theißen <[email protected]>
Co-authored-by: ordian <[email protected]>
* Bump versions

* Update rlp changelog

* adjust the date

---------

Co-authored-by: ordian <[email protected]>
* bump rlp-derive version

* fix rlp version
* bump impl-codec

* fix rlp changelog

* bump dep

* ethereum-types too

* ethbloom too
* implementation

* Changelog

* Move tests down

* Remove clone bound

* Set date to Monday

Co-authored-by: ordian <[email protected]>

* Fix match that's always okay

Co-authored-by: Bastian Köcher <[email protected]>

* Update Cargo.toml

* Move serde tests behind feature flag

* Add ToString

* Remove underscore

* Update bounded-collections/CHANGELOG.md

* fmt

---------

Co-authored-by: ordian <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: ordian <[email protected]>
* fixed-hash: remove byteorder features

* fix fixed-hash part of CI

* fix tests

* update readme
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.7.3 to 2.7.5.
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](Swatinem/rust-cache@23bce25...82a92a6)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Updates the requirements on [jsonschema](https://github.com/Stranger6667/jsonschema-rs) to permit the latest version.
- [Release notes](https://github.com/Stranger6667/jsonschema-rs/releases)
- [Changelog](https://github.com/Stranger6667/jsonschema-rs/blob/master/CHANGELOG.md)
- [Commits](Stranger6667/jsonschema@rust-v0.17.0...rust-v0.23.0)

---
updated-dependencies:
- dependency-name: jsonschema
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* bump rust msrv to 1.75

* bump CI rust to 1.75

* remove big-endian tests
…port (#878)

* bounded-collections: Add Const(Int|Uint) for generic const getter support

* bounded-collections: Update changelog

* bounded-collections: Clean up helper types for ConstUint

* bounded-collections: Fix broken compile-time check

* bounded-collections: Add compile_fail doc test for overflown ConstUint

* bounded-collections: Address review comments

---------

Co-authored-by: ordian <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⤵️ pull merge-conflict Resolve conflicts manually
Projects
None yet
Development

Successfully merging this pull request may close these issues.