Skip to main content

Questions tagged [runtime]

Questions that have to do with the FRAME runtime

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Srtool rust nightly not installed

I am trying to build my runtime using the following command srtool build --root --package my-runtime --runtime-dir node/runtime --build-opts="--features=fast-runtime" I am getting the ...
RRR's user avatar
  • 43
1 vote
2 answers
27 views

EnsureOriginBy using an account set on a pallet's storage

I'm working on a feature that requires pallet-nfts ForceOrigin to only be callable by an account configured inside a separated pallet's storage. For example in pallet-A I have the following #[pallet::...
Valentin Fernandez's user avatar
1 vote
0 answers
23 views

Validator Reward curve tweaking without runtime upgrade

I am facing with the following issue: There might be a future need of changing the configuration for the reward curve for validator. I believe this is possible only be changing the linear piece wise ...
mrBovo_dev's user avatar
3 votes
1 answer
127 views

Sync error while upgrading Polkadot SDK from 1.0 to 1.6

We're in the process of updating the Polimec runtime and node from the Polkadot SDK 1.0 to 1.6. We're doing the final tests before the merge and we are encountering an issue while syncing the ...
Leonardo Razovic's user avatar
0 votes
0 answers
17 views

How to integrate Eirgon EVM execution client into substrate chain

I am building a substrate based chain (not a parachain) and I require 100% EVM compatibility. As such, I would like to leverage erigon as an EVM execution client and use substrate as the consensus ...
TauLepton's user avatar
  • 107
1 vote
1 answer
31 views

problem with pallets bounties & treasury

hello I am trying to add the bounties pallet to the substrate node-template. the version I am using is "release-polkadot-v1.7.0". I keep getting the following error: the traitframe\_support::...
Kazunobu Ndong's user avatar
1 vote
1 answer
45 views

How to debug an extrinsic (the runtime code) after migration to wasm-only execution in Polkadot?

Polkadot is moving away from native execution mode and in the first step they removed the native execution mode. This means that the --execution Native does not work anymore which is the solution in ...
Shabgard's user avatar
0 votes
1 answer
48 views

IEEE 754 Floating Point Numbers wasm impelementation

We are looking to enable reproducible floating point operations on chain by implementing the IEEE 754 standard as an on-chain wasm function. As discussed in this stackoverflow post, substrate does not ...
Mathis Wellmann's user avatar
0 votes
0 answers
27 views

Trying to add democracy precompile and getting an error that says the trait `LinearCostPrecompile` is not implemented for `DemocracyWrapper<Runtime>'

I am trying to add a precompile to my runtime(I hope this is what it is called). What I did was import the precompile first in my runtimes's cargo.toml file. All my dependencies are fetched from ...
RRR's user avatar
  • 43
0 votes
0 answers
15 views

Timestamp inherent data must be provided panics on Seedling runtime

I have built a basic setup of a local Rococo-relay chain and 2 collators to run the Seedling runtime: https://github.com/paritytech/polkadot-sdk/tree/master/cumulus/parachains/runtimes/starters/...
metricaez's user avatar
0 votes
1 answer
39 views

Where is the plain chain spec for kusama that i can use with a kusama runtime locally?

How to run polakdot/kusama runtime + node with a full functionality locally? what chain spec can I use? where the plan chain spec are located for just a ready to start for local env with 2 nodes? ...
rust.dev's user avatar
  • 519
0 votes
0 answers
36 views

Updating SLOT_DURATION on Mainnet - Seeking Assistance!

We are facing a challenge regarding our mainnet and we need the guidance and expertise of the community. Currently, we are looking to update the SLOT_DURATION to optimize the performance of our ...
Lucas Cardeal's user avatar
1 vote
1 answer
42 views

Modifying / extending existing substrate pallet without cloning full source

I would like to modify the substrate transaction-payment pallet's CurrencyAdapter without cloning the entire crate into the local pallets. What's the best practice to provide another implementation ...
Rehan's user avatar
  • 167
1 vote
1 answer
51 views

How does parachain upgrade works?

Let we have a running parachain on kusama and want to do a runtime upgrade. New runtime is bigger then the old one by 100 kb. New runtime will be stored on the relay chain after runtime upgrade ...
Данила Алексеев's user avatar
2 votes
0 answers
24 views

Is it possible to register parathread with compact.compressed wasm file

In official guides they use wasm built with export-genesis-wasm command to register a parathread/parachain: https://youtu.be/BaWcQxKRFmM?t=134 https://docs.substrate.io/tutorials/build-a-parachain/...
Данила Алексеев's user avatar
1 vote
1 answer
95 views

What are the risks of panicking inside an extrinsic call?

Let's imagine the following extrinsic. #[pallet::call_index(1)] #[pallet::weight(T::WeightInfo::might_panic_extrinsic())] pub fn might_panic_extrinsic(origin: OriginFor<T>) -> DispatchResult {...
clst's user avatar
  • 31
0 votes
1 answer
54 views

How to parse a raw signature from PolkadotJS in Substrate runtime

The Polkadot claims pallet verifies and extracts an ethereum address from an EcdsaSignature. Is there a similar implementation for doing this with an Sr25519Signature signed by a wallet using ...
Drew Stone's user avatar
  • 1,194
2 votes
1 answer
61 views

when will `‘Balances::transfer' will be removed` take into effect on main-net?

In this link Balances::transfer will be removed it say 'transfer' is deprecated. I have experienced this change on test-net and fixed my Dapp after got failure report. But when does it take into ...
breeze wang's user avatar
1 vote
0 answers
44 views

How do I monitor runtime upgrades with sidecar?

We need to monitor the spec version of the block, that is, the runtime upgrade. Of course, we know that openGov's suggestions will determine the upgrade. So we're going to run this guide to monitor ...
hs1228's user avatar
  • 45
2 votes
0 answers
36 views

What is the rationale behind the node architecture (Runtime + Host)

Is the separation of the Runtime business logic from the host intended solely for enabling forkless upgrades, or does it also aim to facilitate compatibility with different hosts?
user2862's user avatar
  • 309
1 vote
0 answers
19 views

Why can't runtime APIs have default implementations?

I encountered a compile error error: A runtime API function cannot have a default implementation! when attempting to define a default implementation for a runtime API. Why is this not possible?
liamaharon's user avatar
2 votes
1 answer
78 views

Reusing old Pallet Instance Number

This may come out nonsensical but I'll ask it anyway. construct_runtime!( pub enum Test { System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>} = 0, ...
Jitterbug's user avatar
  • 219
2 votes
1 answer
30 views

How come SignedExtra satisfies SignedExtension trait bound in substrate runtime?

In substrate runtime, https://github.com/paritytech/polkadot-sdk/blob/f60318f68687e601c47de5ad5ca88e2c3f8139a7/substrate/bin/node/runtime/src/lib.rs#L2106C10-L2106C21 pub type SignedExtra = ( // ...
akhil nichenametla's user avatar
0 votes
0 answers
18 views

What is the usecase of `PassBy` trait bound

While working on types between Runtime and Host functions, types going from Runtime to host function requires a PassBy trait bound while types going from Host function to Runtime does not need that ...
vedhavyas's user avatar
  • 155
0 votes
0 answers
15 views

Standalone Runtime

I want to use Substrate Runtime in my application without consensus layer (outer node). I only want to create extrinsics in memory and pass them to runtime (or FRAME) of my custom pallets to proceed. ...
Saman H. Pasha's user avatar
1 vote
1 answer
41 views

How do I cargo expand a non-compiling runtime?

cargo expand is a very useful tool to see the expanded macros that a runtime generates, but if the runtime doesn't compile then it does not output anything. Any tips?
Squirrel's user avatar
  • 3,849
1 vote
1 answer
65 views

thread 'tokio-runtime-worker' has overflowed its stack fatal runtime error: stack overflow Aborted (core dumped)

we are running a stand alone Blockchain network by using POA consensus mechanism. The chain was working fine and after producing 8 Lac Blocks the nodes we down and now i have tried to re-execute same ...
BlockBird's user avatar
2 votes
0 answers
40 views

wasm compilation for later rust versions

I am running a parachain on Ubuntu 22.04 jammy. where i am using polkadot 9.43. I see that in release notes it is said that nightly-2023-05-22 was tested for this substrate version https://github.com/...
cocokick's user avatar
  • 165
1 vote
1 answer
69 views

How to Add and configure Democracy Pallet to Substrate Runtime

I've made an attempt to incorporate the "pallet-democracy" into my Substrate runtime. In the runtime/Cargo.toml file of my Substrate node template, I've added the following configuration: ...
Ariful Islam's user avatar
1 vote
1 answer
67 views

Two different Assets Pallet instance for pallet_asset_conversion Pallet

While reviewing the substrate runtime code, I noticed that the pallet_asset_conversion Pallet references two distinct instances for the Assets Pallet within its Runtime Config: impl ...
ZKT's user avatar
  • 113
1 vote
1 answer
85 views

Cycle detected when computing layout of `RuntimeCall`

My pallet is using the following frame pallets: Democracy, Utility & Collective. The error I get is: cycle used when elaborating drops for `<impl at /home/kazu/Polkadot/fair-squares/runtime/src/...
Kazunobu Ndong's user avatar
0 votes
0 answers
15 views

`sp_io::crypto::ed25519_batch_verify` was removed amid Polkadot 0.9.39 and 0.9.43. What is replacement in Runtime?

We useded25519_batch_verify in runtime from sp_io::crypto mod. sp_io::Crypto and Verify traits require self, but I cannot find implementation. In substrate primitives core I see verify calling fn ...
Dzmitry Lahoda's user avatar
1 vote
1 answer
35 views

How to entirely clear a pallet storage on a living chain?

Would it be possible to clear a pallet storage with a call on a live chain ? Precisely I would like to remove all contracts and code hash existing on my chain (as sudo).
SailorSnoW's user avatar
0 votes
1 answer
27 views

Error in deploying call_runtime contract from ink!

I am running call_runtime from ink. It builds successfully, but when trying to upload contract, It gives system.ExtrinsicFailed contracts.CodeRejected error. Someone please advice what I am doing ...
Ganesh11's user avatar
  • 1,241
0 votes
0 answers
24 views

Can a Substrate Runtime bulk-read many storage keys at once?

This question is about the Substrate host functions and storage implementation and is not specific to FRAME (although relevant FRAME-related information is welcome). Imagine that the runtime knows it ...
JoshOrndorff's user avatar
  • 1,191
3 votes
1 answer
42 views

How to avoid double work when building with srtool

I'm integrating srtool into my CI build. As a result of the build, I aim to obtain the client and the runtime. I can compile the runtime with srtool action and run cargo build to get the client. But ...
Maksim Ramanenkau's user avatar
0 votes
0 answers
26 views

After runtime upgrade council proposals calls becomes <unknown>

We experienced an issue where we had a motion open before upgrading our runtime, after this upgrade this motion became "uncloseable". When inspecting the chainstate for the council, ...
Dylan Verstraete's user avatar
0 votes
1 answer
58 views

Error transfering "Arithmetic: Underflow"

In the example above, we try to transfer 1 TFT from Eve to Dave. This extrinsic fails with Underflow error. When I looked at the error description I found: https://github.com/paritytech/substrate/blob/...
Dylan Verstraete's user avatar
5 votes
2 answers
111 views

Understanding the Use Case of `saturating_inc()`

I was in search of a function to increment a value of type T, and I stumbled upon the trait Saturating in the Substrate documentation. Upon examining the saturating_inc() function, I found the ...
ALeSD's user avatar
  • 489
3 votes
0 answers
50 views

Filter pallet call by origin

Is there a way to access the call origin when using BaseCallFilter from frame_system::Config? Something like: // Disallow any call to a given pallet pub struct CallFilter; impl frame_support::traits::...
Rodrigo Quelhas's user avatar
1 vote
0 answers
96 views

Is 'Ran out of free Wasm instances' a bad symptom?

I develop a custom chain based on Substrate. The chain business logic involves stateful sessions where the state is managed through Http and unsigned transactions submitted via Offchain workers. Until ...
Yury Yukhananov's user avatar
1 vote
1 answer
32 views

Error WrongProposalWeight when proposing a runtime upgrade using the council

When trying to propose a system.setCode motion the extrinsic fails with WrongProposalWeight. We are experiencing this issue only with the above extrinsic and on polkadot-0.9.42 version. On an earlier ...
Dylan Verstraete's user avatar
1 vote
1 answer
51 views

Db weights in Runtime

I see that the DB weights (Rocks or Parity) are directly imported as constants in the runtime code. This means that whenever the runtime is built, it will use those constants. Why was this approach ...
lime's user avatar
  • 121
5 votes
1 answer
39 views

ModuleError, BadState

Setup I'm currently integrating staking functionality into my pallet. Here is a snipped of the relevant part: let who = ensure_signed(origin.clone())?; let required_stake = T::RequiredStake::get(); ...
Mathis Wellmann's user avatar
0 votes
2 answers
74 views

duplicated sessionkey

In polkadot.js staking , when i put the session key, the result is "duplicated session key" I use the command in SSH "echo '{"id":1,"jsonrpc":"2.0","...
jay p's user avatar
  • 61
3 votes
2 answers
50 views

Substate node not compiling on Archlinux

Recently anytime i try to run substrate-node i get this error message, all attempts to update packages hasn't been helpful Error: Service(Client(VersionInvalid("cannot deserialize module: ...
Abimbola Adebayo's user avatar
6 votes
1 answer
54 views

Parachain support for light clients

What is required from a technical point of view (specific pallets and APIs) for parachains to support light clients? I saw that only a few parachains have the option to interact with the light clients....
user2862's user avatar
  • 309
3 votes
1 answer
19 views

Query chain for types in a storagemap

I want to get the meta function description of pallets storage maps. Returning an output like this: { Twox64Concat, [u8; 16], u32 } = query.storagemap(pallet: "template", storagemap: "...
flipchan's user avatar
  • 369
4 votes
3 answers
115 views

Is it possible to use a flat structure storage in the Runtime?

The Runtime storage in Substrate is based on a tree structure rather than a flat structure. While this allows for efficient integrity verification, it incurs data retrieval overhead. According to the ...
Dan's user avatar
  • 41
2 votes
2 answers
513 views

1002: Verification Error: Runtime error: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable`

I've added pallet-nft and pallet-uniques in Relay Chain. All the things are working fine but when I'm signing the transaction in the pallet-uniques fn create(collection,admin), it is showing me this ...
Arunjot Singh's user avatar

1
2 3 4 5