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

Introduce CheckNonZeroSender #10413

Merged
merged 14 commits into from
Dec 8, 2021
Merged

Introduce CheckNonZeroSender #10413

merged 14 commits into from
Dec 8, 2021

Conversation

gavofyork
Copy link
Member

@gavofyork gavofyork commented Dec 2, 2021

skip check-dependent-cumulus

@gavofyork gavofyork 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. D9-needsaudit 👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited labels Dec 2, 2021
frame/system/src/extensions/check_non_zero_sender.rs Outdated Show resolved Hide resolved
frame/system/src/extensions/check_non_zero_sender.rs Outdated Show resolved Hide resolved
@@ -79,6 +79,8 @@ pub enum InvalidTransaction {
/// A transaction with a mandatory dispatch. This is invalid; only inherent extrinsics are
/// allowed to have mandatory dispatches.
MandatoryDispatch,
/// The sending address is disabled or known to be invalid.
BadSigner,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will require that clients update before.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:-(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean it is not a hard requirement, aka we don't break authoring. We will just get a failure on validate_block when trying to decode the return value.

Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gavofyork gavofyork merged commit 2651d5c into master Dec 8, 2021
@gavofyork gavofyork deleted the gav-disable-zero branch December 8, 2021 10:28
seunlanlege pushed a commit to seunlanlege/substrate that referenced this pull request Dec 17, 2021
* Introduce CheckNonZeroSender

* Missing file

* Formatting

* Fixes

* Formatting

* some fixes to compile

* Update frame/system/src/extensions/check_non_zero_sender.rs

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

* Fixes

* Fixes

* another fix

* Formatting

Co-authored-by: Shawn Tabrizi <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
* Introduce CheckNonZeroSender

* Missing file

* Formatting

* Fixes

* Formatting

* some fixes to compile

* Update frame/system/src/extensions/check_non_zero_sender.rs

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

* Fixes

* Fixes

* another fix

* Formatting

Co-authored-by: Shawn Tabrizi <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
wischli added a commit to KILTprotocol/kilt-node that referenced this pull request Jun 2, 2022
@jakoblell jakoblell added D1-audited 👍 PR contains changes to fund-managing logic that has been properly reviewed and externally audited and removed D9-needsaudit 👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited labels Jun 8, 2022
wischli added a commit to KILTprotocol/kilt-node that referenced this pull request Jun 8, 2022
* wip: upgrade to Polkadot v0.9.22

* wip: upgrade to Polkadot v0.9.23

* fix: remove deprecated migrations

NOTE: StorageVersion is tracked inside pallet macro

* fix: fee calc

paritytech/substrate#11415

* chore: bump deps

* fix: add missing check for non zero sender

paritytech/substrate#10413

* fix: client changes

* refactor: downgrade nightly

paritytech/substrate#11266

* chore: upgrade to latest nightly supported by Substrate

* fix: clippy

* fix: clippy

* ci: bump srtool to 1.60

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark pallet --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_treasury.rs --template=.maintain/runtime-weight-template.hbs

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark pallet --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-utility --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_utility.rs --template=.maintain/runtime-weight-template.hbs

* fix: rilt spec

* fix: remove wip unused file

* chore: bump deps

Co-authored-by: kiltbot <>
ntn-x2 pushed a commit to KILTprotocol/kilt-node that referenced this pull request Jun 23, 2022
* wip: upgrade to Polkadot v0.9.22

* wip: upgrade to Polkadot v0.9.23

* fix: remove deprecated migrations

NOTE: StorageVersion is tracked inside pallet macro

* fix: fee calc

paritytech/substrate#11415

* chore: bump deps

* fix: add missing check for non zero sender

paritytech/substrate#10413

* fix: client changes

* refactor: downgrade nightly

paritytech/substrate#11266

* chore: upgrade to latest nightly supported by Substrate

* fix: clippy

* fix: clippy

* ci: bump srtool to 1.60

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark pallet --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_treasury.rs --template=.maintain/runtime-weight-template.hbs

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark pallet --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-utility --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_utility.rs --template=.maintain/runtime-weight-template.hbs

* fix: rilt spec

* fix: remove wip unused file

* chore: bump deps

Co-authored-by: kiltbot <>
(cherry picked from commit 5e2fec6)
AurevoirXavier added a commit to darwinia-network/darwinia-common that referenced this pull request Sep 8, 2022
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* Introduce CheckNonZeroSender

* Missing file

* Formatting

* Fixes

* Formatting

* some fixes to compile

* Update frame/system/src/extensions/check_non_zero_sender.rs

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

* Fixes

* Fixes

* another fix

* Formatting

Co-authored-by: Shawn Tabrizi <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
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. D1-audited 👍 PR contains changes to fund-managing logic that has been properly reviewed and externally audited
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants