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

Make CheckNonce refuse transactions signed by accounts with no providers #1578

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

zdave-parity
Copy link
Contributor

See #1453.

@zdave-parity zdave-parity requested review from a team September 14, 2023 18:12
Copy link
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

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

Please add a test.

@bkchr bkchr added the T1-FRAME This PR/Issue is related to core FRAME, the framework. label Sep 26, 2023
let mut header = Header {
parent_hash,
number,
state_root,
extrinsics_root,
state_root: Default::default(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

AIUI state_root and extrinsics_root are not used by Core_initialize_block and should just be set to 0 here.

vec![Transfer {
from: AccountKeyring::Alice.into(),
from: AccountKeyring::One.into(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alice has no balance in the genesis state. As this test runtime has no transaction fees I think this was just resulting in the transaction failing. With the CheckNonce change the transaction was invalid and causing the runtime to panic.

@bkchr bkchr enabled auto-merge (squash) October 9, 2023 20:26
@bkchr bkchr merged commit 93d9c8c into paritytech:master Oct 10, 2023
75 of 109 checks passed
@xlc
Copy link
Contributor

xlc commented Oct 10, 2023

This will make #1725 harder

@bkchr
Copy link
Member

bkchr commented Oct 10, 2023

This will make #1725 harder

Good point, but then we need to make it configurable for #1725.

ordian added a commit that referenced this pull request Oct 12, 2023
* master: (33 commits)
  ci: set CI_IMAGE back to (now updated) .ci-unified (#1854)
  ci: bump ci image to rust 1.73.0 (#1830)
  Refactor Identity to benchmark v2 (#1838)
  PVF worker: bump landlock, update ABI docs (#1850)
  Xcm emulator nits (#1649)
  Fixes path issue in derive-impl (#1823)
  upgrade to macro_magic 0.4.3 (#1832)
  Use safe math when pruning statuses (#1835)
  remote-ext: fix state download stall on slow connections and reduce memory usage (#1295)
  Update testnet bootnode dns name (#1712)
  [FRAME] Warn on unchecked weight witness (#1818)
  [xcm] Use `Weight::MAX` for `reserve_asset_deposited`, `receive_teleported_asset` benchmarks (#1726)
  Update bridges subtree (#1803)
  Check for parent of first ready block being on chain (#1812)
  Make CheckNonce refuse transactions signed by accounts with no providers (#1578)
  Fix Asset Hub collator crashing when starting from genesis (#1788)
  Mixnet integration (#1346)
  [xcm-emulator] Decouple the `AccountId` type from `AccountId32` (#1458)
  Treasury spends various asset kinds (#1333)
  chore: bump zombienter version (#1806)
  ...
kayabaNerve added a commit to serai-dex/polkadot-sdk that referenced this pull request Nov 6, 2023
…o providers (paritytech#1578)"

This reverts commit 93d9c8c.

Serai's coin-pallets doesn't set a provider as we plan to rip out these
systems. Accordingly, this error would prevent users from submitting
transactions.
@Polkadot-Forum
Copy link

This pull request has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/polkadot-release-analysis-v1-3-0/4614/1

CertainLach added a commit to UniqueNetwork/pallet-sponsoring that referenced this pull request Nov 21, 2023
@zdave-parity zdave-parity deleted the nonce-require-provider branch December 22, 2023 13:54
bgallois pushed a commit to duniter/duniter-polkadot-sdk that referenced this pull request Mar 25, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Mar 26, 2024
* do not wait for tx status forever

* more logging
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Mar 27, 2024
* do not wait for tx status forever

* more logging
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 8, 2024
* do not wait for tx status forever

* more logging
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 8, 2024
* do not wait for tx status forever

* more logging
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 8, 2024
* do not wait for tx status forever

* more logging
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 8, 2024
* do not wait for tx status forever

* more logging
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 8, 2024
* do not wait for tx status forever

* more logging
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
* do not wait for tx status forever

* more logging
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
* do not wait for tx status forever

* more logging
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
* do not wait for tx status forever

* more logging
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
* do not wait for tx status forever

* more logging
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
* do not wait for tx status forever

* more logging
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
* do not wait for tx status forever

* more logging
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 10, 2024
* do not wait for tx status forever

* more logging
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 10, 2024
* do not wait for tx status forever

* more logging
bkchr pushed a commit that referenced this pull request Apr 10, 2024
* do not wait for tx status forever

* more logging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T1-FRAME This PR/Issue is related to core FRAME, the framework.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants