-
Notifications
You must be signed in to change notification settings - Fork 90
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
Consider non-zero default nonce #248
Comments
Yeah sounds good. We can include it in 1.3.0. |
and once paritytech/polkadot-sdk#1557 is merged and release I suppose? |
We can do it without that actually. |
Ah so you are suggesting a newtype for nonce with custom |
This will confuse block explorer and indexer |
Why? I think the problem is bigger for wallets. |
Needed for: polkadot-fellows/runtimes#248 This PR introduces a new type `TypeWithDefault<T, D: Get<T>>` to be able to provide a custom default for any type. This can, then, be used to provide the nonce type that returns the current block number as the default, to avoid replay of immortal transactions. --------- Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Needed for: polkadot-fellows/runtimes#248 This PR introduces a new type `TypeWithDefault<T, D: Get<T>>` to be able to provide a custom default for any type. This can, then, be used to provide the nonce type that returns the current block number as the default, to avoid replay of immortal transactions. --------- Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez do you still want to tackle this? |
Needed for: polkadot-fellows/runtimes#248 This PR introduces a new type `TypeWithDefault<T, D: Get<T>>` to be able to provide a custom default for any type. This can, then, be used to provide the nonce type that returns the current block number as the default, to avoid replay of immortal transactions. --------- Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
New or resurrected accounts use
Nonce::default()
that returns0
in the Polkadot runtime.We could change this to return the current block number, to avoid replay of immortal transactions.
Any downsides? Yea, its slower but nothing else i think.
The text was updated successfully, but these errors were encountered: