Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

primitives: remove random_seed from BlockBuilder API #8718

Merged
4 commits merged into from
May 4, 2021

Conversation

andresilva
Copy link
Contributor

@andresilva andresilva commented May 3, 2021

The BlockBuilder API has a method random_seed which is unused and unsafe to use. Users that need randomness from the runtime should instead use the Randomness API.

polkadot companion: paritytech/polkadot#2968

@andresilva andresilva added A0-please_review Pull request needs code review. B7-runtimenoteworthy C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels May 3, 2021
@andresilva andresilva requested a review from bkchr May 3, 2021 15:49
@bkchr
Copy link
Member

bkchr commented May 3, 2021

bot merge

@ghost
Copy link

ghost commented May 3, 2021

Waiting for commit status.

@ghost
Copy link

ghost commented May 3, 2021

Merge aborted: Checks failed for 3b9b7cc

@bkchr
Copy link
Member

bkchr commented May 4, 2021

bot merge

@ghost
Copy link

ghost commented May 4, 2021

Trying merge.

@ghost
Copy link

ghost commented May 4, 2021

Bot will approve on the behalf of @bkchr, since they are a team lead, in an attempt to reach the minimum approval count

@ghost ghost merged commit 5f73ba1 into master May 4, 2021
@ghost ghost deleted the andre/remove-random-seed branch May 4, 2021 09:29
HCastano added a commit to paritytech/parity-bridges-common that referenced this pull request May 4, 2021
HCastano added a commit to paritytech/parity-bridges-common that referenced this pull request May 4, 2021
* Bump Substrate to commit `b094edafd1cd5d26e49ecbf92b0ce7553cfad717`

* Remove unsafe random seed method

See: paritytech/substrate#8718

* Update Subkey syntax

See: paritytech/substrate#8678
nazar-pc pushed a commit to autonomys/substrate that referenced this pull request Aug 8, 2021
* primitives: remove random_seed from BlockBuilderApi

* node: remove random_seed

* primitives: bump BlockBuilderApi version

* client: rpc: fix test
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants