<?xml version="1.0" encoding="utf-8"?>
<comments>
  <row Id="6" PostId="17" Score="0" Text="Are you asking to call these from JavaScript? or in what context?" CreationDate="2022-02-08T19:06:53.763" UserId="28" />
  <row Id="7" PostId="17" Score="0" Text="I'm using Rust, but example can be in any language" CreationDate="2022-02-08T19:17:16.340" UserId="50" />
  <row Id="9" PostId="7" Score="2" Text="I think of a substrate as a city that already has its infrastructure: electricity, roads, and plans. Polkadot is one of the administrative centers or a stronghold in that city." CreationDate="2022-02-08T19:49:57.107" UserId="69" />
  <row Id="10" PostId="26" Score="0" Text="Substrate is exactly as its name suggests, is a solid foundation, like a planned land and converges the essential conditions to build a blockchain in the most optimal direction, fixing all defects. Etherium points..." CreationDate="2022-02-08T20:27:40.337" UserId="66" />
  <row Id="11" PostId="19" Score="0" Text="Substrate is important and special in its outstanding features and characteristics. In the self-answer section, you also mentioned it quite fully. Thank you" CreationDate="2022-02-08T20:30:28.047" UserId="66" />
  <row Id="13" PostId="22" Score="0" Text="Would there be a way to do it without tight coupling?" CreationDate="2022-02-08T21:49:44.757" UserId="85" />
  <row Id="14" PostId="22" Score="1" Text="Yes, through traits interfaces you can access other pallets. This is &quot;loose coupling&quot;. Let me edit my answer to include that (although the answer might get quite long)." CreationDate="2022-02-08T22:08:12.050" UserId="28" />
  <row Id="15" PostId="18" Score="1" Text="It should be said that unless you're switching out the consensus mechanism, then it's usually not too hard to turn a self-sovereign substrate chain into becoming a parachain." CreationDate="2022-02-08T22:14:18.630" UserId="85" />
  <row Id="16" PostId="15" Score="0" Text="runtime upgrades are not unique, hyperledger sawtooth has had them for a while for example (but to be fair substrate is far more robust in my experience)." CreationDate="2022-02-08T22:33:04.903" UserId="85" />
  <row Id="17" PostId="27" Score="0" Text="Why did you add that picture?" CreationDate="2022-02-08T23:12:14.750" UserId="103" />
  <row Id="18" PostId="10" Score="1" Text="just to be clear: by default a substrate chain does nothing, you have to add pallets for the protocol, WASM Contracts, EVM contracts, governance, even the token is a pallet. So be careful and make sure your chain has all the bells and whistles you need." CreationDate="2022-02-08T23:23:56.487" UserId="106" />
  <row Id="20" PostId="38" Score="0" Text="Thank you @Ki Chjang for the brief and go-to explanation." CreationDate="2022-02-09T04:20:50.523" UserId="135" />
  <row Id="21" PostId="34" Score="2" Text="I follow this [Substrate Tutorial](https://docs.substrate.io/tutorials/v3/cumulus/start-relay) and it works fine" CreationDate="2022-02-09T04:25:43.620" UserId="135" />
  <row Id="22" PostId="27" Score="1" Text="Yeah, although this picture would help to explain the relation of validators, it is not introduced properly in the text." CreationDate="2022-02-09T04:52:30.340" UserId="138" />
  <row Id="23" PostId="38" Score="0" Text="Great answer. Maybe you could comment on additional options when SPREE lands? &#xA;&#xA;( https://wiki.polkadot.network/docs/learn-spree )" CreationDate="2022-02-09T06:59:40.323" UserId="85" />
  <row Id="24" PostId="48" Score="2" Text="I don't believe &quot;clear down the state before it starts&quot; is accurate. The blockchain state is placed in a temporary folder and is cleaned up as soon as the process ends." CreationDate="2022-02-09T07:35:01.857" UserId="28" />
  <row Id="25" PostId="46" Score="0" Text="Did you make sure to make `try-runtime` optional and enable it with `std`? Can you share a diff of the changes you made to your node leading to this error?" CreationDate="2022-02-09T07:41:32.507" UserId="28" />
  <row Id="26" PostId="54" Score="0" Text="thanks, &#xA;After re-genesis will  chain-spec file of new chain  be different?" CreationDate="2022-02-09T08:19:07.117" UserId="143" />
  <row Id="27" PostId="54" Score="0" Text="Yes, certainly the chain-spec will be different than the original chain since you will have a bunch of new storage keys inside the regenerated chain. The genesis hash of your chain will be different too, signifying you have a truly new chain." CreationDate="2022-02-09T08:21:19.463" UserId="28" />
  <row Id="28" PostId="54" Score="0" Text="thanks, can we call it hardfork?&#xA;can we keep the same chain spec file ? basicaly i want to save the state and reset chain after some interval." CreationDate="2022-02-09T08:38:17.377" UserId="143" />
  <row Id="29" PostId="54" Score="0" Text="The chain spec is literally just a definition of the state at the beginning of your chain. I don't see how you can keep the same chain spec while also trying to change the state of your chain. These seem in conflict with one another." CreationDate="2022-02-09T08:41:29.243" UserId="28" />
  <row Id="30" PostId="16" Score="0" Text="The EVM Pallet seems interesting. Do you have any idea about the stated &quot;customizable conversion functions&quot; used to map Substrate accounts and EVM external accounts?" CreationDate="2022-02-09T09:14:08.820" UserId="46" />
  <row Id="31" PostId="24" Score="0" Text="I am deleting this question/answer as it is a direct copy-paste of [the same question and answer on Stack Overflow](https://stackoverflow.com/q/56418100/1328704), and [cross-posting questions/answers on multiple sites on the network is discouraged](https://meta.stackexchange.com/q/64068/208518). If you feel your question and answer are a better fit here, please consider deleting the posts over at Stack Overflow before re-asking it here. If there's any benefit in having similar content on both sites, at least consider tailoring it to the specific audience." CreationDate="2022-02-09T11:24:50.057" UserId="178" />
  <row Id="32" PostId="79" Score="0" Text="Thanks Basti! I am just trying to add all the questions I remember being asked on element" CreationDate="2022-02-09T12:03:57.997" UserId="18" />
  <row Id="33" PostId="84" Score="4" Text="It should be noted that Offchain Workers are very often misunderstood. It is not trivial just to write some random http request as part of pallet development and expect it to work. The runtime's state transition function must be completely deterministic, and the use  of Offchain Workers introduces non-determinism. So you must go much deeper into what this tool is, what it is not, and how to correctly use it." CreationDate="2022-02-09T12:40:20.733" UserId="28" />
  <row Id="34" PostId="75" Score="0" Text="FYI if you want to see when a future block is likely to come into existence then subscan has your back: https://polkadot.subscan.io/block/99999999" CreationDate="2022-02-09T13:12:46.227" UserId="85" />
  <row Id="35" PostId="40" Score="1" Text="When you run with `--tmp`, the entire idea is that the data is purged on closing the node." CreationDate="2022-02-09T15:14:38.793" UserId="73" />
  <row Id="36" PostId="47" Score="0" Text="As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-02-09T15:15:31.147" UserId="-1" />
  <row Id="37" PostId="72" Score="0" Text="So you still need to build your runtime using something else... such as Substrate FRAME?" CreationDate="2022-02-09T16:23:27.810" UserId="29" />
  <row Id="38" PostId="90" Score="0" Text="@NukeManDan there done. have fun." CreationDate="2022-02-09T17:12:29.600" UserId="139" />
  <row Id="39" PostId="72" Score="0" Text="Yes the runtimes for polkadot and parachains are all a combination of substrate frame pallets (at the moment). That does not stop some of those pallets being compilers or interpreters of other languages ( solidity, or wasm for example )." CreationDate="2022-02-09T17:17:32.700" UserId="85" />
  <row Id="40" PostId="58" Score="0" Text="XCM is how parachains communicate with others. I think the question needs to be a bit more specific about what kind of interaction (E.g. for fungible or non-fungible things?)." CreationDate="2022-02-09T19:05:40.233" UserId="85" />
  <row Id="41" PostId="94" Score="0" Text="https://stackoverflow.com/questions/21747136/how-do-i-print-the-type-of-a-variable can help you get the text of a type if it is for debug purposes." CreationDate="2022-02-09T19:33:34.330" UserId="85" />
  <row Id="42" PostId="38" Score="1" Text="@Squirrel Definitely possible, but SPREE itself is an entirely different subsystem from XCM, although I don't know for sure whether you can address SPREE using an XCM MultiLocation; it is still in its early conceptual stages, so I wouldn't comment much on it yet." CreationDate="2022-02-09T19:34:28.037" UserId="104" />
  <row Id="43" PostId="94" Score="0" Text="Unfortunately, it is not for debug purposes." CreationDate="2022-02-09T19:36:21.757" UserId="238" />
  <row Id="44" PostId="96" Score="0" Text="cute - nice trick." CreationDate="2022-02-09T21:11:01.130" UserId="85" />
  <row Id="45" PostId="105" Score="0" Text="Thanks Shawn! Super informative answer. &#xA;&#xA;For any other data analysts who primarily use Python, you can access the getblockhash rpc endpoint Shawn mentioned via:&#xA;&#xA;https://polkascan.github.io/py-substrate-interface/base.html#substrateinterface.base.SubstrateInterface.get_block_hash" CreationDate="2022-02-09T23:48:40.510" UserId="246" />
  <row Id="46" PostId="100" Score="2" Text="Actually, I don't think this is a thing anymore. Hot-swappable consensus was needed as part of the lifecycle of a parachain when it would offboard and become a solo-chain until it won another auction and joined Polkadot again. Now that we have the idea of parathreads, chains can continue to produce new blocks even after offboarding as a parachain. But that is only AFAIK." CreationDate="2022-02-10T00:16:52.867" UserId="28" />
  <row Id="47" PostId="46" Score="0" Text="I will try to boil it down to a minimal reproducible error, hold on" CreationDate="2022-02-10T00:58:36.877" UserId="116" />
  <row Id="48" PostId="111" Score="0" Text="Hello @NukeManDan , Could you please help me?" CreationDate="2022-02-10T02:57:58.363" UserId="252" />
  <row Id="49" PostId="113" Score="5" Text="This sounds like it's a bug issue, you should instead report it on the relevant repositories on GitHub rather than asking on SE." CreationDate="2022-02-10T04:59:49.463" UserId="104" />
  <row Id="50" PostId="106" Score="1" Text="Very clear answer. Thanks Shawn!" CreationDate="2022-02-10T06:33:53.133" UserId="139" />
  <row Id="52" PostId="54" Score="0" Text="please check out this quetion https://substrate.stackexchange.com/questions/117/how-to-use-fork-off-substrate-for-node-template" CreationDate="2022-02-10T07:46:17.720" UserId="143" />
  <row Id="53" PostId="118" Score="1" Text="@NukeManDan as requested." CreationDate="2022-02-10T08:50:09.180" UserId="221" />
  <row Id="56" PostId="128" Score="1" Text="Thank you very much for your answer. That was my guess.&#xA;&#xA;In the case of creating your own custom private network with substrate where all nodes are trusted would not be enough either, am I right?  &#xA;&#xA;And well, I'm not sure if you could get that trust on all nodes talking about a lot of money. &#xA;&#xA;Thanks for your answers again." CreationDate="2022-02-10T13:15:26.907" UserId="260" />
  <row Id="57" PostId="123" Score="0" Text="Any of the polkadot-v0.*.* substrate branches represent production quality substrate releases. You can use https://github.com/bkchr/diener tool to point to a particular version of substrate." CreationDate="2022-02-10T14:12:14.977" UserId="85" />
  <row Id="60" PostId="118" Score="0" Text="Thanks for cross posting!" CreationDate="2022-02-10T16:54:36.923" UserId="34" />
  <row Id="61" PostId="119" Score="0" Text="I'm using Polkadot.js Apps for interacting with Rococo Canvas chain for now to avoid above issue. However, App UI has no reaction when clicking Read button for calling Read methods (for example, totalSupply() of my PSP22Token contract). Execute methods works. Does anyone face with the same situation?" CreationDate="2022-02-10T16:55:26.173" UserId="275" />
  <row Id="62" PostId="94" Score="0" Text="Are you trying to parse that as a string?(that would be weird) all the info you need is in the metadata of the chain" CreationDate="2022-02-10T17:38:33.950" UserId="67" />
  <row Id="63" PostId="129" Score="1" Text="Is the name the confusing bit? for me it was initially until I realized the Per_something are all just &quot;percentages&quot; but with different resolution." CreationDate="2022-02-10T17:42:19.807" UserId="67" />
  <row Id="64" PostId="128" Score="0" Text="If all nodes are trusted, then yeah, your randomness should be trusted too since they can only be manipulated by the block producers. But at that point, you can also inject &quot;trusted&quot; randomness into the chain too via a trusted oracle." CreationDate="2022-02-10T17:43:51.340" UserId="28" />
  <row Id="65" PostId="143" Score="0" Text="Thank you! It may be helpful to update some of the verbiage on this page to reflect the current vision/roadmap https://substrate.io/technology/flexible/" CreationDate="2022-02-10T19:54:31.000" UserId="12" />
  <row Id="66" PostId="120" Score="0" Text="Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." CreationDate="2022-02-10T21:16:49.567" UserId="-1" />
  <row Id="67" PostId="108" Score="0" Text="&quot;Instead, you probably need to build this logic into a custom Substrate / Polkadot client which itself is a block producer, and manipulates the transactions you are including in a block.&quot; - This is because only the block producers receive the info of which transactions are candidates for inclusion in a block? This info cannot be obtained using polkadot-js?" CreationDate="2022-02-10T21:22:38.350" UserId="3" />
  <row Id="68" PostId="131" Score="0" Text="The question asks for the query function instead of query_map, are they in fact functionally similar?" CreationDate="2022-02-10T21:37:28.937" UserId="104" />
  <row Id="69" PostId="113" Score="1" Text="I also had issues getting this tutorial to function. They do have this issue in the repository (which you may note that the kitties tutorial has not been checked off of yet): https://substrate.stackexchange.com/questions/113/substrate-node-template-kitties-tutorial-build-fails" CreationDate="2022-02-10T23:24:18.303" UserId="17" />
  <row Id="70" PostId="148" Score="0" Text="No it can't be the tool chain, I can build the same sha withou the changes but this: looks like the problem sudipghimire533 commented 10 days ago&#xA;Usually this is due to missing some entry features section like&#xA;&#xA;[features]&#xA;std = [&#xA;    'sp-std/std',&#xA;    # if some crate entry is missing here&#xA;]&#xA;Or you might be missing default-features = false in some toml file&#xA;&#xA;Straight-forward way to resolve this would be compare the commit where everything was fine and carefully analyse the changes in all Cargo.toml file keeping in mind above-mentioned 2 things." CreationDate="2022-02-11T01:15:32.093" UserId="116" />
  <row Id="80" PostId="108" Score="3" Text="The main reason here I think it is that block producer has access to the transaction pool." CreationDate="2022-02-11T08:12:42.243" UserId="165" />
  <row Id="81" PostId="153" Score="0" Text="Another question: Why keep the `wasm-execution=interpreter` option? From the explanation, if there is only one option(Compiled) for `wasm-execution`, then no need to keep `wasm-execution` arg, it's would be much easier to use." CreationDate="2022-02-11T10:34:26.153" UserId="125" />
  <row Id="82" PostId="153" Score="0" Text="Yeah that may come in the future. I mean, you already don't need to specify `--wasm-execution`, because the best value is chosen for you." CreationDate="2022-02-11T11:14:02.593" UserId="73" />
  <row Id="85" PostId="131" Score="1" Text="Thank you @Arjan Zijderveld. Very helpful. Love using Polkascan's python products. leaving here the issue you raised on github for this for others to see https://github.com/polkascan/py-substrate-interface/issues/189" CreationDate="2022-02-11T12:56:19.700" UserId="246" />
  <row Id="86" PostId="131" Score="0" Text="@KeithYeung see below for links regarding query and query_map:&#xA;&#xA;query: https://polkascan.github.io/py-substrate-interface/#substrateinterface.SubstrateInterface.query&#xA;&#xA;query_map: https://polkascan.github.io/py-substrate-interface/#substrateinterface.SubstrateInterface.query_map" CreationDate="2022-02-11T13:01:02.613" UserId="246" />
  <row Id="88" PostId="93" Score="0" Text="If I understand correctly adding to the size of the merkle trie adds to the complexity of accessing items. What size of merkle trie for the chain would mean that items could not be accessed (potentially due to the 16MB WAMS limit). I ask am I am working on a supply chain application that is intended to register and track a large number of products." CreationDate="2022-02-11T16:09:46.877" UserId="186" />
  <row Id="89" PostId="158" Score="0" Text="here is in on this thread? 5GNXzF9Qfx1cXVsNE3XVMY6CcqAhkXWXUZcqKPBHhDrTbsY2 (polka-extension)" CreationDate="2022-02-11T16:18:13.890" UserId="221" />
  <row Id="90" PostId="164" Score="0" Text="It looks like the compiler is correctly pointing out that you're trying to implement the same trait on the same thing twice. I think you probably want to delete the code in `lib.rs`." CreationDate="2022-02-11T16:27:04.670" UserId="12" />
  <row Id="91" PostId="166" Score="1" Text="I second parachains.info" CreationDate="2022-02-11T16:43:49.010" UserId="304" />
  <row Id="92" PostId="155" Score="0" Text="TY, very detailed answer, I understood now!" CreationDate="2022-02-11T19:26:17.817" UserId="295" />
  <row Id="95" PostId="173" Score="1" Text="Thank you for your answer!" CreationDate="2022-02-12T08:02:25.327" UserId="129" />
  <row Id="97" PostId="184" Score="1" Text="I've updated the question. The screenshot shows that it used to be possible to add use different units for certain parameters. So my question still stands: Is this still possible, and if so, then how? Or was this made impossible by some update of polkadot?" CreationDate="2022-02-12T19:47:11.810" UserId="3" />
  <row Id="98" PostId="184" Score="0" Text="By the way, I never suggested that the developer tool kit should make any assumption about whether or not units for tokens balances apply to parameters of extrinsics. I think it would be perfectly fine to just mark an extrinsics metadata accordingly. And I suspect that this was how it used to work." CreationDate="2022-02-12T19:50:52.360" UserId="3" />
  <row Id="99" PostId="158" Score="0" Text="done, you can visit https://app.element.io/#/room/#jupiter-faucet-room:matrix.org for faucet in the future." CreationDate="2022-02-13T04:44:40.020" UserId="297" />
  <row Id="100" PostId="173" Score="0" Text="What do you mean by `. In designing dApps, you store those sensitive data on the blockchain that could be disputed in the absence of a consensus mechanism.`? When you say on the blockchain do you mean as inherents or as transactions?" CreationDate="2022-02-13T08:49:11.277" UserId="139" />
  <row Id="101" PostId="184" Score="2" Text="I see the &quot;raw&quot; value in the `Developer &gt; Extrinsics` section. But I see the UX downside there too. As improving the whole section wouldn't be that easy/straightforward I would recommend to keep an eye on the `extrinsics.io` treasury proposal [here](https://kusama.polkassembly.io/treasury/133), that aims to do that in a new web tool." CreationDate="2022-02-13T14:32:51.050" UserId="14" />
  <row Id="102" PostId="184" Score="0" Text="@ArturGontijo Thanks for pointing that out. Depending on what node you run, you sometimes get the raw value, sometimes the unified (?) value. At this point, I'm not even sure this is expected behavior." CreationDate="2022-02-13T14:42:28.667" UserId="3" />
  <row Id="103" PostId="184" Score="0" Text="@mkl yeah, you're right and that's odd. I don't know how `PolkadotJS` fetches the data to render the `Developer &gt; Extrinsics` form but Shawn would be our best shot here =)." CreationDate="2022-02-13T15:00:00.850" UserId="14" />
  <row Id="105" PostId="178" Score="1" Text="❤️ this question." CreationDate="2022-02-13T21:25:47.830" UserId="85" />
  <row Id="106" PostId="166" Score="0" Text="Have been using parachains.info myself but great to see there are so many others to choose from." CreationDate="2022-02-13T21:43:20.350" UserId="85" />
  <row Id="107" PostId="167" Score="1" Text="Nice. Hadn't found dotmarketcap." CreationDate="2022-02-13T21:44:23.897" UserId="85" />
  <row Id="110" PostId="190" Score="0" Text="Is it still work?" CreationDate="2022-02-14T08:07:25.463" UserId="180" />
  <row Id="111" PostId="193" Score="1" Text="Did you try to use `Bytes` there? ie `Viêt` -&gt; `0x5669c3aa74`?" CreationDate="2022-02-14T08:52:13.247" UserId="14" />
  <row Id="112" PostId="193" Score="0" Text="@ArturGontijo No (?), I don't quite understand what you mean. Can you explain further? I'd be very appreciative." CreationDate="2022-02-14T09:04:05.127" UserId="129" />
  <row Id="113" PostId="193" Score="1" Text="Posted it as an answer, let me know if I was clear there =)." CreationDate="2022-02-14T11:23:27.977" UserId="14" />
  <row Id="114" PostId="165" Score="0" Text="That works indeed, removed the lib.rs implementation and an additional `#[pallet::without_storage_info]` was required for it to work." CreationDate="2022-02-11T18:34:59.907" UserId="235" />
  <row Id="115" PostId="158" Score="0" Text="thanks very much" CreationDate="2022-02-14T13:44:15.507" UserId="221" />
  <row Id="116" PostId="195" Score="0" Text="Thank you alot!" CreationDate="2022-02-14T14:18:12.983" UserId="129" />
  <row Id="117" PostId="202" Score="2" Text="So theoretically this should work the way you described it in your example but with more information we cannot really know what is going wrong. Please add the following information: 1. Version of solang used. 2. Which node and which version did you test against 3. How did you deploy those two contracts?" CreationDate="2022-02-14T15:29:19.623" UserId="16" />
  <row Id="118" PostId="202" Score="0" Text="@AlexanderTheißen topic updated with theses informations" CreationDate="2022-02-14T15:44:20.967" UserId="176" />
  <row Id="119" PostId="202" Score="0" Text="The version of the contracts node you posted doesn't make sense. Try `substrate-contracts-node --version`. Also, couldn't it just be that your `require` evaluates to false? In that case it would also trap." CreationDate="2022-02-14T15:47:54.787" UserId="16" />
  <row Id="120" PostId="202" Score="0" Text="@AlexanderTheißen ok topic updated with correct informations" CreationDate="2022-02-14T15:55:31.623" UserId="176" />
  <row Id="121" PostId="201" Score="0" Text="If you are already using Polkadot JS, would a sufficient answer show you how to extract the extrinsics in the block with Polkadot JS API? Or are you trying to do this manually for some reason?" CreationDate="2022-02-14T16:35:21.290" UserId="28" />
  <row Id="122" PostId="203" Score="1" Text="I got metadata. I know what this is. But how do you decode with this?&#xA;Do I put this in the JavaScript code?" CreationDate="2022-02-14T16:35:27.330" UserId="352" />
  <row Id="123" PostId="204" Score="0" Text="This question is updated and reposted from https://stackoverflow.com/questions/58369340 which was created before Substrate had a dedicated community." CreationDate="2022-02-14T17:30:09.443" UserId="372" />
  <row Id="124" PostId="173" Score="0" Text="@Purple_Turtle I meant as storage items (in substrate architecture) which keep the state of blockchain. Whatever happens on-chain impacts the state." CreationDate="2022-02-14T22:23:10.233" UserId="318" />
  <row Id="125" PostId="212" Score="0" Text="Thank you @Shawn Tabrizi for the answer. The reason I did that in runtime is because value stored in the storage of the other pallet is set as Vec&lt;u8&gt;, to use them in different pallet so I would need to convert to u32 to handle the specific logic." CreationDate="2022-02-15T02:38:17.153" UserId="373" />
  <row Id="126" PostId="212" Score="0" Text="For more specific example, one of on-chain attribute of NFT that stored on chain with the format like `BTreeMap&lt;Vec&lt;u8&gt;, Vec&lt;u8&gt;&gt;` that stored &quot;ArtistFee&quot;:&quot;100&quot; (it's a dynamic attribute so no hard-coded properties), I just need to convert &quot;100&quot; to u32 to handle some calculation." CreationDate="2022-02-15T02:41:38.413" UserId="373" />
  <row Id="127" PostId="191" Score="0" Text="I suppose you've probably seen this one https://github.com/ajuna-network/SubstrateNetApi and are looking for something more up-to-date and refined? I'd like to see that too" CreationDate="2022-02-15T02:54:37.637" UserId="17" />
  <row Id="128" PostId="212" Score="0" Text="If you know any more efficient way or design, really appreciate it if you can share because I am new to Substrate but found it's really awesome framework to work with." CreationDate="2022-02-15T02:56:10.373" UserId="373" />
  <row Id="129" PostId="201" Score="0" Text="I send json rpc to the polkadot node from my server and get the response value.&#xA;I'm looking for a separate way to decode on my server. &#xA;I want Java more than JavaScript :)" CreationDate="2022-02-15T04:24:02.980" UserId="352" />
  <row Id="130" PostId="212" Score="1" Text="Rather than store the bytes as a string, you should store it as the underlying type, like a `Compact&lt;u32&gt;`, and then deserialize it as such." CreationDate="2022-02-15T06:47:55.920" UserId="28" />
  <row Id="131" PostId="218" Score="1" Text="Sounds about right to me." CreationDate="2022-02-15T09:19:13.820" UserId="167" />
  <row Id="132" PostId="200" Score="0" Text="Which substrate node are you using?" CreationDate="2022-02-15T11:39:06.713" UserId="380" />
  <row Id="133" PostId="218" Score="1" Text="I would do it the same way." CreationDate="2022-02-15T13:39:58.470" UserId="139" />
  <row Id="134" PostId="237" Score="0" Text="is it possible to check from the encoded extrinsic if it called with keepAlive or not?" CreationDate="2022-02-15T16:00:55.223" UserId="363" />
  <row Id="135" PostId="200" Score="0" Text="I'm using polkadot node substrate" CreationDate="2022-02-15T16:02:01.820" UserId="363" />
  <row Id="136" PostId="219" Score="0" Text="Wow, that was such a simple fix. Thanks for pointing me to the release notes. I should've thought of that." CreationDate="2022-02-15T16:11:59.020" UserId="17" />
  <row Id="137" PostId="219" Score="0" Text="If anybody comes wondering, the notes say to put this import &quot;somewhere&quot;. For an Angular project, that somewhere was `polyfills.ts`." CreationDate="2022-02-15T16:13:28.130" UserId="17" />
  <row Id="139" PostId="220" Score="0" Text="Can you specify which repo/tag this error is occurring?" CreationDate="2022-02-15T17:17:03.557" UserId="29" />
  <row Id="140" PostId="239" Score="0" Text="Are forks from X - 2 uncles of X as well?" CreationDate="2022-02-15T17:58:56.623" UserId="29" />
  <row Id="141" PostId="220" Score="0" Text="Is this a duplicate of: https://substrate.stackexchange.com/questions/240/missing-successful-origin-in-implementation-when-running-runtime-benchmarks" CreationDate="2022-02-15T19:08:50.150" UserId="28" />
  <row Id="142" PostId="238" Score="0" Text="It seems you would also be able to access this default value by having the client import the pallet crate, and get it from the storage definition, right?" CreationDate="2022-02-15T19:23:13.397" UserId="28" />
  <row Id="143" PostId="238" Score="1" Text="Yes, that would also work. I mean, in general importing runtime stuff into the client should be prevented. Substrate is build in the way of having the runtime and client separate. Especially to ensure that the runtime can be upgraded without breaking the client. Here, this would also introduce such a shared &quot;state&quot;, but if you force yourself to put the shared item into some different crate. So, you hopefully not break it too easily." CreationDate="2022-02-15T19:38:34.533" UserId="73" />
  <row Id="144" PostId="239" Score="1" Text="AB&#xA;    / &#xA;A1    B1     C1&#xA;|        |         |&#xA;A --&gt; B --&gt; C --&gt; D&#xA;|&#xA;A2&#xA;&#xA;The uncles of D, with a maximum &quot;generation&quot; of `3` would be `C1, B1, A1, A2`." CreationDate="2022-02-15T20:07:43.173" UserId="73" />
  <row Id="145" PostId="259" Score="0" Text="Could you clarify what cross-chain transfer function means? As I read it, it sounds like you want to enable sending assets cross-chain? Or do you mean you want to enable XCM execution and processing altogether?" CreationDate="2022-02-16T04:17:57.367" UserId="104" />
  <row Id="146" PostId="255" Score="0" Text="Thanks, but the response of the rpc call is an encoded value, so I'm worried about how to handle it in Java." CreationDate="2022-02-16T04:26:28.203" UserId="352" />
  <row Id="147" PostId="253" Score="0" Text="I think it'd be good to use this as a reference later on. Thank you." CreationDate="2022-02-16T04:26:57.750" UserId="352" />
  <row Id="148" PostId="259" Score="0" Text="Sorry, More like the former, I'm not sure what the latter does." CreationDate="2022-02-16T08:05:45.483" UserId="299" />
  <row Id="149" PostId="259" Score="0" Text="My question is more like, should I just introduce orml_xtokns and not worry about anything else?" CreationDate="2022-02-16T08:11:54.280" UserId="299" />
  <row Id="150" PostId="260" Score="1" Text="I don't believe you need all 6 gigs of of compiled artifacts to run a node, though I would like someone to correct me. I just pick the executable from release folder and run it without problems." CreationDate="2022-02-16T08:32:26.220" UserId="139" />
  <row Id="151" PostId="258" Score="2" Text="Thanks for all the tips, @bruno! I would only add the option to run `cargo test -p super-pallet` for a specific pallet in order to quick check its code." CreationDate="2022-02-16T08:42:30.657" UserId="14" />
  <row Id="153" PostId="266" Score="0" Text="please share a screenshot or extract of the errors, and the version of substrate, substrate-template, or substrate-parachain-template, polkadot.js apps, and polkadot.js api that you're are using" CreationDate="2022-02-16T13:38:44.370" UserId="83" />
  <row Id="155" PostId="266" Score="0" Text="Please provide a [Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example)" CreationDate="2022-02-16T16:18:24.407" UserId="28" />
  <row Id="157" PostId="265" Score="0" Text="Thanks! One thing I'm a little confused about is the difference between `XCMP` and `HRMP`. I can understand the conceptual difference, but isn't `XCMP` not developed yet? `xcmp-queue` is now `HRMP` content?" CreationDate="2022-02-17T03:05:47.657" UserId="299" />
  <row Id="158" PostId="265" Score="1" Text="HRMP is in fact XCMP-lite, a stop-gap solution before XCMP is complete and ready. As I understand it, HRMP uses the relay chain as an inbox/outbox message storage, whereas XCMP will only be using the relay chain as a router of messages and nothing else. See https://w3f.github.io/parachain-implementers-guide/messaging.html#cross-chain-message-passing for more information." CreationDate="2022-02-17T03:59:51.853" UserId="104" />
  <row Id="159" PostId="272" Score="1" Text="Could you also add a brief explanation of `InstantSeal`?" CreationDate="2022-02-17T07:56:50.123" UserId="139" />
  <row Id="160" PostId="278" Score="0" Text="I am curious, is the WASM interpreter that comes with substrate understand SCALE encoded rust structs and enums specifically , meaning was the wasm interpreter in substrate built custom for substrate to include SCALE support?" CreationDate="2022-02-17T07:59:28.113" UserId="139" />
  <row Id="161" PostId="278" Score="1" Text="The WASM execution isn't aware of SCALE and is also not using any SCALE encoded data (on the engine level) when executing the runtime." CreationDate="2022-02-17T08:32:26.160" UserId="73" />
  <row Id="162" PostId="195" Score="0" Text="This would also work with emojis, right?" CreationDate="2022-02-17T09:20:16.343" UserId="266" />
  <row Id="163" PostId="195" Score="0" Text="Yep, you can send a  as `0xf09f918d`." CreationDate="2022-02-17T10:56:15.843" UserId="14" />
  <row Id="164" PostId="245" Score="0" Text="aha i see, thank you : )" CreationDate="2022-02-17T12:02:49.677" UserId="298" />
  <row Id="165" PostId="286" Score="0" Text="Quite a satisfactory answer thanks @bkchr." CreationDate="2022-02-17T12:16:44.880" UserId="139" />
  <row Id="166" PostId="292" Score="0" Text="are you trying to convert a PalletId into an AccountId type?" CreationDate="2022-02-17T12:29:29.117" UserId="139" />
  <row Id="168" PostId="295" Score="0" Text="Similar to [this](https://substrate.stackexchange.com/questions/274/how-do-i-get-weight-for-my-pallet) question." CreationDate="2022-02-17T17:00:30.147" UserId="94" />
  <row Id="169" PostId="292" Score="0" Text="You mean one could generate accounts until you get the `AccountId` of a Pallet and then steal the Pallets' funds?" CreationDate="2022-02-17T17:14:29.040" UserId="94" />
  <row Id="170" PostId="297" Score="1" Text="Did it work? AFAIK this only reverts un-finalized blocks." CreationDate="2022-02-17T18:59:22.763" UserId="94" />
  <row Id="172" PostId="278" Score="1" Text="So this answer needs rectifying to put things more simply and say: runtimes only understand byte code and SCALE helps applications efficiently decode and encode data for them. Runtime data needs to be as light as possible, a capability that SCALE provides. And its performance is owed to it being built for LE architectures, which is compatible with Wasm environments." CreationDate="2022-02-17T21:23:51.973" UserId="172" />
  <row Id="175" PostId="293" Score="1" Text="In the case that something that could return an Err is done after modifying state , even after doing preliminary checks is it okay to handle that with a &quot;.expect()&quot;? I know the runtime shouldn't panic, but the behaviour shouldn't occur since the checks have already been made, yet I'm a bit paranoid around the Result type I get back at that point." CreationDate="2022-02-18T02:33:44.437" UserId="88" />
  <row Id="176" PostId="290" Score="0" Text="I have also come across a similar problem. My knowledge on the topic is limited, hence my reply to this being a comment.&#xA;&#xA;From what I have gathered, Substrate has two discovery mechanisms: Mdns and kad dht. mDNS means any node in your local network will automatically connect to your node and sync up. &#xA;With kademlia, all you need to do is connect to someone with more connections than you. Even over an external network, and Your node will automatically look through their peers and connect to good ones based on some factors. Hence this method requires a good bootstrap list" CreationDate="2022-02-18T02:39:30.917" UserId="88" />
  <row Id="177" PostId="301" Score="0" Text="Thanks a lot for the clarification." CreationDate="2022-02-18T08:36:21.537" UserId="405" />
  <row Id="178" PostId="292" Score="0" Text="@Purple_Turtle Yes, that's the intent." CreationDate="2022-02-18T08:37:53.340" UserId="405" />
  <row Id="180" PostId="268" Score="0" Text="Thanks. A new substrate version breaking existing contracts would be a serious regression. Can you run your integration test against the latest tag here: https://github.com/paritytech/substrate-contracts-node" CreationDate="2022-02-18T10:54:43.270" UserId="16" />
  <row Id="181" PostId="316" Score="1" Text="That's a great one, but I thinking adding &quot;from a pallet&quot; to the question's title would be more assertive. Other than that, based on the title only, users can verify signatures quickly using the PolkadotJS `Developer -&gt; Sign and Verify -&gt; Verify Signature`." CreationDate="2022-02-18T11:01:13.940" UserId="14" />
  <row Id="182" PostId="316" Score="2" Text="Yes thanks! Will update it. I actually used PolkadotJS to debug my signature code " CreationDate="2022-02-18T11:02:31.220" UserId="94" />
  <row Id="183" PostId="293" Score="0" Text="@islami00 will be answered here https://substrate.stackexchange.com/questions/317/when-to-use-expect" CreationDate="2022-02-18T11:08:50.220" UserId="94" />
  <row Id="184" PostId="316" Score="1" Text="I am not familiar with how verification works, but as far as I am aware, you need to verify that certain data X was signed by a certain private key to produce signed data Y, so you run that verification process using their pubkey to produce X'. but you still need X to prove X == X' right? So where is the field that includes the original data that was signed over?" CreationDate="2022-02-18T11:25:55.327" UserId="272" />
  <row Id="185" PostId="316" Score="3" Text="Signatures and Encryption have theirs keys switched. Encryption uses the Public key to encode, Signatures use the Private key to sign. So to verify a Signature, you only need to know the Public key. Signing works like this `SIG = sign(PrivateKey, DATA)` and verifying `ok = verify(PublicKey, DATA, SIG)`." CreationDate="2022-02-18T11:32:29.093" UserId="94" />
  <row Id="187" PostId="315" Score="0" Text="It is hard to follow what you are actually asking? The title of your question doesn't really fit the description." CreationDate="2022-02-18T12:32:48.073" UserId="73" />
  <row Id="188" PostId="312" Score="1" Text="Originally unix timestamps are represented by seconds. It's worth clarifying that in Substrate this number is in milliseconds." CreationDate="2022-02-18T13:50:46.743" UserId="45" />
  <row Id="190" PostId="310" Score="0" Text="What does your plain chain spec file look like?" CreationDate="2022-02-18T18:52:21.633" UserId="29" />
  <row Id="191" PostId="310" Score="0" Text="Does this command work fine: `./target/release/node-template --base-path /tmp/alice --chain local --alice --port 30333 --ws-port 9945 --rpc-port 9933 --node-key 0000000000000000000000000000000000000000000000000000000000000001 --telemetry-url &quot;wss://telemetry.polkadot.io/submit/ 0&quot; --validator`" CreationDate="2022-02-18T19:00:55.937" UserId="29" />
  <row Id="193" PostId="336" Score="3" Text="Yes we do a lot of stuff at runtime that is basically fixed at compile time because `const` support is basically non existent for generic code as of today." CreationDate="2022-02-19T09:40:29.570" UserId="16" />
  <row Id="194" PostId="290" Score="0" Text="substrate nodes should self peer if they are running on local host without needing to do any additional configuration." CreationDate="2022-02-19T13:30:55.773" UserId="85" />
  <row Id="196" PostId="220" Score="0" Text="That command works for me on latest substrate master. ( dd8a868ad819666ff81bd94479657be560daf767 , linux)" CreationDate="2022-02-19T13:50:46.797" UserId="85" />
  <row Id="197" PostId="191" Score="0" Text="Yes, there's also https://github.com/usetech-llc/polkadot_api_dotnet but both have not been updated in a while. I suspect upgrading to making the most use of the metadata might be non-trivial but extremely worthwhile." CreationDate="2022-02-19T13:57:11.340" UserId="85" />
  <row Id="198" PostId="249" Score="0" Text="Shawn's storage deep dive is also worth a watch: https://www.shawntabrizi.com/substrate/substrate-storage-deep-dive/" CreationDate="2022-02-19T14:06:05.017" UserId="85" />
  <row Id="201" PostId="344" Score="1" Text="Would it be recommended to also return PostDispatchInfo in the handler method to refund fees when the function is not doing its worst case?" CreationDate="2022-02-20T00:18:35.923" UserId="67" />
  <row Id="202" PostId="344" Score="1" Text="If you can detect that, sure. Refunding weight is always a best practice." CreationDate="2022-02-20T01:43:09.820" UserId="28" />
  <row Id="211" PostId="353" Score="0" Text="Thanks Shawn.  Presumably the BABE options there are deterministic enough that if all the nodes called `CurrentBlockRandomness` at block 10_000 they'd all get the same value (forks notwithstanding)?  And presumably if I'm running on a AURA chain, I can't include the BABE pallet too and access that randomness?" CreationDate="2022-02-20T20:34:57.290" UserId="286" />
  <row Id="212" PostId="353" Score="1" Text="Yes, all of these randomness options are by design deterministic, otherwise they would be pretty useless. AURA does not provide this, and you cannot use both AURA and BABE, so then using the `randomness-colletive-flip` pallet. If you are building a parachain, you can access the randomness from the relay chain, which would be even better." CreationDate="2022-02-20T20:44:15.480" UserId="28" />
  <row Id="214" PostId="272" Score="0" Text="@Purple_Turtle In Instant seal, the node will automatically authorise the block the second it gets a transaction. It will not create the empty blocks on the chain." CreationDate="2022-02-21T05:03:03.447" UserId="377" />
  <row Id="217" PostId="330" Score="0" Text="Thanks, I was planning to use `EraPayout` to implement a custom payout logic that returns some amount from a dedicated pot and use `Reward` to handle the positive imbalance." CreationDate="2022-02-21T11:10:02.800" UserId="285" />
  <row Id="218" PostId="364" Score="0" Text="Yes right! The whole issue with discarded state will be solved when `#[transactional]` becomes the default for Substrate. Then it will be as simple as in Solidity." CreationDate="2022-02-21T11:10:16.450" UserId="94" />
  <row Id="219" PostId="244" Score="1" Text="Thank you ! If I understand it correctly we need to wait for a new Solang compiler version including a fix for this issue ?" CreationDate="2022-02-21T12:22:19.483" UserId="358" />
  <row Id="220" PostId="367" Score="0" Text="0x280402000be1da78d37e01 seems a legit extrinsic of setting the timestamp. Maybe try getting the latest `polkadot_metadata.scale` and trying again?" CreationDate="2022-02-21T12:47:13.920" UserId="85" />
  <row Id="221" PostId="369" Score="0" Text="Which substrate 3 version? A monthly tag, master or something else?" CreationDate="2022-02-21T13:07:31.680" UserId="85" />
  <row Id="222" PostId="372" Score="0" Text="But why do we need to extract the wasm blob from the raw chain spec? Isn't it enough that it is in storage due to the genesis block built from the raw chain spec and then the parachain client loads it from there?" CreationDate="2022-02-21T14:02:07.093" UserId="16" />
  <row Id="223" PostId="372" Score="0" Text="This is only for Cumulus based Parachain. When you have a Cumulus based Parachain, the validation code that is used on the relay chain, is the exact same code as what you find in `:code` in the Parachain state. The Parachain nodes take the code from their own state. &#xA;&#xA;The extraction of the wasm code is only required for when you want to register a Parachain on the relay chain. The relay chain requires the validation code (in our case the runtime wasm binary) and the genesis state (in our case the SCALE encoded genesis header) as inputs for the registration tx." CreationDate="2022-02-21T14:29:03.207" UserId="73" />
  <row Id="224" PostId="372" Score="0" Text="Ahh okay I see it is for registration!" CreationDate="2022-02-21T15:03:01.587" UserId="16" />
  <row Id="225" PostId="376" Score="0" Text="Please clarify: do you need to reset the parachain or you are ok with deregistering and then registering the parachain again? The former unlike the latter preserves the para id and message queues." CreationDate="2022-02-21T15:30:04.957" UserId="45" />
  <row Id="226" PostId="376" Score="0" Text="Clarification added." CreationDate="2022-02-21T15:49:20.303" UserId="16" />
  <row Id="227" PostId="378" Score="0" Text="Please update your question to represent a [minimum reproducible example](https://stackoverflow.com/help/minimal-reproducible-example). For example, what language are you programming in, what are you trying to do, what have you tried, what errors are you seeing, etc..." CreationDate="2022-02-21T16:31:27.993" UserId="28" />
  <row Id="228" PostId="375" Score="0" Text="4MB might get tight. The default length limit in the node template is 5MiB:&#xA;https://github.com/substrate-developer-hub/substrate-node-template/blob/399efba55d82c6c8daff03ca900eb053c508eaeb/runtime/src/lib.rs#L139" CreationDate="2022-02-21T17:04:47.533" UserId="361" />
  <row Id="229" PostId="375" Score="0" Text="So basically we need to upscale the block limit to 10Mib for example. But to do that we need to upgrade runtime. Now its kinda a loop" CreationDate="2022-02-21T18:19:06.160" UserId="450" />
  <row Id="230" PostId="375" Score="0" Text="Hey @apopiak, I wonder whether we can upgrade the runtime using the .compact.compressed.wasm file?. I've seen the forkless runtime upgrade tutorials, it seems they all use the .compact.wasm file only." CreationDate="2022-02-21T18:35:34.940" UserId="450" />
  <row Id="231" PostId="315" Score="0" Text="Updated title/content for clarity." CreationDate="2022-02-21T20:49:53.293" UserId="29" />
  <row Id="232" PostId="380" Score="0" Text="Thanks Andre.  Sorry - my link to the multiple validator on a node issue probably wasn't enough description.  Essentially, I was running 3 sets of validator keys on the same single node - and another 3 sets on a second node.  The network had 9 validators and the multi-key nodes were all performing babe correctly.  What I hadn't realised (until I found that link) was that they could only perform grandpa signatures for one for their three sets of keys, which meant that there were fewer than 2/3 of the validators finalising, which stalled finality.  Should I expand on that in the question?" CreationDate="2022-02-21T20:50:27.963" UserId="286" />
  <row Id="233" PostId="380" Score="1" Text="I believe #23324 was the block that finality stalled at due to my grandpa key mistake.  After removing the additional broken validators form the elected set, we tried grandpa.noteStalled(5, 24359) - we were just after #24359 at the time but hadn't noted that it does nothing until the next era anyway." CreationDate="2022-02-21T21:00:16.403" UserId="286" />
  <row Id="234" PostId="380" Score="0" Text="From what you say though, I'm a bit surprised that finality didn't recover when I trimmed the elected set at the next era, but maybe I shouldn't be.  Unfortunately, we don't have the broken database any more, so I can't recheck which validators had and hadn't grandpa-ed - but it's definitely useful information for next time!" CreationDate="2022-02-21T21:02:42.873" UserId="286" />
  <row Id="235" PostId="380" Score="3" Text="Since finality got stalled at #23324 this is the block you should have used in `noteStalled`, since that was the best finalized block. The call should have been `grandpa.noteStalled(5, 23324)`. Another alternative would have been to just temporarily move the existing keys to 9 validators (without the multi-key setup), which should have restored finality and then you could reduce the validator set to 3 authorities. Forced validator set changes should be a last measure resort imo." CreationDate="2022-02-21T21:53:52.020" UserId="452" />
  <row Id="236" PostId="380" Score="0" Text="Ah, so we completely misunderstood the call and how to use it.  Thank you very much for clarifying!" CreationDate="2022-02-21T22:40:00.243" UserId="286" />
  <row Id="237" PostId="367" Score="0" Text="@Squireel There was no point in doing it" CreationDate="2022-02-22T01:33:19.380" UserId="352" />
  <row Id="238" PostId="388" Score="0" Text="Thank you so much. It helped." CreationDate="2022-02-22T03:44:31.267" UserId="352" />
  <row Id="240" PostId="330" Score="1" Text="This PR may address your needs: https://github.com/paritytech/substrate/pull/10887" CreationDate="2022-02-22T04:12:41.413" UserId="28" />
  <row Id="241" PostId="375" Score="6" Text="@DanielLam, Yes you can and should use the `compact.compressed.wasm` and any tutorial that says to use a different file is just out of date." CreationDate="2022-02-22T04:16:49.513" UserId="28" />
  <row Id="242" PostId="391" Score="0" Text="Why is it necessary/useful to store the metadata in every block?" CreationDate="2022-02-22T11:42:17.247" UserId="434" />
  <row Id="243" PostId="404" Score="0" Text="oh, awesome. this is going to be rather useful." CreationDate="2022-02-22T14:38:26.177" UserId="265" />
  <row Id="244" PostId="358" Score="0" Text="Adding this did the trick and I am able to compile now. Thank you so much!" CreationDate="2022-02-22T15:09:45.590" UserId="379" />
  <row Id="245" PostId="410" Score="0" Text="I do solve it this way now, but I think other people can use it this way, but I can't.&#xA;https://github.com/AcalaNetwork/Acala/blob/master/runtime/acala/src/lib.rs#L1796" CreationDate="2022-02-22T16:35:59.827" UserId="299" />
  <row Id="247" PostId="358" Score="0" Text="please feel free to mark this as the answer to your question" CreationDate="2022-02-22T20:14:21.230" UserId="28" />
  <row Id="251" PostId="369" Score="0" Text="v3.0.0 tag from codebase" CreationDate="2022-02-23T08:03:01.143" UserId="396" />
  <row Id="252" PostId="379" Score="0" Text="Hi. I've managed to switch my node from aura to babe, and am now considering what's the bare minimum of pallets required to get PoS running. I've managed to narrow down the list to staking, sessions, imonline, authorship, authority discovery, election_provider_multi_phase, treasury, and council. Is this enough to have a nPOS system?" CreationDate="2022-02-23T08:44:16.687" UserId="139" />
  <row Id="253" PostId="299" Score="1" Text="SubstrateWeights are default weights for test networks I think." CreationDate="2022-02-23T10:06:13.790" UserId="85" />
  <row Id="254" PostId="387" Score="0" Text="Why would one require the use of pallet-proxy?" CreationDate="2022-02-23T10:55:24.940" UserId="139" />
  <row Id="255" PostId="413" Score="0" Text="Did you fixed it?" CreationDate="2022-02-23T11:09:48.510" UserId="73" />
  <row Id="256" PostId="213" Score="0" Text="btw, `sudo` ignores `BaseCallFilter`" CreationDate="2022-02-23T12:35:37.527" UserId="442" />
  <row Id="258" PostId="299" Score="2" Text="They are a placeholder weight coming from running benchmarks on the node included in Substrate. They are not accurate to your specific runtime, since they come from Substrate, but also probably not that far off as a placeholder for a test network." CreationDate="2022-02-23T16:04:41.953" UserId="28" />
  <row Id="259" PostId="385" Score="0" Text="You can mark your own answer as the answer. :)" CreationDate="2022-02-23T17:01:07.127" UserId="28" />
  <row Id="260" PostId="436" Score="0" Text="Are you using the Substrate or Polkadot CLI?" CreationDate="2022-02-23T17:13:30.640" UserId="94" />
  <row Id="261" PostId="436" Score="0" Text="This question is about Substrate." CreationDate="2022-02-23T17:14:42.853" UserId="12" />
  <row Id="262" PostId="438" Score="0" Text="Amazing, thank you! So, to clarify, the above is not possible for a network that is configured to use BABE?" CreationDate="2022-02-23T17:28:51.683" UserId="12" />
  <row Id="263" PostId="413" Score="0" Text="Yes - I'd built the chainspec when staking.sessionsPerEra was set to 6, and then changed the parameters in the code base and recompiled the substrate binary.  The mismatch was causing the error, I think.  (It was worse the other way - sessionsPerEra = 2 in the chainspec code block but 6 in the binary seems to cause the chain to hang.)  I'm not sure if this is github issue worthy - it might just be covered by the &quot;don't change this on a live chain&quot; comment already in the codebase?  Either way, I'll try to update / answer this and/or my other related bug with something helpful for future errors." CreationDate="2022-02-23T17:30:48.850" UserId="286" />
  <row Id="264" PostId="434" Score="0" Text="As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-02-23T17:36:18.343" UserId="-1" />
  <row Id="265" PostId="438" Score="0" Text="Short answer is no, it would not be usable with BABE. That said, I plan to add a flag `--unsafe-babe-epoch-changes` (or something similar) that will allow overcoming the &quot;unexpected epoch change&quot; issue (there's some caveats but I think it would be usable in testing environments). If the main thing being tested is the runtime I would still suggest to use Aura as it will always be easier to manage than BABE (and for the purpose of testing the runtime the block production protocol shouldn't make a difference)." CreationDate="2022-02-23T17:38:23.763" UserId="452" />
  <row Id="266" PostId="413" Score="0" Text="`sessionsPerEra` in the chain spec code block? What you mean by this?" CreationDate="2022-02-23T19:29:15.097" UserId="73" />
  <row Id="267" PostId="413" Score="0" Text="Well, it might mean that I'm still not fully understanding things.  I assumed that constants like stacking.sessionsPerEra are included in the code blob in the `&quot;genesis&quot;: { &quot;runtime&quot;: {  &quot;system&quot;: { &quot;code: {}}}}` in the chainspec that gets encoded as `genesis --&gt; runtime --&gt; top` when you process the chainspec to raw. However, I guess that doesn't actually make sense - the whole point of them being constant is that they don't need don't need to be read from storage." CreationDate="2022-02-23T19:44:32.603" UserId="286" />
  <row Id="268" PostId="413" Score="0" Text="I'm sure that the problem was a mismatch between the code bloc in the chainspec and the values compiled into the binary though - when I replaced the code blob with an updated one, everything started to work reliably.  I'll have to dig into it a bit more - I have the broken files in version control still, I think." CreationDate="2022-02-23T19:46:39.163" UserId="286" />
  <row Id="269" PostId="443" Score="0" Text="Thanks. I'm building test case chain specs, so they always restart from nothing, rather than building on an existing chain. The process I'm now following when I update something in the runtime is: &#xA;recompile with `cargo build`; &#xA;generate a new empty chain spec with `chain-spec-builder generate -c sampleChainSpec.json -a 1 -n 1 -e 1`; &#xA;copy the &quot;code&quot; blob from the empty chainspec to my existing one; &#xA;raw encode it again with `substrate build-spec --chain=chainspec_plain.json --raw &gt; chainspec_raw.json`.  &#xA;Does that look sufficient?  Is there an easier/better way?" CreationDate="2022-02-23T21:41:22.487" UserId="286" />
  <row Id="270" PostId="446" Score="0" Text="Would adding a weight prevent multiple of these extrinsics to fill up the block sequentially and not allow any room for other extrinsics?" CreationDate="2022-02-23T22:02:49.567" UserId="29" />
  <row Id="271" PostId="446" Score="0" Text="Yes, setting weight to non-zero would prevent filling up the block with those transactions." CreationDate="2022-02-23T22:04:52.507" UserId="45" />
  <row Id="272" PostId="375" Score="1" Text="@DanielLam was this issue resolved with the smaller Wasm file? if so please post that as an answer so others in the future can also learn from it" CreationDate="2022-02-23T22:33:06.067" UserId="28" />
  <row Id="273" PostId="444" Score="0" Text="Thanks for the answer! I'd be curious what stuff the election calculation does that could lead to needing a value larger than the currency's `total_issuance` (and thus not being guaranteed to fit into the `Balance` type). Time to dig through some code!" CreationDate="2022-02-23T22:47:38.043" UserId="468" />
  <row Id="275" PostId="456" Score="0" Text="Is there an easier way to do check if `Option` is `None`, put `Some(new_email)`?" CreationDate="2022-02-24T02:52:08.037" UserId="245" />
  <row Id="276" PostId="456" Score="1" Text="You could write `value.email.get_or_insert_with(|| new_email);`" CreationDate="2022-02-24T07:20:22.163" UserId="73" />
  <row Id="277" PostId="448" Score="0" Text="`substrate-wasm-builder` seems already enable lto for wasm binary." CreationDate="2022-02-24T07:59:50.727" UserId="442" />
  <row Id="278" PostId="330" Score="0" Text="Nice, I ended up doing something similar too." CreationDate="2022-02-24T10:39:26.013" UserId="285" />
  <row Id="280" PostId="438" Score="0" Text="I am testing the client ;-)" CreationDate="2022-02-24T14:22:50.760" UserId="12" />
  <row Id="281" PostId="467" Score="0" Text="So basically just to make the compiler happy? No change in the pallet execution logic?" CreationDate="2022-02-24T17:47:18.753" UserId="94" />
  <row Id="282" PostId="467" Score="2" Text="There is a bit more about it, I think. The example in the substrate docs about lifetime is great, explaining how you can use PhantomData to define that a certain struct should not outlive `'a` for that concrete example.&#xA;But I am not aware if this affects the execution of this logic. I would guess it does not." CreationDate="2022-02-24T18:03:08.370" UserId="165" />
  <row Id="283" PostId="466" Score="0" Text="the strings I need to deal with are coming into the contract as inputs from the user" CreationDate="2022-02-24T18:42:51.723" UserId="494" />
  <row Id="287" PostId="476" Score="1" Text="Sorry, I didn't exactly understand your question. Are you asking why `T: Config` is needed?" CreationDate="2022-02-24T22:14:09.530" UserId="28" />
  <row Id="289" PostId="476" Score="1" Text="@ShawnTabrizi I've just realised all storage types are traits so my question is a bit odd since i thought storage was a struct. I am confused about the syntax used to declare ProofMapping, are we creating a new trait that is implemented by the Pallet Struct?" CreationDate="2022-02-24T22:25:48.310" UserId="434" />
  <row Id="290" PostId="475" Score="0" Text="ah ok so it is in `OffchainDbExt` where it is set to persistent, here: [pub fn new&lt;O: DbExternalities + 'static&gt;(offchain: O) {}](https://github.com/paritytech/substrate/blob/ded44948e2d5a398abcb4e342b0513cb690961bb/primitives/core/src/offchain/mod.rs#L735) thanks!" CreationDate="2022-02-25T00:24:40.730" UserId="29" />
  <row Id="292" PostId="474" Score="0" Text="Did you try forcing native execution? `--execution=native`, and ideally the runtime will execute entirely in the native binary rather than the Wasm." CreationDate="2022-02-25T07:12:43.957" UserId="28" />
  <row Id="293" PostId="481" Score="0" Text="I actually want Alice's Token_A on parallel chain A to be transferred to Bob on parallel chain B. Currently my parallel chain does not seem to support this operation (because of the problems mentioned above). I suspect a configuration problem with Multilocation and CurrencyId." CreationDate="2022-02-25T08:30:54.477" UserId="299" />
  <row Id="294" PostId="481" Score="0" Text="When I was doing cross-chain messaging (parallel chain A to parallel chain B), parallel chain A sent XCM message (successfully). After receiving the message, the relay chain was supposed to send it to parallel chain B, but it reported `Error: Brrier`." CreationDate="2022-02-25T08:38:28.353" UserId="299" />
  <row Id="295" PostId="474" Score="0" Text="Ah, that would be the option that I missed - and it works.  Thank you, Shawn." CreationDate="2022-02-25T09:10:01.230" UserId="286" />
  <row Id="301" PostId="494" Score="0" Text="So if I have the contract definition, how can I decode it?" CreationDate="2022-02-25T14:58:24.953" UserId="129" />
  <row Id="302" PostId="492" Score="0" Text="Thanks for the comment Andre; please would you care to glance at the EDIT #1 I've made to my question? Also I've made sure that vec![authority_keys_from_seed(&quot;Alice&quot;),					authority_keys_from_seed(&quot;Bob&quot;),&#xA;authority_keys_from_seed(&quot;Charlie&quot;),], get's the endowment which is 10M tokens. I'm passing this vec from development_config to my testnet_genesis, which  then gives the funds." CreationDate="2022-02-25T15:07:19.310" UserId="139" />
  <row Id="303" PostId="489" Score="0" Text="Did you mean if &quot;any&quot; validator from the babe validator set is offline for more than one epoch the chain stalls? Because I have three validators, A, B, C, and only A was online." CreationDate="2022-02-25T15:09:37.783" UserId="139" />
  <row Id="304" PostId="489" Score="1" Text="I meant if **all** validators are offline, i.e. if there's no new block for more than one epoch length of time (e.g. 1 hour or however long the epoch is). If A was online then it wasn't authoring blocks for some reason. I suppose there might have been some error with elections which might have caused blocks to fail to be authored, but I don't know enough about it to be able to debug." CreationDate="2022-02-25T15:49:23.637" UserId="452" />
  <row Id="305" PostId="492" Score="0" Text="Added a comment regarding that." CreationDate="2022-02-25T15:53:22.567" UserId="452" />
  <row Id="306" PostId="492" Score="0" Text="Also, making sure that Alice, Bob, etc. are funded is not enough if they are not validators. If you look at the example spec for substrate node, you can see that validator accounts are also funded to make sure they exist: https://github.com/paritytech/substrate/blob/master/bin/node/cli/src/chain_spec.rs#L263-L272" CreationDate="2022-02-25T15:56:43.950" UserId="452" />
  <row Id="307" PostId="500" Score="1" Text="I'm not familiar with subxt enough to know how feasible `no_std` support is, but there's an old issue for it https://github.com/paritytech/subxt/issues/159. Maybe you could chime in there. The hard part about creating a substrate client is that it needs to be &quot;dynamic&quot; in order to be useful long-term, i.e. it most generate its API based on substrate's chain metadata. This might also be of interest to you: https://www.cyrilfougeray.com/2020/12/14/leger-rust-wallet-1.html" CreationDate="2022-02-25T16:00:43.237" UserId="452" />
  <row Id="308" PostId="494" Score="0" Text="@MinhMốc seems the parameters are encoded as the same codec as substrate txs, you may use `@polkadot/types` to decode it with the type metadata from ABI." CreationDate="2022-02-25T16:02:42.607" UserId="442" />
  <row Id="309" PostId="500" Score="0" Text="try the go-substrate-rpc-client, it's platform-independent." CreationDate="2022-02-25T16:06:09.030" UserId="442" />
  <row Id="310" PostId="492" Score="0" Text="They are running the same binary, with the exact same dev chainspec. Also in my testnet_genesis you can see that I give all endowed accounts with some balance. And endowed_accounts is defined as a vec over all test accounts + their stash accounts. So I don't see the logic of writing the code you linked in that comment." CreationDate="2022-02-25T16:10:56.503" UserId="139" />
  <row Id="311" PostId="500" Score="0" Text="@André Thanks for the issue link ! I'm aware that the client has to have this &quot;dynamic&quot; structure (using metadata) to adapt the new futur chain spec.&#xA;My goal is to first have a strictly (chain) specific implementation first, but maybe that isn't best idea ?&#xA;It's a shame Rust/Substrate makes it difficult to target IoT." CreationDate="2022-02-25T16:19:32.267" UserId="501" />
  <row Id="312" PostId="500" Score="0" Text="@ChinoChang Thanks for the tip, unfortunately I've no experience in Go..." CreationDate="2022-02-25T16:19:43.937" UserId="501" />
  <row Id="313" PostId="492" Score="0" Text="Have you tried starting both nodes from a clean db? I mean there must be something different otherwise they wouldn't have distinct genesis hashes AFAIK. Regarding `endowed_accounts` funding, my point was about authorities and nominators (i.e. `initial_authorities` and `initial_nominators`. From your code I could not tell whether these accounts are the same as the endowed accounts. Judging from your comment it seems that you're setting Alice, Bob and Charlie as authorities (which are funded), if that's the case then I don't know what is the cause of the error." CreationDate="2022-02-25T16:31:38.617" UserId="452" />
  <row Id="315" PostId="499" Score="0" Text="Do I understand correctly that you want the multisig to be composed of derived addresses from the same private key? So anyone with this private key could easily sign the whole multisig by just signing a bunch of different messages from the different derived accounts?" CreationDate="2022-02-25T18:54:08.617" UserId="28" />
  <row Id="316" PostId="503" Score="0" Text="If for example you want to check a storage value could you not store a tracking storage value which takes a bool. Each read you update this bool, use it to check against your statements. At the start of every block, could you then use some hook to reset this tracking value? Im new to substrate so please point out any errors in my understanding of concepts" CreationDate="2022-02-25T21:44:03.900" UserId="434" />
  <row Id="317" PostId="492" Score="0" Text="Yes I'm running with the `--tmp` flag so the db purging on every run is not an issue." CreationDate="2022-02-26T09:38:55.647" UserId="139" />
  <row Id="318" PostId="513" Score="0" Text="Yea I experienced it but managed to resolve through the above" CreationDate="2022-02-26T14:04:43.050" UserId="510" />
  <row Id="319" PostId="457" Score="0" Text="To clarify, what we want to return is an ID/Key. This key is required to be the joining key between onchain/offchain storage with the chain being the source of truth&#xA;&#xA;We wanted to build a UI to create data on-chain then also store a link to that data offchain. Was wondering if there was a  simpler/cleaner way to find out when something was stored rather than just wait for block finalisation&#xA;&#xA;&#xA;Seems to me the best approach is to call the extrinsic and have a separate process check for the inclusion of said extrinsic&#xA;&#xA;&#xA;&#xA;Is that what you are proposing?" CreationDate="2022-02-26T19:34:47.737" UserId="18" />
  <row Id="320" PostId="521" Score="0" Text="Thanks André.  I hadn't realised they were variable length - good to know.  If I'm not worried about over/underflow, is there a way I can then force it into a [u8; 32], please?  I'll need to find a better option later, but I'm just prototyping at the moment, and it's not a major concern.  Alternatively, is there an easy way I can add 1 to the hash value in place? (I realise that's isn't normally something you'd want to do with a hash...)" CreationDate="2022-02-27T13:17:13.640" UserId="286" />
  <row Id="321" PostId="521" Score="0" Text="Ah! I've found a way I can use the hash as reference for my needs which doesn't care how long the hash is and doesn't require me to increment it!  Thanks for the very useful answer which got me there." CreationDate="2022-02-27T14:13:25.063" UserId="286" />
  <row Id="322" PostId="522" Score="1" Text="Makes sense. I was thinking something like this was the case. I believe that I can create a new off-chain service separate from the node and then call that service from the OCW to do the BDK work." CreationDate="2022-02-27T15:43:35.353" UserId="332" />
  <row Id="323" PostId="523" Score="0" Text="What did you set as `RandomnessSource` type in the runtime?" CreationDate="2022-02-27T18:18:22.197" UserId="452" />
  <row Id="324" PostId="523" Score="1" Text="Do you have `Randomness = TestRandomness` or `Randomness = RandomnessCollectiveFlip` in your `mock.rs`?  &#xA;The `TestRandomness` is not doing much, annoyed me in the past as well." CreationDate="2022-02-27T20:22:14.830" UserId="94" />
  <row Id="325" PostId="524" Score="2" Text="Can you provide the configuration of your runtime, about the parameter following:&#xA;&#xA;`pub RuntimeBlockLength: BlockLength = BlockLength::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO);`" CreationDate="2022-02-28T05:00:35.063" UserId="393" />
  <row Id="326" PostId="524" Score="0" Text="@ironman_ch_parami, it's the default configuration of substrate" CreationDate="2022-02-28T06:49:32.070" UserId="129" />
  <row Id="327" PostId="499" Score="0" Text="Not quite. I am not sure the clearest way to explain it, bear with me.&#xA;&#xA;I would like to be able to derive a set of &quot;child addresses&quot; from a master multisig pubkey, which would require the same set of (different) private keys involved in the multisig in order to sign a message.&#xA;&#xA;e.g. in the above diagram, imagine 5 signers for &quot;Master Pubkey K&quot;, with a threshold of 3 - I would like the same properties for &quot;Derived Addr N&quot; (the same signers, the same threshold), with the resulting public address a derivative of the Pubkey K, without the derivation requiring knowledge of K's private key." CreationDate="2022-02-28T08:16:04.043" UserId="499" />
  <row Id="328" PostId="499" Score="0" Text="The only way that I can think of doing this given the documentation available is to have the signers of K also generate a bunch of other account keys which are used to then derive a set of addresses. The problem with this is that doing it in a &quot;trustless&quot; way is not easy at all, because a single malicious multisig member at the address generation stage is capable of ensuring all addresses are useless, so you have to perform an expensive pre-commit. This is suboptimal for the large signer sets (50+) that I would like to use." CreationDate="2022-02-28T08:24:50.780" UserId="499" />
  <row Id="329" PostId="499" Score="0" Text="Something like an &quot;Extended Public Key&quot; in Bitcoin." CreationDate="2022-02-28T08:31:31.983" UserId="499" />
  <row Id="330" PostId="523" Score="0" Text="I am using TestRandomness (use frame_support_test::TestRandomness;) https://github.com/paritytech/substrate/blob/master/frame/lottery/src/mock.rs How can I use RandomnessCollectiveFlip in tests? I am using it in runtime." CreationDate="2022-02-28T09:25:22.197" UserId="213" />
  <row Id="331" PostId="457" Score="0" Text="This is exactly what events are good for; broadcasting a state change to the outside world. In the case that you only wait for storage change, you can subscribe to storage events itself. They are emitted when a storage item changes." CreationDate="2022-02-28T10:36:04.607" UserId="94" />
  <row Id="332" PostId="523" Score="0" Text="Why do you need real randomness in tests? Normally you want to have always the same &quot;random&quot; values in tests to ensure everyone runs the same test." CreationDate="2022-02-28T13:28:49.857" UserId="73" />
  <row Id="333" PostId="523" Score="0" Text="Ok I am trying to use same &quot;random&quot; values in tests @bkchr" CreationDate="2022-02-28T14:06:21.383" UserId="213" />
  <row Id="334" PostId="546" Score="1" Text="Thanks Shawn, it makes sense. So I think we need to update: https://docs.substrate.io/tutorials/v3/proof-of-existence/#implement-a-storage-map-for-stored-items, right? Will try to do it and open a PR there." CreationDate="2022-02-28T21:27:03.110" UserId="14" />
  <row Id="335" PostId="546" Score="0" Text="Yes, will do. Thanks." CreationDate="2022-02-28T21:28:19.957" UserId="28" />
  <row Id="337" PostId="529" Score="1" Text="This might be an error with feature gating for the wasm runtime build. Did you add any new dependencies? If so make sure the default features are disabled for the new dependencies and then under the `std` feature of the crate you can add in can enable the std features of the new deps." CreationDate="2022-02-28T22:04:59.993" UserId="223" />
  <row Id="338" PostId="543" Score="0" Text="That worked. Thank you!" CreationDate="2022-02-28T22:42:55.757" UserId="109" />
  <row Id="339" PostId="524" Score="0" Text="@ironman_ch_parami I tried with the flipper contract but the error is still there" CreationDate="2022-03-01T02:35:29.473" UserId="129" />
  <row Id="340" PostId="375" Score="0" Text="Sorry for the inactivity. I have added my answer." CreationDate="2022-03-01T05:02:02.403" UserId="450" />
  <row Id="341" PostId="448" Score="0" Text="Tks for support @navigaid. However, I just use the `compressed wasm` for simplicity" CreationDate="2022-03-01T05:03:48.560" UserId="450" />
  <row Id="342" PostId="540" Score="0" Text="Thank you! It looks like I can derive N accounts for the anonymous proxy without submitting extrinsics to &quot;reserve&quot; them first, is that right? I'll try to make a proof of concept somewhere." CreationDate="2022-03-01T09:03:13.873" UserId="499" />
  <row Id="346" PostId="540" Score="0" Text="Ok I had a quick look - I think I should have been clearer in my original question: I would like to utilise the benefits of native Schnorr signature support. It doesn't look like the Multisig Pallet allows us to do this (and is more expensive with more signatories). Is it possible to remove the Multisig Pallet's involvement in the above flow, and skip ahead to step 2 (use the Proxy Pallet to make an anonymous proxy controlled by the Schnorr-key)?" CreationDate="2022-03-01T15:36:41.023" UserId="499" />
  <row Id="348" PostId="564" Score="0" Text="That seems to clear it up. Yes I am using the app image and the node is running as on a different terminal. When you mention `origin` or explicitly specifying origins, what would an argument to `--rpc-cors` look like? Is it a tcp socket or something? I plan on running this on a cloud server soon and would like direct access so I can imagine passing only my origin to it." CreationDate="2022-03-02T11:14:16.177" UserId="139" />
  <row Id="349" PostId="564" Score="1" Text="I added the `--help` command for `--rpc-cors` above. You provide a comma separated list like `--rpc-cors=https://mywebsite.com,https://myothersite.com`" CreationDate="2022-03-02T11:39:06.330" UserId="28" />
  <row Id="350" PostId="564" Score="0" Text="that's very useful. Thanks shawn!" CreationDate="2022-03-02T11:44:02.307" UserId="139" />
  <row Id="351" PostId="566" Score="0" Text="The parameter passed to `timestamp.set` is indeed the current UNIX timestamp. You can see the definition of the `timestamp.set` extrinsic here: https://github.com/paritytech/substrate/blob/master/frame/timestamp/src/lib.rs#L181-L215" CreationDate="2022-03-02T14:49:00.267" UserId="452" />
  <row Id="352" PostId="530" Score="1" Text="Sounds like your node is not compatible with your version of polkadotjs. Which node are you using?" CreationDate="2022-03-02T14:54:42.070" UserId="380" />
  <row Id="353" PostId="472" Score="0" Text="Have you tried increasing the gas limit?" CreationDate="2022-03-02T15:00:31.053" UserId="380" />
  <row Id="354" PostId="530" Score="0" Text="@forgetso You're right. I found out that the testnet I'm using is running on an older version of substrate. I changed to a testnet with the newer version and my code works as expected." CreationDate="2022-03-02T15:49:50.923" UserId="129" />
  <row Id="356" PostId="559" Score="0" Text="Is there full doc about how to use substrateinterface?" CreationDate="2022-03-03T03:31:18.697" UserId="532" />
  <row Id="357" PostId="559" Score="0" Text="Sure, you can always check its repository: https://github.com/polkascan/py-substrate-interface. It also has a Github page here: https://polkascan.github.io/py-substrate-interface/" CreationDate="2022-03-03T03:49:53.213" UserId="14" />
  <row Id="358" PostId="171" Score="0" Text="How to set initial token supply?" CreationDate="2022-03-03T09:24:57.143" UserId="351" />
  <row Id="359" PostId="472" Score="0" Text="@forgetso No sir, I'll do it and report back" CreationDate="2022-03-03T16:06:43.887" UserId="496" />
  <row Id="361" PostId="472" Score="0" Text="@forgetso Didn't work sir, thank you anyways." CreationDate="2022-03-03T18:18:22.630" UserId="496" />
  <row Id="362" PostId="472" Score="0" Text="Are your contract constructors marked as [payable](https://stackoverflow.com/a/70862535)?" CreationDate="2022-03-03T20:14:55.503" UserId="380" />
  <row Id="363" PostId="579" Score="0" Text="This is indeed best practice in production for any chain, solo or parachain, as Polkadot releases are much more intentional in the things included. The alternative now is to be floating on and unspecific version on `master` or perhaps a `monthly` release of Substrate, but updating may introduce braking changes without careful monitoring and add incorporation as desired." CreationDate="2022-03-03T20:57:39.600" UserId="34" />
  <row Id="364" PostId="579" Score="0" Text="Another consideration is the removal of the explicit version of packages in your `Cargo.toml` files that depend on some git repository to draw from, as is done in Polkadot for example:&#xA;```toml&#xA;frame-benchmarking-cli = { git = &quot;https://github.com/paritytech/substrate&quot;, optional = true, branch = &quot;polkadot-v0.9.17&quot; }&#xA;```&#xA;This way the version is implicit based on the head of the branch/rev/tag set." CreationDate="2022-03-03T21:01:05.427" UserId="34" />
  <row Id="365" PostId="585" Score="0" Text="What is `docs` used for in `RegistryError`?" CreationDate="2022-03-04T00:25:52.410" UserId="245" />
  <row Id="366" PostId="540" Score="0" Text="I dont believe we have tools which take advantage of the schnorr-key yet. Sorry." CreationDate="2022-03-04T04:13:55.940" UserId="28" />
  <row Id="367" PostId="568" Score="0" Text="thank you! this is helpful." CreationDate="2022-03-04T06:39:35.503" UserId="265" />
  <row Id="368" PostId="559" Score="0" Text=".Hi, The doc is very simple and can't help me. Can you help me to solve some issues? How to send a rmrk transaction ? I define the: call_module = &quot;Assets&quot; and call_function = 'transfer', call_params = {&#xA;        &quot;id&quot;: 8,&#xA;        &quot;target&quot;: target,&#xA;        'amount': amount,&#xA;    }. But when I call &quot;substrate.create_signed_extrinsic&quot;, the error &quot;ValueError: Element &quot;asset_id&quot; of struct is missing in given value&quot;." CreationDate="2022-03-04T06:43:12.533" UserId="532" />
  <row Id="369" PostId="581" Score="1" Text="That's neat, I hadn't looked at the staking source code before asking this, another way I see is a parameter in staking's genesis config, so that leaves us with two ways of setting this right?" CreationDate="2022-03-04T07:18:46.333" UserId="139" />
  <row Id="370" PostId="131" Score="0" Text="@Arjan Zijderveld, Can you help me to solve the issue?https://substrate.stackexchange.com/questions/588/how-to-solve-the-issueelement-asset-id-of-struct-is-missing-in-given-value-w" CreationDate="2022-03-04T07:27:49.010" UserId="532" />
  <row Id="371" PostId="582" Score="0" Text="Is your contract constructor [payable](https://stackoverflow.com/a/70862535/1178971)? Is the gas limit high enough for the constructor to be executed? Can you share your contract deploy code?" CreationDate="2022-03-04T11:57:16.917" UserId="380" />
  <row Id="372" PostId="582" Score="0" Text="It looks like in the example code that a value of [1](https://github.com/paritytech/substrate/blob/632b32300eb9376767c2ae7b38e79b3f7f5329b1/bin/node/runtime/src/lib.rs#L889) is being passed to the contract as a deposit. Maybe this needs to be increased?" CreationDate="2022-03-04T14:07:23.487" UserId="380" />
  <row Id="376" PostId="581" Score="0" Text="yup! although querying the chain storage for this is best, as it can change :)" CreationDate="2022-03-04T17:57:58.287" UserId="34" />
  <row Id="377" PostId="582" Score="1" Text="My contract code is available here https://github.com/driemworks/contracts/blob/dev/test/lib.rs. I made the contract constructor payable AND IT WORKED! Thank you!" CreationDate="2022-03-04T18:19:38.497" UserId="543" />
  <row Id="378" PostId="559" Score="0" Text="Without the whole code is hard to get it but maybe do what the error is point out? Like replacing `&quot;id&quot;: 8` by `&quot;asset_id&quot;: 8`?" CreationDate="2022-03-04T18:36:42.593" UserId="14" />
  <row Id="379" PostId="517" Score="0" Text="what versions of substrate are you using? are they the same as you are using as an example? and uniform for your project?" CreationDate="2022-03-04T18:51:33.480" UserId="34" />
  <row Id="380" PostId="517" Score="0" Text="Also why look at Beefy, and not another pallet exactly?" CreationDate="2022-03-04T18:52:41.320" UserId="34" />
  <row Id="381" PostId="517" Score="0" Text="I'm on the `devhub/latest` tag. Yes, they are all the same. And, I just found a solution. Will post it here soon. Thanks for the comment." CreationDate="2022-03-04T21:41:49.207" UserId="245" />
  <row Id="382" PostId="604" Score="0" Text="Do you have a link to your repo? Try reloading the browser after node restart." CreationDate="2022-03-05T00:02:31.760" UserId="29" />
  <row Id="383" PostId="517" Score="1" Text="Glad you figured this out! FYI if you are looking to be a parachain, `Bounded Vec` is the way to go, as it's required for parachains to have bounded storage items (base `Vec` is unbounded) - this then should not be annotated as such. https://paritytech.github.io/substrate/master/frame_support/storage/bounded_vec/struct.BoundedVec.html" CreationDate="2022-03-05T04:40:31.520" UserId="34" />
  <row Id="384" PostId="607" Score="0" Text="I already use `scale-info`. I'm not looking to have `Option` in the enum. Basically, I need an enum parameter for filtering. `None` is needed for `Default`. I've edited the question for a more clear enum definition." CreationDate="2022-03-05T06:35:39.567" UserId="245" />
  <row Id="385" PostId="517" Score="0" Text="Noticed that when `MaxEncodedLen` is required for `Vec`. Also, using `WeakBoundedVec` might be a workaround in my opinion." CreationDate="2022-03-05T06:39:32.773" UserId="245" />
  <row Id="386" PostId="604" Score="0" Text="My link https://github.com/MrishoLukamba/subzero-rust/tree/experinments.  And yes ive tried reloading the browser and even start the node specifically annotating am using chainspec.json file but still" CreationDate="2022-03-05T10:06:51.680" UserId="351" />
  <row Id="388" PostId="604" Score="0" Text="You should share in the question above the changes to made to the chain specification, and how you are checking that the accounts do not exist." CreationDate="2022-03-06T01:03:53.340" UserId="28" />
  <row Id="389" PostId="604" Score="0" Text="I have modified and included the code sample" CreationDate="2022-03-06T11:36:22.943" UserId="351" />
  <row Id="390" PostId="612" Score="0" Text="Thanks alot but what if also I want the predefined accounts of alice and bob to not show on the polkadot js. Because chain spec is the configuration for the genesis block and in my genesis block. I did not include those accounts?" CreationDate="2022-03-06T12:23:48.510" UserId="351" />
  <row Id="391" PostId="612" Score="0" Text="If you're using a custom chain spec they won't show up on the front end. If you are using a local install of polkadot js or on the web explorer, chances are the keyring accounts are cached and they need to be removed from cache in order not to show up. Default behaviour is that when you connect a polkadot js front end to a node, no accounts will show up other than the ones you put in. Try running it with a --chain chain spec and make sure you clean your caches." CreationDate="2022-03-06T12:27:51.513" UserId="139" />
  <row Id="392" PostId="612" Score="0" Text="Cleared cache and restarted the browser and the node. Still the predefined accounts are still there" CreationDate="2022-03-06T13:38:22.190" UserId="351" />
  <row Id="393" PostId="612" Score="0" Text="And even if i query my pallet balances total issuance is not zero but at the page of accounts in polkadot js it says total issuance is zero.  It is behaving very weird" CreationDate="2022-03-06T13:55:59.017" UserId="351" />
  <row Id="394" PostId="615" Score="0" Text="theoretically speaking, would it be possible to have different weights for different platforms, and then get the node to identify which platform it is under, then charge fees accordingly?" CreationDate="2022-03-06T17:45:11.713" UserId="494" />
  <row Id="395" PostId="546" Score="0" Text="The same issue arises in the kitties tutorial, and it's not with a vec, but with a struct. I'm not sure how to solve it there, except using #[pallet::without_storage_info] — which is definitely only a temporary solution." CreationDate="2022-03-06T18:21:01.357" UserId="209" />
  <row Id="396" PostId="615" Score="1" Text="This doesn't make sense since blockchains must be deterministic and reach consensus, and thus a single amount of &quot;weight&quot; and &quot;fee&quot; must be chosen across the whole network, independent of whatever machine is running." CreationDate="2022-03-06T19:13:17.590" UserId="28" />
  <row Id="399" PostId="546" Score="0" Text="@IlyaS fixed things up here: https://github.com/substrate-developer-hub/substrate-docs/commit/0f3cca1174244f7eef2bbbf6412e64650e71b369" CreationDate="2022-03-06T19:51:15.260" UserId="28" />
  <row Id="400" PostId="609" Score="0" Text="Thanks a lot works like charm" CreationDate="2022-03-06T20:27:17.183" UserId="68" />
  <row Id="404" PostId="607" Score="0" Text="You're right. There are 3 parameters if you include `at: Option&lt;BlockHash&gt;` which I didn't. Passing `null` as the first parameter solved the issue." CreationDate="2022-03-07T09:52:25.880" UserId="245" />
  <row Id="405" PostId="586" Score="0" Text="I appreciate the depth you provide. However I am struggling with another issue, namely this, for days: https://substrate.stackexchange.com/questions/630/validator-not-being-onboarded-due-to-election-nofallback-error-possibly. My intuition tells me that no one is submitting a signed solution here, even though I've set my Fallback to OnChainSequentialPhragmen, it still gives me those errors on era change. I've made sure to run my nodes with `--offchain-workers always` but that doesn't seem to help. What should I do?" CreationDate="2022-03-07T13:12:10.070" UserId="139" />
  <row Id="409" PostId="625" Score="0" Text="What smart contract eDSL are you using? (Solidity, ink!, ..) &#xA;On which parachain did you deploy?" CreationDate="2022-03-07T16:44:55.863" UserId="567" />
  <row Id="410" PostId="623" Score="0" Text="One option would be to write some middleware that sits in front of your node." CreationDate="2022-03-07T17:07:43.987" UserId="372" />
  <row Id="412" PostId="640" Score="0" Text="Thanks @JoshOrndorff. I think that the correct way to achieve what I want is to use a middleware as you suggested, because I only want _some_ nodes to be read-only. In this case it's infeasible to use different implementations for each type of node. Maybe in the future we could have cli options to directly filter the methods." CreationDate="2022-03-07T20:43:54.313" UserId="244" />
  <row Id="417" PostId="625" Score="0" Text="ink! on Shibuya (Astar testnet) @P.Ossun" CreationDate="2022-03-08T02:03:42.657" UserId="129" />
  <row Id="420" PostId="642" Score="0" Text="Very good, comprehensive answer, I thank you for addressing each point. I have a follow up question you may edit your answer to include it: How does one generate session keys without running a node and making the rotate_keys RPC call? I ask this because let's say I want some session keys in my genesis chain spec, would it be possible to achieve this using `subkey`?" CreationDate="2022-03-08T06:30:19.853" UserId="139" />
  <row Id="421" PostId="634" Score="0" Text="It help a little. But the error still is &quot;ValueError: Element count of value (1) doesn't match type_definition (2)&quot;" CreationDate="2022-03-08T06:54:34.010" UserId="532" />
  <row Id="422" PostId="634" Score="0" Text="The idea is to first query the endpoint and check out the data formats. Did you use what the answer suggested to query?" CreationDate="2022-03-08T07:39:53.283" UserId="104" />
  <row Id="423" PostId="634" Score="0" Text="&quot;substrate.get_metadata_call_function(&quot;XcmPallet&quot;,&quot;LimitedTeleportAssets&quot;)&quot;  and &quot;substrate.get_metadata_storage_function(&quot;XcmPallet&quot;,&quot;LimitedTeleportAssets&quot;)&quot; return None. None object cant' get the format" CreationDate="2022-03-08T08:31:22.747" UserId="532" />
  <row Id="424" PostId="634" Score="0" Text="Maybe because `limited_teleport_assets` is a call function and it's named as such?&#xA;https://kusama.subscan.io/runtime/XcmPallet?version=9170" CreationDate="2022-03-08T08:51:03.553" UserId="104" />
  <row Id="425" PostId="618" Score="0" Text="Thanks, I was suspecting new instructions to be an answer but doesn't feel like it scales well for the many possible use cases the community can come up with, I see instructions as something static and low-level that probably should go through a lengthy process of review to know if it's really needed, not ideal for example for a handful of chains that want to &quot;teleport kittens&quot; one day and make &quot;dogos bark&quot; another." CreationDate="2022-03-08T09:11:44.500" UserId="67" />
  <row Id="426" PostId="618" Score="0" Text="Perhaps we need some sort of &quot;XCM extensions&quot; so the community can extend the base instructions and play with what could later become a &quot;core instruction&quot;? I'm thinking for example encoding the interface of &quot;teleport kitten&quot;(pretty much how it's already done in the metadata with the type info) and communicate over XCM that I provide that interface(the encoded interface can be hashed). A &quot;DynamicTransact&quot; would instead of encoding the Call with the index of the pallet attach the hash of the interface that it follows?" CreationDate="2022-03-08T09:29:30.873" UserId="67" />
  <row Id="427" PostId="649" Score="0" Text="Yes this confirms my observations." CreationDate="2022-03-08T10:57:28.337" UserId="116" />
  <row Id="428" PostId="630" Score="1" Text="What is the `ValidatorCount` set too? Also can you at the logging flags `-lruntime::election-provider=trace,runtime::staking=trace`" CreationDate="2022-03-08T13:09:14.310" UserId="223" />
  <row Id="429" PostId="630" Score="0" Text="@zekemostov Do you mean the validator_count in Staking genesis config? That's set to 255 in this chain." CreationDate="2022-03-08T13:29:58.680" UserId="139" />
  <row Id="430" PostId="648" Score="0" Text="Not sure if this is useful but have you taken a look at: https://github.com/rmrk-team/rmrk-tools#collection" CreationDate="2022-03-08T14:34:26.170" UserId="29" />
  <row Id="432" PostId="642" Score="1" Text="generate secret key `openssl rand -hex 256 &gt; secret_key_file &amp;&amp; export SECRET=$( &lt; secret_key_file )`, then generate sudo account on a specific network `subkey inspect --network datahighway --scheme sr25519 &quot;//$SECRET&quot;`, then generate accounts for five (5) authorities/validators `for i in 1 2 3 4 5; do for j in stash controller babe imonline audi aura; do subkey inspect --network datahighway --scheme sr25519 &quot;//$SECRET//$i//$j&quot;; done; done &amp;&amp; for i in 1 2 3 4 5; do for j in grandpa; do subkey inspect --network datahighway --scheme=ed25519 &quot;//$SECRET//$i//$j&quot;; done; done`" CreationDate="2022-03-08T17:01:33.800" UserId="83" />
  <row Id="433" PostId="630" Score="0" Text="Can you please explain this logging command? I am afraid I only see logs like `offchain-worker` from elections_multi_phase and no staking logs." CreationDate="2022-03-08T17:01:57.117" UserId="139" />
  <row Id="434" PostId="642" Score="0" Text="Great. Thank you so much! Do you mind if I added this comment into your answer? Or you may prefer to do it yourself." CreationDate="2022-03-08T17:10:59.123" UserId="139" />
  <row Id="435" PostId="630" Score="0" Text="@zekemostov I've added the logs in the question. Please have a look." CreationDate="2022-03-08T17:12:51.533" UserId="139" />
  <row Id="436" PostId="650" Score="1" Text="so the `Staking.EraPaid` event doesn't mean that a payment is happening, but that it will happen to all validators during this era, correct? Would you know if the payment for each validator can be traced by any event? For example, `Staking.Reward`?" CreationDate="2022-03-08T18:23:21.093" UserId="568" />
  <row Id="438" PostId="648" Score="0" Text="Also, where can do you see this `multi()` method? I cannot find it." CreationDate="2022-03-08T21:39:06.777" UserId="29" />
  <row Id="439" PostId="658" Score="1" Text="Yes this worked, thanks. I was using toHuman on the wrong value! Silly. Thanks again" CreationDate="2022-03-08T21:48:50.470" UserId="556" />
  <row Id="440" PostId="659" Score="0" Text="Doh! That's it, ty" CreationDate="2022-03-09T00:24:52.343" UserId="332" />
  <row Id="441" PostId="648" Score="1" Text="I found the solution :) In the RMRK pallet you don't have to query a collection by it's ID - api.query.rmrkCore.collections.entries() returns already ALL collections. Not sure if this will be performant in the future but for now I get all collection-data for all collections." CreationDate="2022-03-09T01:26:08.403" UserId="574" />
  <row Id="442" PostId="634" Score="0" Text="I have tried it so many conbinations.But they return None" CreationDate="2022-03-09T02:13:59.790" UserId="532" />
  <row Id="443" PostId="653" Score="0" Text="yeh it worked. thanks" CreationDate="2022-03-09T07:19:04.320" UserId="552" />
  <row Id="444" PostId="661" Score="0" Text="`Mar  9 07:55:48 ip-172-31-13-210 polkadex-node[817945]: 2022-03-09 07:55:48 Backing off claiming new slot for block authorship: finality is lagging.`" CreationDate="2022-03-09T07:56:38.847" UserId="116" />
  <row Id="445" PostId="642" Score="0" Text="I don't mind. I actually just posted similar steps to answer this other question https://substrate.stackexchange.com/a/666/83" CreationDate="2022-03-09T08:21:00.723" UserId="83" />
  <row Id="446" PostId="664" Score="0" Text="Try using polkadot-launch and refer to the approach used in this response https://substrate.stackexchange.com/a/666/83 and" CreationDate="2022-03-09T08:24:39.680" UserId="83" />
  <row Id="449" PostId="667" Score="0" Text="I am not able to see any such instruction. If You can elaborate it would be helpful" CreationDate="2022-03-09T10:46:41.330" UserId="554" />
  <row Id="450" PostId="666" Score="0" Text="Thank you Luke, I will look the way DataHighway's setup its parachain spec. Just to clarify : I'm looking a way to customize the relay chain accounts and not only parachain..." CreationDate="2022-03-09T10:49:11.797" UserId="580" />
  <row Id="451" PostId="664" Score="0" Text="Thank you Luke :) . &#xA;&#xA;I'm trying here to understand the polkadot setup &amp; configurations needed to setup a parachain on a polkadot-local based network manually. &#xA;&#xA;So while polkadot-launch could help me for sure to setup the overall stuff I've the impression this short cut will not answer my initial questions... Anyway will have a look on it to see if it's help !" CreationDate="2022-03-09T10:54:18.347" UserId="580" />
  <row Id="452" PostId="667" Score="0" Text="If you open your directory for your substrate. Scroll down you will find cargo.toml ( /cargo.toml) inside include your pallet directory into the workspace" CreationDate="2022-03-09T11:16:38.540" UserId="351" />
  <row Id="453" PostId="672" Score="0" Text="Using `pallet_session::FindAccountFromAuthorIndex;` is much easier way if Babe and session pallet installed. However, I am not sure If this way works with Aura? I checked the substrate node template runtime https://github.com/substrate-developer-hub/substrate-node-template/blob/main/runtime/src/lib.rs#L275. It seems no session pallet needed if enable Aura pallet? If so, this way might not works, since we no session pallet." CreationDate="2022-03-09T13:19:00.037" UserId="125" />
  <row Id="454" PostId="672" Score="0" Text="Or are there any examples using Aura together with the session pallet?" CreationDate="2022-03-09T13:28:49.063" UserId="125" />
  <row Id="455" PostId="673" Score="2" Text="This works but is not correct in most cases (i.e. if you use the session module)." CreationDate="2022-03-09T13:38:31.197" UserId="452" />
  <row Id="456" PostId="672" Score="0" Text="Good point, I did not remember about `pallet_session::FindAccountFromAuthorIndex`, I will edit my answer. The solution will be specific to your runtime, if you use the session module then you want to use that in order to get the validator ID from the session (since aura/babe will only know session keys). The node template does not use the session module and instead the validators are a static list in the aura module." CreationDate="2022-03-09T13:40:32.743" UserId="452" />
  <row Id="457" PostId="668" Score="0" Text="This answered my question but it did unfortunately not solve my problem." CreationDate="2022-03-09T13:46:17.713" UserId="116" />
  <row Id="461" PostId="677" Score="0" Text="Just to reiterate in more concrete terms, set `validator_count` to 3, add the new validator and then increase `validator_count` to 4." CreationDate="2022-03-09T16:03:15.827" UserId="223" />
  <row Id="462" PostId="674" Score="0" Text="I removed the duplicate import and the previous error was solved. But now it started to give new errors just after that. It is like: Execution failed (exit code 101).                                                                                              &#xA;C:/Users/msi/.cargo/bin/cargo.exe metadata --verbose --format-version 1 --all-features&#xA;stdout : error: no matching package named `node-template-runtime` found&#xA;location searched: C:\Users\msi\kitties-tutorial\runtime&#xA;required by package `node-kitties v4.0.0-dev (C:\Users\msi\kitties-tutorial\node)`" CreationDate="2022-03-09T16:20:07.720" UserId="554" />
  <row Id="463" PostId="677" Score="0" Text="Alright I will be applying this fix. But in general are these types of errors recoverable? I don't have a clue how this would pan out on a production chain." CreationDate="2022-03-09T16:28:24.223" UserId="139" />
  <row Id="464" PostId="674" Score="0" Text="Right, bu you can see how your answer to this question does not actually help someone solve the error that you posted. So you should update your question or update your answer to include the full scope of things. Otherwise, developers like yourself are going to be mislead." CreationDate="2022-03-09T16:58:36.407" UserId="28" />
  <row Id="465" PostId="680" Score="0" Text="It worked for me. Is it possible you are using a very old Substrate version?" CreationDate="2022-03-09T17:26:18.043" UserId="28" />
  <row Id="466" PostId="680" Score="0" Text="I'm using branch = &quot;polkadot-v0.9.17&quot;&#xA;&#xA;Here's excerpt from my toml: &#xA;sp-runtime = { default-features = false, version = &quot;5.0.0&quot;, git = &quot;https://github.com/paritytech/substrate.git&quot;, branch = &quot;polkadot-v0.9.17&quot; }" CreationDate="2022-03-09T17:42:11.723" UserId="209" />
  <row Id="467" PostId="680" Score="0" Text="cargo clean didn't solve it" CreationDate="2022-03-09T17:58:18.153" UserId="209" />
  <row Id="469" PostId="680" Score="0" Text="Here's what's strange: &#xA;this error only comes up when I build the whole project with cargo check or cargo build --release, but doesn't come up when I do cargo check -p pallet-template" CreationDate="2022-03-09T18:29:54.357" UserId="209" />
  <row Id="470" PostId="684" Score="0" Text="Shawn, thank you! Which API would you suggest as an example?" CreationDate="2022-03-09T18:39:44.213" UserId="209" />
  <row Id="471" PostId="684" Score="0" Text="`.151515` is approximately `15 / 99`, so I would use: `FixedU128::saturating_from_rational(15, 99)`, or `FixedU128::from_inner(151_515_100_000_000_000)`, which should be the same thing." CreationDate="2022-03-09T18:48:24.123" UserId="28" />
  <row Id="472" PostId="684" Score="0" Text="Thank you very much!" CreationDate="2022-03-09T18:49:55.947" UserId="209" />
  <row Id="473" PostId="685" Score="0" Text="Can you elaborate your scenario and/or provide some code you want to work?" CreationDate="2022-03-09T18:51:36.880" UserId="28" />
  <row Id="474" PostId="683" Score="0" Text="https://github.com/paritytech/polkadot/blob/master/runtime/parachains/src/paras/mod.rs#L774" CreationDate="2022-03-09T18:56:05.587" UserId="29" />
  <row Id="475" PostId="685" Score="0" Text="I tried to elaborate more by adding a code snippet and elaborating on the alternatives" CreationDate="2022-03-09T19:17:19.847" UserId="587" />
  <row Id="476" PostId="689" Score="0" Text="What is the value of `pool_b_amount`? What is the expected number you want to get given that value?" CreationDate="2022-03-09T20:02:18.277" UserId="28" />
  <row Id="477" PostId="689" Score="0" Text="@ShawnTabrizi Hey, i updated the question, thank you for your time sir." CreationDate="2022-03-09T20:14:52.033" UserId="496" />
  <row Id="478" PostId="690" Score="0" Text="Fantastic. I agree there doesn't seem to be a perfect solution, but thanks to your answer and can think about what I should prioritize." CreationDate="2022-03-09T20:17:46.037" UserId="587" />
  <row Id="479" PostId="689" Score="3" Text="You should try [printing](https://github.com/paritytech/ink/blob/0d2cc5b49ea40cdd2875604149d0c11767ef1236/examples/contract-transfer/lib.rs#L33) the balance of `pool_b_amount` to make sure it is `200` and not `200e12`." CreationDate="2022-03-09T21:48:33.323" UserId="380" />
  <row Id="480" PostId="650" Score="0" Text="Correct. the `Staking.EraPaid` event only signifies that the payout for that era has been set. On the other hand, the `Staking.PayoutStarted` event signifies that the payout has started, while the `Staking.Rewarded` event signifies that a nominator has been rewarded with a specific amount." CreationDate="2022-03-09T23:00:19.833" UserId="575" />
  <row Id="481" PostId="689" Score="1" Text="Yes, I agree with @forgetso." CreationDate="2022-03-09T23:17:37.573" UserId="28" />
  <row Id="484" PostId="678" Score="0" Text="Thanks for the clarification, I see that if one uses election-provider-multi-phase, one still has to supply a type Fallback which also requires it to implement ElectionProvider. Seeing the types implementing ElectionProvider, besides `OnChainSeqPhragmen`, we don't have many options to choose from. Why is that the case? I am currently using OnChainSeqPhragmen for type Fallback as `NoElection` and `NoFallback` don't particularly strike as &quot;useful&quot;, and I guess they are merely provided for testing purposes." CreationDate="2022-03-10T05:32:28.980" UserId="139" />
  <row Id="486" PostId="288" Score="0" Text="For an example of a renewal tactic we see moonriver has secured it's first renewal chain: https://twitter.com/MoonriverNW/status/1501679626451660804 (the anonymous bid was called: &quot;Parathread 2112&quot;)" CreationDate="2022-03-10T08:37:25.940" UserId="85" />
  <row Id="487" PostId="683" Score="1" Text="Ok so reducing the session time seems like the only way to reduce the onboarding time." CreationDate="2022-03-10T08:38:06.240" UserId="298" />
  <row Id="488" PostId="694" Score="0" Text="Thank you for the answer, but what I meant is not how bitflags work but rather what implication does this field has on the lock itself, or it's just for metadata." CreationDate="2022-03-10T09:32:35.780" UserId="582" />
  <row Id="489" PostId="678" Score="0" Text="`NoFallback` is useful in this scenario: https://paritytech.github.io/substrate/master/pallet_election_provider_multi_phase/index.html#emergency-phase" CreationDate="2022-03-10T21:18:01.630" UserId="167" />
  <row Id="490" PostId="677" Score="0" Text="This how you recover from this on a real chain: https://paritytech.github.io/substrate/master/pallet_election_provider_multi_phase/index.html#emergency-phase" CreationDate="2022-03-10T21:19:39.743" UserId="167" />
  <row Id="491" PostId="676" Score="0" Text="hey thanks @kianenigma! actually the onchainphragmen was not properly configured and it worked fixing that. &#xA;&#xA;A doubt on my mind is that before losing connectivity with each other the validators in my case its 3(```validator_count``` is also put as 3) has creatde a fork and when I checked the logs each have different extrisics. So the reason I'm thinking is that on the next epoc change the ```im-online```  was not working and no fallback configured so validators were not selected correctly?" CreationDate="2022-03-11T05:23:45.533" UserId="552" />
  <row Id="493" PostId="700" Score="0" Text="I used the substrate-contracts-node but the same thing happened" CreationDate="2022-03-11T11:55:06.657" UserId="129" />
  <row Id="494" PostId="704" Score="1" Text="Could you maybe post the code of your extrinsic and the benchmark or test that you try to write?" CreationDate="2022-03-11T12:38:03.023" UserId="94" />
  <row Id="495" PostId="705" Score="1" Text="Hi Mrisho, Thank you very much! I see, this diagram is just an example that shows, what ever pallet I want to add to the runtime, can be picked and that's it. Great. Question answered." CreationDate="2022-03-11T14:09:41.017" UserId="581" />
  <row Id="496" PostId="704" Score="0" Text="created minimal example" CreationDate="2022-03-11T14:37:58.427" UserId="157" />
  <row Id="497" PostId="716" Score="0" Text="but it seems works well after I remove a nullable (`Option&lt;u64&gt;`) field." CreationDate="2022-03-12T02:14:45.413" UserId="442" />
  <row Id="498" PostId="716" Score="1" Text="probably you are actually getting corrupt data. it may be that the data can still be deserialized, but it will be deserialized incorrectly." CreationDate="2022-03-12T20:18:34.463" UserId="28" />
  <row Id="499" PostId="579" Score="0" Text="@shawn-tabrizi @dan-shields  What is the difference between the `polkadot-*` branches within the `substrate` repo vs the `polkadot` repo?&#xA;&#xA;And so that I understand, if starting a new Substrate project, developers should not use the `substrate-node-template`, but instead should use the latest polkadot release. Is that correct?" CreationDate="2022-03-12T22:13:47.493" UserId="332" />
  <row Id="500" PostId="700" Score="0" Text="Are you sure that it was the latest `substrate-contracts-node`? Because error means that you are using the functions in the code that is not available" CreationDate="2022-03-13T07:21:53.393" UserId="599" />
  <row Id="501" PostId="721" Score="0" Text="It starts to give a cargo error: Execution failed (exit code 101).&#xA;C:/Users/msi/.cargo/bin/cargo.exe metadata --verbose --format-version 1 --all-features&#xA;stdout :     Updating git repository `https://github.com/paritytech/substrate.git`&#xA;error: failed to select a version for the requirement `sp-io = &quot;^4.0.0-dev&quot;`&#xA;candidate versions found which didn't match: 5.0.0&#xA;location searched: Git repository https://github.com/paritytech/substrate.git?tag=devhub/latest&#xA;required by package `pallet-kitties v4.0.0-dev (C:\Users\msi\kitties-tutorial\pallets\kitties)`&#xA;&#xA;stderr :" CreationDate="2022-03-13T12:55:58.320" UserId="554" />
  <row Id="503" PostId="726" Score="1" Text="This is probably the correct answer." CreationDate="2022-03-13T22:00:31.747" UserId="28" />
  <row Id="504" PostId="716" Score="1" Text="Or maybe because it's the last field of the struct, so removing it simply means you do not continue reading the next x bytes that decodes into an `Option&lt;u64&gt;`, however this is highly inadvisable to rely on because this is an implementation-defined behaviour." CreationDate="2022-03-14T05:38:48.443" UserId="104" />
  <row Id="506" PostId="664" Score="0" Text="Finally I get the answer of my question : it was a silly network issue. What's sad is that I forced `--bootnodes '...'` options in my collator startup command but it didn't raise any connection issue. As adding this parameter is not explicitely described in the tutorial, I don't know if it make sense to create a ticket so that we get explicit network issue log error ..." CreationDate="2022-03-14T07:07:02.540" UserId="580" />
  <row Id="507" PostId="725" Score="0" Text="if i try to change `type Address = MultiAddress&lt;AccountId, ()&gt;` into `type Address = MultiAddress&lt;AccountId, AccountIndex&gt;` and then use `CreateSignedTransaction` in this pull request https://github.com/DataHighway-DHX/DataHighway-Parachain/pull/19, i get the errors shown in the pull request description that `UncheckedExtrinsic doesn't satisfy Checkable&lt;ChainContext&lt;Runtime&gt;&gt;`, and that the trait bound of `UncheckedExtrinsic` isn't satisfied and that the trait `Checkable&lt;ChainContext&lt;Runtime&gt;&gt;` is not implemented. do you know what may be causing this?" CreationDate="2022-03-14T07:46:30.300" UserId="83" />
  <row Id="508" PostId="735" Score="0" Text="an example of adding the `KeySubcommand` is shown in these changes https://github.com/DataHighway-DHX/DataHighway-Parachain/pull/11/files" CreationDate="2022-03-14T11:54:34.690" UserId="83" />
  <row Id="511" PostId="664" Score="0" Text="Awesome! This sounds useful to the community. Can you add your answer to this post?" CreationDate="2022-03-14T14:55:03.397" UserId="29" />
  <row Id="512" PostId="735" Score="0" Text="I didn't customized struct everything run from compiled polkadot and cumulus on approriate branches :&#xA;&#xA;```&#xA;cumulus$ git branch&#xA;* (HEAD detached at polkadot-v0.9.17)&#xA;```&#xA;&#xA;```&#xA;polkadot$ git branch&#xA;* (HEAD detached at v0.9.17)&#xA;```" CreationDate="2022-03-14T15:37:08.440" UserId="580" />
  <row Id="513" PostId="737" Score="0" Text="Hello Luke,&#xA;&#xA;the polkadot-launch README tells to use polkadot and cumulus project and compile polkadot and parachain-collator from there. &#xA;&#xA;Currently I have : &#xA;&#xA;`cumulus$ git branch * (HEAD detached at polkadot-v0.9.17)` &#xA;`polkadot$ git branch * (HEAD detached at v0.9.17)`&#xA;&#xA;Should replace cumulus with `substrate-parachain-template` ?" CreationDate="2022-03-14T15:42:32.937" UserId="580" />
  <row Id="514" PostId="740" Score="0" Text="Can you share your repo pls. Its hard to know your problem from your explanation." CreationDate="2022-03-14T17:35:34.013" UserId="351" />
  <row Id="515" PostId="728" Score="0" Text="That' great! Thank you so much. BR, Cindy" CreationDate="2022-03-14T18:41:41.663" UserId="581" />
  <row Id="516" PostId="715" Score="0" Text="Thank you very much!" CreationDate="2022-03-14T18:42:26.983" UserId="581" />
  <row Id="518" PostId="748" Score="0" Text="You should not need to call `import_queue` manually AFAI but instead be able to get an import queue by calling [new_partial](https://github.com/paritytech/substrate/blob/polkadot-v0.9.17/bin/node/cli/src/command.rs#L109)." CreationDate="2022-03-14T23:02:31.720" UserId="94" />
  <row Id="519" PostId="748" Score="0" Text="It is within the ‘new_partial’ function where the error is occurring." CreationDate="2022-03-15T02:28:56.803" UserId="332" />
  <row Id="520" PostId="286" Score="0" Text="Is Aura compatible with the staking pallet? Like can they be used in the same runtime. I have only ever seen Aura alone (like in the node-template) and only seen with staking with BABE. &#xA;&#xA;I have had tons of problems making BABE and staking operational on the same node on the latest version, but I will try replacing BABE with Aura if that is an possibility" CreationDate="2022-03-15T02:34:02.670" UserId="332" />
  <row Id="523" PostId="751" Score="0" Text="Thank you! I have a follow up question: let's say that I call the contribute method inside a function that has the following parameters :  `fn do_something(origin: OriginFor&lt;T&gt;, something: u32, acc:T::AccountId ,rent:BalanceOf&lt;T&gt;,cd:CID,prop:Properties,start:Option&lt;BlockNumberOf&lt;T&gt;&gt;,end:Option&lt;BlockNumberOf&lt;T&gt;&gt;) -&gt; DispatchResult `Rust considers that T is a `frame_system::Config&gt;::AccountId ` and therefore does not have the right T to correctly define  for example `let _who = ensure_signed(origin)?;`" CreationDate="2022-03-15T10:29:51.453" UserId="309" />
  <row Id="524" PostId="749" Score="1" Text="Are you using ink! 3.0.0-rc3 on purpose ?&#xA;Update it to 3.0.0-rc9 then cargo update and it should work" CreationDate="2022-03-15T11:15:54.637" UserId="567" />
  <row Id="525" PostId="758" Score="0" Text="Meaning if I set 10,000, the maximum number of heartbeat transactions I could *recieve* are 10,000 or is the the max number of heartbeats I can send to peers? Because there's also `MaxPeerInHeartbeats` which I am not sure how it relates to `MaxKeys`" CreationDate="2022-03-15T12:11:11.240" UserId="139" />
  <row Id="526" PostId="751" Score="0" Text="I'm not sure what you are asking. Can you open a new question with a bit more clarity?" CreationDate="2022-03-15T12:32:39.773" UserId="28" />
  <row Id="528" PostId="751" Score="0" Text="Sorry for the confusion, I think a look a the full code will make it clear: https://github.com/Fair-Squares/fair-squares/blob/structure_template/pallets/template/src/lib.rs On the branch &quot;structure_template&quot; the line 144 when uncommented prevents me from using OriginOf. This line is calling the method &quot;contribute&quot; mentioned earlier." CreationDate="2022-03-15T13:12:01.353" UserId="309" />
  <row Id="529" PostId="758" Score="0" Text="MaxPeerInHeartbeats is the maximum number of peers to track. Kusama has 1000 validators so I think this constant could be set to 999 for kusama (as you don't need to track yourself)." CreationDate="2022-03-15T14:12:32.520" UserId="85" />
  <row Id="530" PostId="758" Score="0" Text="Reading the code it looks to me that MaxKeys should also be set to the maximum possible number of validatiors." CreationDate="2022-03-15T14:25:25.433" UserId="85" />
  <row Id="531" PostId="751" Score="1" Text="In that case, It should be `Investor::&lt;T::AccountId, u32&gt;::contribute(who,dev.account_id,rent);`, or `pub account_id:T::AccountId,`" CreationDate="2022-03-15T14:36:12.747" UserId="28" />
  <row Id="532" PostId="737" Score="0" Text="Hello Luke,&#xA;&#xA;`./bin/parachain-collator build-spec --chain &quot;rococo-local&quot; --disable-default-bootnode &gt; rococo-local-parachain-2000-plain.json` raise following error `Error: Input(&quot;Error opening spec file `rococo-local`: No such file or directory (os error 2)&quot;)`&#xA;&#xA;we need to run `./bin/parachain-collator build-spec --disable-default-bootnode &gt; rococo-local-parachain-2000-plain.json`&#xA;&#xA;Also, you currently named the parachain output file `rococo-local-parachain-2000-plain.json`. Should we not change paraID inside it from 1000 to 2000 ?" CreationDate="2022-03-15T15:06:42.770" UserId="580" />
  <row Id="536" PostId="729" Score="2" Text="What have you tried? What problem are you running into? Please post a [Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example)" CreationDate="2022-03-15T22:49:27.660" UserId="28" />
  <row Id="537" PostId="737" Score="0" Text="@MathildeFfrench yes that's correct, that's what i do in this tutorial https://github.com/DataHighway-DHX/documentation/blob/master/docs/tutorials/tutorials-node-polkadot-launch-datahighway-rococo-local.md#option-2-build-the-substrate-parachain-template. the default paraID in the substrate-parachain-template is 1000, but i changed it to 2000. i've updated the answer to mention this." CreationDate="2022-03-16T06:48:51.123" UserId="83" />
  <row Id="538" PostId="766" Score="0" Text="This is not something we have directly written, it comes from the Polkadot dependencies." CreationDate="2022-03-16T11:13:56.770" UserId="74" />
  <row Id="539" PostId="765" Score="0" Text="Ok. One more thing.&#xA;After adding the proxy account we can make transection from the proxy account as well as the main account(without using proxy). &#xA;Can we restrict it that we can only perform the transaction with proxy accounts?" CreationDate="2022-03-16T13:07:11.507" UserId="377" />
  <row Id="540" PostId="772" Score="0" Text="Thanks @Shawn&#xA;I actually waited 3 sessions, and i still see Charlie as part of the validators after the chill action" CreationDate="2022-03-16T13:11:17.283" UserId="258" />
  <row Id="541" PostId="773" Score="0" Text="ok thank you, and how to know how much args do we have for example in this case `{&#xA;        isSigned: true&#xA;        method: {&#xA;          args: {&#xA;            dest: {&#xA;              Id: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY&#xA;            }&#xA;            value: 1.0000 µUnit&#xA;          }&#xA;          method: transfer&#xA;          section: balances&#xA;        }`" CreationDate="2022-03-16T14:20:55.853" UserId="632" />
  <row Id="542" PostId="766" Score="1" Text="Maybe this can help: https://polkadot.js.org/docs/usage/FAQ/#on-webpack-4-i-have-a-parse-error-on-importmetaurl" CreationDate="2022-03-16T14:32:11.377" UserId="629" />
  <row Id="543" PostId="773" Score="0" Text="That is also in the metadata, each call will have a list of the arguments it expects, and the datatype that it expects." CreationDate="2022-03-16T17:00:12.657" UserId="28" />
  <row Id="544" PostId="773" Score="0" Text="ok but  for example this extrinsic : 84003c2eb55ba53099bea9031b4a30c9a553c29f7c4a3a9f266d6208954268aa8825014031ae12b4edb8b6f49e407b88f21022460e523d57337b70a46ce23765d4b645cd4f05fefaf77be348994429492d1c923ce1a3bbe00a5397e809fbac72864d8dc5031000050000d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d02093d00 is a balance transfer I guess but how can I know the number of bytes for each arg?" CreationDate="2022-03-16T17:48:35.717" UserId="632" />
  <row Id="546" PostId="773" Score="0" Text="Yes, that is also information which is conveyed in the metadata. Unfortunately it is not something that has an easy answer, you probably need a library to help you parse the metadata and get all this information, which is what Polkadot JS API is doing." CreationDate="2022-03-16T17:50:27.543" UserId="28" />
  <row Id="547" PostId="773" Score="0" Text="Yes but I need to do that in substrate side :-)" CreationDate="2022-03-16T18:33:42.503" UserId="632" />
  <row Id="548" PostId="748" Score="1" Text="Sorry but could you provide the sour-code? There are a lot of things that can go wrong here." CreationDate="2022-03-16T19:44:40.537" UserId="94" />
  <row Id="549" PostId="778" Score="3" Text="It might be possible, but why use pallet index and not a concrete `Call`? This is far more intuitive and less likely to break. It also is ***extremely*** important to understand filter configurations in XCM for your chain and others interfacing with it." CreationDate="2022-03-16T20:22:22.967" UserId="34" />
  <row Id="551" PostId="737" Score="0" Text="Hello @Luke, I did test on your solution but now I'm lock on issue discribed here : https://github.com/paritytech/cumulus/issues/549 ... Currently testing 0.9.7.... I will wait a little to get env fully working and fix all potential issues till I see my parachain producing blocks to provide feedback on your first answer and then validate it..." CreationDate="2022-03-16T20:30:18.657" UserId="580" />
  <row Id="554" PostId="772" Score="1" Text="can you post your `impl pallet_staking::Config Runtime` and perhaps some logs that start with `runtime::`?" CreationDate="2022-03-16T21:32:57.463" UserId="167" />
  <row Id="555" PostId="773" Score="0" Text="Can you add more context to your question? Why are you parsing this on &quot;substrate&quot; side. Maybe you should ask a second question with more information" CreationDate="2022-03-17T02:03:05.630" UserId="28" />
  <row Id="556" PostId="737" Score="0" Text="Using polkadot-launch, I usually only need to wait until the logs show i've synchronised about 15 blocks from the Rococo relay chain before my parachain starts generating and finalizing blocks" CreationDate="2022-03-17T06:35:23.050" UserId="83" />
  <row Id="557" PostId="245" Score="0" Text="I tried using your solution [here](https://github.com/DataHighway-DHX/DataHighway-Parachain/pull/26) where I am also using branch 'polkadot_v0.9.17' and I had already enabled the runtime-benchmarks feature flag on polkadot-cli, but when I run `cargo check --features runtime-benchmarks` I still get error `missing 'successful_origin' in implementation` that it says is caused by pallet-xcm" CreationDate="2022-03-17T08:27:21.693" UserId="83" />
  <row Id="558" PostId="782" Score="1" Text="The `fast-runtime` feature is a custom Polkadot feature. This is nothing from Substrate. Any Substrate builder needs to create such a feature or just provide a different way to do this." CreationDate="2022-03-17T09:42:59.357" UserId="73" />
  <row Id="559" PostId="245" Score="1" Text="You need to make sure any crates you added to your project have the feature flag correctly setup. If you can prepare a minimal example of your issue, you should open a new question and we can answer it" CreationDate="2022-03-17T10:01:58.160" UserId="28" />
  <row Id="560" PostId="797" Score="0" Text="This is all done: I am only showing code snippets. If you want to see the full code: https://github.com/Fair-Squares/fair-squares/blob/structure_template/pallets/template/src/lib.rs" CreationDate="2022-03-17T11:13:28.663" UserId="309" />
  <row Id="561" PostId="431" Score="0" Text="Hi, I've looked into the service.rs of my node and I haven't been able to find the worker type. I'm working off of the node template and it seems they used a function to handle it that abstracts everything to a start method. How would I access it in this condition?" CreationDate="2022-03-17T11:32:04.513" UserId="88" />
  <row Id="562" PostId="791" Score="0" Text="Please provide more details. It is not clear what the problem is or the steps to reproduce it." CreationDate="2022-03-17T13:33:59.303" UserId="380" />
  <row Id="563" PostId="800" Score="0" Text="Sorry, but I will implement additional functions which use different types so: I need it to be generic. I am also trying to understand the source of the problem, and not avoiding it if possible." CreationDate="2022-03-17T14:09:02.340" UserId="309" />
  <row Id="564" PostId="793" Score="2" Text="The &quot;bind&quot; function you want to create seems very similar to what the [Proxy account](https://wiki.polkadot.network/docs/learn-proxies) system does. Have to looked at [that code](https://github.com/paritytech/substrate/blob/master/frame/proxy/src/lib.rs) to see how it works?" CreationDate="2022-03-17T14:10:49.867" UserId="28" />
  <row Id="565" PostId="776" Score="0" Text="Thanks for the response Shawn, yes, I agree with your point, adding just one flag is always good than customizing the code.&#xA;&#xA;I was planning to customize it to learn more about the internals of these flags.&#xA;&#xA;Is there any specific location from where I can get the business logic of this flag?&#xA;&#xA;Thanks" CreationDate="2022-03-17T14:25:00.457" UserId="429" />
  <row Id="566" PostId="766" Score="1" Text="Following the above link leads to a solution. Thanks Nikos!" CreationDate="2022-03-17T15:17:03.797" UserId="624" />
  <row Id="567" PostId="805" Score="0" Text="Welcome to the community! For us to help you, please provide a [Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example) so we can better understand the context you are trying to implement this code in." CreationDate="2022-03-17T15:20:27.900" UserId="34" />
  <row Id="569" PostId="776" Score="0" Text="Right here: https://github.com/paritytech/substrate/blob/42b2d623d058197aebc3c737fb44fbbf278a85b4/bin/node-template/node/src/service.rs#L281&#xA;&#xA;Just passing a bool." CreationDate="2022-03-17T15:22:33.880" UserId="28" />
  <row Id="570" PostId="807" Score="2" Text="Can you explain why you are calling this function outside of tests? this is really not the right thing to do in general, and I hope you see the comments above the function you are using. &quot;Should only be called if you know what you are doing and outside of the runtime block execution else it can have a large impact on the PoV size of a block.&quot;" CreationDate="2022-03-17T15:54:36.477" UserId="28" />
  <row Id="571" PostId="807" Score="3" Text="Thanks @ShawnTabrizi. I'm trying to replicate `Tomasz Drwięga` off-chain indexing example. I want to index every event to the local-storage and then use a `OCW` to read the indexed-data and RPC it into a `neo4j` database." CreationDate="2022-03-17T15:59:31.690" UserId="205" />
  <row Id="572" PostId="803" Score="2" Text="Do you have a link to the repo? I would like to look deeper into the project and see how you are sending the transaction. Generally, you should be able to call the function using https://github.com/polkadot-js/api/tree/master/packages/api-contract" CreationDate="2022-03-17T16:32:04.713" UserId="693" />
  <row Id="573" PostId="807" Score="0" Text="okay, this sounds reasonable. good luck!" CreationDate="2022-03-17T16:43:06.420" UserId="28" />
  <row Id="574" PostId="807" Score="0" Text="Thank you @ShawnTabrizi. I'll keep you in the loop." CreationDate="2022-03-17T16:48:31.940" UserId="205" />
  <row Id="575" PostId="808" Score="1" Text="Is RSA secure these days? I would caution you against RSA as it going to get cheaper and cheaper to break as time goes by." CreationDate="2022-03-17T17:11:35.050" UserId="85" />
  <row Id="576" PostId="784" Score="1" Text="Can you provide a link to the files you are using at genesis and for the upgrade to so a [Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example) can be tested?" CreationDate="2022-03-17T17:37:35.520" UserId="34" />
  <row Id="577" PostId="784" Score="1" Text="Perhaps the `maxCodeSize` could be increased, the best way to do this would be a PR referencing this question and let the core team deliberate and work with you to get it in production " CreationDate="2022-03-17T17:39:49.063" UserId="34" />
  <row Id="578" PostId="784" Score="1" Text="In general too, you should ideally keep posts to one succinct question, so the community can provide one (succinct) answer. " CreationDate="2022-03-17T17:41:31.487" UserId="34" />
  <row Id="579" PostId="773" Score="0" Text="yes sorry, because we need to be able to return json format from the node directly. is it possible to give me the example how to decode this one : 84003c2eb55ba53099bea9031b4a30c9a553c29f7c4a3a9f266d6208954268aa8825014031ae12b4edb8b6f49e407b88f21022460e523d57337b70a46ce23765d4b645cd4f05fefaf77be348994429492d1c923ce1a3bbe00a5397e809fbac72864d8dc5031000050000d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d02093d00 ? thank you" CreationDate="2022-03-17T19:20:51.500" UserId="632" />
  <row Id="580" PostId="775" Score="1" Text="You mentioned code comments, but running `--help` on the substrate node might be a better way to access this and all the other flag definitions for the node. It has the same description for `--dev` given in your answer." CreationDate="2022-03-17T19:23:51.817" UserId="17" />
  <row Id="581" PostId="731" Score="0" Text="dont you have to disable the `std` / default features?" CreationDate="2022-03-17T20:00:26.137" UserId="583" />
  <row Id="582" PostId="773" Score="1" Text="Please see here how Parity Signer does this:&#xA;&#xA;https://github.com/paritytech/parity-signer/tree/master/rust/parser" CreationDate="2022-03-17T20:06:30.400" UserId="705" />
  <row Id="583" PostId="773" Score="0" Text="hum thank you but how can I decode 84003c2eb55ba53099bea9031b4a30c9a553c29f7c4a3a9f266d6208954268aa8825014031ae12b4edb8b6f49e407b88f21022460e523d57337b70a46ce23765d4b645cd4f05fefaf77be348994429492d1c923ce1a3bbe00a5397e809fbac72864d8dc5031000050000d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d02093d00 with Parity Signer ?" CreationDate="2022-03-17T20:19:46.610" UserId="632" />
  <row Id="584" PostId="818" Score="1" Text="It might be badly parsed, the `SKIP_WASM_BUILD=` directive has nothing / is assigned to the the run command here? I suggest instead using `cargo buid -r` , the debud build will _not_ work well event in testing only." CreationDate="2022-03-17T20:28:40.883" UserId="34" />
  <row Id="585" PostId="818" Score="1" Text="Does it work if you omit the `SKIP_WASM_BUILD= `?" CreationDate="2022-03-17T20:30:21.237" UserId="29" />
  <row Id="586" PostId="818" Score="1" Text="you might also enjoy this tutorial to further your understanding: https://docs.substrate.io/tutorials/v3/node-metrics/" CreationDate="2022-03-17T20:32:04.643" UserId="34" />
  <row Id="587" PostId="773" Score="1" Text="You need to convert this line to Vec&lt;u8&gt; and pass it to https://github.com/paritytech/parity-signer/blob/02a7b00789698c3ab3ed65b83bc1a77f18b88071/rust/parser/src/lib.rs#L28 - as you can see, that function also requires other information, that is, metadata and some extra network specs. Feel free to use this function (I'll certainly publish this crate after formatting it properly) or just study how it works - essentially it consumes method vector sequentially checking for exact formatting in metadata. I'll try to post my cowboy's notes on how to decode that manually later unless I forget to." CreationDate="2022-03-17T20:34:08.477" UserId="705" />
  <row Id="588" PostId="818" Score="1" Text="It looks like the status code is 404. Try to spin up a basic node with telemetry like Dan suggested and see if that connects..." CreationDate="2022-03-17T20:40:47.410" UserId="29" />
  <row Id="589" PostId="803" Score="0" Text="Can you clarify what &quot;But it is too dangerous code&quot; means?" CreationDate="2022-03-17T20:42:36.767" UserId="34" />
  <row Id="590" PostId="773" Score="0" Text="Ok sounds great thank you. what should be metadata here?" CreationDate="2022-03-17T20:43:41.037" UserId="632" />
  <row Id="591" PostId="689" Score="0" Text="https://doc.rust-lang.org/reference/expressions.html#expression-precedence be careful, I don't think your `price_from_one_token_a_to_b` is acting as expected with order of operations" CreationDate="2022-03-17T20:46:39.930" UserId="34" />
  <row Id="592" PostId="689" Score="0" Text="see also: https://substrate.stackexchange.com/questions/146/can-you-use-floating-point-numbers-or-math-in-the-runtime" CreationDate="2022-03-17T20:47:51.697" UserId="34" />
  <row Id="593" PostId="748" Score="1" Text="a hunch: might be your lock file has multiple substrate versions upstream. Look there to confirm you are really using uniform upstream commit for all of substrate" CreationDate="2022-03-17T20:51:37.203" UserId="34" />
  <row Id="594" PostId="773" Score="1" Text="It is a struct that describes whether it is legacy or V14+ metadata: https://github.com/varovainen/parity-signer/blob/38fefb1157809f3df628a800e433fc40aea4f89e/rust/parser/src/lib.rs#L188&#xA;&#xA;If it is V14, it indeed contains substrate metadata object from frame_metadata" CreationDate="2022-03-17T20:57:56.290" UserId="705" />
  <row Id="595" PostId="770" Score="0" Text="Which network is it for by the way? What is genesis hash?" CreationDate="2022-03-17T21:00:33.043" UserId="705" />
  <row Id="596" PostId="675" Score="0" Text="more context is needed: how many validators are you using? can you share your source code? is ths a test network or production?" CreationDate="2022-03-17T21:04:44.183" UserId="34" />
  <row Id="598" PostId="808" Score="1" Text="agreed, rsa isn't a good idea for this. ecdsa and sr25519 are implemented and well supported, why not use that? https://github.com/paritytech/substrate/tree/master/primitives/core/src" CreationDate="2022-03-17T21:22:06.117" UserId="34" />
  <row Id="599" PostId="840" Score="0" Text="Yea this works. Somehow weird that `sr25519` is not the default." CreationDate="2022-03-17T21:25:15.313" UserId="94" />
  <row Id="600" PostId="808" Score="0" Text="also worth your time, reading about OCWs: https://docs.substrate.io/v3/concepts/off-chain-features/" CreationDate="2022-03-17T21:25:24.257" UserId="34" />
  <row Id="601" PostId="840" Score="0" Text="That is a good follow up question that I don't know the answer to :)" CreationDate="2022-03-17T21:26:12.223" UserId="28" />
  <row Id="603" PostId="814" Score="0" Text="This doesn't work for extrinsic where the fees are refunded (like: `parachainSystem.enactAuthorizedUpgrade`), do you have a better solution ?" CreationDate="2022-03-17T23:00:12.610" UserId="699" />
  <row Id="605" PostId="850" Score="0" Text="Shame that there is no way to make it site-specific. It would be nice if there were some 'visibility templates' that could be attached to specific dapps." CreationDate="2022-03-17T23:41:05.573" UserId="1806" />
  <row Id="606" PostId="850" Score="3" Text="You should open a feature request, sounds like something that is easily programmable." CreationDate="2022-03-18T01:37:27.383" UserId="28" />
  <row Id="608" PostId="788" Score="0" Text="Take advantage of `cargo fmt` in order to make your code more easily readable." CreationDate="2022-03-18T02:20:21.027" UserId="28" />
  <row Id="609" PostId="714" Score="0" Text="A hunch: https://docs.astar.network/tutorial/develop-and-deploy-your-first-smart-contract-on-aster-shiden-evm/deploy-contract-on-local-network will have some hints at to what might be up?" CreationDate="2022-03-18T02:59:53.810" UserId="34" />
  <row Id="610" PostId="714" Score="0" Text="What are you following as a guide to try this out?" CreationDate="2022-03-18T03:00:13.180" UserId="34" />
  <row Id="611" PostId="809" Score="0" Text="I like that you are thinking through this! But please be more _concise_ and have _one question_ here that we can tackle with facts. This forum isn't generally a place to have a &quot;chat&quot; about how to scope your application architecture (sadly)" CreationDate="2022-03-18T03:06:28.767" UserId="34" />
  <row Id="612" PostId="856" Score="0" Text="Are you using the Ledger Live desktop or mobile version of the application?" CreationDate="2022-03-18T05:49:37.580" UserId="128" />
  <row Id="613" PostId="856" Score="0" Text="What is the error that you received when trying to transfer from the Ledger account? Does it fail before the transaction or after?" CreationDate="2022-03-18T05:52:11.610" UserId="128" />
  <row Id="614" PostId="856" Score="0" Text="What are the account parameters you used when creating the Polkado.js account, usually you have to select &quot;Account Type&quot; and &quot;Account Index&quot;, depending on what numbers you selected, you will get a different address." CreationDate="2022-03-18T05:57:36.157" UserId="128" />
  <row Id="615" PostId="856" Score="0" Text="I am using desktop version of Ledger Live. I already had another Ledger perhaps that’s what was confusing to the program." CreationDate="2022-03-18T05:58:55.800" UserId="1723" />
  <row Id="617" PostId="856" Score="0" Text="The error message is TXN version not supported. It never showed up as a transaction to approve on my ledger" CreationDate="2022-03-18T06:08:05.890" UserId="1723" />
  <row Id="618" PostId="856" Score="0" Text="When I used the 0, 1 derivation path, the address generated is 14TaEDyp2QJovndX21KaiHpynuktGEP9eSTgVswsd6WC5jMp. But If I use the 0,0 combination the address is : 13NySAb5HVFE786mcizE5CUJ2p3mHWzS5apcYzhxiL4cJgX. The latter is the address generated by Ledger Live and shows a zero balance." CreationDate="2022-03-18T06:16:07.700" UserId="1723" />
  <row Id="619" PostId="860" Score="0" Text="Things start to make sense now. Thanks." CreationDate="2022-03-18T06:52:33.200" UserId="1723" />
  <row Id="620" PostId="852" Score="1" Text="I think you should mention that the `parents` field of the destination MUST be 1, otherwise it stays at 0 and it gets sent back to your own account." CreationDate="2022-03-18T06:55:05.210" UserId="104" />
  <row Id="621" PostId="852" Score="0" Text="@KeithYeung Thanks, I updated the answer." CreationDate="2022-03-18T07:07:11.120" UserId="128" />
  <row Id="622" PostId="773" Score="0" Text="@ShawnTabrizi 0402000b935b2a697f01 is decoded even with polkadot ui as  {&#xA;  isSigned: false,&#xA;  method: {&#xA;    args: { now: '1,646,736,858,003' },&#xA;    method: 'set',&#xA;    section: 'timestamp'&#xA;  }&#xA;My metadata are in V12 maybe it can be because of that?" CreationDate="2022-03-18T07:22:13.203" UserId="632" />
  <row Id="623" PostId="773" Score="0" Text="v12 metadata would be &quot;Legacy&quot;, right? So that would change how you construct the metadata struct (As per Alexander's answer)" CreationDate="2022-03-18T07:44:15.933" UserId="609" />
  <row Id="624" PostId="853" Score="0" Text="Thank you!! it worked!  the main problem was as you pointed, the inconsistency of what I had in T. but another take away is the trait bound(?) when making the struct. I'm using Steve Klabnik book, and I don't remember seeing something similar (missed it maybe...).  You're a Rust Wizard !!!!" CreationDate="2022-03-18T08:20:04.010" UserId="309" />
  <row Id="625" PostId="773" Score="0" Text="I tried : to get the extrinsic with polkadot api `ex.toHex()` give me  `0x280402000bd77af29b7f01`&#xA;and `ex.toHuman()` gives me `{&#xA;  isSigned: false,&#xA;  method: {&#xA;    args: { now: '1,647,588,834,007' },&#xA;    method: 'set',&#xA;    section: 'timestamp'&#xA;  }&#xA;}` I dont understand why set timestamp is relative to 0402" CreationDate="2022-03-18T08:21:15.097" UserId="632" />
  <row Id="626" PostId="770" Score="0" Text="we use our own substrate blockchain, genesis hash is 0x7253b2c4dcbdd53e3aae5372006d4bcd8a587428ad8f487ddfa116ca2b6d8d9f" CreationDate="2022-03-18T08:41:07.913" UserId="632" />
  <row Id="627" PostId="369" Score="0" Text="I think 3.0.0 tag was a while ago. I would recommend choosing the latest monthly tag or the last tagged polkadot version or master." CreationDate="2022-03-18T09:20:37.113" UserId="85" />
  <row Id="628" PostId="862" Score="1" Text="If you ever wondered why he called it the Byzantine generals problem, he tells us here: https://www.youtube.com/watch?v=SXt3-iZpQQc&amp;t=9060s" CreationDate="2022-03-18T09:35:10.430" UserId="85" />
  <row Id="629" PostId="845" Score="1" Text="so should the [Forkless Upgrades](https://docs.substrate.io/tutorials/v3/forkless-upgrades/#upgrade-the-runtime) tutorial here be updated to say to select the compressed `x_runtime.compact.compressed.wasm` Wasm binary for an upgraded runtime rather than just the `x_runtime.compact.wasm` in production?" CreationDate="2022-03-18T10:19:00.987" UserId="83" />
  <row Id="630" PostId="784" Score="0" Text="the files we are using at genesis on Rococo on parachain id 2007 will be included in this PR https://github.com/DataHighway-DHX/DataHighway-Parachain/pull/30. we haven't prepared the runtime upgrade files yet, but they will be generated by restoring the pallets that were pruned in this PR to reduce the x_runtime.compact.wasm file to less than 3.1MB https://github.com/DataHighway-DHX/DataHighway-Parachain/pull/24" CreationDate="2022-03-18T10:25:18.160" UserId="83" />
  <row Id="631" PostId="868" Score="0" Text="Your invocation looks good. Did you compile the binary with `--features=runtime-benchmarks`?" CreationDate="2022-03-18T10:42:05.330" UserId="94" />
  <row Id="632" PostId="869" Score="1" Text="The link to the change is missing from the post." CreationDate="2022-03-18T10:58:01.183" UserId="116" />
  <row Id="633" PostId="800" Score="0" Text="@KazunobuNdong looks like Shawn explained the solution and you managed to fix the issue =) I corrected the code snippet - my bad!" CreationDate="2022-03-18T11:05:23.483" UserId="172" />
  <row Id="634" PostId="773" Score="0" Text="It would help greatly if you post your metadata somewhere.&#xA;&#xA;The pallet with 1 call could have call indices above 1, because - unless TX version or some parameter with similar idea is bumped - to keep backwards compatibility, deprecated call indices are kept on update. So if there were other calls in this pallet that were removed later or changed so that their parameters are not compatible, you can get index 2. But to figure this out, you need metadata." CreationDate="2022-03-18T11:20:54.700" UserId="705" />
  <row Id="635" PostId="868" Score="0" Text="Yes indeed. Compilation was successful." CreationDate="2022-03-18T11:38:02.307" UserId="139" />
  <row Id="636" PostId="869" Score="3" Text="A PR like this one: https://github.com/polkadot-js/apps/pull/6336" CreationDate="2022-03-18T11:39:49.043" UserId="85" />
  <row Id="637" PostId="782" Score="0" Text="Good point. Important to make the distinction." CreationDate="2022-03-18T12:26:37.860" UserId="85" />
  <row Id="638" PostId="865" Score="1" Text="Thanks this explains what is happening, I have still no idea how to restart the finality once it is lost." CreationDate="2022-03-18T12:59:06.730" UserId="116" />
  <row Id="639" PostId="862" Score="0" Text="Ok, got it. I do want 3 available validators because we are testing this, but we can create 4, or I guess 2 GRANDPA authorities and 3 BABE authorities. Will try this, thanks!" CreationDate="2022-03-18T13:11:03.693" UserId="332" />
  <row Id="640" PostId="878" Score="2" Text="I would suggest pasting the contents of the script in this answer in case the link breaks in the future." CreationDate="2022-03-18T13:34:16.683" UserId="28" />
  <row Id="642" PostId="871" Score="0" Text="Thank you very much @Squirrel. Still not clear to me: 1. How do I include the core primitives ? Is it with frame_system? 2. Is there a general documentation available for each Pallet regarding its trait configuration (without a reference to a special project as Acala)?" CreationDate="2022-03-18T13:42:36.970" UserId="581" />
  <row Id="643" PostId="859" Score="0" Text="How did you perform the parachain upgrade? This is a helpful resource: https://docs.substrate.io/how-to-guides/v3/parachains/runtime-upgrades" CreationDate="2022-03-18T14:11:50.577" UserId="29" />
  <row Id="644" PostId="850" Score="1" Text="There is an open request for proposals on the W3F grants program repo that addresses this and other privacy related features of polkadot.js: https://github.com/w3f/Grants-Program/blob/master/rfps/privacy-enhancement-polkadot-extension.md. If anyone is interested in implementing it, you can submit an application on that repository." CreationDate="2022-03-18T14:30:49.243" UserId="368" />
  <row Id="645" PostId="688" Score="0" Text="Can you provide more details here? Where are you expecting `engine_createBlock` to come from?" CreationDate="2022-03-18T14:42:25.440" UserId="28" />
  <row Id="646" PostId="867" Score="3" Text="Hi Cindita, what specifically are you trying to do? The core primitives mentioned in the documentation are not things you need to import manually. They are all included automatically in the `frame_system` pallet. As for adding the timestamp pallet, just look at: https://github.com/paritytech/substrate/blob/master/bin/node-template/runtime/src/lib.rs#L230" CreationDate="2022-03-18T14:46:36.740" UserId="28" />
  <row Id="647" PostId="865" Score="1" Text="If finality is stalled the reason must be that at least 1/3 of the validators are not voting, presumably because they are either not online or because they don't have the necessary keys to vote. The first step to recovering finality is figuring out who these validators are and why they aren't voting, this can be debugged using the `grandpa_roundState` RPC as explained in previous questions. Assuming that the current state is irrecoverable, e.g. keys have been deleted and are irrecoverable, then you can &quot;hard-fork&quot; the GRANDPA validator set using the `noteStalled` runtime API." CreationDate="2022-03-18T15:37:16.180" UserId="452" />
  <row Id="648" PostId="852" Score="0" Text="Your note is still a bit inaccurate -- the reason why you must set the `parents` parameter to 1 is because you are specifically sending funds to an account on the relay chain, and `parents: 1` signifies the location that's &quot;one level up&quot; from the Karura parachain, i.e. the Kusama relay chain." CreationDate="2022-03-18T15:43:56.243" UserId="104" />
  <row Id="649" PostId="860" Score="1" Text="Thank you gentlemen. Update: I transferred the 1,0 account to a 0,0 account because Ledger won’t pick up the former. And I updated my Polkadot app on Ledger. Now things are functioning. Learned a ton, thank you!!" CreationDate="2022-03-18T16:41:12.097" UserId="1723" />
  <row Id="650" PostId="862" Score="0" Text="If this answered your question you should consider accepting the response :)" CreationDate="2022-03-18T16:51:26.160" UserId="452" />
  <row Id="651" PostId="435" Score="0" Text="If this answered your question you should consider accepting the response :)" CreationDate="2022-03-18T16:52:06.640" UserId="452" />
  <row Id="652" PostId="689" Score="1" Text="@forgetso is correct." CreationDate="2022-03-18T21:02:28.307" UserId="496" />
  <row Id="653" PostId="885" Score="0" Text="While this is good information, it is missing the fact that many parachains also rely on other repositories using substrate too (we have at least 5 for Moonbeam). Upgrading the dependencies is usually a long (and manual) process to make sure they all work with the new code, but also to ensure the changes are not &quot;impacting&quot; your chain without you noticing it." CreationDate="2022-03-19T00:32:53.397" UserId="699" />
  <row Id="654" PostId="589" Score="0" Text="I’ll read over this more thoroughly in a couple of days, but just to say; this issue with some structs not being Send has actually been resolved on the master branch of subxt already, so until a new release is out, I’d suggest giving that a go and seeing whether it resolves your issue :)" CreationDate="2022-03-19T06:42:10.527" UserId="474" />
  <row Id="655" PostId="714" Score="0" Text="Thanks for your reply, but the solidity code is compiled with solang, results in a pallet-contract compatible abi bundle, it's the webassembly contract pallet tht powered ink as well.&#xA;&#xA;You can check the hypoerledger solang link above and see the usage of the cli, after that you can follow general ink tutorial to deploy compiled $Some.contract on the substrate-contracts-node to test that out.&#xA;&#xA;If for frontend, polkadot.js app has specific contract tab, and there's also a contract-ui to try out.&#xA;https://paritytech.github.io/contracts-ui/&#xA;&#xA;The astar guide is using pallet-ethereum." CreationDate="2022-03-19T07:08:23.230" UserId="316" />
  <row Id="656" PostId="859" Score="0" Text="I use sudo.sudo.sudoUncheckedWeight(system.setcode) to upgrade my parachain. Instead of using the default compiled file(`xxx..compact.wasm`), I used a compressed version of the WASM file(`xxx.compact.compressed.wasm`)." CreationDate="2022-03-19T10:24:59.827" UserId="299" />
  <row Id="657" PostId="895" Score="2" Text="Could you please give us some code or more information what you are doing?" CreationDate="2022-03-19T13:00:26.727" UserId="94" />
  <row Id="658" PostId="886" Score="1" Text="This is precisely what im trying to do, with the exception of using random values to generate the keys (import from file). I tried to import this crate to my ocw pallet and im getting this compile error ( https://i.imgur.com/dNKpnLn.png )." CreationDate="2022-03-19T13:44:44.223" UserId="692" />
  <row Id="659" PostId="766" Score="1" Text="Might be worth editing the answer to include this info explicitly " CreationDate="2022-03-19T14:15:41.983" UserId="34" />
  <row Id="660" PostId="769" Score="0" Text="Please do file an issue on the docs! We can make a note about this, perhaps even an upstream issue should be filed for better logs in substrate on this is possible" CreationDate="2022-03-19T14:18:12.163" UserId="34" />
  <row Id="661" PostId="899" Score="1" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-03-19T14:20:27.077" UserId="-1" />
  <row Id="662" PostId="895" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-03-19T14:26:04.893" UserId="-1" />
  <row Id="663" PostId="893" Score="0" Text="So you are asking about the syntax here? You can probably re-write it." CreationDate="2022-03-19T15:13:48.860" UserId="94" />
  <row Id="664" PostId="885" Score="0" Text="yes, it is not a easy job, as Shawn mentioned, you need to check the upstream pr(substrate/polkadot/cumulus or even 3rd modules like moonbeam you said) one by one to see if it contain any change you should take care" CreationDate="2022-03-19T15:23:13.657" UserId="523" />
  <row Id="665" PostId="903" Score="0" Text="Can you try using the `hashed_key_for(k1, k2)` function from here https://docs.rs/frame-support/3.0.0/frame_support/storage/trait.StorageMap.html?" CreationDate="2022-03-19T15:33:32.367" UserId="94" />
  <row Id="666" PostId="852" Score="0" Text="orml-xtokens is some high level xcm wrapper, maybe better to use some low level `InitRerserveWithDraw` primitives to demonstrate and `parents: 1` is just the destination from the view of parachain but not the canonical repensentation for KSM in relaychain which should be `parents:0,Here` instead" CreationDate="2022-03-19T15:33:53.763" UserId="523" />
  <row Id="667" PostId="902" Score="2" Text="thanks. i am staring two parachain that are proof chain and asset chain.i want to test ping-pong pallet which was built in proof chain and asset chain.when i call `start` function in proof parachain, the mssage was send successfully, but in asset chain it shows `xcmpQueue.fail` which shows `XcmV2TraitsError -&gt; FailedToDecode `." CreationDate="2022-03-19T16:34:51.567" UserId="489" />
  <row Id="669" PostId="902" Score="2" Text="the link is here :https://github.com/VegeBun-csj/Asset-Chain. and. https://github.com/VegeBun-csj/Proof-Chain" CreationDate="2022-03-19T16:40:44.433" UserId="489" />
  <row Id="670" PostId="895" Score="1" Text="the link is here :github.com/VegeBun-csj/Asset-Chain. and. github.com/VegeBun-csj/Proof-Chain.    i want to test `ping-pong` pallet which was built in proof chain and asset chain.when i call start function in proof parachain, the mssage was send successfully, but in asset chain it shows xcmpQueue.fail which shows XcmV2TraitsError -&gt; FailedToDecode" CreationDate="2022-03-19T16:42:15.127" UserId="489" />
  <row Id="671" PostId="906" Score="0" Text="yep! If i go under &quot;Manage Website Access&quot; app.subsocial.network is enabled" CreationDate="2022-03-19T17:49:52.670" UserId="1761" />
  <row Id="672" PostId="899" Score="0" Text="It's the latter, testing an RPC client that will connect to the new runtime. I think `polkadot-launch` is what I'm after, I'll give it a shot, thanks!" CreationDate="2022-03-19T18:08:05.227" UserId="145" />
  <row Id="673" PostId="903" Score="0" Text="I could not use it directly because of conflicts in Cargo.toml, but I looked through the source code and found out that I need to encode the source bytes. I've changed `let storage_key_twox = sp_core::twox_64(storage_key.as_bytes());` to `let storage_key_twox = sp_core::twox_64(storage_key.as_bytes().encode().as_ref());` and I got the output `61cb07b62bdbaa99`. That's a breakthrough ) The only difference is that the Storage Key contains `80` right after `61cb07b62bdbaa99`. Still trying to understand the nature of it." CreationDate="2022-03-19T18:42:07.247" UserId="1760" />
  <row Id="674" PostId="885" Score="0" Text="@Crystalin out of curiosity, what external repositories does Moonbeam rely on? Just looking for guidance on the tooling as well. Are you relying on tests to catch breaking changes from external deps?" CreationDate="2022-03-19T20:48:23.670" UserId="1745" />
  <row Id="675" PostId="714" Score="0" Text="why is the post titled and tagged with frontier? that's a bit misleading, since frontier is an evm compatibility layer, but your execution environment is wasm" CreationDate="2022-03-19T22:25:32.103" UserId="494" />
  <row Id="676" PostId="714" Score="0" Text="it might also be useful to post which node-template you are using to deploy this contract, with specific references to versions" CreationDate="2022-03-19T22:28:17.850" UserId="494" />
  <row Id="677" PostId="714" Score="0" Text="oh, I see you're using substrate-contracts-node, sorry..." CreationDate="2022-03-19T22:33:03.890" UserId="494" />
  <row Id="678" PostId="897" Score="0" Text="Thank you for your help. That is fantastic." CreationDate="2022-03-19T22:44:00.103" UserId="570" />
  <row Id="679" PostId="910" Score="0" Text="Yeah, that would be neat, with standardized error handling for operations that exceed the limit. Managing it outside may lead to errors that allow to exceed it" CreationDate="2022-03-19T23:05:43.853" UserId="587" />
  <row Id="680" PostId="852" Score="0" Text="If you have an example with lower-level XCM primitives it would be interesting to see - feel free to create another answer." CreationDate="2022-03-20T00:35:20.617" UserId="128" />
  <row Id="681" PostId="885" Score="0" Text="@Crystalin would be very happy to see your version of an answer to this question, given that you are probably solving some problems that we at Parity do not need to solve." CreationDate="2022-03-20T00:43:28.903" UserId="28" />
  <row Id="682" PostId="903" Score="0" Text="You should really avoid re-writing these functions on your own if you can. There should really be no issues to import the actual functions provided by `frame_support`, and if there is, you should ask that as a question we can answer fro you in another post." CreationDate="2022-03-20T01:32:06.610" UserId="28" />
  <row Id="683" PostId="915" Score="0" Text="That's amazing! Thank you so much for your help" CreationDate="2022-03-20T02:58:27.483" UserId="1760" />
  <row Id="684" PostId="903" Score="0" Text="I've tried every library out there I could find. Unfortunately, each time I faced some issues and wasted so much time to understand how those libraries work. That's why I decided to make this move and understand how to generate these requests on my own." CreationDate="2022-03-20T03:09:03.317" UserId="1760" />
  <row Id="686" PostId="902" Score="1" Text="the [call](https://github.com/VegeBun-csj/Proof-Chain/blob/c969bb90f6538d425e89ed594b87f21264188eae/pallets/ping/src/lib.rs#L97) in source chain is not the call in target chain, as I mentioned ,you need to encode the dest call correctly or you need to introduce target runtime into the source chain for that" CreationDate="2022-03-20T04:13:56.053" UserId="523" />
  <row Id="689" PostId="912" Score="0" Text="The integration test suite they used are running substrate v3, and the above test case passed without any problem." CreationDate="2022-03-20T04:50:24.993" UserId="316" />
  <row Id="690" PostId="917" Score="0" Text="Yes, its gives an type error. One has to unwrap it `T::Currency::deposit_into_existing(&amp;to_reward, reward).ok().unwrap();` to get r as PositiveImbalance type" CreationDate="2022-03-20T07:54:22.747" UserId="213" />
  <row Id="691" PostId="867" Score="0" Text="@ShawnTabrizi: Thank you very much. This is exactly the answer I needed. It is included in frame_system. I did not find such a clear answer in any documentation. Will check the github Link for the timestamp pallet. Great!" CreationDate="2022-03-20T10:35:20.963" UserId="581" />
  <row Id="692" PostId="895" Score="0" Text="@sjc The link you provided is not enough, you should at least tell us what your XCM configuration is, what the steps that you've taken are, and full details about the error that was shown, including its parameters." CreationDate="2022-03-20T10:39:22.437" UserId="104" />
  <row Id="694" PostId="895" Score="0" Text="Please don't use comments to add details to your question. [edit] the question to include the needed information so that it's visible without needing to review the comments." CreationDate="2022-03-20T13:56:52.927" UserId="59" />
  <row Id="695" PostId="852" Score="0" Text="@Ron It is *highly* inadvisable to craft raw XCM instructions on your own and send/execute it, due to the amount of complexity involved with XCM in general, and will very easily result in a loss of funds if even one parametric detail was overlooked or configured wrongly." CreationDate="2022-03-20T14:42:45.097" UserId="104" />
  <row Id="696" PostId="917" Score="0" Text="thanks, updated" CreationDate="2022-03-20T15:20:04.717" UserId="28" />
  <row Id="698" PostId="922" Score="0" Text="Can you post a minimal example of code that is failing, and the exact error that you are seeing?" CreationDate="2022-03-20T15:55:53.203" UserId="28" />
  <row Id="699" PostId="852" Score="0" Text="did not test it yet, should be something like [this](https://github.com/open-web3-stack/open-runtime-module-library/blob/9e041dc9d213f843b18b3008f32f3acabb287dcb/xtokens/src/lib.rs#L634-L644) and worthy to note that the fee asset in `buy_execution` should be the canonical repensentation for KSM in relaychain as `parents:0` but not `parent:1` in parachain. agree with what @KeithYeung mentioned here, just want to add some more details for what is hidden under the hood" CreationDate="2022-03-20T16:56:36.340" UserId="523" />
  <row Id="700" PostId="929" Score="0" Text="Please also post the code. Are you trying to pass a `Call` as argument to an extrinsic?" CreationDate="2022-03-20T17:35:36.180" UserId="94" />
  <row Id="701" PostId="877" Score="0" Text="Could I increase this count? Is there some max peers count?" CreationDate="2022-03-20T20:10:18.097" UserId="433" />
  <row Id="702" PostId="929" Score="2" Text="@Ayush Mishra, please don't post errors without posting code. Do you expect us to be mind readers on how an error is caused?" CreationDate="2022-03-20T22:24:41.720" UserId="28" />
  <row Id="703" PostId="912" Score="0" Text="can you share a link where the substrate version is defined on the solang repository?" CreationDate="2022-03-20T22:27:34.810" UserId="494" />
  <row Id="704" PostId="929" Score="0" Text="@ShawnTabrizi sorry I should have posted the code. I will take care of it next time. Thanks for your answer. It really helps." CreationDate="2022-03-21T02:13:05.327" UserId="140" />
  <row Id="705" PostId="923" Score="0" Text="I did increment the spec_version. As soon as I added `--execution wasm`, it worked. :)" CreationDate="2022-03-21T02:24:08.413" UserId="1768" />
  <row Id="706" PostId="845" Score="1" Text="yes, I think the tutorial should be updated to include a note that `compact.compressed.wasm` should be used in the parachain environment." CreationDate="2022-03-21T02:40:20.230" UserId="283" />
  <row Id="707" PostId="912" Score="1" Text="Here's the link in their test suite: https://github.com/hyperledger-labs/solang/blob/8bdda4ba440a2ac1ef6fbabd0e89398219be0a6d/.github/workflows/test.yml#L237" CreationDate="2022-03-21T04:20:59.593" UserId="316" />
  <row Id="708" PostId="876" Score="0" Text="thanks! My machine configuration is definitely sufficient (4C16G), I think it is because the relay chain has not been upgraded, how does the administrator on the relay chain upgrade the specified parallel chain?" CreationDate="2022-03-21T06:19:03.463" UserId="299" />
  <row Id="709" PostId="852" Score="0" Text="@Ron No, there is no &quot;canonical representation&quot; of a `MultiLocation`. Every `MultiLocation` is relative and must be understood under the context of the interpreting consensus system, i.e. if I am on Karura, then the `MultiLocation` of `junctions: Here, parents: 1` represents the location of Kusama, whereas if I'm in Kusama, `Here` is enough to represent KSM." CreationDate="2022-03-21T07:05:54.523" UserId="104" />
  <row Id="710" PostId="935" Score="1" Text="Boxing the call is not an optional thing. You are required to box it, otherwise you would have a self recursive enum that the compiler can not get the size of. You would get a compiler error." CreationDate="2022-03-21T07:11:43.213" UserId="73" />
  <row Id="711" PostId="929" Score="0" Text="@AyushMishra you can stil edit the question to include the problematic code in order to help new readers." CreationDate="2022-03-21T08:48:44.693" UserId="139" />
  <row Id="712" PostId="945" Score="0" Text="I'm running the vanilla Rococo Local Relaychain and this appeared to be almost as soon as the upgrade transaction was in the block - however I have been doing many over the course of testing/fixing - is there a limit or can I check/purge a pending upgrade?" CreationDate="2022-03-21T11:16:43.423" UserId="87" />
  <row Id="713" PostId="908" Score="0" Text="It works! Thank you!" CreationDate="2022-03-21T11:24:08.000" UserId="209" />
  <row Id="714" PostId="945" Score="1" Text="There is currently no automatic way to stop a pending upgrade. You would need to modify the storage manually on the relay chain and the parachain." CreationDate="2022-03-21T11:39:00.717" UserId="73" />
  <row Id="716" PostId="589" Score="0" Text="I am doing something similar in Elixir but I just use a [Python script](https://github.com/polkascan/py-substrate-interface) that sends the events to a local `gen_tcp` server. It is a bit hacky but much easier to develop than using NIFs." CreationDate="2022-03-21T11:43:55.473" UserId="94" />
  <row Id="717" PostId="922" Score="0" Text="I did an edit of the initial post. Hope this helps to clarify the nature of the problem..." CreationDate="2022-03-21T12:11:16.420" UserId="309" />
  <row Id="718" PostId="947" Score="0" Text="Is there a specific pallet you're interacting with?" CreationDate="2022-03-21T12:42:48.830" UserId="380" />
  <row Id="719" PostId="934" Score="0" Text="By saying &quot;That also means it is possible to register a parachain on a different relaychain, which is useful for testing purpose when the relaychain died due to the epoch issue. Then you can restart the relaychain, register the current head &amp; wasm of the parachain, update parachain to use new relaychain,and the parachain will continue to run with a new relaychain without loosing state.&quot;, do you mean the following example work ?&#xA;&#xA;Firstly, i can register a para-chain on local rococo, and then smoothly move to kusama ?" CreationDate="2022-03-21T13:05:06.113" UserId="393" />
  <row Id="720" PostId="947" Score="0" Text="Where are you seeing the dispatch error in this format? It is def something you can automate with Polkadot JS API, but maybe the web interface has not done that yet. Ultimately, you just need to map those indices to the metadata." CreationDate="2022-03-21T13:43:48.423" UserId="28" />
  <row Id="721" PostId="947" Score="0" Text="@forgetso No, since I'm dealing with a couple of pallets, I'm asking generally" CreationDate="2022-03-21T15:13:27.233" UserId="3" />
  <row Id="722" PostId="947" Score="0" Text="@ShawnTabrizi Oh, my bad. That's a custom format that I use in a homebrew callback logger." CreationDate="2022-03-21T15:14:33.557" UserId="3" />
  <row Id="723" PostId="960" Score="1" Text="Please be a bit more specific and ask a more singular question. Open ended ones are not very valuable overall typically, https://substrate.stackexchange.com/help/how-to-ask has some good pointers " CreationDate="2022-03-21T15:35:53.260" UserId="34" />
  <row Id="725" PostId="958" Score="2" Text="You want to log from the extrinsic that your benchmark calls or from the `benchmarks!` closure?" CreationDate="2022-03-21T15:47:35.017" UserId="94" />
  <row Id="728" PostId="958" Score="0" Text="Please add more details and context - what are you trying to do and why? This can help us help you :)" CreationDate="2022-03-21T15:54:30.100" UserId="34" />
  <row Id="729" PostId="401" Score="0" Text="Could you please edit your post to ask a more specific question?" CreationDate="2022-03-21T16:13:57.293" UserId="172" />
  <row Id="730" PostId="964" Score="0" Text="Would be technically possible to adapt the onboarding time for kusama-local spec? &#xA;If so I 'll create an issue in Github.&#xA;I think is important to make rely-chain testable enough for parachains to be able to deliver quality in the integrations.&#xA;And thanks for the answer @dan!" CreationDate="2022-03-21T16:26:23.770" UserId="357" />
  <row Id="731" PostId="790" Score="1" Text="Agree, you should probably use Anonymous Proxy for this, just be careful not to restrict the proxy type (it should be `Any`) or else you will not be able to transfer the tokens." CreationDate="2022-03-21T16:37:24.840" UserId="620" />
  <row Id="732" PostId="958" Score="0" Text="added code sample" CreationDate="2022-03-21T16:47:47.740" UserId="68" />
  <row Id="733" PostId="434" Score="0" Text="@navigaid: Frontier is the Ethereum compatibility toolkit. To have EVM compatibility alone, you don't need to make your chain Ethereum compatible. You could just use `pallet-evm`." CreationDate="2022-03-21T16:54:09.837" UserId="172" />
  <row Id="734" PostId="964" Score="0" Text="Thanks for the thanks! An upvote would be nice too to signal this " CreationDate="2022-03-21T17:28:44.110" UserId="34" />
  <row Id="735" PostId="964" Score="0" Text="I think this has been suggested before... someone was maintaining a fork for the emulator that &quot;hacked&quot; the block/session times to allow for various changes in reconfiguration to accelerate things, but then it's not a proper test of the runtime that is on Kusama properly.... but I agree opening an issue/PR that suggests `local` only chainspecs with a different onboarding time may be useful. Let's see what the maintainers think?" CreationDate="2022-03-21T17:31:59.833" UserId="34" />
  <row Id="737" PostId="908" Score="0" Text="great! you're welcome!" CreationDate="2022-03-21T17:37:06.500" UserId="145" />
  <row Id="739" PostId="906" Score="1" Text="Hey @paradox-paranodes-io , good to see you here! I think your answer is more of a clarifying Q/statement that should be in the comments to the post, not the answer directly " CreationDate="2022-03-21T17:40:55.713" UserId="34" />
  <row Id="740" PostId="969" Score="1" Text="but, just run `cargo update` also have this erorr." CreationDate="2022-03-21T17:46:27.057" UserId="612" />
  <row Id="741" PostId="969" Score="0" Text="file an issue, after inspecting your lock file for conflicting versions of things and why they are present." CreationDate="2022-03-21T17:47:58.903" UserId="34" />
  <row Id="742" PostId="920" Score="0" Text="Makes sense. Although, I will need to access a specific `ContextId` for an `AccountId` frequently. I suppose in your model I would have to iterate over the vector to find that specific `ContextId`, no?" CreationDate="2022-03-21T18:19:40.030" UserId="587" />
  <row Id="743" PostId="916" Score="0" Text="I understand, I was almost thinking about building such an abstraction. Makes sense what you said about saving checks for specific operations. Will take that into account. Btw, is iterating over `ContextId`s using `iter_prefix` too expensive?" CreationDate="2022-03-21T18:21:52.060" UserId="587" />
  <row Id="744" PostId="916" Score="1" Text="`iter_prefix` will cause N storage reads, and practically has no upper bound to what N would be. This is extremely expensive, and if you have an operation like this, probably you are better off using a `Vec`." CreationDate="2022-03-21T18:50:44.253" UserId="28" />
  <row Id="745" PostId="946" Score="1" Text="Please provide your exact code when you are writing the data to the offchain storage, and an exact screenshot of how you are trying to read it it via the RPC. I can already tell you that you are using the `set` RPC here, not `get`, which is wrong." CreationDate="2022-03-21T19:45:43.773" UserId="167" />
  <row Id="746" PostId="920" Score="1" Text="Yes, that's true. You will have to iterate through the values Vec. One way of doing that is used [here](https://github.com/chainify/pallet-nolik/blob/main/src/lib.rs#L281)." CreationDate="2022-03-21T20:24:33.010" UserId="1760" />
  <row Id="747" PostId="934" Score="0" Text="You need to ask every single parachain node to switch the relay chain from rococo to Kusama but yes that will work." CreationDate="2022-03-21T20:52:03.287" UserId="359" />
  <row Id="749" PostId="972" Score="0" Text="NB: `Ok(ev)` has a typo: `Ok(ev) =&gt; {` TIA" CreationDate="2022-03-21T22:03:57.497" UserId="205" />
  <row Id="750" PostId="975" Score="1" Text="Perhaps related to https://github.com/paritytech/subxt/issues/484 in that you might like subxt when it's able to do offline tx." CreationDate="2022-03-21T22:26:41.560" UserId="34" />
  <row Id="752" PostId="976" Score="0" Text="Can you share more of the code, for example your return statement?" CreationDate="2022-03-21T22:50:30.897" UserId="28" />
  <row Id="753" PostId="976" Score="0" Text="Return is `Ok(())`. The function does nothing else." CreationDate="2022-03-21T22:52:30.007" UserId="1804" />
  <row Id="754" PostId="976" Score="0" Text="Can you share the whole extrinsic then? I wouldn't expect a problem here either given the information you have shared so far." CreationDate="2022-03-21T22:53:46.023" UserId="28" />
  <row Id="755" PostId="976" Score="0" Text="Added some more code." CreationDate="2022-03-21T22:58:48.737" UserId="1804" />
  <row Id="756" PostId="976" Score="0" Text="It is part of a project that was using FRAME v1 but I have updated this particular pallet to use v2 attribute macros. Could this be relevant?" CreationDate="2022-03-21T23:02:57.460" UserId="1804" />
  <row Id="757" PostId="976" Score="2" Text="Its hard do say, I am not sure the problem here. If you did this in a brand new project on the latest version of Substrate, you would not have this issue. The best solution is probably to just listen to the compiler and return `Ok(().into())`" CreationDate="2022-03-21T23:32:40.780" UserId="28" />
  <row Id="758" PostId="946" Score="1" Text="@kianenigma the way I read the question is the inverse of what you have. I think Pawan is saying they are storing the data through this `localStorageSet` endpoint as displayed, and now not getting anything back when trying `OffchainStorage::get()` in code. Not sure if this changes your answer." CreationDate="2022-03-21T23:37:48.280" UserId="181" />
  <row Id="759" PostId="976" Score="1" Text="Could be that you are just using an older version of Substrate here. I think at one point, we didn't have logic in the macros to support both return types." CreationDate="2022-03-21T23:39:43.340" UserId="28" />
  <row Id="760" PostId="979" Score="0" Text="O_o will try! Thanks @Bryan!" CreationDate="2022-03-22T07:07:18.417" UserId="357" />
  <row Id="761" PostId="992" Score="0" Text="P.S. I'm not sure If I've done everything correctly in the script but the result seems to make sense." CreationDate="2022-03-22T07:17:21.593" UserId="1806" />
  <row Id="762" PostId="748" Score="2" Text="i usually do `cargo tree` to check multiple versions of substrate injected and which package is culprit. most likely you will need to adjust your dependencies and possibly even patch some in root Cargo.lock" CreationDate="2022-03-22T08:46:32.943" UserId="1814" />
  <row Id="764" PostId="955" Score="0" Text="Wow. Thank you! But now I got this error: EncodeLike&lt;u32&gt; is not satisfied ... Please help! Thanks https://substrate.stackexchange.com/questions/998/trait-encodelikeu32-is-not-implemented-for-t-as-palletconfigcurrenc" CreationDate="2022-03-22T09:18:12.187" UserId="1789" />
  <row Id="765" PostId="999" Score="0" Text="Wow. Thank you so much!" CreationDate="2022-03-22T09:30:00.460" UserId="1789" />
  <row Id="766" PostId="966" Score="0" Text="Just to clarify; when you say &quot;section and method&quot; do you mean you'd like to store the pallet index/name and the call index/name? And for (2) do you mean you'd like to know which position the event is in relative to the other events, or do you want to know the index of the extrinsic that the event relates to (if any)?" CreationDate="2022-03-22T09:56:17.373" UserId="474" />
  <row Id="767" PostId="950" Score="0" Text="Interesting points. I have a few questions. 1. How can a nominator &quot;break&quot; their account into several nominator accounts? 2. If I set MaxNominations = 1, that becomes you say equivalent to a DPoS. What is DPos and how is it different from nPoS?" CreationDate="2022-03-22T10:57:42.917" UserId="272" />
  <row Id="768" PostId="995" Score="1" Text="Ah yes the error makes sense now: use type `ConstU32&lt;100&gt;` rather than the constant value `100`." CreationDate="2022-03-22T11:13:15.997" UserId="85" />
  <row Id="770" PostId="966" Score="0" Text="@jsdw thanks for the prompt response! Regarding the section and method, your understanding is correct. I've double-checked on the terminology on [Polkadot Apps](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-rpc.dwellir.com#/chainstate) and it seems that what I referred to as **section** should be called a **module** instead.." CreationDate="2022-03-22T11:21:10.173" UserId="634" />
  <row Id="771" PostId="966" Score="0" Text="As for the item 2, I am looking to persist the position of the event relative to the other ones. Hope that clarifies the ask of mine." CreationDate="2022-03-22T11:22:26.963" UserId="634" />
  <row Id="772" PostId="963" Score="0" Text="I would add that you need a very firm grasp on rust traits and generics in particular." CreationDate="2022-03-22T11:26:40.770" UserId="85" />
  <row Id="773" PostId="996" Score="0" Text="@Squirrel Not really, with the help of that, I was able to make necessary changes. But I need to upgrade my consensus from PoA to PoS. I tried forkless runtime upgrade and binary upgrade as well but it is causing the chain to break." CreationDate="2022-03-22T11:30:30.517" UserId="403" />
  <row Id="774" PostId="871" Score="0" Text="Each pallet should have documentation for it generated via rustdoc. Please do suggest PRs to improve the pallet docs and point out bits that are unclear and we can improve them in the PR." CreationDate="2022-03-22T11:34:57.297" UserId="85" />
  <row Id="775" PostId="1002" Score="2" Text="I updated my reply [here](https://substrate.stackexchange.com/questions/436/configure-a-substrate-network-with-injected-block-history/439#439), approach 3. and 4. should work for you." CreationDate="2022-03-22T11:38:15.613" UserId="94" />
  <row Id="776" PostId="1001" Score="2" Text="Are you sure you have pointed the polkadot-js ui at the parachain port rather than the relay chain? 8844 would be the port if you're following this guide: https://docs.substrate.io/tutorials/v3/cumulus/connect-parachain/" CreationDate="2022-03-22T11:52:46.667" UserId="85" />
  <row Id="777" PostId="978" Score="1" Text="Thank you very much for your help. Thanks to you, I've figured out how to fix the first byte. The signature is still not valid though (both with tuple and Vec)." CreationDate="2022-03-22T12:16:57.193" UserId="1760" />
  <row Id="778" PostId="855" Score="0" Text="I faced a similar issue but I do not remember if it was the one you mention. I added `import &quot;@polkadot/api-augment&quot;` where the API was used but seems irrelevant to `window not defined`. Can you please provide some more details or maybe a repo that I can have a look at the code?" CreationDate="2022-03-22T12:33:57.877" UserId="629" />
  <row Id="779" PostId="978" Score="1" Text="No problem! There's one more issue with your code that differs from the Parity example, added an edit to the end of the answer, might fix it. Good luck @AmirBoziev." CreationDate="2022-03-22T12:58:05.600" UserId="145" />
  <row Id="780" PostId="1000" Score="1" Text="You stable toolchain version would be of interest here. The part you posted will be compiled using your stable compiler as it is not part of the runtime. Unless you aren't overriding it manually." CreationDate="2022-03-22T13:11:43.787" UserId="16" />
  <row Id="781" PostId="996" Score="2" Text="Could you describe the error that you are getting?" CreationDate="2022-03-22T13:15:56.980" UserId="419" />
  <row Id="782" PostId="859" Score="0" Text="AFAIU, that is fine for upgrading a substrate chain, but as far as upgrading a parachain, you want to use the methods defined here: https://docs.substrate.io/how-to-guides/v3/parachains/runtime-upgrades" CreationDate="2022-03-22T13:45:03.103" UserId="29" />
  <row Id="783" PostId="1002" Score="0" Text="Thanks. To clarify, will 4. work with the default substrate node as well? I'm not running a polkadot node so wouldn't expect substrate to look for a chain in `~/.local/share/polkadot/chains/`." CreationDate="2022-03-22T13:48:09.043" UserId="380" />
  <row Id="784" PostId="1002" Score="1" Text="Added it, thanks. You would need to pass in the `--base-path` flag, the it should work. So for example `substrate --dev --base-path /tmp/my_substrate`." CreationDate="2022-03-22T14:06:02.800" UserId="94" />
  <row Id="785" PostId="950" Score="1" Text="1) They unbond some funds, transfer them to another account and then nominate.&#xA;2) DPoS is a loaded term, but typically it means an account can delegate some staked funds to one validator and validators are rewarded based on their percentage of total stake. I found this, among other resources, when googling: https://en.bitcoinwiki.org/wiki/DPoS" CreationDate="2022-03-22T14:06:17.360" UserId="223" />
  <row Id="786" PostId="1012" Score="1" Text="I can't accept this answer as subsquid is a completely different project. Yes, it does similar job of indexing the Substrate data into the Postgres db (and provides a graphQL API on top), but my question was specifically about substrate-archive. Subsquid uses its own engine called Hydra, while substrate-archive uses a direct access to RocksDB." CreationDate="2022-03-22T14:13:43.083" UserId="634" />
  <row Id="787" PostId="961" Score="0" Text="Best place to start is the [benchmarking docs](https://docs.substrate.io/v3/runtime/benchmarking/) to learn more about what is going on. The last section has further readings an videos to review this as well that are very valuable!" CreationDate="2022-03-22T14:23:22.113" UserId="34" />
  <row Id="789" PostId="1014" Score="1" Text="Note that we are looking into updating the minimum hardware in the near future, so keep your eyes and ears open." CreationDate="2022-03-22T14:48:45.150" UserId="28" />
  <row Id="790" PostId="1001" Score="1" Text="OMG yes indeed I was using the embedded relay chain node ws port ! Not the collator ws port,thanks !" CreationDate="2022-03-22T15:56:34.613" UserId="501" />
  <row Id="791" PostId="978" Score="0" Text="Thanks, appreciate it @kukabi" CreationDate="2022-03-22T16:10:00.113" UserId="1760" />
  <row Id="792" PostId="438" Score="0" Text="Am I right in thinking you can run `import-blocks` while the node is running? I have substrate running in a docker container so it would be nice if I could simply issue this command to the container and have it continue to run, rather than restarting the container." CreationDate="2022-03-22T16:26:22.697" UserId="380" />
  <row Id="793" PostId="438" Score="1" Text="No, you can't do that, any process needs to have exclusive access to the database." CreationDate="2022-03-22T16:28:24.690" UserId="452" />
  <row Id="794" PostId="1022" Score="0" Text="So using the `pallet::getter` macro is fully optional?" CreationDate="2022-03-22T16:45:40.083" UserId="94" />
  <row Id="795" PostId="1022" Score="1" Text="yes. it is exactly equivalent to writing the function I wrote above inside `imp&lt;T: Config&gt; for Pallet&lt;T&gt;`" CreationDate="2022-03-22T16:53:09.183" UserId="28" />
  <row Id="796" PostId="975" Score="0" Text="Yes, that is the reason why I still do not use it. I was also confused about the need to manually download node metadata first in order to use lib." CreationDate="2022-03-22T17:36:52.500" UserId="1760" />
  <row Id="797" PostId="1015" Score="0" Text="It's a modification of the node-template, yes." CreationDate="2022-03-22T17:49:30.293" UserId="139" />
  <row Id="798" PostId="1015" Score="0" Text="Could you shed light on the question I linked, it is related ." CreationDate="2022-03-22T17:49:54.373" UserId="139" />
  <row Id="799" PostId="749" Score="0" Text="We [released ink! 3.0 last week](https://github.com/paritytech/ink/releases/tag/v3.0.0), so you should definitely update to that.&#xA;&#xA;As for the duplicate packages, an easy &quot;fix&quot; in this case can also be to remove your `Cargo.lock` file and let Cargo sort everything out from scratch." CreationDate="2022-03-22T18:40:19.097" UserId="1824" />
  <row Id="800" PostId="773" Score="0" Text="please find my metadata here : https://textdoc.co/3G68nuxD9sd7VfAj" CreationDate="2022-03-22T21:14:56.677" UserId="632" />
  <row Id="801" PostId="1015" Score="0" Text="I don't know why the election benchmarks are not working. Only from Babe and Grandpa I know they don't." CreationDate="2022-03-22T21:41:43.040" UserId="94" />
  <row Id="803" PostId="922" Score="1" Text="@ShawnTabrizi, added a minimal example, inspired by one of your previous answer…." CreationDate="2022-03-23T00:56:01.613" UserId="309" />
  <row Id="804" PostId="922" Score="0" Text="I implemented your code, and made it &quot;compile&quot;, but i dont understand what your problem is. Can you please update the code above to make the error appear again, but make sure that you are doing other things which are REAL rust?" CreationDate="2022-03-23T01:45:17.923" UserId="28" />
  <row Id="805" PostId="987" Score="0" Text="Can you elaborate on your last sentence, I didn't understand. Are there some specific public keys which should be chosen as ones that we know no one can have the private key for? Or is it only probabilistic?" CreationDate="2022-03-23T01:48:51.840" UserId="28" />
  <row Id="806" PostId="922" Score="0" Text="I have a few questions concerning your implementation: you are doing  ‘use crate::{pallet1, pallet2};’ in pallet3, but pallet2 is already using pallet1 right? (pub use crate::pallet1; in pallet2 should work??)" CreationDate="2022-03-23T01:59:00.733" UserId="309" />
  <row Id="807" PostId="922" Score="0" Text="@ShawnTabrizi, now you should see the error." CreationDate="2022-03-23T03:03:02.980" UserId="309" />
  <row Id="808" PostId="996" Score="0" Text="@GautamDhameja I have updated the question with images of error and more description. Hope that helps." CreationDate="2022-03-23T04:33:35.733" UserId="403" />
  <row Id="809" PostId="987" Score="3" Text="I think Jeff means that you can hash arbitrary statements to points on the curve (you usually need special algorithms for hash-to-curve as opposed to hash-to-bytes for security reasons). By doing so, you create public keys, which are valid accounts that anybody can verify but nobody knows the private key for. For burning, you could just hash &quot;burn&quot; to a point in the group instead of burning to the 0 address." CreationDate="2022-03-23T04:35:06.173" UserId="283" />
  <row Id="810" PostId="997" Score="1" Text="Polkadot's parachains protocol doesn't handle large blocks very well, but that's not necessarily the cause here. Too non-specific to diagnose, but hopefully will be addressed with the advent of 'Asynchronous Backing': https://github.com/paritytech/polkadot/issues/3779" CreationDate="2022-03-23T04:48:37.603" UserId="283" />
  <row Id="811" PostId="1036" Score="0" Text="I believe the extrinsic was executed successfully. The &quot;incomplete execution&quot; error seems like a misleading message.&#xA;&#xA;Can you check in storage that the proxy account has been removed?" CreationDate="2022-03-23T04:53:40.613" UserId="28" />
  <row Id="812" PostId="1036" Score="0" Text="The only error that can be returned by `killAnonymous` is `NoPermission`, otherwise, it cannot fail." CreationDate="2022-03-23T04:54:16.557" UserId="28" />
  <row Id="813" PostId="1036" Score="2" Text="Yeah it's not deleted from the storage" CreationDate="2022-03-23T04:57:29.097" UserId="377" />
  <row Id="814" PostId="1036" Score="0" Text="When you generated the anonymous account, did you give yourself full permissions? Otherwise, you won't be able to delete the account." CreationDate="2022-03-23T05:01:49.933" UserId="28" />
  <row Id="815" PostId="1027" Score="1" Text="Not sure if you understand IPFS correctly. First, IPFS is a content distribution network rather than a storage. It allows you to discover some content stored in some node in the network. So to my understanding there's no direct way to &quot;save data&quot; to IPFS. Second, contracts can only handle very limited size of data. So there's very small chance you need to read or write to a file within a contract. Generally it's more realistic to just save a IPFS link in your contract (e.g. NFT images). It implies the user need to pin a file on IPFS first, and save the link to the contract later." CreationDate="2022-03-23T05:02:23.167" UserId="544" />
  <row Id="816" PostId="1036" Score="2" Text="yeah, I created one proxy with Any and the other with Non-Transfer Proxy Type. and deleting the Non-transfer with Any One." CreationDate="2022-03-23T05:06:10.917" UserId="377" />
  <row Id="817" PostId="1036" Score="0" Text="I don't think I fully understand. Can add to your question how I can reproduce the issue locally? And maybe also what you are trying to do..." CreationDate="2022-03-23T05:09:06.620" UserId="28" />
  <row Id="818" PostId="1035" Score="1" Text="Very insightful. Thank you!" CreationDate="2022-03-23T05:10:36.210" UserId="566" />
  <row Id="819" PostId="1039" Score="1" Text="You can query the average block time in BABE through the Runtime Constants." CreationDate="2022-03-23T05:34:46.167" UserId="28" />
  <row Id="820" PostId="1027" Score="2" Text="(cont.) If you want to make sure the data indeed exists and is stored somewhere, you may need a kind of &quot;proof of storage&quot;, the evidence that your data is archived on some decentralized storage. This can be done by a combination of merkle proof and the storage root on a permanent storage chain (i.e. Arweave). Btw, proof of storage is not a commonly used term, at least the one used by Filecoin is very mesleading because it only prove a specific miner stores some data, not the commitment of the data on the blockchain." CreationDate="2022-03-23T05:51:00.947" UserId="544" />
  <row Id="822" PostId="1032" Score="0" Text="In this end, errors like this means some crates are not being correctly imported into the runtime with the appropriate feature flags. You will need to hunt to see where this feature is being enabled, when you don't want it to be." CreationDate="2022-03-23T05:56:46.350" UserId="28" />
  <row Id="823" PostId="951" Score="1" Text="Please note that it's strongly recommended to **NOT** read the event records in the runtime. Events can grow very large (think about there were &gt;20mb blocks on Kusama), and the read operation is very expensive. So when you read the event, you essentially read all the events from the storage at once, and iterate over them one by one. Instead, you can create your own vector storage item to track the event you are interested." CreationDate="2022-03-23T06:00:13.287" UserId="544" />
  <row Id="824" PostId="1039" Score="0" Text="Just for complete: For parachains, the future block time will be harder to estimate. For example, the expected block time for parachains on Kusama is 12s, but the actual average block time is ~20s. This heavily depends on the performance of the relay chain." CreationDate="2022-03-23T06:19:50.733" UserId="544" />
  <row Id="825" PostId="1037" Score="0" Text="I have been wondering what the `Member` trait mean for a long time..." CreationDate="2022-03-23T06:28:01.243" UserId="544" />
  <row Id="826" PostId="1035" Score="0" Text="Is it possible to change it by a runtime upgrade?" CreationDate="2022-03-23T06:28:25.040" UserId="544" />
  <row Id="827" PostId="1033" Score="0" Text="Have you tried to upgrade your rust toolchain? You can do that by `rustup update` and `rustup update nightly`" CreationDate="2022-03-23T06:30:31.680" UserId="544" />
  <row Id="828" PostId="1022" Score="1" Text="Yes, this is also the practice adopted by Phala Network" CreationDate="2022-03-23T06:34:21.773" UserId="544" />
  <row Id="829" PostId="439" Score="1" Text="If you go with the `export-state` approach, you will probably want to patch the genesis config to remove some storage (e.g. change the root account, remove the session history, etc). You can do that with a simple js tool we have created: https://github.com/Phala-Network/phala-blockchain/blob/master/scripts/js/src/bin/chainSpecUtils.js" CreationDate="2022-03-23T06:36:57.047" UserId="544" />
  <row Id="830" PostId="1009" Score="0" Text="I believe Sacha is asking how to build a feed oracle rather than how to connect to Chainlink" CreationDate="2022-03-23T06:53:04.117" UserId="544" />
  <row Id="831" PostId="997" Score="0" Text="Did you make very large blocks? If not, you probably need more powerful servers or more stable network between the validators." CreationDate="2022-03-23T06:58:44.930" UserId="544" />
  <row Id="832" PostId="790" Score="0" Text="Yup, after creating the anonymous account and add some more account as controllers, you can safely remove the creator from the anonymous proxy account." CreationDate="2022-03-23T07:32:16.027" UserId="544" />
  <row Id="833" PostId="974" Score="0" Text="Yes. We used to create a script to remove some problematic transactions from the collator txpool periodically" CreationDate="2022-03-23T07:33:52.857" UserId="544" />
  <row Id="834" PostId="1029" Score="0" Text="Many thanks for all the answers. We are currently at research stage of the best architecture and explore all options available to us. Do you believe fat contracts as described here https://medium.com/phala-network/introduction-of-fat-contract-dea79ffcf0dc  &quot;Access Internet services&quot; is a viable solution? e.g. our sc stores an IPFS link that points to stored 1000 hourly close KSM and DOT prices. Do you see  fat contracts as an efficient solution of our sc requesting the data to read and update or is there something critical/limitations we are missing out. Besides Phala we also research Crust." CreationDate="2022-03-23T07:44:33.483" UserId="1811" />
  <row Id="835" PostId="1015" Score="0" Text="Okay I believe that we have to write a struct `WeightInfo` in those files and we are good to go right?" CreationDate="2022-03-23T08:34:58.330" UserId="139" />
  <row Id="836" PostId="1029" Score="2" Text="Phala certainly looks like a good fit for achieving internet communication to the internet. They are working on support for `ink!` so you could currently write your contract in `ink!` and it would be compatible with other parachains and also Phala in future." CreationDate="2022-03-23T10:00:51.600" UserId="380" />
  <row Id="837" PostId="1001" Score="1" Text="Glad I could help." CreationDate="2022-03-23T10:05:48.880" UserId="85" />
  <row Id="838" PostId="1054" Score="0" Text="can you show a chunk of code or link to it?" CreationDate="2022-03-23T10:07:38.280" UserId="85" />
  <row Id="839" PostId="1032" Score="1" Text="@ShawnTabrizi, thanks Shawn. That works. Much appreciated. Should have checked existing questions before I ask a new one. Thanks again." CreationDate="2022-03-23T10:26:36.797" UserId="240" />
  <row Id="840" PostId="1015" Score="1" Text="You can try again using [this](https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs) as `--template` argument if it is just a syntax error." CreationDate="2022-03-23T10:31:54.617" UserId="94" />
  <row Id="841" PostId="1009" Score="0" Text="As I said in my answer, &quot;You can follow a similar approach to build an oracle&quot;. The chainlink implementation is shared as a reference." CreationDate="2022-03-23T10:51:14.200" UserId="419" />
  <row Id="842" PostId="1032" Score="0" Text="Sorry you ran into the issue!" CreationDate="2022-03-23T12:18:55.970" UserId="28" />
  <row Id="843" PostId="997" Score="1" Text="I had a second look at what was actually in all of these blocks and they were pretty much empty and we are running testnet on pretty much the best HW we can get that is outperforming our weight benchmarks." CreationDate="2022-03-23T12:29:42.833" UserId="1814" />
  <row Id="844" PostId="1068" Score="0" Text="We need much more information here." CreationDate="2022-03-23T12:50:28.780" UserId="16" />
  <row Id="845" PostId="1066" Score="3" Text="have you tried initiating a forkless runtime upgrade by following this tutorial https://docs.substrate.io/tutorials/v3/forkless-upgrades/ where the change you make is modifying the `SS58Prefix` value here https://github.com/substrate-developer-hub/substrate-node-template/blob/main/runtime/src/lib.rs#L141" CreationDate="2022-03-23T13:17:51.783" UserId="83" />
  <row Id="846" PostId="1074" Score="0" Text="Dont forget https://web3.foundation/ also." CreationDate="2022-03-23T13:33:57.723" UserId="189" />
  <row Id="847" PostId="1074" Score="0" Text="Do you have programming background or no programming background? And what is your goal with learning blockchain? You want to be a blockchain dev? Or you want to understand high-level concepts of how a blockchain works? A little info on your background and your aim would be great." CreationDate="2022-03-23T13:34:26.800" UserId="29" />
  <row Id="848" PostId="1074" Score="0" Text="@Bruno, Added the Goal in the question." CreationDate="2022-03-23T13:42:01.540" UserId="384" />
  <row Id="849" PostId="1074" Score="0" Text="@juancho, may you help to decide the ranking of https://web3.foundation in the learning steps?" CreationDate="2022-03-23T13:42:40.647" UserId="384" />
  <row Id="850" PostId="1074" Score="2" Text="for me, the realistic way to learn is by reading the source code of Substrate, Frontier, Polkadot..." CreationDate="2022-03-23T14:36:46.840" UserId="515" />
  <row Id="851" PostId="1082" Score="1" Text="Thanks for all links!" CreationDate="2022-03-23T15:31:08.700" UserId="1845" />
  <row Id="852" PostId="1086" Score="0" Text="I guess, Industry Connect no longer offers Substrate Runtime Developer Academy course. At least the &quot;Apply Now&quot; button doesn't work." CreationDate="2022-03-23T16:37:26.307" UserId="209" />
  <row Id="853" PostId="1076" Score="0" Text="Does this answer your question? [What is the difference between Babe, Aura, and Grandpa?](https://substrate.stackexchange.com/questions/204/what-is-the-difference-between-babe-aura-and-grandpa)" CreationDate="2022-03-23T17:16:23.217" UserId="85" />
  <row Id="855" PostId="1081" Score="2" Text="did you insert the aura session keys for the parachain collator?" CreationDate="2022-03-23T17:29:33.960" UserId="83" />
  <row Id="856" PostId="1069" Score="0" Text="Good to hear that you got it to work! Could you mark you answer as &quot;accepted&quot; (by clicking on the checkmark)?" CreationDate="2022-03-23T17:37:13.940" UserId="227" />
  <row Id="857" PostId="1077" Score="1" Text="Are you asking about doing this for transactions to the blockchain? Or in general?" CreationDate="2022-03-23T18:00:31.493" UserId="28" />
  <row Id="858" PostId="876" Score="0" Text="The relay chain gets the new parachain code when the parachain code notifies it (through `system.setCode` or `parachainSystem.enactAuthorizedUpgrade`). This is automatic and except when done incorrectly should not require any human interaction.&#xA;In the relay chain, you can verify your code with the `paras.currentCodeHash` which should match your new runtime hash" CreationDate="2022-03-23T18:38:10.130" UserId="699" />
  <row Id="859" PostId="1084" Score="2" Text="`assert!(SimpleStorageMap::&lt;T&gt;::iter_keys().collect::&lt;Vec&lt;_&gt;&gt;().is_empty());`&#xA;&#xA;That is a really bad idea, just assume you have some big map. Then it would lead to some huge amount of data being read. For a Parachain that would lead to a really huge `StorageProof`." CreationDate="2022-03-23T18:48:51.493" UserId="73" />
  <row Id="860" PostId="1093" Score="1" Text="Thanks for summarizing Encointer so nicely Jaco. The following Polkadot blog actually treats the topic of democracy as one-person-one-vote in web3 specifically :&#xA;https://polkadot.network/blog/introducing-encointer-making-web3-truly-inclusive/" CreationDate="2022-03-23T19:10:39.303" UserId="360" />
  <row Id="861" PostId="1077" Score="0" Text="Hey Shawn,  Whilst I mentioned voting activities, I was asking in general how we can solve these challenges where we expect only humans to partake. So the activity could be a transaction, a vote, a review submission etc etc." CreationDate="2022-03-23T19:22:10.417" UserId="340" />
  <row Id="862" PostId="1096" Score="0" Text="Can you share the link and quote from the reference documentation?" CreationDate="2022-03-23T19:28:43.517" UserId="28" />
  <row Id="864" PostId="729" Score="1" Text="@dvdplm's answer is right, node-template archive is the place to get started with this. If you want to index a custom chain like Shiden you will also want to edit the imported runtime to reflect shiden's `RuntimeApi` and `Block` type to point to the ones from shiden https://github.com/paritytech/substrate-archive/blob/eeb593ed13867642c9b80a39556a75a36c4e47bc/bin/node-template-archive/src/main.rs#L23" CreationDate="2022-03-23T19:54:34.013" UserId="481" />
  <row Id="865" PostId="729" Score="0" Text="The error is a safety check to make sure that whatever runtime archive is running is the one it expects. It checks the runtime of the locally-run chain and the runtime that polkadot-archive is using and found a mismatch" CreationDate="2022-03-23T19:55:46.937" UserId="481" />
  <row Id="866" PostId="1084" Score="1" Text="Thats true. Using a CountedStorageMap definitely is the best solution for the OP." CreationDate="2022-03-23T20:31:54.247" UserId="280" />
  <row Id="867" PostId="1098" Score="0" Text="Just a guess: have you added `wasm32-unknown-unknown` to your Rust target with `rustup target add wasm32-unknown-unknown`?" CreationDate="2022-03-23T21:08:56.853" UserId="145" />
  <row Id="868" PostId="1106" Score="0" Text="You are going to need to share the code in your benchmarking file." CreationDate="2022-03-23T21:44:22.973" UserId="28" />
  <row Id="869" PostId="951" Score="0" Text="@h4x3rotab, your are totally right. Thank you for your contribution." CreationDate="2022-03-23T21:50:10.887" UserId="205" />
  <row Id="870" PostId="1106" Score="0" Text="Thanks @ShawnTabrizi, could you provide an example or code snippet?" CreationDate="2022-03-23T22:02:48.077" UserId="240" />
  <row Id="871" PostId="1106" Score="0" Text="Why are you asking me to share code? You are showing an error, but not showing the code which got you to this error. You need to provide a [Minimum, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example)." CreationDate="2022-03-23T22:09:35.000" UserId="28" />
  <row Id="872" PostId="1108" Score="0" Text="You are asking from a Pallet? This does not make sense, a Pallet does not know anything about the chain except the block it is being executed in." CreationDate="2022-03-23T22:19:26.037" UserId="28" />
  <row Id="873" PostId="1108" Score="0" Text="Sorry @ShawnTabrizi, It's a typo, I meant from an OCW perspective." CreationDate="2022-03-23T22:26:05.560" UserId="205" />
  <row Id="874" PostId="1108" Score="1" Text="Makes much more sense! :)" CreationDate="2022-03-23T22:33:34.623" UserId="28" />
  <row Id="875" PostId="1106" Score="0" Text="Sorry @ShawnTabrizi, my bad, wasn't thinking. I thought you were suggesting code sharing between mock and benchmarking file. Anyway, I have add a code snippet of our benchmarking file. Thanks" CreationDate="2022-03-23T22:36:30.960" UserId="240" />
  <row Id="876" PostId="1098" Score="0" Text="@kukabi I have `wasm32-unknown-unknown` as a target already. I'm using `wasm-pack` if that's useful. Maybe it's something with how it tries to build?" CreationDate="2022-03-24T00:13:04.717" UserId="557" />
  <row Id="877" PostId="1095" Score="1" Text="FYI: This data structure was removed from the public API before the ink! 3.0 release." CreationDate="2022-03-24T00:35:35.187" UserId="1824" />
  <row Id="878" PostId="870" Score="2" Text="Maybe to add some extra details here, the `Mapping` isn't even aware of what elements have been stored using it. It's really just a shim to the storage of the Contracts pallet. See the definition [here](https://github.com/paritytech/ink/blob/3d15fefd1de76b8a557702345bb8bfc9f989719b/crates/storage/src/lazy/mapping.rs#L89).&#xA;&#xA;So yeah, it doesn't know what's been stored - which is why you'd need something like a memory `Vec` to keep track of all the keys." CreationDate="2022-03-24T00:46:54.067" UserId="1824" />
  <row Id="879" PostId="120" Score="0" Text="@Rehan this is a bit outdated by now. We've recently released ink! 3.0 and pushed a few updates to the Canvas runtime as well as the `substrate-contracts-node`." CreationDate="2022-03-24T00:53:24.727" UserId="1824" />
  <row Id="880" PostId="1035" Score="1" Text="It's possible to change the sessions per era in a runtime upgrade, but not possible (with BABE) to update the block time or number of slots in a session with a runtime upgrade." CreationDate="2022-03-24T02:19:24.147" UserId="283" />
  <row Id="881" PostId="387" Score="0" Text="the DataHighway project used the 'membership' frame from Substrate to create a whitelist of Supernode `AccountId`s that were granted proxy permission to claim DHX Mining rewards on behalf of their members that were eligible for them." CreationDate="2022-03-24T03:04:04.040" UserId="83" />
  <row Id="882" PostId="1113" Score="0" Text="thank you, in case my H160 address has a balance of 10 Units, and the mapping address has 10 Units. So I have a total of 20 Units, right?" CreationDate="2022-03-24T03:08:08.397" UserId="515" />
  <row Id="883" PostId="1113" Score="1" Text="No, the evm account and mapping substrate account share the same balance pallet. You only have 10 Units. But two views to account address from outside." CreationDate="2022-03-24T03:12:54.003" UserId="125" />
  <row Id="884" PostId="1075" Score="0" Text="could you use a common good parachain like Statemine on Kusama to store the latest list of bootnodes (along with a reputation) of each live parachain?" CreationDate="2022-03-24T03:16:07.997" UserId="83" />
  <row Id="885" PostId="1113" Score="0" Text="now I understand my whole code issues." CreationDate="2022-03-24T03:24:48.263" UserId="515" />
  <row Id="886" PostId="1111" Score="0" Text="Thanks Shawn. I suppose `T::NFTHandler::check_ownership(...)` will be calling the things I put inside mock file. Is that correct?" CreationDate="2022-03-24T03:28:38.093" UserId="240" />
  <row Id="887" PostId="1111" Score="0" Text="Yes, it will call however you implement your runtime. So for tests, it will call the `mock`, but then when doing REAL benchmarks, it will call the real implementation. That is the flexibility of Rust and Substrate." CreationDate="2022-03-24T03:41:50.200" UserId="28" />
  <row Id="888" PostId="1111" Score="0" Text="Thank you @shawn-tabrizi" CreationDate="2022-03-24T05:12:22.480" UserId="240" />
  <row Id="889" PostId="1115" Score="0" Text="pallet-staking is in charge to distributing the awards, and it does so using a staking-reward-curve that's defined in the documentation. As far as Payouts are concerned, an extrinsic needs to be fired before payouts can occur so I am not sure if that is default behaviour because from my experience, I don't remember seeing `EraPaid` at the end of every era." CreationDate="2022-03-24T05:25:58.970" UserId="139" />
  <row Id="890" PostId="1117" Score="0" Text="Please remind me what is manual/instant sealing? I forget the details but is it something along the lines of: only when a transaction or an extrinsic is received, a block is produced?" CreationDate="2022-03-24T05:38:23.963" UserId="139" />
  <row Id="891" PostId="1115" Score="0" Text="@Purple_Turtle I see. I do see the `EraPaid` event at the end of every era though. But, nothing else." CreationDate="2022-03-24T05:54:06.947" UserId="566" />
  <row Id="892" PostId="1117" Score="0" Text="@Purple_Turtle Yes exactly. Blocks are authored at every transaction, it makes transactions almost instant." CreationDate="2022-03-24T05:56:58.843" UserId="227" />
  <row Id="893" PostId="1117" Score="0" Text="@Purple_Turtle This is the crate: https://github.com/paritytech/substrate/tree/master/client/consensus/manual-seal." CreationDate="2022-03-24T05:57:18.170" UserId="227" />
  <row Id="894" PostId="1098" Score="0" Text="I see..no idea then:/ This seems similar: https://github.com/rustwasm/wasm-pack/issues/747, but no clue there either. I hope someone with more wasm experience steps in, good luck!" CreationDate="2022-03-24T06:01:44.253" UserId="145" />
  <row Id="895" PostId="1084" Score="0" Text="This does make sense, thanks." CreationDate="2022-03-24T06:02:31.607" UserId="1837" />
  <row Id="896" PostId="1095" Score="0" Text="Thank you for the heads-up, I had not realized!" CreationDate="2022-03-24T06:43:14.113" UserId="609" />
  <row Id="897" PostId="1100" Score="0" Text="thank you sir, i have solve it." CreationDate="2022-03-24T07:02:56.420" UserId="489" />
  <row Id="898" PostId="1122" Score="0" Text="There are plenty of zk-SNARK libraries written in rust. Not sure if they are usable under no_std environment. As long as it works, it should be pretty straightforward to use that inside a pallet. In the early days there's a project called ZeroChain developed by the LayerX team, but its development was halt for some time. It's still a good code reference though." CreationDate="2022-03-24T07:07:38.500" UserId="544" />
  <row Id="900" PostId="1110" Score="0" Text="can i declare a default account id **balances pallet**, to mint new tokens in that particular account? I was doing the same but not able to achieve it, can you tell some work around for this." CreationDate="2022-03-24T07:37:06.033" UserId="354" />
  <row Id="901" PostId="1075" Score="1" Text="I can't find the ticket but I think that this is a feature that the substrate framework should be looking to support in the future." CreationDate="2022-03-24T08:08:25.383" UserId="85" />
  <row Id="902" PostId="1098" Score="1" Text="I have the same issue with secp256k1-sys and it seems to be related to the Mac M1. I have not had a chance to scratch around yet, however it seems like installing LLVM should help (as least according to this) - https://github.com/rust-bitcoin/rust-secp256k1/issues/283#issuecomment-960068019 &amp; https://github.com/KomodoPlatform/atomicDEX-API/issues/1176" CreationDate="2022-03-24T08:14:36.440" UserId="627" />
  <row Id="903" PostId="1117" Score="0" Text="Awesome and thanks, see I'd have never known to look for this type of thing! Super useful for testing." CreationDate="2022-03-24T08:22:23.957" UserId="340" />
  <row Id="904" PostId="1109" Score="0" Text="Thanks! This was actually an external team testing runtime upgrades, and I actually need this paraID to onboard another team to the network. Not sure how it got to this point, but I'll try and remove the storage item manually." CreationDate="2022-03-24T08:26:30.980" UserId="179" />
  <row Id="905" PostId="845" Score="0" Text="Thanks I have created an issue requesting for that change to me made https://github.com/substrate-developer-hub/substrate-docs/issues/913" CreationDate="2022-03-24T08:27:58.270" UserId="83" />
  <row Id="906" PostId="1096" Score="0" Text="https://wiki.polkadot.network/docs/maintain-guides-how-to-chill#involuntary-chills" CreationDate="2022-03-24T08:28:54.937" UserId="340" />
  <row Id="907" PostId="1121" Score="0" Text="1. If `pallet_membership` creates collectives, then why not just have `pallet_collective`? Doesn't `pallet_collective` work the same way? 2. I can see that information in the docs as well, so am I correct to understand that `stash-controller`'s `controller` is a kind of proxy account for `stash`? But I still don't see why would someone want this?  What's possible with a proxy account that's not possible with my own account?" CreationDate="2022-03-24T08:34:05.130" UserId="139" />
  <row Id="908" PostId="1093" Score="0" Text="So can I consume this like an identity provider akin to 'User Directory Server'" CreationDate="2022-03-24T08:36:41.490" UserId="340" />
  <row Id="909" PostId="1128" Score="0" Text="I am eager to find out as well as I've been lacking ideas. Besides, what qualifies  as a substrate dev any way? Does one need to write their original ideas in the form of a pallet to be called a substrate dev? Or does one need to be writing substrate code itself, officially or in their local copy of the repository, I'm curious." CreationDate="2022-03-24T08:37:44.777" UserId="139" />
  <row Id="910" PostId="1125" Score="0" Text="My layman's guess is just because it has an unknown private key, it's anonymous in the sense, no one knows the key. I wouldn't be surprised if it's actually the correct answer lol." CreationDate="2022-03-24T08:39:35.863" UserId="139" />
  <row Id="911" PostId="1128" Score="0" Text="writing a pallet definitely makes you a substrate dev." CreationDate="2022-03-24T08:41:04.640" UserId="85" />
  <row Id="912" PostId="1088" Score="0" Text="Yes I like this concept, but the dataset is hard to keep high quality and fresh! It needs to avoid recognition aspects and stick to logic only to stay an AI hard problem, but lazy People will bring the quality down so it needs a whole raft of complex QC to weed those out." CreationDate="2022-03-24T08:41:11.253" UserId="340" />
  <row Id="913" PostId="1074" Score="0" Text="@StefanMuto I like that approach as I would love to do it as well." CreationDate="2022-03-24T08:47:38.470" UserId="139" />
  <row Id="914" PostId="1104" Score="0" Text="Great question." CreationDate="2022-03-24T08:51:05.550" UserId="85" />
  <row Id="915" PostId="1125" Score="0" Text="Naming things is a very difficult thing in software development :P My interpretation is that it was a name used to describe the action, `let's create an &quot;anonymous&quot;(keyless) account and &quot;proxy&quot; it`(still not the best name for the action), but then it probably started being used as the name of the kind of account. As you've seen in the linked issue people agree is not the best name and should probably be changed. I guess it's just missing someone putting the work to actually change it" CreationDate="2022-03-24T09:09:31.373" UserId="67" />
  <row Id="916" PostId="466" Score="0" Text="As I said: If you are sure that you want to handle text in your contract then `String` is the way to go. Maybe accept this answer and ask a new question specifically about whether text handling is the right thing to do in your case." CreationDate="2022-03-24T09:24:42.170" UserId="16" />
  <row Id="917" PostId="1131" Score="1" Text="You can retrieve the currently connected peers of your substate nodes using the [system_peers RPC call](https://polkadot.js.org/docs/substrate/rpc/#peers-vecpeerinfo). The current telemetry server can give you an idea of how many nodes are on each network (at least those who have enabled telemetry), however it doesn't publish the nodes IP and Ports." CreationDate="2022-03-24T09:36:01.280" UserId="539" />
  <row Id="918" PostId="1137" Score="1" Text="It also happens on my Intel Mac. I don't think it is M1 specific." CreationDate="2022-03-24T09:55:07.440" UserId="16" />
  <row Id="919" PostId="1137" Score="0" Text="Interesting to know. From what I read around the Rusts, secp256k1, etc. issues, all seem to point fingers at the Apple clang. So I guess it would make sense if it is not Mac M1-only. Will update my &quot;M1 comment&quot; above." CreationDate="2022-03-24T09:59:08.937" UserId="627" />
  <row Id="920" PostId="803" Score="0" Text="I don't understand the problem from the question at all. I could only guess." CreationDate="2022-03-24T10:13:18.093" UserId="16" />
  <row Id="922" PostId="1073" Score="0" Text="I am curious why can't sudo just call something like `set_balance` and increase the overall supply whilst achieving their desired minting in one call? If burning the excess from some other account isn't a problem?" CreationDate="2022-03-24T10:25:54.130" UserId="139" />
  <row Id="923" PostId="1110" Score="0" Text="@Shawn could you elaborate on why you didn't choose a `sudo` call like `set_balance`" CreationDate="2022-03-24T10:26:40.970" UserId="139" />
  <row Id="924" PostId="1096" Score="0" Text="If a validator gets added right at the end of a session there would be a danger it could influence the VRF of the next session, so the VRF works off not the last session but the one before. That might explain why a validator could be slashable for two sessions in the past." CreationDate="2022-03-24T10:27:11.720" UserId="85" />
  <row Id="925" PostId="1131" Score="0" Text="Maybe the question should be what existing polkadot network monitoring tools are out there?" CreationDate="2022-03-24T10:40:43.587" UserId="85" />
  <row Id="928" PostId="1097" Score="1" Text="Thank you, very helpful." CreationDate="2022-03-24T11:03:30.577" UserId="340" />
  <row Id="929" PostId="1133" Score="0" Text="Can you please add the code that exhibits the error you are encountering?" CreationDate="2022-03-24T11:04:19.073" UserId="16" />
  <row Id="930" PostId="1121" Score="1" Text="This is likely a design decision to make the code more modular. And it's for a practical reason too: `pallet_membership` can be used to manage memberships in general, not necessarily only for collectives. And `pallet_collective` provides a totally different functionality, i.e. its used as defining some origin." CreationDate="2022-03-24T11:05:29.397" UserId="172" />
  <row Id="931" PostId="1142" Score="0" Text="thank for your answer, can you show an example code or links, I tried but not work." CreationDate="2022-03-24T11:05:41.307" UserId="180" />
  <row Id="932" PostId="1144" Score="0" Text="Hi Alexander! Thanks, after adding your TargetOf&lt;T&gt;, now I got this error: associated type `Lookup` not found for `T`,   how to fix this? Thanks!" CreationDate="2022-03-24T11:16:35.040" UserId="1789" />
  <row Id="933" PostId="1135" Score="0" Text="Even the simplest flipper contract when build with release flag was not uploading with the contract bundle on public testnets" CreationDate="2022-03-24T11:18:41.703" UserId="1839" />
  <row Id="934" PostId="1131" Score="0" Text="Well I'd like to walk the network if possible. But yeah great idea for another Q" CreationDate="2022-03-24T11:31:42.047" UserId="340" />
  <row Id="935" PostId="438" Score="0" Text="That's understandable for most scenarios. However, in the scenario where you have a lot of client-side tests you need to run, it's desirable to quickly change the database to reflect different contract states without killing the node. Can you see any way to do this (e.g. overwriting the DB using the file system) or would it be a feature request for substrate?" CreationDate="2022-03-24T11:34:47.820" UserId="380" />
  <row Id="936" PostId="1141" Score="2" Text="Why store a string when you can store the hash of it? This puts a known limit on the amount of storage used for the variable. What is the use case for the contract needing to know the actual value of the string?" CreationDate="2022-03-24T11:45:05.643" UserId="380" />
  <row Id="937" PostId="1141" Score="0" Text="@forgetso I'm new so Substrate. What types I can use? thank you!" CreationDate="2022-03-24T11:48:08.690" UserId="180" />
  <row Id="938" PostId="1145" Score="1" Text="Looks like you have a few questions here. I answered your first question - not sure about the error message though - maybe someone else can help there." CreationDate="2022-03-24T11:53:38.617" UserId="29" />
  <row Id="939" PostId="1149" Score="0" Text="Thank you for the detailed explanation! I was using https://polkadot.js.org/apps/ and the balances weren't being updated. We checked it in `substrate-front-end-template` and we could see the payouts." CreationDate="2022-03-24T12:19:15.897" UserId="566" />
  <row Id="940" PostId="1154" Score="0" Text="What exactly is the use case? Ethereum and Solana are two different blockchains that are not (yet) parachains. Are you hoping to somehow control accounts on Ethereum from substrate?" CreationDate="2022-03-24T12:30:25.660" UserId="380" />
  <row Id="941" PostId="1149" Score="1" Text="Keep in mind that the front_end_template is a very minimal front_end, and you will laverage much more by using polkadot.js apps directly connected to your node" CreationDate="2022-03-24T12:34:16.160" UserId="165" />
  <row Id="942" PostId="1141" Score="0" Text="I've added an answer with  some more information" CreationDate="2022-03-24T12:47:17.607" UserId="380" />
  <row Id="943" PostId="1152" Score="2" Text="There is also `BoundedVec` I believe?" CreationDate="2022-03-24T12:50:31.277" UserId="1866" />
  <row Id="944" PostId="1153" Score="1" Text="Can you please make the question clearer?" CreationDate="2022-03-24T12:54:53.963" UserId="85" />
  <row Id="945" PostId="1154" Score="1" Text="Yeah, I am hoping to somehow control accounts on Ethereum from the substrate?" CreationDate="2022-03-24T13:03:16.550" UserId="377" />
  <row Id="947" PostId="1110" Score="0" Text="@ShubhamGupta &quot;default accounts&quot; like what you are describing are not really a pattern we use in Substrate. Instead, you should have intentional accounts for specific purposes generated by the runtime code. I think you should open your own question with your scenario and all the details you can provide, and we can suggest a solution." CreationDate="2022-03-24T13:46:57.680" UserId="28" />
  <row Id="948" PostId="1110" Score="0" Text="@Purple_Turtle When discussing balance APIs, none of these are &quot;sudo&quot;, they are all low level backed APIs. It does not make sense to call extrinsics when you can do things much more efficiently using a specific api design for a scenario. Extrinsics are meant for external users to access and modify the chain." CreationDate="2022-03-24T13:48:15.673" UserId="28" />
  <row Id="949" PostId="1109" Score="0" Text="Would still be good if we can do a basic check on how this happened, since we would never want this state to be reached on Polkadot or Kusama." CreationDate="2022-03-24T13:49:41.377" UserId="28" />
  <row Id="950" PostId="1125" Score="1" Text="There has been a lot of discussion already about changing the name: https://github.com/paritytech/substrate/issues/7735&#xA;&#xA;Happy to accept a PR" CreationDate="2022-03-24T13:51:41.050" UserId="28" />
  <row Id="951" PostId="1125" Score="0" Text="However, I dont think this is really an appropriate thread for StackExchange. It seems like you are asking for a feature request or API change, and not really looking for an answer to a question." CreationDate="2022-03-24T13:53:04.077" UserId="28" />
  <row Id="952" PostId="1140" Score="0" Text="The docs cover upgrades pretty well: https://docs.substrate.io/v3/runtime/upgrades/ with example migrations like: https://github.com/paritytech/substrate/blob/c79b522a11bbc7b3cf2f4a9c0a6627797993cb79/frame/elections-phragmen/src/lib.rs#L119-L157" CreationDate="2022-03-24T14:07:49.027" UserId="85" />
  <row Id="953" PostId="1137" Score="0" Text="@Jaco that did the trick. Thanks for your help!" CreationDate="2022-03-24T14:17:07.127" UserId="557" />
  <row Id="954" PostId="1144" Score="0" Text="Depends on where you try to use this type alias from. You probably need to ad some trait bound on `T`." CreationDate="2022-03-24T14:31:38.487" UserId="16" />
  <row Id="955" PostId="1125" Score="1" Text="This is a FAQ in the community when it comes to proxies, hence added it here. Thought that having a thread on StackExchange would help understand the rationale and that there is an ongoing discussion to amend it @ShawnTabrizi Let me know how this question can be rephrased to be appropriate here" CreationDate="2022-03-24T14:33:15.470" UserId="32" />
  <row Id="956" PostId="1135" Score="0" Text="I am not sure which test net you are talking about. You need to be more specific. But I would suspect that they are using a old version of pallet-contracts while you are using a new version of ink!." CreationDate="2022-03-24T14:34:30.843" UserId="16" />
  <row Id="957" PostId="1109" Score="0" Text="The discussion tho that case was on this post: https://substrate.stackexchange.com/questions/859/my-parachain-has-not-been-able-to-issue-a-block-after-submitting-the-upgrade-tra/" CreationDate="2022-03-24T14:50:34.917" UserId="179" />
  <row Id="958" PostId="1166" Score="0" Text="Could you expand your code sample a bit? It misses a bit of context needed on the pallet decl besides others." CreationDate="2022-03-24T15:38:50.027" UserId="1861" />
  <row Id="959" PostId="1167" Score="0" Text="Hi drahnr thank you. I have updated my question. could you have a look?" CreationDate="2022-03-24T15:57:17.950" UserId="1789" />
  <row Id="960" PostId="1152" Score="0" Text="@RosaryBeads Thanks! I've updated the title + description." CreationDate="2022-03-24T16:32:15.027" UserId="227" />
  <row Id="961" PostId="1172" Score="0" Text="Thanks, another questions came up:  this bag is sorted based on VoteWeight, which should be the staked amount, right? is the sorted bag includes all nominators which nominates current era's active validators? hence, a nominator with a staked value more than minNominated, who nominated some non-waiting validators should receive rewards in that era?" CreationDate="2022-03-24T16:59:22.950" UserId="642" />
  <row Id="963" PostId="1175" Score="0" Text="See also https://substrate.stackexchange.com/questions/1141/store-string-in-subtrate-by-using-vecu8" CreationDate="2022-03-24T17:51:22.537" UserId="85" />
  <row Id="964" PostId="1177" Score="1" Text="Btw, it was the fs.readFileSync() function that was used to read files..." CreationDate="2022-03-24T18:03:31.310" UserId="501" />
  <row Id="965" PostId="1081" Score="0" Text="I found the issue, I posted my answer/story... thanks anyway !!" CreationDate="2022-03-24T18:04:10.563" UserId="501" />
  <row Id="966" PostId="1165" Score="0" Text="It worked! Thanks!" CreationDate="2022-03-24T18:15:08.710" UserId="179" />
  <row Id="967" PostId="1142" Score="2" Text="Added an example." CreationDate="2022-03-24T18:18:31.403" UserId="16" />
  <row Id="968" PostId="138" Score="0" Text="The Element channel has been locked now, what should we do to onboard to Rococo?" CreationDate="2022-03-24T18:47:34.060" UserId="74" />
  <row Id="970" PostId="138" Score="2" Text="https://github.com/paritytech/subport/issues/new/choose is the new streamlined way" CreationDate="2022-03-24T19:48:47.270" UserId="85" />
  <row Id="971" PostId="1177" Score="0" Text="You are able to push raw bytes with this call, that are capable of being incorrect that leads to an unusable runtime, as you found. The API parces hex with explicitly the 0x prefix, otherwise it (I think) is seen as raw bytes of the Unicode characters" CreationDate="2022-03-24T20:06:08.497" UserId="34" />
  <row Id="972" PostId="1150" Score="0" Text="Good insights! I would also encourage people to learn more form the docs and do the tutorial on runtime upgrades https://docs.substrate.io/tutorials/v3/forkless-upgrades/" CreationDate="2022-03-24T20:09:15.720" UserId="34" />
  <row Id="973" PostId="1150" Score="0" Text="As well as storage migrations, required for chains with a change in format of storage on upgrades https://docs.substrate.io/how-to-guides/v3/storage-migrations/basics/" CreationDate="2022-03-24T20:10:26.413" UserId="34" />
  <row Id="974" PostId="1185" Score="3" Text="Existential Deposit is a part of the `Balances` pallet, and not related to the Address format. Are you asking if there is Existential Deposit in a Substrate chain that uses [Frontier](https://github.com/paritytech/frontier)?" CreationDate="2022-03-24T20:43:22.073" UserId="28" />
  <row Id="975" PostId="975" Score="0" Text="How else could you possibly correctly form arbitrary substrate chain transactions without getting the metadata? As there is not uniform standard, why the scale-info pallet is powerful: allows chain devs to have an auto gen api (mostly) just by using a few macros in the runtime. For end users, it allows to use any substrate chain with minimal customization" CreationDate="2022-03-24T20:44:26.043" UserId="34" />
  <row Id="976" PostId="1112" Score="0" Text="Great answer @Brayn Chen, thank you." CreationDate="2022-03-24T20:45:51.600" UserId="205" />
  <row Id="977" PostId="1138" Score="0" Text="Thank you @joepetrowski, this is what I was really after. Would this `isSyncing` boolean remain `false` after `syncing`, but during new block importing? Cheers!" CreationDate="2022-03-24T20:48:27.587" UserId="205" />
  <row Id="978" PostId="138" Score="0" Text="Thank you. It really helps to streamline the process." CreationDate="2022-03-24T21:13:59.523" UserId="135" />
  <row Id="983" PostId="1159" Score="2" Text="Please share the snippets of code here for people to review, so they don't have to parse your fill code. Great to reference it though in full, best by line numbers if possible as you have done" CreationDate="2022-03-24T22:06:13.003" UserId="34" />
  <row Id="984" PostId="1185" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-03-24T22:09:47.140" UserId="-1" />
  <row Id="986" PostId="1125" Score="0" Text="Yeah, I see why it's useful to ask because it's confusing but the only valid answer is &quot;because the other of the pallet chose to call it that&quot;. I'm pretty sure everyone thinks it's a bad name. What other answer could you possibly expect?" CreationDate="2022-03-24T22:47:11.273" UserId="283" />
  <row Id="987" PostId="1189" Score="0" Text="Is each 'layer' a nested declaration of `#[transactional]`? &#xA;How could a malicious user spawn too many layers?" CreationDate="2022-03-24T22:56:18.417" UserId="587" />
  <row Id="988" PostId="1111" Score="0" Text="Hi Shawn,  in the benchmarking file, how did you reference another pallet that defined in the runtime?" CreationDate="2022-03-24T23:48:46.590" UserId="240" />
  <row Id="989" PostId="1125" Score="0" Text="I reiterate that this a frequently asked question in the community and would show up here one day or another. I would accept the answer &quot;The author who wrote the pallet chose to call it that&quot;" CreationDate="2022-03-24T23:58:03.643" UserId="32" />
  <row Id="990" PostId="1151" Score="0" Text="BTW, how to update chain-spec for a running node?" CreationDate="2022-03-25T01:18:49.333" UserId="1838" />
  <row Id="991" PostId="1083" Score="2" Text="It seems after some time, it recovered from that by re-syncing the blocks again, I think it can be closed" CreationDate="2022-03-25T01:59:56.870" UserId="183" />
  <row Id="992" PostId="1029" Score="2" Text="*not trying to self promote*&#xA;I've been hacking away at a fork of the offchain::ipfs repository and am currently working on developing contracts that take advantage of the underlying IPFS network. As others have noted, the approach taken is to use a chain extension that exposes functionality to manage data and data access. https://iridium-labs.github.io/" CreationDate="2022-03-25T02:10:28.457" UserId="543" />
  <row Id="993" PostId="1189" Score="1" Text="Yes. You can imagine making an extrinsic transactional that can dispatch another extrinsic. For example, `batch_all` is transactional. Without any blockers, you could do `batch_all(batch_all(batch_all(...` which would nest a bunch of layers. We actually wrote code in the pallet to explicitly prevent this right now." CreationDate="2022-03-25T03:03:01.513" UserId="28" />
  <row Id="994" PostId="1204" Score="2" Text="TLDR: `sp-arithmetic` for relatively simple use cases, and `substrate-fixed` for more advance stuff." CreationDate="2022-03-25T05:50:55.567" UserId="167" />
  <row Id="995" PostId="1205" Score="2" Text="fwiw, we could also just add `transfer_all` to the `Currency` trait." CreationDate="2022-03-25T05:59:20.160" UserId="167" />
  <row Id="996" PostId="1038" Score="0" Text="Thanks for the answer. Is there any open-source project you know that has done this? If yes, could you please share the link to their repo?" CreationDate="2022-03-25T06:47:38.520" UserId="403" />
  <row Id="998" PostId="1138" Score="2" Text="No, I'm not sure of the exact logic behind it, but I think once it's generally caught up (if the current block height is within `N` blocks of the highest known block) then it is not &quot;syncing&quot; anymore and is just doing normal block import to remain in sync." CreationDate="2022-03-25T06:54:35.480" UserId="620" />
  <row Id="999" PostId="1142" Score="0" Text="I encounted this error `error[E0277]: the trait bound '&lt;T as pallet::Config&gt;::KeyLimit: Clone' is not satisfied`" CreationDate="2022-03-25T07:32:23.247" UserId="180" />
  <row Id="1000" PostId="620" Score="1" Text="That's a great explanation. I guess this must be in the tutorial as well." CreationDate="2022-03-25T07:34:39.357" UserId="209" />
  <row Id="1001" PostId="979" Score="0" Text="Hi @Bryan, &#xA;I have an issue at block #40 when building with those params:&#xA;```&#xA;2022-03-25 08:34:48 Error with block built on 0xfb0b51206dc4473d1bb7ad71283cc7783885ed1ea0415c7ca82d6c2cc369049a: ClientImport(&quot;Expected epoch change to happen at 0xbdda8544c7bbe6b3e506cb3c2443d5fd4d49ed6bc2ca5efec968104d9c39384d, s274698948&quot;)    &#xA;&#xA;```&#xA;Thanks!" CreationDate="2022-03-25T07:36:01.057" UserId="357" />
  <row Id="1002" PostId="979" Score="0" Text="Running it with:&#xA;./target/release/polkadot --alice --validator --rpc-cors=all --tmp --chain=/home/goncer/projects/chainspec_raw_ksm.json --port 30333  --ws-port 9944 &gt; ../alice.txt 2&gt;&amp;1 &amp;&#xA;in polkadot v0.16 released version.&#xA;With spec:&#xA;target/release/polkadot build-spec --chain=kusama-local  --disable-default-bootnode --raw &gt; ../chainspec_raw_ksm.json" CreationDate="2022-03-25T07:38:12.843" UserId="357" />
  <row Id="1003" PostId="979" Score="0" Text="would the issue be that im generating the spec and fast-runtime is not fully compatible with it? &#xA;I think that the spec is almost mandatory to me, otherwise ( if using --chain=kusama-local ) my parachain is not imporing blocks from the relay because of genesis mismatch.&#xA;` Reason: Genesis mismatch, Disconnecting`" CreationDate="2022-03-25T08:09:21.237" UserId="357" />
  <row Id="1004" PostId="1205" Score="0" Text="I see acala are using `orml_traits::currency::TransferAll` https://github.com/open-web3-stack/open-runtime-module-library/blob/2d28694ed83c5b2c52082805afb7157217c72a10/traits/src/currency.rs#L364" CreationDate="2022-03-25T08:22:14.687" UserId="85" />
  <row Id="1005" PostId="1212" Score="0" Text="I cam across proxy-pallet. But that would require users to add proxy first using extrinsic call, which in my case won't be possible, as those accounts would not be having any balances" CreationDate="2022-03-25T08:23:51.497" UserId="371" />
  <row Id="1006" PostId="1150" Score="0" Text="Thanks @RosaryBeads, so how does it work with syncing? When a node is syncing, does it only import older blocks without executing the transactions?" CreationDate="2022-03-25T10:01:11.503" UserId="285" />
  <row Id="1007" PostId="1140" Score="0" Text="I understand about data migrations and I agree the docs are pretty clear there. Since the struct I am changing is not stored, my question was specifically around a new node syncing to an existing chain." CreationDate="2022-03-25T10:06:47.493" UserId="285" />
  <row Id="1008" PostId="1221" Score="0" Text="Personally I'd like to see ED as 0.9 dot rather than 1 dot so that people don't get tripped up by fees." CreationDate="2022-03-25T10:42:27.067" UserId="85" />
  <row Id="1010" PostId="1222" Score="0" Text="What would happen if the treasury does not have the funds to pay staking rewards?" CreationDate="2022-03-25T11:16:45.300" UserId="53" />
  <row Id="1011" PostId="1211" Score="2" Text="If you just use a `Vec&lt;u8&gt;` as an argument to a contract message the UI should offer you a file upload." CreationDate="2022-03-25T11:30:59.347" UserId="16" />
  <row Id="1012" PostId="1194" Score="0" Text="Thank you so much" CreationDate="2022-03-25T12:38:47.707" UserId="1789" />
  <row Id="1013" PostId="1167" Score="0" Text="Thank you. your answer works" CreationDate="2022-03-25T12:40:42.687" UserId="1789" />
  <row Id="1014" PostId="1150" Score="1" Text="When it syscs, it executes the block with the runtime from that point in time - so through the sync process, it changes runtimes at each timetime upgrade." CreationDate="2022-03-25T12:45:36.097" UserId="1866" />
  <row Id="1015" PostId="1222" Score="0" Text="@Gav Yes about that, I was thinking we could fallback to the default mechanism where we just mint from the void, ie, create some PositiveImbalance." CreationDate="2022-03-25T12:56:15.913" UserId="139" />
  <row Id="1017" PostId="1138" Score="0" Text="Thanks @joepetrowski." CreationDate="2022-03-25T13:49:45.530" UserId="205" />
  <row Id="1018" PostId="793" Score="0" Text="It's not really clear what you're asking, it would help to get context on what you're trying to achieve. The H160 format is just the first 20 bytes of the H256 address. The function you're proposing should probably be taking some H256 address and then making the conversion to H160 by truncating it." CreationDate="2022-03-25T14:05:51.127" UserId="172" />
  <row Id="1020" PostId="1224" Score="0" Text="I have two questions:&#xA;1. Do you want to fork the `vested_transfer` function or just use this within your pallet?&#xA;2. Are you tightly coupling your pallets Config with the one of `pallet_vesting::Config`? https://docs.substrate.io/how-to-guides/v3/pallet-design/tight-coupling/" CreationDate="2022-03-25T14:12:58.943" UserId="280" />
  <row Id="1021" PostId="1215" Score="0" Text="thanks for taking the time to answer. i see your point about the extra logic in performing the lookup. i should have also asked: what happens to motions which are not closed by drive-by observers? do they close at voting end or are they lost to the ether? on reading your answer i went ahead and closed the motions in the screenshot, paying the transaction fees for doing so. if i hadn't and nobody else did, what would happen?" CreationDate="2022-03-25T14:16:39.920" UserId="265" />
  <row Id="1022" PostId="1236" Score="0" Text="I think he is asking not for the &quot;trie key&quot; but actually the underlying rocksdb database key... which is much more difficult to generate." CreationDate="2022-03-25T14:46:38.803" UserId="28" />
  <row Id="1023" PostId="1236" Score="0" Text="Indeed, I would like to know how to calculate the rocksdb key" CreationDate="2022-03-25T17:05:34.790" UserId="1883" />
  <row Id="1024" PostId="1235" Score="0" Text="Not an expert on this but I think the parachain id is meant to not use twice. Probably it's just easier to register another parachain if it's just for local testing" CreationDate="2022-03-25T17:33:14.487" UserId="544" />
  <row Id="1025" PostId="1173" Score="0" Text="Isn't pallet-contracts going to support `set_code`?" CreationDate="2022-03-25T17:36:16.090" UserId="544" />
  <row Id="1026" PostId="1075" Score="1" Text="This is a really interesting idea. Not only bootstrapping the seed nodes, but also the genesis files ." CreationDate="2022-03-25T17:43:59.150" UserId="544" />
  <row Id="1027" PostId="1116" Score="1" Text="You can find some useful information from past Substrate Seminar talks. There were talks about deploying a substrate chain on prod." CreationDate="2022-03-25T17:59:46.363" UserId="544" />
  <row Id="1028" PostId="1083" Score="3" Text="I believe this problem is due to the inconsistent cache in Cumulus. Beyond the &quot;Transaction will be valid in the future&quot; error, you may also encounter another error &quot;State root mismatch that calculated&quot;. It's a very old problem that Parity has been trying to fix it for months. Usually a restart can help. In some rare case you will need to resync the parachain db. To mitigate, you can set `--state-cache 0` when starting the collator, but bear in mind it will hurt the block production performance." CreationDate="2022-03-25T18:03:06.517" UserId="544" />
  <row Id="1029" PostId="997" Score="0" Text="Is it build in `--release` mode? Sometimes the dev build can be order of magnitude slower than release mode." CreationDate="2022-03-25T18:08:05.877" UserId="544" />
  <row Id="1030" PostId="1253" Score="4" Text="You may be looking for `sudo.sudoUncheckedWeight` as opposed to `sudo.sudo`" CreationDate="2022-03-25T18:19:14.703" UserId="627" />
  <row Id="1031" PostId="405" Score="0" Text="Is it possible for the Sudo team to use the proxy pallet on Rococo to give limited proxy permission to parachains if this extrinsic existed: sudo &gt; paraSudoWrapper &gt; sudoScheduleParaCleanupAndReinitialize(id, genesis)? So if a parachain team that had already been initialized with a parachain id purged their sole collator node, to then to restart it to generate and finalize blocks again, they could just run that extrinsic themselves to both de-register and re-register the same parachain id using their proxy permission on behalf of Sudo. This would avoid delays and prevent inconveniencing Sudo." CreationDate="2022-03-25T20:52:28.340" UserId="83" />
  <row Id="1032" PostId="1260" Score="0" Text="Could you please be more descriptive, maybe a github repo link would help a lot? In particular it's difficult to understand what you mean by &quot;I think the string is being cut-off in JS, maybe due to &quot;text-overflow: ellipsis&quot; ?&quot; :)" CreationDate="2022-03-25T22:31:35.653" UserId="1734" />
  <row Id="1033" PostId="620" Score="2" Text="I was searching substrate crates to get more information around mel_bound(). Can you throw some document pointers to #[codec(mel_bound())]?" CreationDate="2022-03-25T22:42:53.833" UserId="1886" />
  <row Id="1035" PostId="1116" Score="0" Text="@h4x3rotab do you have a specific link I can visit now?" CreationDate="2022-03-26T04:37:18.373" UserId="139" />
  <row Id="1036" PostId="1250" Score="0" Text="Thank you for the detail." CreationDate="2022-03-26T05:25:22.643" UserId="1866" />
  <row Id="1037" PostId="1258" Score="0" Text="Many thanks. This is what I was looking for. I know where to look now." CreationDate="2022-03-26T06:22:53.327" UserId="1811" />
  <row Id="1038" PostId="1264" Score="0" Text="FYI: Shawn has a tool that graphs historical balances: https://www.shawntabrizi.com/substrate-balance-graph/" CreationDate="2022-03-26T07:51:18.160" UserId="85" />
  <row Id="1039" PostId="1260" Score="0" Text="This sounds like a polkadot-js display issue. I would raise an issue in that repo with a screenshot showing your truncated key." CreationDate="2022-03-26T08:08:38.123" UserId="85" />
  <row Id="1040" PostId="1265" Score="0" Text="I am back on track. Cheers!" CreationDate="2022-03-26T08:45:23.243" UserId="1866" />
  <row Id="1041" PostId="1116" Score="1" Text="this repository was setup as a community initiative to create good practice guidelines for managing the security of blockchain validator nodes https://github.com/w3f/validator-security and the Polkadot wiki includes a section on validator security https://wiki.polkadot.network/docs/maintain-guides-secure-validator" CreationDate="2022-03-26T10:00:21.733" UserId="83" />
  <row Id="1043" PostId="1264" Score="0" Text="That is nice for those who want a tool. Not quite for my specific usecase for my integration requirements (exactly at payouts), but certainly useful for a lookup." CreationDate="2022-03-26T13:59:17.860" UserId="1866" />
  <row Id="1044" PostId="1207" Score="1" Text="I think i'm missing something here. You say that the runtime itself does not use any std (in terms of feature) code, however, all pallets depend on frame_system which is apart of the std feature (See this link to template pallet cargo.toml&#xA;https://github.com/substrate-developer-hub/substrate-node-template/blob/main/pallets/template/Cargo.toml#L29), how can this be?" CreationDate="2022-03-26T14:04:28.473" UserId="434" />
  <row Id="1045" PostId="1215" Score="1" Text="Answered in the main body^^" CreationDate="2022-03-26T15:13:15.383" UserId="620" />
  <row Id="1046" PostId="215" Score="0" Text="I stumbled on this, seems like derives can be augmented now - https://github.com/polkadot-js/api/issues/4577" CreationDate="2022-03-26T15:16:19.733" UserId="1866" />
  <row Id="1047" PostId="1235" Score="0" Text="You can request rococo onboarding of a parachain here: https://github.com/paritytech/subport/issues/new?assignees=&amp;labels=Rococo&amp;template=rococo.yaml" CreationDate="2022-03-26T16:25:52.313" UserId="85" />
  <row Id="1048" PostId="1282" Score="0" Text="Maybe you can clarify a bit? The WS endpoints are typically on RPC nodes (AFAIK it doesn't publish stats, maybe to graphana for the provider of that endpoint for private usage), while telemetry is an (optional) recipient for some running node data. Which stats are you looking for?" CreationDate="2022-03-26T20:11:22.347" UserId="1866" />
  <row Id="1049" PostId="1280" Score="0" Text="Congratulations on asking the 500th question!" CreationDate="2022-03-26T21:33:07.873" UserId="85" />
  <row Id="1050" PostId="1281" Score="0" Text="which branch are you compiling of https://github.com/DoraFactory/dorafactory-node ?" CreationDate="2022-03-26T21:46:45.967" UserId="85" />
  <row Id="1051" PostId="1282" Score="0" Text="Not websockets, but here's a nice view of open channels: https://dotsama-channels.vercel.app/#/" CreationDate="2022-03-26T21:48:57.917" UserId="85" />
  <row Id="1052" PostId="1284" Score="0" Text="emmm, It's same. still failed." CreationDate="2022-03-26T23:29:14.530" UserId="299" />
  <row Id="1053" PostId="1281" Score="0" Text="this is on `add-fees`. thanks! https://github.com/doraFactory/dorafactory-node/blob/add-fees/pallets/quadratic-funding/src/benchmarking.rs" CreationDate="2022-03-26T23:29:42.780" UserId="299" />
  <row Id="1054" PostId="1279" Score="0" Text="duh - awesome man thanks for the tip!" CreationDate="2022-03-27T00:33:24.623" UserId="1830" />
  <row Id="1055" PostId="1281" Score="0" Text="What is the output of: `./target/release/dorafactory-node benchmark --chain=dev --list`? This should list all of your available benchmarks." CreationDate="2022-03-27T00:45:17.707" UserId="28" />
  <row Id="1056" PostId="1284" Score="0" Text="Can you instead of pallet_template and doSomthing pass “*” and check if it runs?" CreationDate="2022-03-27T01:32:11.023" UserId="318" />
  <row Id="1057" PostId="765" Score="0" Text="I believe what was meant here with the question is the issue currently with Polkadot JS UI not letting you to do transactions with stash accounts that are not added to browser or extension wallet.  Which should be possible using polkadot-js-api proxy.proxy call somehow like:&#xA;&#xA;proxy(real: AccountId32, force_proxy_type: Option&lt;NodeRuntimeProxyType&gt;, call: Call&#xA;meaning something in terms of &#xA;```&#xA;api.tx.proxy.proxy(STASH.address, PROXY.type, (call)=&gt; {&#xA;   here content of the transaction that gets decoded as a call.&#xA;});&#xA;```" CreationDate="2022-03-27T03:11:50.287" UserId="1925" />
  <row Id="1058" PostId="383" Score="0" Text="that was helpful! Thanks @Bruno" CreationDate="2022-03-27T05:18:14.623" UserId="1927" />
  <row Id="1059" PostId="1151" Score="0" Text="Note that the ss58 registry is for non-test networks." CreationDate="2022-03-27T05:58:21.203" UserId="85" />
  <row Id="1060" PostId="1276" Score="0" Text="Indeed, [RocksDB](https://github.com/facebook/rocksdb) started as a fork of LevelDB and then [built from there](https://github.com/facebook/rocksdb/wiki)" CreationDate="2022-03-27T06:39:17.400" UserId="1866" />
  <row Id="1061" PostId="1290" Score="0" Text="Thank you @Jaco, you are awesome. Is there similar apis to get the start time of a specific era. const date=getEraStartTime(eraIndex);" CreationDate="2022-03-27T09:02:15.973" UserId="642" />
  <row Id="1062" PostId="1294" Score="0" Text="How could I miss that. smart!!!!!" CreationDate="2022-03-27T09:21:20.663" UserId="1927" />
  <row Id="1064" PostId="1294" Score="2" Text="I am guessing the Substrate devs also make extensive use of tests with `cargo test -p pallet_name` - that is faster than spinning up a node" CreationDate="2022-03-27T09:33:07.603" UserId="1866" />
  <row Id="1065" PostId="1286" Score="0" Text="oh, I lost `list_benhmark`, thanks!" CreationDate="2022-03-27T09:39:53.803" UserId="299" />
  <row Id="1066" PostId="1298" Score="0" Text="Thanks for your response. It's very helpful.&#xA;&#xA;&quot;history of the usage of different WebSockets&quot; &lt;- What I mean by this ...&#xA;&#xA;I want to know, for example - Given a specific era, how many transactions on the PolkaDot mainchain were processed by Parity, OnFinaility and Dwellir?&#xA;&#xA;80% Parity&#xA;5% OnFinality&#xA;15% Dwellir" CreationDate="2022-03-27T10:18:24.557" UserId="1923" />
  <row Id="1067" PostId="1298" Score="0" Text="This is a misunderstanding of how blockchains work. You cannot actually know this because these websocket endpoints don't &quot;process transactions&quot;the entire network does the &quot;processing&quot; to reach consensus. Furthermore transactions can be relayed to the network simply by running your own node without needing a public endpoint. This is in fact how parachains send their blocks to Polkadot, but thats a different question." CreationDate="2022-03-27T10:53:47.110" UserId="87" />
  <row Id="1068" PostId="1298" Score="0" Text="If you want stats on number of connections over time you should probably contact the teams doing the hosting, but even then you will never be able to discover how many transactions are &quot;first seen&quot; by a particular node. Many nodes may not even be public for example for exchanges." CreationDate="2022-03-27T10:55:17.617" UserId="87" />
  <row Id="1069" PostId="1294" Score="0" Text="@RosaryBeads let me check and get back to you" CreationDate="2022-03-27T13:31:07.343" UserId="1927" />
  <row Id="1070" PostId="1232" Score="0" Text="HI, is there any customize call in parachain XCM example? thanks! i want to learn it.&#xA;if i want to pass parameters in call, how to pass `palletId` and `methodId`" CreationDate="2022-03-27T13:35:37.253" UserId="489" />
  <row Id="1071" PostId="1302" Score="0" Text="Interesting, I'll have to try that out." CreationDate="2022-03-27T14:26:44.443" UserId="448" />
  <row Id="1072" PostId="1303" Score="0" Text="If you want a more specific answer, you should include what you are trying to do specifically." CreationDate="2022-03-27T15:53:59.623" UserId="28" />
  <row Id="1073" PostId="1089" Score="0" Text="thanks for your answer! quick question:&#xA;&#xA;Once i have the storages defined, is there any way to query the storage tree like this:&#xA;&#xA;`select * from resources where account = '12';`" CreationDate="2022-03-27T16:47:08.510" UserId="1815" />
  <row Id="1075" PostId="1311" Score="0" Text="perhaps a new question could be around: &quot;how much is it the Substrate consumer's job to optimize FRAME logic at a low level?&quot; or something similar... looking to understand how the structure of Substrate is crafted to help help 9or sometimes mislead!) runtime devs on best practices." CreationDate="2022-03-27T17:31:51.010" UserId="34" />
  <row Id="1076" PostId="1290" Score="1" Text="Te state is not indexed by time, only blockHash. Since the state doesn't carry any information not pertinent to future block execution, this mapping is not available. You would need to track the events through the chain to find the start and then get the timestamp. (This is really for indexers)" CreationDate="2022-03-27T18:14:40.367" UserId="627" />
  <row Id="1077" PostId="1294" Score="0" Text="Yes, but these are only unit tests. I mean for basic functionality you can write unit tests :)" CreationDate="2022-03-27T18:41:08.707" UserId="73" />
  <row Id="1078" PostId="1315" Score="0" Text="(If you happen to read the exact same data multiple times though I belive the additional reads are free)" CreationDate="2022-03-27T19:14:11.320" UserId="85" />
  <row Id="1079" PostId="1280" Score="0" Text="Docs updated here: https://github.com/paritytech/substrate/pull/11125" CreationDate="2022-03-27T19:14:35.550" UserId="28" />
  <row Id="1080" PostId="1315" Score="0" Text="Not literally free. Nothing is literally free. But the overhead compared to the main trie access is nominal. Still, writing efficient code means accessing the `sp-io` layers as few times as possible." CreationDate="2022-03-27T19:17:04.127" UserId="28" />
  <row Id="1081" PostId="1313" Score="0" Text="Thank you, very useful as always, I really appreciate your time. In fact I want to demonstrate an account's received rewards during a period of time. I can fetch timestamped data from subscan but its almost 10 eras back. However, with on chain data utilizing stakerRewards api, we have update info but no timestamps! I think I should finally merge the two results and do some programing tricks to calculate missing timeStamps." CreationDate="2022-03-27T19:22:05.580" UserId="642" />
  <row Id="1082" PostId="1315" Score="2" Text="Exactly. It still involves going to the host and decoding the data on the runtime side." CreationDate="2022-03-27T19:28:00.550" UserId="73" />
  <row Id="1083" PostId="1316" Score="0" Text="When you say &quot;but use a different AccountId type, you will need to use this one in your test&quot;, I assume you mean that if they use an AccountId value that isn't AccountId32 in their implementation then they should use that other value in their test? Is that assumption correct?" CreationDate="2022-03-27T19:49:57.213" UserId="83" />
  <row Id="1085" PostId="1317" Score="2" Text="Is your question &quot;how to add a new RPC to Substrate&quot;?" CreationDate="2022-03-27T21:50:55.190" UserId="28" />
  <row Id="1086" PostId="1173" Score="0" Text="@h4x3rotab Yes, that's correct, thanks for bringing that up! There's currently already a PR to include it in ink!. I'll update the above answer once it's merged." CreationDate="2022-03-28T03:05:54.007" UserId="227" />
  <row Id="1087" PostId="979" Score="0" Text="they should be compatible. `Expected epoch change to happen at ` usually means your node did not produce a block for too long" CreationDate="2022-03-28T03:51:21.763" UserId="359" />
  <row Id="1088" PostId="1049" Score="0" Text="Hi @ironman, thanks for your reply. There is a missing step in you answer that I could not figure it out yet, which is: How to extend the `RPC` into the `rpc.rs` file. There is a lot of doc, about this when you are trying to reach out the `runtime storage`, but in this case I want the `offchain storage`, something like the following snip:&#xA;&#xA;`// Add a silly RPC that returns constant values io.extend_with(SomeOcsApi::to_delegate(SomeOcsApiImpl&lt;T&gt; ?????? )));`&#xA;&#xA;TIA" CreationDate="2022-03-28T04:43:38.843" UserId="205" />
  <row Id="1090" PostId="1327" Score="0" Text="Is it possible to know the version of the api in which the fix was released? I'm using a third-party project which uses v7.12.1 in it's dependency" CreationDate="2022-03-28T06:48:54.367" UserId="683" />
  <row Id="1092" PostId="1308" Score="0" Text="TIL - have only been watcing from the sidelines since it seemed full" CreationDate="2022-03-28T07:36:37.733" UserId="1949" />
  <row Id="1093" PostId="1331" Score="3" Text="Issue logged to address the very last point https://github.com/polkadot-js/api/issues/4695" CreationDate="2022-03-28T08:27:14.237" UserId="627" />
  <row Id="1094" PostId="1210" Score="0" Text="nice job.thanks" CreationDate="2022-03-28T09:41:41.177" UserId="1838" />
  <row Id="1095" PostId="1333" Score="0" Text="You need to have a node using metadata v14 as per this https://github.com/scs/substrate-api-client/blob/7b6b822e2826e384346a9ade9585a6f96f4951ca/node-api/src/metadata.rs#L418" CreationDate="2022-03-28T09:47:36.647" UserId="627" />
  <row Id="1096" PostId="1329" Score="0" Text="The docs go into this a bit - if it's just a few blocks then the scheduler can help: https://docs.substrate.io/how-to-guides/v3/parachains/runtime-upgrades/" CreationDate="2022-03-28T09:52:14.033" UserId="85" />
  <row Id="1097" PostId="1332" Score="1" Text="There are multiple such questions, please search first. TLDR; as quick fix put `#[pallet::without_storage_info]` under the `#[pallet::pallet]`." CreationDate="2022-03-28T09:58:19.797" UserId="94" />
  <row Id="1098" PostId="1328" Score="1" Text="Please only open *either* an issue in Substrate or ask here, not both. Thanks." CreationDate="2022-03-28T10:00:39.957" UserId="94" />
  <row Id="1099" PostId="1333" Score="0" Text="Okay @Jaco I executed a new node. Am getting this error: `thread 'main' panicked at 'called 'Result::unwrap()' on an 'Err' value: Deserializing(Error(&quot;missing field 'stateVersion'&quot;, line: 1, column: 392))'`" CreationDate="2022-03-28T10:08:36.853" UserId="444" />
  <row Id="1100" PostId="1317" Score="0" Text="Yes, that's right. I'll edit the title to make it clearer." CreationDate="2022-03-28T10:27:37.447" UserId="88" />
  <row Id="1101" PostId="1333" Score="0" Text="This [issue](https://stackoverflow.com/questions/70408593/serde-missing-field-error-when-deserializing-json-file) is somewhat similar to the one i'm facing but not sure how it links to it. Thanks @Jaco for the previous correction. Not facing that error anymore." CreationDate="2022-03-28T11:42:20.600" UserId="444" />
  <row Id="1102" PostId="1253" Score="0" Text="Thank you, that did the trick!" CreationDate="2022-03-28T11:43:38.440" UserId="280" />
  <row Id="1103" PostId="997" Score="0" Text="yes, it is. we also observed this issue on the live network" CreationDate="2022-03-28T11:48:27.133" UserId="1814" />
  <row Id="1104" PostId="1341" Score="4" Text="See https://github.com/polkadot-js/apps/issues/7227#issuecomment-1080607686 (There is no magnata-parachain -&gt; types mapping defined. The mapping happens on the specName itself, however in the apps UI config there is no mapping for this specName provided)" CreationDate="2022-03-28T12:58:53.930" UserId="627" />
  <row Id="1106" PostId="1340" Score="1" Text="Looking forward to the article!" CreationDate="2022-03-28T13:32:54.793" UserId="1949" />
  <row Id="1107" PostId="1310" Score="0" Text="Okay, so in my example when I create an asset in my `assets-pallet` I would call to a Config trait like `T::MyMarketTrait::do_somthing();` and finally implement that in my runtime under `pallet_assets::Config for Runtime {...}`?" CreationDate="2022-03-28T13:38:05.510" UserId="448" />
  <row Id="1108" PostId="1332" Score="0" Text="That solves it. Thank you" CreationDate="2022-03-28T14:09:16.400" UserId="1789" />
  <row Id="1110" PostId="1334" Score="0" Text="May i know the difference between your answer and adding #[pallet::without_storage_info] under the #[pallet::pallet] ?" CreationDate="2022-03-28T14:16:44.717" UserId="1789" />
  <row Id="1111" PostId="1299" Score="2" Text="Actually wasm has support for rust-std, see here for the choice behind not supporting std when compiling to wasm&#xA;https://github.com/paritytech/substrate/issues/4043.&#xA;&#xA;Also i looked through builder.rs, i cannot find the part where the &quot;--no-default-features&quot; flag is passed so that the no_std attibute is applied, can anyone show me this in the code, or perhaps another method is used?" CreationDate="2022-03-28T14:17:58.030" UserId="434" />
  <row Id="1112" PostId="1345" Score="1" Text="To add to this, the technical reason why &quot;it's likely not the end of the world&quot; is that `MaxLocks` are used with `WeakBoundedVec`: https://github.com/paritytech/substrate/blob/65b44e91bedd6961ef30cef08e89273b7d98b4ed/frame/balances/src/lib.rs#L541" CreationDate="2022-03-28T14:19:34.430" UserId="167" />
  <row Id="1113" PostId="1348" Score="0" Text="Can you please make it more simple for me, I am very new  to substrate and rust, &#xA;&#xA;Thank you for your response." CreationDate="2022-03-28T14:29:55.170" UserId="679" />
  <row Id="1114" PostId="1334" Score="1" Text="`without_storage_info` changes the pallet-wide default to allow unbounded state. Generally you want your state to be bounded. You can opt out just one storage item using `#[pallet::unbounded]`.  FYI: I am just updating the docs on this: https://github.com/substrate-developer-hub/substrate-docs/pull/925/files" CreationDate="2022-03-28T15:52:21.893" UserId="85" />
  <row Id="1116" PostId="1089" Score="0" Text="I'm less familiar with the JS side of things but I believe this reads all the keys for a particular account: https://github.com/polkadot-js/apps/blob/3df2aaa1ca25d00d525b16a3a432412c5b5b597b/packages/page-nfts/src/AccountItems/useAccountItems.ts#L39" CreationDate="2022-03-28T16:02:55.473" UserId="85" />
  <row Id="1117" PostId="1207" Score="2" Text="The frame_system pallet mostly has `no_std` functionality, but also has some functionality that makes use of `std::*` and these bits are put behind a feature that the frame_system crate defines in Cargo.toml called &quot;std&quot;. The wasm code isn't able to call any `std` fn directly (but could call that functionality indirectly via a host function)." CreationDate="2022-03-28T16:13:00.350" UserId="85" />
  <row Id="1118" PostId="1347" Score="0" Text="Can you share the function signature you want, since your question makes exactly what types you are working with confusing." CreationDate="2022-03-28T16:48:42.600" UserId="28" />
  <row Id="1119" PostId="1027" Score="0" Text="@h4x3rotab this IMHO should be an answer - it's very on point :)" CreationDate="2022-03-28T16:56:01.200" UserId="34" />
  <row Id="1120" PostId="1297" Score="0" Text="Thank you for the batch reference here, that helps." CreationDate="2022-03-28T17:08:56.717" UserId="1949" />
  <row Id="1121" PostId="1355" Score="0" Text="(The addition of the disputes mechanism has I believe temporarily reduced block times, but it might be fixed in v0.9.19.)" CreationDate="2022-03-28T18:21:56.127" UserId="85" />
  <row Id="1122" PostId="1314" Score="0" Text="Tried this `num-traits = { version = &quot;0.2&quot;, default-features = false }`  but still threw the same error." CreationDate="2022-03-28T19:39:50.143" UserId="1850" />
  <row Id="1123" PostId="1354" Score="0" Text="How do you access the Storage items otherwise?&#xA;&#xA;This link has slightly more info:&#xA;https://docs.substrate.io/rustdocs/latest/frame_support/attr.pallet.html#macro-expansion-1" CreationDate="2022-03-28T20:01:43.173" UserId="166" />
  <row Id="1124" PostId="1323" Score="1" Text="Shouldn't the documentation be updated to reflect that?" CreationDate="2022-03-28T20:12:28.743" UserId="166" />
  <row Id="1125" PostId="1355" Score="0" Text="it looks like the para must have been assigned a core at this stage, and then the collator is issuing a discovery request to the validators associated with that core. Looking at the code the next step is moving to `advance_to_advertised` but it has not go that far: https://github.com/paritytech/polkadot/blob/22967a4128702b12e438bb951aae32927b949dcd/node/network/collator-protocol/src/collator_side/mod.rs#L576" CreationDate="2022-03-28T20:23:09.660" UserId="85" />
  <row Id="1126" PostId="1323" Score="1" Text="There is already an open pr." CreationDate="2022-03-28T20:28:00.927" UserId="73" />
  <row Id="1127" PostId="1314" Score="0" Text="Maybe you are having some other dependency that pulls in std." CreationDate="2022-03-28T20:30:44.767" UserId="73" />
  <row Id="1128" PostId="1356" Score="0" Text="Sorry, it's not that clear what your question is. Can you please rephrase it?" CreationDate="2022-03-28T21:36:22.450" UserId="85" />
  <row Id="1129" PostId="1354" Score="0" Text="Can you elaborate on this @Georges? I didn't get your point here by `access the Storage item`, do you mean accessing the state of storage?" CreationDate="2022-03-29T00:04:30.347" UserId="1927" />
  <row Id="1130" PostId="1299" Score="2" Text="@infinitesimallySmart Thanks for the correction! I've updated the answer. Does that answer your question?" CreationDate="2022-03-29T00:16:47.500" UserId="3" />
  <row Id="1132" PostId="1300" Score="0" Text="I updated the cargo files with polkadot-v0.9.12 branch. and run again cargo build --release.The error occurs again." CreationDate="2022-03-29T06:23:34.210" UserId="1914" />
  <row Id="1133" PostId="1300" Score="0" Text="You can get branch  origin/tutorials/solutions/add-a-pallet and build the project And see what happens." CreationDate="2022-03-29T06:26:13.613" UserId="1914" />
  <row Id="1135" PostId="1346" Score="0" Text="What if I want to keep using the old name? I don't want to break the API.&#xA;`move_prefix(b&quot;Locks&quot;, b&quot;OldLocks&quot;)` Does this works?" CreationDate="2022-03-29T07:17:06.753" UserId="251" />
  <row Id="1136" PostId="1361" Score="0" Text="Can you paste a link to a repo in which this error can be reproduced? also, looking at the error, it seems to me like you are using the same frame macros, such as `construct_runtime` in the same scope, i.e. in the same file, and they are not designed to be used like that. If so, try separating these feature-gated runtimes into separate modules or crates, similar to `polkadot`, `kusama` and `westend` crates of the polkadot repo." CreationDate="2022-03-29T09:53:07.960" UserId="167" />
  <row Id="1137" PostId="1354" Score="0" Text="Have you built your runtime using `cargo build` and have ran the chain? What check did you do to verify that it &quot;mutates chain state and queries the state as expected&quot; ?" CreationDate="2022-03-29T10:06:56.510" UserId="172" />
  <row Id="1138" PostId="1369" Score="0" Text="Does this mean the chain is only syncing in the extension if an app is connected?" CreationDate="2022-03-29T10:15:28.043" UserId="380" />
  <row Id="1139" PostId="1370" Score="1" Text="In rust, variables are generally defined inside functions unless they are statics or constants." CreationDate="2022-03-29T10:26:56.153" UserId="85" />
  <row Id="1140" PostId="1370" Score="0" Text="@Squirrel yes, it's consider as global variable `#[pallet::storage]`" CreationDate="2022-03-29T10:28:04.193" UserId="180" />
  <row Id="1141" PostId="1232" Score="0" Text="As mentioned in the answer, you first need to modify the `xregister` dispatchable function on the pallet before you can use `Transact`. It is not possible to &quot;customize&quot; the call function while constructing the XCM `Transact` instruction." CreationDate="2022-03-29T10:29:09.013" UserId="104" />
  <row Id="1143" PostId="1049" Score="2" Text="@PabloBuitrago as my answer says: &#xA;1. annotate your rpc trait with #[rpc]&#xA;2. annotate your rpc method with #[rpc]&#xA;3. impl the rpc trait, with the Off-Chain Storage as a field.&#xA;4. in your node/rpc.rs, config the delegate to your defined rpc.&#xA;&#xA;For step 1-3, you can take [our rpc](https://github.com/parami-protocol/parami-blockchain/blob/main/pallets/did/rpc/src/lib.rs) as reference;&#xA;For step4, you cant take [our node rpc](https://github.com/parami-protocol/parami-blockchain/blob/main/nodes/dana/src/rpc.rs) as reference." CreationDate="2022-03-29T10:36:39.827" UserId="393" />
  <row Id="1144" PostId="1299" Score="0" Text="Yes, Excellent answer" CreationDate="2022-03-29T10:40:53.703" UserId="434" />
  <row Id="1145" PostId="1370" Score="1" Text="My apologies - I did not know that that was possible. Those sneaky macros!" CreationDate="2022-03-29T10:48:51.070" UserId="85" />
  <row Id="1146" PostId="1333" Score="0" Text="https://github.com/scs/substrate-api-client/issues/205#issuecomment-1025060893. This may be a workaround for stateVersion" CreationDate="2022-03-29T11:22:47.807" UserId="360" />
  <row Id="1147" PostId="1376" Score="0" Text="I encounted this error: `error[E0599]: the method 'saturating_accrue' exists for associated type '&lt;&lt;T as pallet::Config&gt;::Currency as Currency&lt;&lt;T as frame_system::Config&gt;::AccountId&gt;&gt;::Balance', but its trait bounds were not satisfied`. Thank for your answer!" CreationDate="2022-03-29T11:23:41.393" UserId="180" />
  <row Id="1148" PostId="1376" Score="0" Text="I defined `BalanceOf&lt;T&gt;` as `Type`, So I cannot implement trait for it" CreationDate="2022-03-29T11:42:19.910" UserId="180" />
  <row Id="1149" PostId="1049" Score="0" Text="Thanks @ironman. Congrats! or Parami. Looks promising." CreationDate="2022-03-29T15:02:33.820" UserId="205" />
  <row Id="1150" PostId="1151" Score="0" Text="how update rpc response's ss58Format?" CreationDate="2022-03-29T15:13:48.737" UserId="1838" />
  <row Id="1151" PostId="1151" Score="1" Text="Here is an example of how to update the chain spec: https://github.com/interlay/interbtc/commit/431937276b9197a373855b084b97dfa931d8273d" CreationDate="2022-03-29T15:31:33.803" UserId="126" />
  <row Id="1152" PostId="1356" Score="1" Text="Edited above to clarify." CreationDate="2022-03-29T15:37:02.070" UserId="1970" />
  <row Id="1153" PostId="1359" Score="0" Text="This is where I was confised, the &quot;format&quot; vs &quot;content&quot; made the penny drop for me" CreationDate="2022-03-29T15:37:46.247" UserId="1970" />
  <row Id="1154" PostId="1363" Score="0" Text="Thank you! Will give the tools a whirl." CreationDate="2022-03-29T15:38:17.380" UserId="1970" />
  <row Id="1155" PostId="1380" Score="0" Text="Thank you! This helps, no I can clearly tie to what is above." CreationDate="2022-03-29T15:38:47.457" UserId="1970" />
  <row Id="1156" PostId="1354" Score="0" Text="Ran the chain after building with `cargo build`. And checked with polkadot.js chainstate and extrinsics. Worked perfectly identcal." CreationDate="2022-03-29T15:43:03.323" UserId="1927" />
  <row Id="1157" PostId="1368" Score="0" Text="Can I say `Store` trait is deprecated after FRAME V2? By the way just out of curiosity, can you tell what was it's usecase under what circumstances a developer need those aliases?" CreationDate="2022-03-29T15:46:51.043" UserId="1927" />
  <row Id="1158" PostId="1389" Score="0" Text="What is the problem with your current approach?" CreationDate="2022-03-29T16:08:05.807" UserId="94" />
  <row Id="1159" PostId="1388" Score="3" Text="The only references for `document` inside [`@polkadot/util`](https://github.com/polkadot-js/common) (&amp; `util-crypto/x-randomvalues`) is as part of the license header. The same applies to [`@polkadot/api`](https://github.com/polkadot-js/api/tree/master/packages). This is after a full search of the source. Which library specifically do you have issues with? (It sounds environmental)" CreationDate="2022-03-29T16:26:51.347" UserId="627" />
  <row Id="1160" PostId="990" Score="0" Text="What command did you use to run that? Which runtime are you using? I am currently working on fixing the phragmen benchmark for the kusama runtime." CreationDate="2022-03-29T17:58:59.873" UserId="94" />
  <row Id="1161" PostId="1394" Score="1" Text="❤️  thank you for sharing!" CreationDate="2022-03-29T20:01:05.980" UserId="85" />
  <row Id="1162" PostId="1392" Score="1" Text="I can't personally repro: `cargo check` works for me on rust 2021-11-12 nightly and 2021-12-12 nightly. That said I had to have protobuf's compiler protoc on the path as one of the dependencies seems to need that. Also I am using nixos / linux. `cargo build --release --all-targets` also worked for me on linux." CreationDate="2022-03-29T20:20:28.777" UserId="85" />
  <row Id="1163" PostId="990" Score="0" Text="Can you provide a repo where we can reproduce the issue?" CreationDate="2022-03-30T00:40:07.703" UserId="28" />
  <row Id="1164" PostId="1398" Score="0" Text="I have to declared `sp_runtime` in `dependencies` in Cargo.toml, but I encounter this error: `Dependency 'sp-runtime' has different source paths depending on the build target. Each dependency must have a single canonical source path irrespective of build target.`" CreationDate="2022-03-30T02:27:30.487" UserId="180" />
  <row Id="1165" PostId="1398" Score="0" Text="You need to share your TOML file. Maybe you want to ask a new question and we can help you there." CreationDate="2022-03-30T02:35:22.363" UserId="28" />
  <row Id="1166" PostId="1398" Score="0" Text="I'm using the latest substrate-node-template, and please see my updated question" CreationDate="2022-03-30T02:39:29.427" UserId="180" />
  <row Id="1167" PostId="1406" Score="0" Text="Thank you, good stuff!" CreationDate="2022-03-30T02:40:56.077" UserId="180" />
  <row Id="1168" PostId="1049" Score="1" Text="A common suggestion is when you encounter how-to-use problem, alway go to substrate/Polkadot/Acala/Parami's repository, search a example." CreationDate="2022-03-30T02:48:08.323" UserId="393" />
  <row Id="1169" PostId="1401" Score="0" Text="thanks, that is to say, i need to integrate the destination parachain's pallet in my origin parachain, so that i can dispatch the call.&#xA;in this sense, XCM only can dispatch call in this way that is same as the ping pallet" CreationDate="2022-03-30T03:07:19.030" UserId="489" />
  <row Id="1172" PostId="1392" Score="0" Text="Which OS you are using?" CreationDate="2022-03-30T03:29:23.853" UserId="377" />
  <row Id="1173" PostId="1361" Score="0" Text="They were already placed into separate, feature gated modules but they were within the same crate, so naturally the next layer of separation was distinct crates and once I refactored it, things started to work!" CreationDate="2022-03-30T04:47:53.217" UserId="459" />
  <row Id="1174" PostId="1346" Score="0" Text="I think so, move_prefix is O(1) operation, try it(Before launch, test it locally and in your own testnet)." CreationDate="2022-03-30T07:12:30.133" UserId="393" />
  <row Id="1175" PostId="1408" Score="0" Text="Thank you, @Jaco. Yeah, the `author_submitAndWatchExtrinsic` method is  available only with web sockets. Unfortunately, I can't use it right now. Using RPC I get the `Subscriptions are not available on this transport` response.  I've updated the question and added more details." CreationDate="2022-03-30T07:40:15.287" UserId="1760" />
  <row Id="1176" PostId="1386" Score="0" Text="Could you expand on what it means for two chains to trust each other? And: does every teleportation and reserve backed asset transfer path (channel?) need to be implemented or activated separately by both participating chains? There is no way to do this one-sided?" CreationDate="2022-03-30T07:50:55.423" UserId="1984" />
  <row Id="1177" PostId="1407" Score="1" Text="If you do `cargo build --profile production` then you will appreciate how much faster `cargo build --release` is." CreationDate="2022-03-30T08:12:59.673" UserId="85" />
  <row Id="1178" PostId="1407" Score="0" Text="`SKIP_WASM_BUILD` can be used to only build the code in native mode. Which OS are you using? Different linkers can help a bit. An AMD 5950x can help a lot." CreationDate="2022-03-30T08:17:58.777" UserId="85" />
  <row Id="1179" PostId="1407" Score="0" Text="Remember there's also `cargo check` that can be done first which is a lot faster, and faster still if you're in the directory of the pallet as it has less to build." CreationDate="2022-03-30T08:19:53.087" UserId="85" />
  <row Id="1180" PostId="1397" Score="0" Text="Do I understand you correctly that you're asking how to write unit tests for the chain extension? So unit tests that sit in the Substrate runtime?" CreationDate="2022-03-30T08:22:52.590" UserId="227" />
  <row Id="1181" PostId="1407" Score="0" Text="@Squirrel I encountered this error when run `cargo build --profile production` :`error: profile 'production' is not defined`" CreationDate="2022-03-30T08:55:51.413" UserId="180" />
  <row Id="1182" PostId="1407" Score="0" Text="why are you building with release anyway?" CreationDate="2022-03-30T09:22:00.257" UserId="359" />
  <row Id="1183" PostId="1407" Score="0" Text="@BryanChen sorry, I dont understand your question?" CreationDate="2022-03-30T09:53:48.613" UserId="180" />
  <row Id="1184" PostId="1417" Score="0" Text="hum, I need to build and run test." CreationDate="2022-03-30T10:42:38.903" UserId="180" />
  <row Id="1185" PostId="712" Score="0" Text="For `Currency` type of assets pallet I see `Balances` pallet is used in some codebase. So how are both pallet related?" CreationDate="2022-03-30T11:16:16.947" UserId="2010" />
  <row Id="1186" PostId="1414" Score="0" Text="I want to generate the same AccountId generated by pair, so basically I will need to convert sr25519::Public to AccountId." CreationDate="2022-03-30T11:16:26.443" UserId="1837" />
  <row Id="1187" PostId="1419" Score="0" Text="sure, will go through it. Thanks." CreationDate="2022-03-30T11:20:46.820" UserId="1837" />
  <row Id="1188" PostId="1386" Score="2" Text="&quot;Trust&quot; would be up to the governance of each chain. For common good parachains at least, it means &quot;under the same governance system&quot;. For example, the `Root` origin on Statemint is equal to the `Root` origin on the Relay Chain, so they trust each other. Other parachains (e.g. Moonbeam) have their own governance system and definition of `Root` origin, so the Relay Chain doesn't _trust_ Moonbeam as a teleporter because Moonbeam's governance could choose to mint themselves more DOT, while Statemint's could not (because Statemint's == the Relay Chain's)." CreationDate="2022-03-30T11:45:26.033" UserId="620" />
  <row Id="1189" PostId="1386" Score="1" Text="Channels do need to be opened, so one chain requests a channel with another, which must accept. These channels are configured for any type of message, not just reserve backed transfers and teleports." CreationDate="2022-03-30T11:46:51.557" UserId="620" />
  <row Id="1190" PostId="1402" Score="0" Text="Did a query on the URL you provided - under Developer -&gt; Chain state -&gt; Constants the `system.ss58Prefix` Shawn referenced returns 42." CreationDate="2022-03-30T12:33:41.237" UserId="1949" />
  <row Id="1191" PostId="1408" Score="0" Text="The error shown above is from the system events. You need to read the events for the block where it is includes and check ExtrinsicSuccess/Failure to extract the errors for the extrinsic." CreationDate="2022-03-30T12:35:41.570" UserId="1949" />
  <row Id="1192" PostId="1384" Score="0" Text="Certainly noisy in the console, but mesmerising to watch" CreationDate="2022-03-30T12:37:05.037" UserId="1949" />
  <row Id="1193" PostId="1401" Score="0" Text="You do not need to integrate the whole pallet, just the Call enum." CreationDate="2022-03-30T12:38:00.187" UserId="28" />
  <row Id="1194" PostId="1417" Score="2" Text="`cargo test -p your_pallet_name` would run just your pallets tests." CreationDate="2022-03-30T12:47:59.050" UserId="94" />
  <row Id="1195" PostId="1420" Score="0" Text="I tried the same that you are suggested but getting an error &quot;registrar.NotReserved&quot;. I have made multiple attempts but getting the same error each time. And also on every attempt I lose 98 ROC as a submission fee.&#xA;Error Screenshot:- https://imgur.com/OusloSs &#xA;Any more suggestions you may have?" CreationDate="2022-03-30T13:44:05.633" UserId="1987" />
  <row Id="1196" PostId="1407" Score="0" Text="If you run a chain in debug mode at the moment it doesn’t run fast enough for the blocks to complete successfully. Production profile enables fat lto, and is defined on polkadot and cumulus." CreationDate="2022-03-30T13:53:39.667" UserId="85" />
  <row Id="1197" PostId="1422" Score="0" Text="I can give short answer on that. The substrate runtime is compiled in native and wasm, and also if u remove serder and just use parity scale codec its just works fine. And honestly no need to use serde" CreationDate="2022-03-30T14:06:30.257" UserId="351" />
  <row Id="1198" PostId="1420" Score="0" Text="Umpf, I made a mistake above :( Need to call `reserve` in the same module. (`register` is for after the id is available...) Will update the post." CreationDate="2022-03-30T14:09:23.847" UserId="627" />
  <row Id="1199" PostId="1420" Score="0" Text="... however, internally `reserve()` gets the next free id as well, so you will end with the same issue. So I believe the state needs to be cleaned here... at least based on my reading of the situation. And actually the &quot;UI button&quot; does nothing more than call `reserve`, so the outcome would be the same..." CreationDate="2022-03-30T14:11:48.933" UserId="627" />
  <row Id="1200" PostId="1397" Score="0" Text="Yes, I am asking how it is recommended to test that the chain extension is implemented correctly." CreationDate="2022-03-30T14:21:50.830" UserId="1904" />
  <row Id="1201" PostId="1420" Score="0" Text="Yeah getting an error again i.e. &quot;registrar.AlreadyRegistered &quot;&#xA;Error Screenshot:- https://imgur.com/b7sUZEV" CreationDate="2022-03-30T15:02:25.500" UserId="1987" />
  <row Id="1202" PostId="1423" Score="1" Text="https://paritytech.github.io/ink/scale_info/index.html#scale_infoskip_type_params gives a pretty good overview." CreationDate="2022-03-30T15:13:07.990" UserId="85" />
  <row Id="1203" PostId="1392" Score="0" Text="C:\Users\ gives away the OS :-)" CreationDate="2022-03-30T15:17:56.600" UserId="85" />
  <row Id="1204" PostId="1392" Score="2" Text="I would really recommend WSL2 if it's at all possible (ubuntu)." CreationDate="2022-03-30T15:18:40.050" UserId="85" />
  <row Id="1206" PostId="1414" Score="1" Text="`AccountId` is normally just a u64 for benchmarking, so that is not possible AFAIK. Can you not just insert the `AccountId` into the storage with `Some_Storage::&lt;T&gt;::append(id)`?" CreationDate="2022-03-30T15:36:09.927" UserId="94" />
  <row Id="1207" PostId="1262" Score="1" Text="`cargo build --profile production` turns on fat LTO and that's what we've been switching to using for all the benchmarking weight runs. That might explain some of the difference you're seeing. Bear in mind it's not an exact science: one would not expect to get it spot on - you can see from some of the statemint weight PRs that they move about a little from one release to the next." CreationDate="2022-03-30T16:04:27.320" UserId="85" />
  <row Id="1208" PostId="1420" Score="0" Text="Indeed, as linked to the code and explained in the updated answer, the state for next free doesn't match." CreationDate="2022-03-30T17:07:58.310" UserId="627" />
  <row Id="1209" PostId="1414" Score="0" Text="yeah, for now, I am referring to it from the storage. Thanks" CreationDate="2022-03-30T17:18:39.183" UserId="1837" />
  <row Id="1210" PostId="1049" Score="0" Text="Great suggestion! Once more, thank you @ironman." CreationDate="2022-03-30T21:37:58.420" UserId="205" />
  <row Id="1211" PostId="1407" Score="1" Text="@Squirrel the solution will be fix it so that debug build works. Not using release build for debug build. Debug build certainly works for us so it is something can be fixed." CreationDate="2022-03-31T01:55:19.977" UserId="359" />
  <row Id="1212" PostId="1398" Score="0" Text="please take a look at my answer, I have updated." CreationDate="2022-03-31T02:13:45.710" UserId="180" />
  <row Id="1213" PostId="1398" Score="0" Text="Sorry Rong, but you didnt even spend a second to think about how you imported this crate, and to compare it to any other crate in that file and how it is being imported. Please follow patterns outlined by the other imports of substrate crates." CreationDate="2022-03-31T02:18:33.130" UserId="28" />
  <row Id="1214" PostId="1398" Score="0" Text="If you still don't understand, please open a new question with specifically asking how to properly import a crate into an existing substrate project" CreationDate="2022-03-31T02:19:04.897" UserId="28" />
  <row Id="1215" PostId="1398" Score="0" Text="I tried another lib(`use sp_arithmetic::traits::Saturating`,..), but I have same error `method cannot be called on '&lt;&lt;T as pallet::Config&gt;::Currency as Currency&lt;&lt;T as frame_system::Config&gt;::AccountId&gt;&gt;::Balance' due to unsatisfied trait bounds`. Sorry Shawn, I'm new to Substrate :)" CreationDate="2022-03-31T03:37:07.433" UserId="180" />
  <row Id="1216" PostId="1398" Score="0" Text="I found another solution, thank you for your support." CreationDate="2022-03-31T04:35:11.613" UserId="180" />
  <row Id="1217" PostId="1433" Score="1" Text="You're missing a runtime impl of pallet_mmr it seems" CreationDate="2022-03-31T05:20:31.737" UserId="139" />
  <row Id="1218" PostId="1431" Score="0" Text="This does not answer my question regarding how should I install keys for an authority. I can see that you need a 2 derivations for stash and controller but for the grandpa keys, babe, I'm online and so on I am free to choose any derivation path is that right? In this question I was thinking `session` stood for the word session" CreationDate="2022-03-31T05:38:52.110" UserId="139" />
  <row Id="1219" PostId="1401" Score="0" Text="i have some confuse about how to set the Call enum, can you show me some example code ? thanks a lot" CreationDate="2022-03-31T05:58:45.720" UserId="489" />
  <row Id="1220" PostId="1444" Score="0" Text="marked as answer for detail answer.thank you!" CreationDate="2022-03-31T07:24:06.357" UserId="180" />
  <row Id="1221" PostId="1027" Score="0" Text="Thanks! I've made it an answer :D" CreationDate="2022-03-31T07:29:12.363" UserId="544" />
  <row Id="1222" PostId="1443" Score="0" Text="There's a similar question here: https://substrate.stackexchange.com/questions/1338/democracy-rework-in-substrate" CreationDate="2022-03-31T08:14:52.173" UserId="85" />
  <row Id="1223" PostId="1433" Score="1" Text="Please don't share screenshots, instead share code snippets with mardown syntax [here is how](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks)  where possible" CreationDate="2022-03-31T08:57:53.080" UserId="34" />
  <row Id="1224" PostId="1420" Score="0" Text="Try now :) Sudo adjusted the nextFreeId and it is running again. The discrepancy came into play since parachains are being manually registered to match up with their Kusama ids." CreationDate="2022-03-31T09:12:07.517" UserId="627" />
  <row Id="1225" PostId="653" Score="0" Text="Hey what if I have only the extrinsic hash and not the block number?" CreationDate="2022-03-31T09:21:28.057" UserId="371" />
  <row Id="1226" PostId="1442" Score="0" Text="Where is this configured? https://github.com/paritytech/substrate/blob/polkadot-v0.9.17/bin/node/rpc/src/lib.rs#L113  this is the only `pallet-mmr-rpc` they use." CreationDate="2022-03-31T09:22:51.780" UserId="299" />
  <row Id="1227" PostId="1433" Score="0" Text="@Purple_Turtle, yes! I fixed it, thanks." CreationDate="2022-03-31T10:11:04.507" UserId="299" />
  <row Id="1228" PostId="1454" Score="0" Text="What command are you using? Which version of substrate is this? Could you provide the repository?" CreationDate="2022-03-31T10:34:35.873" UserId="94" />
  <row Id="1229" PostId="1451" Score="1" Text="Hi, could I ask why you're using an option for the royalties? Does this mean that the royalties might not be set on nfts? Wouldn't it be better to either have a fixed or default to zero? That way you can avoid the whole option situation" CreationDate="2022-03-31T11:07:44.843" UserId="88" />
  <row Id="1230" PostId="1442" Score="0" Text="The runtime api is implemented in the runtimes." CreationDate="2022-03-31T11:14:26.383" UserId="73" />
  <row Id="1231" PostId="1457" Score="2" Text="Have you checked the Moonbeam docs on precompiles? See: https://docs.moonbeam.network/builders/build/canonical-contracts/precompiles/" CreationDate="2022-03-31T11:36:55.983" UserId="172" />
  <row Id="1232" PostId="1459" Score="0" Text="Thank you for your response,&#xA;&#xA;But I am still facing errors." CreationDate="2022-03-31T13:15:20.430" UserId="679" />
  <row Id="1233" PostId="1459" Score="0" Text="mismatched types&#xA;&#xA;expected associated type, found integer&#xA;&#xA;note: expected associated type `&lt;&lt;T as pallet::Config&gt;::Currency as frame_support::traits::Currency&lt;&lt;T as frame_system::Config&gt;::AccountId&gt;&gt;::Balance`&#xA;                    found type `{integer}`&#xA;help: consider constraining the associated type `&lt;&lt;T as pallet::Config&gt;::Currency as frame_support::traits::Currency&lt;&lt;T as frame_system::Config&gt;::AccountId&gt;&gt;::Balance` to `{integer}`&#xA;note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html" CreationDate="2022-03-31T13:17:02.877" UserId="679" />
  <row Id="1234" PostId="1459" Score="0" Text="This is the error I got as I used your code.&#xA;&#xA;0&#xA;&#xA;&#xA;let creator_share_percent = nft.royalty.map(|creator_roality| {&#xA;    nft.price.unwrap_or_default() * creator_roality /100&#xA;});" CreationDate="2022-03-31T13:17:36.613" UserId="679" />
  <row Id="1235" PostId="1459" Score="0" Text="I think it's due the the number 100 which we are dividing." CreationDate="2022-03-31T13:18:27.537" UserId="679" />
  <row Id="1236" PostId="1452" Score="0" Text="So if I understand correctly, for genesis authorities, one must create one `secret` and then proceed to create 3 separate accounts or derivations with that `secret` for 1. stash, 2. controller, 3. (ed25519) for grandpa, and the rest for ImOnline, babe and the rest is that correct?" CreationDate="2022-03-31T13:31:37.927" UserId="139" />
  <row Id="1237" PostId="1454" Score="0" Text="What are you doing building down in the /dev/ tree?" CreationDate="2022-03-31T14:04:23.437" UserId="116" />
  <row Id="1238" PostId="1388" Score="0" Text="Thank you! Maybe you could tell me if you know other projects that successfully support DOT on react native?" CreationDate="2022-03-31T15:24:42.820" UserId="1991" />
  <row Id="1239" PostId="1460" Score="0" Text="So for voting one requires to bond some amount?" CreationDate="2022-03-31T15:40:55.737" UserId="139" />
  <row Id="1240" PostId="1455" Score="0" Text="In some cases it's not possible to return the assets and rather than burning you can choose to do something else wtih them: https://github.com/paritytech/cumulus/blob/71d7743869f765e1531a4e43ce278d03e4fd8808/polkadot-parachains/statemine/src/xcm_config.rs#L164 - if you look at the last type here in statemine we are sending unreturnable funds to the staking pot `ToStakingPot&lt;Runtime&gt;`." CreationDate="2022-03-31T16:20:06.137" UserId="85" />
  <row Id="1241" PostId="1459" Score="1" Text="Ahh yeah sorry, just write `100u32.into()`." CreationDate="2022-03-31T16:41:18.107" UserId="73" />
  <row Id="1242" PostId="1459" Score="0" Text="Hey, things are working fine now. Thank you for helping me out." CreationDate="2022-03-31T18:26:06.063" UserId="679" />
  <row Id="1243" PostId="1451" Score="0" Text="Hi Yes depends on creator weather he wants to set royalty for his NFT or not, that's why I used Option here. I don't know if there is any better approach to solve this problem. As I am very new to Substrate. &#xA;&#xA;Thank you for your  response." CreationDate="2022-03-31T18:43:13.333" UserId="679" />
  <row Id="1245" PostId="1453" Score="0" Text="As I mentioned in initial question, I don't think it is just wasmi vs wasmtime, it is wasmi under wasmtime specifically, so baseline is not 100% of native for it, but 50% of wasmtime itself. Not sure if wasmi performance should be roughly halved in that case or is there anything else that causes even more overhead." CreationDate="2022-03-31T18:50:45.440" UserId="25" />
  <row Id="1246" PostId="1453" Score="0" Text="BTW, there is work ongoing for enabling wasmer singlepass, which is much faster than interpreters and still not susceptible for JIT bombs, but that is a future, not present." CreationDate="2022-03-31T19:07:00.153" UserId="25" />
  <row Id="1247" PostId="1463" Score="0" Text="Can you try converting to a byte array (`u8a`) before you send it into the RPC?" CreationDate="2022-03-31T21:52:20.853" UserId="28" />
  <row Id="1248" PostId="1440" Score="0" Text="For more info, see the expansion of the implementation of the construct_runtime macro that deals with the config:&#xA;https://github.com/paritytech/substrate/blob/master/frame/support/procedural/src/construct_runtime/expand/config.rs#L67. You can see that the overarching Config (aggregation of all pallet configs) implements serialize + deserialize, therefore its fields must also." CreationDate="2022-04-01T00:37:42.813" UserId="434" />
  <row Id="1249" PostId="1458" Score="2" Text="As the author of the iridium-labs/substrate fork, significant updates have been added to a different branch, available here: https://github.com/iridium-labs/substrate/tree/iris" CreationDate="2022-04-01T02:01:21.663" UserId="543" />
  <row Id="1250" PostId="1472" Score="1" Text="Thank you! I have the same issue. It's okay after intstall `make` package." CreationDate="2022-04-01T03:12:50.830" UserId="125" />
  <row Id="1251" PostId="1475" Score="0" Text="I suggest to ask this question in Rust stackoverflow rather than Substrate stackexchange" CreationDate="2022-04-01T06:26:07.997" UserId="544" />
  <row Id="1252" PostId="1438" Score="0" Text="How to enable block pruning in configuration ?" CreationDate="2022-04-01T07:10:01.970" UserId="393" />
  <row Id="1253" PostId="1468" Score="0" Text="Thanks. I just want to notice regarding pallet changes I've mentioned previously. Most of the changes are just updated storage names and struct fields in those storages. No other storage/struct changes were done (no new storages added and no new structs created to store in those storages). There are some changes regarding extrinsics logic, which in the end operates with same storage items. But I assume that is not an issue for migration." CreationDate="2022-04-01T09:46:06.567" UserId="2008" />
  <row Id="1254" PostId="1453" Score="0" Text="Wasmer singlepass integration is experimental. The tradeoff between Wasmer singlepass and wasmi ist not only the Wasm execution performance but also the compilation performance. The compilation performance of the Wasm runtime is especially important since smart contracts usually are very tiny scripts that do not compute a lot due to gas costs. Therefore costs of compilation is significant. In past experiments we found that the compilation overhead of Wasmer singlepass is 30% higher than with wasmi." CreationDate="2022-04-01T10:28:49.160" UserId="1881" />
  <row Id="1255" PostId="1438" Score="0" Text="In what configuration?" CreationDate="2022-04-01T10:49:32.493" UserId="73" />
  <row Id="1256" PostId="1485" Score="3" Text="This might not work as expected if the `AccountId` is a `MultiSigner` (or indeed anything except `sr25519::Public`)." CreationDate="2022-04-01T11:13:53.737" UserId="53" />
  <row Id="1257" PostId="1481" Score="0" Text="Thanks, this is very helpful！" CreationDate="2022-04-01T11:32:31.607" UserId="1959" />
  <row Id="1258" PostId="1458" Score="0" Text="My apologies for that, judged based on time on master. I'll update" CreationDate="2022-04-01T11:46:44.757" UserId="88" />
  <row Id="1259" PostId="1454" Score="0" Text="Although this is a useful post for some, its more something you could ask in a developer support channel like substratedevs:matrix.org or make an issue on this page: https://docs.substrate.io/v3/getting-started/installation/" CreationDate="2022-04-01T12:00:59.517" UserId="172" />
  <row Id="1261" PostId="1450" Score="0" Text="Could you please add more context to your question? What you need is probably `all`." CreationDate="2022-04-01T12:16:46.720" UserId="172" />
  <row Id="1262" PostId="1450" Score="0" Text="@SachaLansky Yes `all` does fix it, but I am trying to see more examples. For example, I have my node behind an Nginx proxy, and so I access it via &lt;IP&gt;:443. How would I specify this for the `rpc-cors` rule?" CreationDate="2022-04-01T12:20:59.093" UserId="139" />
  <row Id="1264" PostId="1468" Score="0" Text="No, it should not be an issue. You just need to write a migration which moves the appropriate data into the appropriate places in terms of storage names or storage structures. If you can define that migration, should be no issue." CreationDate="2022-04-01T13:08:44.817" UserId="28" />
  <row Id="1265" PostId="1479" Score="1" Text="But on the runtime side the chain_extension types need to implement MaxEncodedLen to be read from memory:&#xA;`let a: Vec&lt;u8&gt; = env.read_as()?;` -&gt; `the trait 'MaxEncodedLen' is not implemented for 'hidden_include::dispatch::Vec&lt;u8&gt;'`" CreationDate="2022-04-01T14:47:39.003" UserId="1792" />
  <row Id="1267" PostId="1495" Score="0" Text="Need tutorial for Golang also" CreationDate="2022-04-01T16:02:26.403" UserId="2059" />
  <row Id="1268" PostId="1496" Score="1" Text="Thank you, I'll check Rust docs. But how could I get this aggregated data, is requesting some 3d-party services the only chance?" CreationDate="2022-04-01T16:13:01.540" UserId="2040" />
  <row Id="1269" PostId="1496" Score="1" Text="I edit and add link to another question that answers how you can build your own indexing node." CreationDate="2022-04-01T16:14:59.850" UserId="138" />
  <row Id="1270" PostId="1495" Score="0" Text="In case, I found partial docs for [polkascan](https://explorer.polkascan.io/polkadot/runtime/polkadot-9170) with all historical pallets, but still there's nothing about getting full list of extrinsics for an account" CreationDate="2022-04-01T16:19:08.653" UserId="2040" />
  <row Id="1271" PostId="1495" Score="1" Text="If you want to query across history then you might be after an indexer for speed: https://substrate.stackexchange.com/questions/35/is-there-a-good-indexer-for-substrate-chains-like-the-graph" CreationDate="2022-04-01T16:28:13.420" UserId="85" />
  <row Id="1272" PostId="1496" Score="0" Text="Got it, thanks!" CreationDate="2022-04-01T16:31:03.317" UserId="2040" />
  <row Id="1273" PostId="1492" Score="1" Text="Set env `RUST_LOG=trace` to get a lot of messages (First thing to check is that you're getting network traffic in the standard output messages.)" CreationDate="2022-04-01T16:33:33.120" UserId="85" />
  <row Id="1274" PostId="997" Score="0" Text="There are bugs that are being worked on. I don't think bug reports are suitable for a Q&amp;A website." CreationDate="2022-04-01T16:34:48.243" UserId="283" />
  <row Id="1275" PostId="1492" Score="0" Text="See for lots of ways you can filter for specific areas: https://docs.rs/env_logger/latest/env_logger/" CreationDate="2022-04-01T16:34:58.147" UserId="85" />
  <row Id="1276" PostId="997" Score="3" Text="I’m voting to close this question because this is a bug report/complaint, not a question." CreationDate="2022-04-01T16:35:47.970" UserId="283" />
  <row Id="1280" PostId="1472" Score="0" Text="Ah yes I see now at the end that was what it was trying to run: `running: &quot;make&quot; &quot;-j&quot; &quot;4&quot;`" CreationDate="2022-04-01T19:21:19.257" UserId="85" />
  <row Id="1281" PostId="1488" Score="1" Text="Thank you, @Gav for the detailed answer. It was very helpful and solved my problem." CreationDate="2022-04-01T19:52:34.833" UserId="1837" />
  <row Id="1282" PostId="1470" Score="0" Text="it would be great if you can share the minimal code with which we can reproduce the issue. From the info given it's not clear" CreationDate="2022-04-02T00:49:36.080" UserId="1927" />
  <row Id="1283" PostId="1478" Score="4" Text="Luke, in general can I suggest you condense your questions into the specific information needed to help you. It is impossible to parse all of the content you are writing. Treat this as a question and answer forum, not a blog." CreationDate="2022-04-02T06:49:17.490" UserId="28" />
  <row Id="1284" PostId="1511" Score="0" Text="Ya, I know. useSubstrateState() is not my library, I can't modify it, how can I get the account address without relying on the library. https://github.com/substrate-developer-hub/substrate-front-end-template/tree/main/src/substrate-lib" CreationDate="2022-04-02T08:50:55.513" UserId="213" />
  <row Id="1285" PostId="1511" Score="1" Text="I added the &lt;AccountSelector /&gt; component. I have to choose the account from the list, it can't happen directly. https://polkadot.js.org/docs/extension/usage Thanks.." CreationDate="2022-04-02T09:13:12.763" UserId="213" />
  <row Id="1287" PostId="1503" Score="0" Text="Ah the collateral is put up by the vault not the user. Can you redeem your kBTC from any vault or does it have to be the vault that you put the BTC into in the first place?" CreationDate="2022-04-02T11:30:41.303" UserId="85" />
  <row Id="1288" PostId="1512" Score="7" Text="You can add more signature verification by `ChainExtension`. Check our example here: https://github.com/Phala-Network/phala-blockchain/blob/f3798d2d882f3621d20d7fd3581c138f3e3328b5/crates/pink/src/runtime/extension.rs#L179-L190" CreationDate="2022-04-02T11:33:09.597" UserId="544" />
  <row Id="1289" PostId="1502" Score="1" Text="For next time please paste text rather than images (for the console bits)." CreationDate="2022-04-02T11:33:46.637" UserId="85" />
  <row Id="1290" PostId="1469" Score="0" Text="If possible, storing a fixed sized hash of the value might be better?" CreationDate="2022-04-02T11:44:27.307" UserId="85" />
  <row Id="1291" PostId="1514" Score="0" Text="Could you provide some examples of this usage and their counterparts in the contract side? I've been experimenting a lot with read() and read_as_unbounded() while also sending the lengths of the encoded types as the first arguments, but all my tries resulted in encoding failed errors when attempting to call those functions." CreationDate="2022-04-02T13:57:04.267" UserId="1792" />
  <row Id="1292" PostId="1502" Score="1" Text="what is your source code here? please link to it." CreationDate="2022-04-02T13:59:18.747" UserId="34" />
  <row Id="1294" PostId="1514" Score="0" Text="I mean &quot;decoding&quot; failed errors" CreationDate="2022-04-02T15:09:18.263" UserId="1792" />
  <row Id="1295" PostId="1503" Score="1" Text="From what I could find in https://docs.interlay.io/#/vault/overview?id=vault-isolation you can redeem from any vault though with some considerations." CreationDate="2022-04-02T16:10:26.147" UserId="609" />
  <row Id="1296" PostId="1514" Score="1" Text="Oh I see now, I don't have to encode things myself on the contract side. I was doing that and encoded data was being sent with double encoding. I managed to get things working, but I still believe documentation and proper example code is very lacking for this." CreationDate="2022-04-02T16:20:55.423" UserId="1792" />
  <row Id="1297" PostId="1499" Score="1" Text="I had a discussion with other Parity team member. Here is what he suggested I should check the dispatch https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama-rpc.dwellir.com#/democracy/dispatch under the id Auctlp21.&#xA;The auctions will start on block #12,096,600, each will last 27,000 blocks and will start at intervals of #100,800 blocks. Therefore I should use as ending block of my crowdloan the first block of Period 21, which is 12,700,800. I have selected 12,700,800 as ending block for my crowdloan and Lease Period 21-28" CreationDate="2022-04-02T17:08:21.043" UserId="140" />
  <row Id="1299" PostId="1520" Score="0" Text="Thanks for quick reply. I mean Changes in Storage. Is it still apply? What my function should throw to rollback?" CreationDate="2022-04-02T19:29:37.557" UserId="68" />
  <row Id="1300" PostId="1478" Score="0" Text="Shawn i've condensed the question now" CreationDate="2022-04-02T21:08:31.937" UserId="83" />
  <row Id="1301" PostId="1516" Score="0" Text="--&gt; pallet-fuso-verifier/src/benchmarking.rs:86:34&#xA;   |&#xA;86 |         let token : T::TokenId = 1u32;&#xA;   |                     ----------   ^^^^ expected associated type, found `u32`&#xA;   |                     |&#xA;   |                     expected due to this&#xA;   |&#xA;   = note: expected associated type `&lt;T as pallet_fuso_token::Config&gt;::TokenId`&#xA;                         found type `u32`" CreationDate="2022-04-03T00:42:29.103" UserId="2074" />
  <row Id="1302" PostId="1502" Score="0" Text="emmm, about what code? chain_spec?" CreationDate="2022-04-03T00:54:04.007" UserId="299" />
  <row Id="1303" PostId="1503" Score="1" Text="Thanks for the answer @CustomBlink - just did a little formatting =)" CreationDate="2022-04-03T06:52:01.217" UserId="172" />
  <row Id="1304" PostId="1514" Score="1" Text="Documentation could always be better of course. But did you check out all the resources?: [1](https://paritytech.github.io/substrate/master/pallet_contracts/chain_extension/index.html) [2](https://github.com/paritytech/ink/tree/master/examples/rand-extension) [3](https://paritytech.github.io/ink-docs/macros-attributes/chain-extension/)" CreationDate="2022-04-03T11:19:17.770" UserId="16" />
  <row Id="1306" PostId="720" Score="0" Text="Yes, thanks for pointing it this out." CreationDate="2022-04-03T14:06:43.427" UserId="172" />
  <row Id="1307" PostId="717" Score="4" Text="I’m voting to close this question because it’s more of a case specific support question." CreationDate="2022-04-03T14:07:49.510" UserId="172" />
  <row Id="1309" PostId="1524" Score="0" Text="It felt close, but there was a problem.&#xA;```Template::&lt;T&gt;:: say_hello(&lt;T as frame_system::Config&gt;::Origin::from(RawOrigin::Signed(bob)), s, T::Hash::decode(hex!(&quot;d282f389399565f3671145f5916e51652b60eee8e5c759293a2f5771b8ddfd2e&quot;).as_ref()).unwrap(), &quot;hack&quot;.to_string().into());&#xA;``` error msg -&gt; ```.Hash::decode(hex!(&quot;d282f389399565f3671145f5916e51652b60eee8e5c759293a2f5771b8ddfd2e&quot;).as_ref()).unwrap(), &quot;hack&quot;.to_string().into());&#xA;   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability&#xA;```" CreationDate="2022-04-03T23:18:12.710" UserId="299" />
  <row Id="1310" PostId="1509" Score="0" Text="thanks @jaco for reply. Sure will try this out. Is there any way, we can fine transaction status at specific 'nonce' ? That would have been clean solution." CreationDate="2022-04-04T02:42:24.633" UserId="2057" />
  <row Id="1311" PostId="1506" Score="0" Text="What type of signature are you looking to verify?" CreationDate="2022-04-04T06:38:29.597" UserId="227" />
  <row Id="1312" PostId="1504" Score="0" Text="So the `controller` account of any staker acts as an authority? Or can the controller be a derived account from some secret just as staker would be?" CreationDate="2022-04-04T06:40:21.703" UserId="139" />
  <row Id="1313" PostId="1534" Score="1" Text="I basically created a function in the contract that returns `self.env().account_id()` . The issue is only in the contract's unit tests, it works properly in contracts-ui." CreationDate="2022-04-04T07:34:59.307" UserId="566" />
  <row Id="1314" PostId="1535" Score="0" Text="It's best to explain your question fully and give context instead of just linking to another question or answer. Also consider a more descriptive title." CreationDate="2022-04-04T10:33:56.877" UserId="128" />
  <row Id="1315" PostId="1537" Score="0" Text="It is a somewhat unrelated question, but are you using a compiler cache like `cachepot` or `sccache` for reducing build times even further than the common target folder allows you?" CreationDate="2022-04-04T10:57:48.487" UserId="138" />
  <row Id="1317" PostId="1537" Score="0" Text="Yes, I use `sccache`." CreationDate="2022-04-04T11:12:09.887" UserId="1806" />
  <row Id="1318" PostId="1540" Score="1" Text="Could you also link to the substrate docs in question - for reference." CreationDate="2022-04-04T11:37:00.250" UserId="1806" />
  <row Id="1319" PostId="1539" Score="0" Text="Those tetcoin.org stuff I would steer clear of. Someone randomly forked all of substrate a while back. I think anything on those sites is at least very dated, and possibly suspect." CreationDate="2022-04-04T12:52:45.147" UserId="85" />
  <row Id="1320" PostId="1539" Score="0" Text="@Squirrel I agree, It was the only thing I found that tried to explain the process of adding custom RPCs tbh." CreationDate="2022-04-04T13:02:57.130" UserId="2102" />
  <row Id="1321" PostId="1543" Score="0" Text="Could you please expand on what pallets are you using? Most important would be, which consensus pallets and some relevant configuration of them. Were there any errors logged before the nodes got idle?" CreationDate="2022-04-04T13:10:39.450" UserId="138" />
  <row Id="1322" PostId="1478" Score="2" Text="This would be incorrect `wss://&lt;MY_PARACHAIN_DOMAIN&gt;` - the CORS list if for the browser you connect from, not websocket endpoint it runs on. For your disconnect, ensure it really is `wss://`, i.e. behind nginx with a cert." CreationDate="2022-04-04T13:12:16.693" UserId="627" />
  <row Id="1323" PostId="1518" Score="0" Text="Isn't Subsocial a Kusama parachain?" CreationDate="2022-04-04T13:12:35.813" UserId="128" />
  <row Id="1324" PostId="1534" Score="1" Text="Okay, I see the problem! I updated my answer above." CreationDate="2022-04-04T13:32:37.620" UserId="1867" />
  <row Id="1325" PostId="1543" Score="0" Text="@wigy I'm using Substrate contracts node from https://github.com/paritytech/substrate-contracts-node and following Substrate's tutorial on creating a private network: https://docs.substrate.io/tutorials/v3/private-network. Only change the basic node template to use the contracts node instead, without any other changes.&#xA;&#xA;I didn't see the logs when the nodes got idle. I've run the node in tmux and I'm not sure if the logs are being written to the file somewhere." CreationDate="2022-04-04T14:29:42.260" UserId="1722" />
  <row Id="1326" PostId="1535" Score="1" Text="@DanielChmielewski I've added some context. Thanks for pointing it out." CreationDate="2022-04-04T14:48:36.787" UserId="139" />
  <row Id="1327" PostId="1550" Score="1" Text="Thank you @Gav for the response. We are looking forwards for the XCM new Horizon" CreationDate="2022-04-04T15:06:36.417" UserId="1793" />
  <row Id="1328" PostId="1543" Score="0" Text="I have a hunch that it's because the peers are 0. You can stop producing blocks and have non-zero peers. Maybe if you're using staking, some eras went without any validators, due to peer loss, and the network stalled. Can you start the command with `--log sub-libp2p=trace`" CreationDate="2022-04-04T15:11:24.037" UserId="139" />
  <row Id="1329" PostId="1537" Score="0" Text="@Rtsne42 @wigy I am unfamiliar with `cachepot` and `sccache`, what are they and how do they help? Maybe I can google the first question, but please help me understand if I should start using it for faster build." CreationDate="2022-04-04T15:15:36.630" UserId="139" />
  <row Id="1330" PostId="1551" Score="0" Text="Are you sure you are running the correct node with the Substrate Kitties pallet in it?&#xA;&#xA;That error implies you might be running an old node without the kitties pallet." CreationDate="2022-04-04T15:39:50.613" UserId="28" />
  <row Id="1331" PostId="1552" Score="0" Text="Great answer. The only caveat stopping me from using Let's encrypt is getting a domain name. But I'm sure it's the easiest method out of all." CreationDate="2022-04-04T15:56:40.243" UserId="139" />
  <row Id="1332" PostId="1500" Score="0" Text="Writing the internals of the chain extension in a separate function could be useful. You could probably have reasonable confidence that it is working with that approach, but you would not be 100% sure.&#xA;&#xA;For the second part, that is a mock chain extension, not the actual chain extension. That is just testing the smart contract itself, not the chain extension." CreationDate="2022-04-04T16:20:03.153" UserId="1904" />
  <row Id="1333" PostId="1551" Score="0" Text="I don't think so because the `createKitty` callable works just fine. When I click the button labelled &quot;Create Kitty&quot; everything works as expected, and I can see the newly created kitty on-chain by viewing &quot;Storage&quot; in the &quot;Chain state&quot; section of the portal at polkadot.js.org." CreationDate="2022-04-04T16:29:42.567" UserId="2113" />
  <row Id="1334" PostId="1551" Score="2" Text="Can you go into your code and see if [this line](https://github.com/substrate-developer-hub/substrate-node-template/blob/tutorials/solutions/kitties/pallets/kitties/src/lib.rs#L108) exists?" CreationDate="2022-04-04T17:59:01.420" UserId="28" />
  <row Id="1335" PostId="1518" Score="0" Text="AFAIK it exists as Parachain and Solochain." CreationDate="2022-04-04T18:33:37.053" UserId="73" />
  <row Id="1336" PostId="1556" Score="2" Text="Thanks Pablo. Fix here: https://github.com/substrate-developer-hub/substrate-docs/pull/932" CreationDate="2022-04-04T20:32:38.777" UserId="28" />
  <row Id="1337" PostId="1556" Score="1" Text="My pleasure @ShawnTabrizi" CreationDate="2022-04-04T20:33:15.333" UserId="205" />
  <row Id="1338" PostId="1529" Score="1" Text="virtualbox and/or vagrant fit the bill too." CreationDate="2022-04-04T20:49:15.783" UserId="2121" />
  <row Id="1339" PostId="1554" Score="0" Text="What does &quot;status&quot; mean? What kinds of status do you want?" CreationDate="2022-04-04T20:50:50.220" UserId="28" />
  <row Id="1340" PostId="1554" Score="0" Text="My colleague posted this because my IP address is blocked for some reason... Status meaning if the nomination is &quot;active&quot;, &quot;inactive&quot;, or &quot;waiting&quot;. https://support.polkadot.network/support/solutions/articles/65000169209-what-does-active-inactive-waiting-mean-" CreationDate="2022-04-04T21:40:33.967" UserId="2042" />
  <row Id="1341" PostId="1524" Score="0" Text="Edited the answer. Should work now." CreationDate="2022-04-04T22:09:53.903" UserId="16" />
  <row Id="1342" PostId="1562" Score="3" Text="How did you create `pukimak.json`? Probably you need to update this to the latest version of Substrate." CreationDate="2022-04-04T23:05:11.563" UserId="28" />
  <row Id="1343" PostId="1551" Score="1" Text="It didn't! Thank you so much, I appreciate the great tutorial and amazing support." CreationDate="2022-04-04T23:32:39.517" UserId="2113" />
  <row Id="1344" PostId="1524" Score="0" Text="emmm, It's doesn't work.&#xA;&#xA;47  |         let hash = T::Hash::decode(&#xA;    |                    --------------- required by a bound introduced by this call&#xA;48  |             hex!(&quot;d282f389399565f3671145f5916e51652b60eee8e5c759293a2f5771b8ddfd2e&quot;).as_mut()&#xA;    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an implementor of trait `Input`" CreationDate="2022-04-04T23:53:49.970" UserId="299" />
  <row Id="1346" PostId="1554" Score="0" Text="Micheal, does that article not provide the answers here? I would be happy to upvote the answer and proposed edits to the question to refine it :)" CreationDate="2022-04-05T02:13:22.253" UserId="34" />
  <row Id="1347" PostId="1535" Score="0" Text="With a different chainspec, your node will reference a different keystore, did you configure both correctly? It is possible that the `authority` Role may play a factor, but not likely. https://github.com/paritytech/substrate/blob/master/client/service/src/lib.rs &amp;&amp; https://github.com/paritytech/substrate/blob/master/client/network/src/config.rs" CreationDate="2022-04-05T02:30:09.067" UserId="34" />
  <row Id="1348" PostId="1535" Score="0" Text="might also be possible that the node is trying to source peerIDs from some incorrect file... might be worth checking what the node's IDs are and comparing to what is reported in the logs." CreationDate="2022-04-05T02:31:35.563" UserId="34" />
  <row Id="1349" PostId="1562" Score="0" Text="Generated the chain spec using the imbue collator with this command:&#xA;```Used local chain spec via this command: ./target/debug/imbue-collator build-spec --chain imbue-dev --raw --disable-default-bootnode &gt; pukimak.json```" CreationDate="2022-04-05T02:57:34.783" UserId="2124" />
  <row Id="1350" PostId="1562" Score="3" Text="You need to build the chain with the `--features=runtime-benchmarks` flag" CreationDate="2022-04-05T03:02:58.290" UserId="28" />
  <row Id="1351" PostId="1563" Score="0" Text="Let me clarify, I'm getting the compressed public key back from `ink_env::ecdsa_recover` and I wanna use that to compare it to an `AccountId` in the ink contract. `hex_literal::hex!` only works on string literals." CreationDate="2022-04-05T03:58:10.057" UserId="566" />
  <row Id="1353" PostId="1563" Score="0" Text="I believe it's not possible to do that with subkey inspect. This is what it says in it's --help : `Gets a public key and a SS58 address from the provided Secret URI`." CreationDate="2022-04-05T04:56:16.157" UserId="566" />
  <row Id="1354" PostId="1535" Score="0" Text="@DanShields I've checked that the peerIDs are correct, and explicitly using `--node-key` to specify a node key. Also it's weird if you look at my Edit #2, in which if I pass `--validator` flag, it magically peers which has me stumped as I cannot comprehend why would it make a difference. I am just using my remote instance as a sync node" CreationDate="2022-04-05T05:18:26.713" UserId="139" />
  <row Id="1355" PostId="1555" Score="0" Text="To start my node at genesis, I would have to insert the keys into the keystore right to produce blocks. Only then can I generate session keys with a call to `rotate_keys()`. How do I make sure then that my original secret keys are removed from my validator's keystore?" CreationDate="2022-04-05T05:21:22.943" UserId="139" />
  <row Id="1356" PostId="1565" Score="0" Text="For the &quot;stuck at block&quot;, I'm assuming keeping updated to the latest will be fine. All host functions are there and sync is done via WASM. This should only be an issue if the node does not follow the releases." CreationDate="2022-04-05T05:30:45.277" UserId="2129" />
  <row Id="1357" PostId="1509" Score="1" Text="I believe this relates to the nonce - https://substrate.stackexchange.com/questions/894/how-to-get-the-balance-of-an-account-at-a-particular-nonce-using-polkadot-js-api (there is no specific Substrate RPC that exposes this information)" CreationDate="2022-04-05T05:47:50.170" UserId="2129" />
  <row Id="1358" PostId="1438" Score="0" Text="This article explains the validator pruning options https://blog.radiumblock.com/how-to-bring-up-a-polkadot-kusama-validator-node-with-snapshots2/" CreationDate="2022-04-05T05:54:35.600" UserId="2129" />
  <row Id="1359" PostId="1568" Score="1" Text="`AccountId::from()` takes in `[u8; 32]`. Since `ink_env::ecdsa_recover` returns `[u8; 33]`, it is throwing an error. My understanding of a compressed public key is limited. Is there a way to get the `pub_key` from `compressed_pub_key`?" CreationDate="2022-04-05T06:19:45.777" UserId="566" />
  <row Id="1360" PostId="1569" Score="0" Text="I am curious, how does one list their chain in the polkadot js apps ui under live or test network if they are planning to launch a solo chain?" CreationDate="2022-04-05T06:35:36.267" UserId="139" />
  <row Id="1361" PostId="1553" Score="0" Text="Thanks Luke! I'm confused about the identity of the equivocator. I can't find that account on our chain anywhere. Is this because it's not necessarily the identity which would correspond to a Validator's balance? As for inserting / rotating session keys, we use a standardised CLI tool for each Validator which calls the `rotate_keys()` RPC on their own node, and then submits the new keys (Aura is the first 32 bytes and Grandpa the last 32, right?) with an extrinsic. We don't ask Validators to use Subkey to generate these keys." CreationDate="2022-04-05T07:12:44.073" UserId="499" />
  <row Id="1362" PostId="1568" Score="1" Text="Yes, as I realized by myself, the compressed public key obtained by `ecdsa_recover` is not identical with the `AccountId`, but it should be possible to derive it by hashing or by invoking the corresponding function from the `the_compatibility` crate. I updated my answer above accordingly." CreationDate="2022-04-05T07:27:11.550" UserId="1867" />
  <row Id="1363" PostId="1574" Score="0" Text="Consider describing the issue in more detail and make the title more descriptive." CreationDate="2022-04-05T07:55:37.707" UserId="128" />
  <row Id="1364" PostId="1574" Score="0" Text="Which operating system are you on? Is this a server or a desktop computer? What node are you running? Can you see it in the task manager/process viewer? What do you mean by &quot;editor&quot;?" CreationDate="2022-04-05T07:56:42.657" UserId="128" />
  <row Id="1365" PostId="1572" Score="1" Text="It's best to avoid greetings and thanks in questions, just describing the issue should be enough :-)" CreationDate="2022-04-05T08:01:07.420" UserId="128" />
  <row Id="1366" PostId="1568" Score="0" Text="When I do `AccountId::from(pub_key)` it's throwing an error saying `the trait From&lt;ink_env::types::AccountId&gt; is not implemented for ink_env::AccountId`" CreationDate="2022-04-05T08:21:23.780" UserId="566" />
  <row Id="1367" PostId="1563" Score="1" Text="Got it! Sorry, I tried..." CreationDate="2022-04-05T08:34:14.717" UserId="309" />
  <row Id="1369" PostId="1568" Score="0" Text="Can you try the 4 steps outlined above?" CreationDate="2022-04-05T08:47:11.447" UserId="1867" />
  <row Id="1370" PostId="1555" Score="1" Text="There is no automatic way. The keystore is just a directory on your file system. So, you can just delete the old keys." CreationDate="2022-04-05T09:19:59.463" UserId="73" />
  <row Id="1371" PostId="1568" Score="0" Text="I've pushed my code here: https://github.com/kanishkatn/verify_signature/blob/master/lib.rs . There is a compilation error at line 28." CreationDate="2022-04-05T09:21:49.453" UserId="566" />
  <row Id="1372" PostId="497" Score="0" Text="Can you provide an example of how to define a migration in the runtime lib.rs?" CreationDate="2022-04-05T09:22:43.610" UserId="533" />
  <row Id="1373" PostId="1568" Score="0" Text="It doesn't work without that either since the type of `AccountId` returned from `ecdsa_key.to_default_account_id()` and `Self::env().caller()` are different." CreationDate="2022-04-05T09:27:59.040" UserId="566" />
  <row Id="1374" PostId="1568" Score="1" Text="Indeed, `to_default_account_id()` already returns an `AccountId` struct, you don't need `AccountId::from`. The new error is due to different versions of your crates, since you are obtaining `eth_compatibility` from GitHub. Just remove the `git = ...` from your `Cargo.toml` for `eth_compatibility`" CreationDate="2022-04-05T09:30:38.437" UserId="1867" />
  <row Id="1375" PostId="1553" Score="0" Text="could someone else have run a validator on your chain? it shows here https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-kusama#option-2-cli that the `author_rotateKeys` RPC calls Substrate's `rotate_keys` function and outputs a hex-encoded &quot;result&quot; field that is the concatenation of the four public keys, but in the Substrate implementation they don't appear to sort them in any specific order. perhaps try providing `&quot;params&quot;:[&quot;KEY_TYPE&quot;, &quot;SEED&quot;, &quot;PUBLIC&quot;]` in the `author_insertKey` RPC calls to set them individually key by key." CreationDate="2022-04-05T10:15:35.170" UserId="83" />
  <row Id="1376" PostId="1574" Score="1" Text="`ps -aux | grep polkadot` and then `kill -9 process_id_here` will work for linux" CreationDate="2022-04-05T11:04:10.637" UserId="85" />
  <row Id="1377" PostId="1553" Score="0" Text="Running a Validator on our chain is a semi-permissioned process. It's not difficult to meet the requirements, though we do enforce certain conditions. Could you elaborate on what you mean by &quot;could someone else have run a validator on your chain?&quot; It's a public testnet, so there are a bunch of different participants." CreationDate="2022-04-05T11:07:10.730" UserId="499" />
  <row Id="1378" PostId="1565" Score="0" Text="I think the node already supports some telemetry, did you look into that? https://wiki.polkadot.network/docs/maintain-guides-how-to-monitor-your-node  &#xA;There is probably also a docker quickstart." CreationDate="2022-04-05T12:20:25.773" UserId="94" />
  <row Id="1379" PostId="1387" Score="0" Text="Can you edit your question so that it shows your working code if possible?" CreationDate="2022-04-05T13:15:01.893" UserId="172" />
  <row Id="1381" PostId="1520" Score="1" Text="AFAIK, if a function is annotated with `#[transactional]` and returns an `Err` of any type (your signature should return `Result&lt;OkType, ErrorType&gt;`), then storage changes should be reverted" CreationDate="2022-04-05T14:05:01.320" UserId="587" />
  <row Id="1382" PostId="1576" Score="0" Text="It's generally not recommended to do this, because certain parts of the validator code don't handle 'validator virtualization' well. But as Joe says, nodes will just search for keys that they control within the active validator public keys recognized by the chain at any point in time." CreationDate="2022-04-05T14:33:34.757" UserId="283" />
  <row Id="1383" PostId="1555" Score="0" Text="any way to generate session keys with subkey or do we have to run a node for it?" CreationDate="2022-04-05T14:40:30.753" UserId="139" />
  <row Id="1384" PostId="1597" Score="0" Text="What is &quot;manual consensus&quot;?" CreationDate="2022-04-05T14:51:58.633" UserId="53" />
  <row Id="1386" PostId="1579" Score="1" Text="essentially the macro is used to generate impl of storage trait defined [here](https://github.com/paritytech/substrate/blob/master/frame/support/src/storage/mod.rs) for crud operations to on-chain storage" CreationDate="2022-04-05T15:07:20.720" UserId="523" />
  <row Id="1387" PostId="1482" Score="0" Text="Appreciate your feedback! Hopefully it's really related to my salt findings being the culprit. Would you mind giving any suggestion on  where should I look at albeit it being in  substrate or solang? Thx" CreationDate="2022-04-05T15:36:30.473" UserId="316" />
  <row Id="1388" PostId="1555" Score="0" Text="For sure you can subkey. Just generate a private public key as you would do it for an on chain account. The only thing you need to take care of is that you are using the correct crypto :)" CreationDate="2022-04-05T15:37:12.283" UserId="73" />
  <row Id="1389" PostId="1553" Score="0" Text="You already mentioned that you checked all logs I guess since genesis and there's no trace of those addresses. Maybe the logs don't show all keys associated with other validators that connected to your chain and maybe those other keys are the equivocator keys that you can't identify?" CreationDate="2022-04-05T15:44:44.900" UserId="83" />
  <row Id="1390" PostId="1602" Score="0" Text="You could implement something like [ensure_signed](https://github.com/paritytech/substrate/blob/master/frame/system/src/lib.rs#L874) where you also check if an identity exists for that account." CreationDate="2022-04-05T16:12:55.437" UserId="165" />
  <row Id="1391" PostId="1554" Score="0" Text="Thanks Dan! I'm wondering how to access that information programmatically from the API, not just through the browser portal. I think Xiu may have answered me though!" CreationDate="2022-04-05T17:18:06.180" UserId="2042" />
  <row Id="1393" PostId="1591" Score="0" Text="Does this solve your problem?&#xA;&#xA;https://substrate.stackexchange.com/questions/619/how-to-fix-parity-scale-codecmaxencodedlen-is-not-implemented-for-t/620#620" CreationDate="2022-04-05T17:51:52.287" UserId="28" />
  <row Id="1394" PostId="1605" Score="0" Text="Thanks, this is very helpful" CreationDate="2022-04-05T17:51:53.963" UserId="165" />
  <row Id="1395" PostId="1520" Score="0" Text="Yes it is exactly what required." CreationDate="2022-04-05T18:29:47.873" UserId="68" />
  <row Id="1396" PostId="1478" Score="1" Text="If I use `--rpc-cors=all` it successfully connects from the browser when going to https://polkadot.js.org/apps/?rpc=wss://&lt;MY_PARACHAIN_DOMAIN&gt;, so I think having https://polkadot.js.org in the `--rpc-cors` comma separated list of values covers that, but I still get the same error when I remove `wss://&lt;MY_PARACHAIN_DOMAIN&gt;` from that list. if I instead try to connect using just ws with https://polkadot.js.org/apps/?rpc=ws://&lt;MY_PARACHAIN_DOMAIN&gt;, I get browser error `Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.`" CreationDate="2022-04-05T18:30:18.923" UserId="83" />
  <row Id="1397" PostId="1597" Score="0" Text="edited the question a bit, sorry for the confusion :)" CreationDate="2022-04-05T20:29:49.837" UserId="100" />
  <row Id="1399" PostId="205" Score="0" Text="if a validator is down and misses its slot to produce a block, does the algorithm simply skip to the next validator?" CreationDate="2022-04-05T23:50:08.607" UserId="434" />
  <row Id="1401" PostId="1555" Score="0" Text="I'm afraid I don't understand. The keys I get from rotate_keys is usually a long string of keys. Do you mean if I have 4 session keys in my struct I have to generate 4 keys (with correct Crypto) and concatenate them in the same order as defined?" CreationDate="2022-04-06T04:46:28.200" UserId="139" />
  <row Id="1402" PostId="1478" Score="0" Text="From the apps even I've noticed that if I simply try to connect with `--rpc-cors all` it works however `--rpc-cors &quot;http://0.0.0.0&quot;,&quot;http://localhost:*&quot;`, etc. none of which work and it's quite strange." CreationDate="2022-04-06T06:12:16.447" UserId="139" />
  <row Id="1403" PostId="1624" Score="0" Text="Before this Q I didn't even know that number existed. Where is it located?" CreationDate="2022-04-06T06:49:47.787" UserId="139" />
  <row Id="1405" PostId="1624" Score="0" Text="@Purple_Turtle In your runtime configuration, if you full text search for `pub type BlockNumber =` you'll find the type." CreationDate="2022-04-06T06:57:19.953" UserId="227" />
  <row Id="1406" PostId="1626" Score="1" Text="Achim, thanks for getting back to me with the info, but I'm still a little confused.  Moonriver Network is on Kusama and MoonBeam is on Polkadot, was my understanding, no?&#xA;&#xA;I used the RMRK tutorial to mint my own NFTs on the Kusama network, which I can view on the Singular.app, which I'm now trying to pull into my React App via polkadot-js api." CreationDate="2022-04-06T07:12:09.050" UserId="2146" />
  <row Id="1407" PostId="1553" Score="0" Text="How would &quot;another Validator connect to our chain&quot; exactly? I'm a little in the dark about what you mean - could you elaborate? E.g. do they just connect directly to some IPs and start gossiping Grandpa messages on libp2p etc? We don't allow someone's Session keys to be rotated into Aura / Grandpa unless they meet some of our requirements. In any case it looks like a single Validator was able to effectively crash the chain, which is a showstopper for us." CreationDate="2022-04-06T07:22:28.697" UserId="499" />
  <row Id="1408" PostId="1626" Score="0" Text="Yes, you are totally right! Finally, RMRK is on Kusama, but it isn't an own Parachain there. AFAIK its logic is deployed in Smart Contracts on Moonriver Network, which is a L1 Parachain on Kusama. Moonriver is Kusama, while Moonbeam is Polkadot, I was the one confusing the two here first ;)" CreationDate="2022-04-06T07:22:55.220" UserId="1867" />
  <row Id="1409" PostId="1616" Score="1" Text="Thanks for the reply, but I'm having the same issue. I managed to get the silly_rpc working tho, but I can't add the custom RPC for my pallet." CreationDate="2022-04-06T07:25:00.343" UserId="2102" />
  <row Id="1410" PostId="1626" Score="0" Text="Hehe, yeah  I know what you mean, when I first learned of KSM/DOT it was a little confusing MoonRiver/Beam Canary Network all good Achim, thanks for the nudge, found what I was looking for." CreationDate="2022-04-06T07:49:51.357" UserId="2146" />
  <row Id="1411" PostId="1635" Score="0" Text="FYI: There’s a fee reduction to reduce teleport fees from kusama to statemine in v800 of the statemine runtime." CreationDate="2022-04-06T08:22:50.407" UserId="85" />
  <row Id="1412" PostId="1640" Score="0" Text="Thank you that worked. I used the `setSudoWithoutChecks(code)` extrinsic. I nominally added weight as 1. Does it matter what weight is added there? assuming the &quot;without check&quot; overlooks it anyway." CreationDate="2022-04-06T09:02:17.677" UserId="298" />
  <row Id="1413" PostId="1635" Score="0" Text="What fee was high? On your chain? Relaychain? The other chain?" CreationDate="2022-04-06T09:15:08.450" UserId="359" />
  <row Id="1414" PostId="1640" Score="0" Text="You bypass the weight check and specify your own, so it can be nominal. Here is a link to the Substrate implementation &amp; description for it - https://github.com/paritytech/substrate/blob/184d29caf8302053fac74ad74cd68bf43572108e/frame/sudo/src/lib.rs#L156-L158" CreationDate="2022-04-06T09:25:39.570" UserId="627" />
  <row Id="1418" PostId="1611" Score="0" Text="Hi Pablo, Thanks for your help. The pallet code you recommend was where I started. I am trying to update from that to a pallet which takes a first and last name instead of just one name. As is described in [link](https://docs.substrate.io/how-to-guides/v3/storage-migrations/basics/). Any idea how to do that using the #[pallet::storage] syntax?" CreationDate="2022-04-06T09:49:07.050" UserId="2136" />
  <row Id="1419" PostId="1642" Score="0" Text="As a ballpark estimate, if you would have a sorted array of all those integers, how much memory would that consume?" CreationDate="2022-04-06T09:53:49.463" UserId="138" />
  <row Id="1420" PostId="1642" Score="0" Text="I would have a look at staking's use of bags list. It's not a perfect sort: the bags represent ranges of values. Off-chain sorting can be done and then the results posted on chain. https://paritytech.github.io/substrate/master/pallet_bags_list/index.html" CreationDate="2022-04-06T09:55:16.140" UserId="85" />
  <row Id="1421" PostId="1173" Score="2" Text="FYI since you mentioned it, yesterday we released [OpenBrush 1.6](https://github.com/Supercolony-net/openbrush-contracts/releases/tag/v1.6.0) with the diamond standard implementation" CreationDate="2022-04-06T09:57:08.490" UserId="170" />
  <row Id="1422" PostId="1644" Score="0" Text="Ah that makes sense, thanks for your answer!" CreationDate="2022-04-06T10:06:53.087" UserId="316" />
  <row Id="1423" PostId="1555" Score="0" Text="No inserting is only always about inserting one of these keys. The concatenated keys are only public keys anyway and they are send to the runtime, so something completely different." CreationDate="2022-04-06T10:11:38.810" UserId="73" />
  <row Id="1424" PostId="1285" Score="0" Text="Great answer, really appreciate it!" CreationDate="2022-04-06T10:14:35.610" UserId="362" />
  <row Id="1425" PostId="1635" Score="0" Text="Please provide more detail so the question can be answered: What was the final fee? What fee did you expect? What did the transfer transaction look like? Across which chains?" CreationDate="2022-04-06T10:30:26.637" UserId="128" />
  <row Id="1426" PostId="1541" Score="1" Text="This has nothing to do with Aura - only Grandpa cares about equivocations. I expect the Public identity being referred to is the Grandpa key of the misbehaving node. A text search through all validators' session keys should turn it up (but since session keys are just several concatenated keys, it will likely be in the middle somewhere).&#xA;&#xA;An equivocation should not result in the node terminating. It should be reported and punished. You should open an issue in the Substrate GH repo and report with whatever logs you have. The team will likely ask for more detailed logs." CreationDate="2022-04-06T11:47:34.517" UserId="53" />
  <row Id="1427" PostId="1573" Score="0" Text="This worked. Thank you so much !!!&#xA;&#xA;Benchmark code reference: https://github.com/ImbueNetwork/imbue/commit/c25d9a2411217eae8f41114d20ee85c320a94423&#xA;&#xA;File updated:&#xA;runtime/development/src/lib.rs" CreationDate="2022-04-06T11:50:37.590" UserId="2124" />
  <row Id="1428" PostId="979" Score="1" Text="Hi Bryan! &#xA;I made it work without the KSM_ related variables.&#xA;I created this, &#xA;https://github.com/mangata-finance/mangata-node/blob/develop/devops/parachain/docker-compose-ksm.yml&#xA;By building a node with the feature = fast-runtime and using this script to onboard the chain,&#xA;https://github.com/mangata-finance/mangata-node/blob/develop/devops/dockerfiles/parachain-registrator/src/index_ksm.js&#xA;Many many thanks for the help!" CreationDate="2022-04-06T12:26:16.590" UserId="357" />
  <row Id="1429" PostId="1649" Score="0" Text="Thanks, super interesting. Good to see that you guys put a lot of thought into this and makes sense that you want linear complexity only.&#xA;&#xA;There is quite a big performance gap between Wasm smart contracts and native code but a lot of potential to improve this over time. Could be a game changer for adoption of Wasm SCs. Is there any open discussion or reference document about potential performance improvements considered or planned in the future?" CreationDate="2022-04-06T12:33:30.647" UserId="2153" />
  <row Id="1430" PostId="1541" Score="0" Text="Thanks Gav, I will do that." CreationDate="2022-04-06T12:41:33.387" UserId="499" />
  <row Id="1431" PostId="1573" Score="0" Text="Consider copying the relevant code into the answer itself, otherwise when the link stops working the answer will not make any sense." CreationDate="2022-04-06T13:01:12.133" UserId="128" />
  <row Id="1432" PostId="1656" Score="0" Text="So the problem they solve is how to set permissions for a changing set of privileged members - with minimal overhead? The company example is good, thank you! Any others?" CreationDate="2022-04-06T13:05:02.240" UserId="172" />
  <row Id="1433" PostId="1649" Score="0" Text="Right now we are still focusing on delivering a sound solution first. Areas where we see the most room for improvement: Move gas metering into user space. Improve wasmi performance by transforming wasm to a register machine byte code before execution. Moving wasmi into the client." CreationDate="2022-04-06T13:13:29.403" UserId="16" />
  <row Id="1434" PostId="1649" Score="0" Text="It could be complicated and expensive: but did you consider to allow for a one time optimizing compilation of SCs during deployment when the deployer pays extra gas? You could limit the optimization time according to the provided paid gas (which means that the optimization phase itself needs to be metered and interruptible at any time in case the provided gas runs out)?&#xA;&#xA;Then again, JIT depends on the target machine and is not deterministically reproducible between Substrate nodes..." CreationDate="2022-04-06T13:50:50.510" UserId="2153" />
  <row Id="1435" PostId="1388" Score="0" Text="Stylo, Ledger, PolkaWallet all immediately spring to mind." CreationDate="2022-04-06T14:06:25.120" UserId="1866" />
  <row Id="1436" PostId="1658" Score="0" Text="If you are the bootstrapping node (first node that instantiates the network), then any other node can temporarily peer with your node. The scenario you present is a bit odd, nothing would happen. If the runtime is altered (malicious pallet) then you are running different chains, so in this case there are no repercussion for your chain, also recall that the runtime is apart of the chain, therefore you'd have a differing genesis state." CreationDate="2022-04-06T14:11:46.427" UserId="434" />
  <row Id="1437" PostId="1640" Score="0" Text="Here is a previous question with JS code around the same execution strategy - https://substrate.stackexchange.com/questions/1253/how-to-provide-unchecked-weight-to-a-call-using-polkadot-js/1324#1324" CreationDate="2022-04-06T14:14:48.443" UserId="1866" />
  <row Id="1438" PostId="1658" Score="0" Text="This link may be of use to you https://github.com/paritytech/substrate/tree/master/client/network, in particular the section on discovery mechanisms" CreationDate="2022-04-06T14:19:47.303" UserId="434" />
  <row Id="1439" PostId="1611" Score="0" Text="No worries. I recommend creating a new question specifying you needs better." CreationDate="2022-04-06T14:21:00.913" UserId="205" />
  <row Id="1440" PostId="1591" Score="0" Text="@ShawnTabrizi, Great, yes solution 1 from that link, using codec(mel_bound()) and scale_info(skip_type_params(T)) macros, solved my problem. Out of interest, how would you get solution 2 to work in my case? I tried it but couldn't find a way for the BoundedVec to have a size known at compile time without using T::MaxLength. For my understanding it would be good to know if that can be implemented somehow. Thanks for your help!" CreationDate="2022-04-06T14:23:46.817" UserId="2136" />
  <row Id="1441" PostId="1591" Score="0" Text="You need a `MaxLength` for `BoundedVec`. There is no way around that, so I am not sure what exactly you are asking." CreationDate="2022-04-06T14:42:16.280" UserId="28" />
  <row Id="1442" PostId="1667" Score="0" Text="Thanks for the feedback. The reason I was trying to use a mapping is because it is more efficient both storage and computational-wise. I've found the reason for my issue." CreationDate="2022-04-06T14:56:46.080" UserId="2107" />
  <row Id="1444" PostId="1658" Score="0" Text="@infinitesimallySmart yes it's just a ridiculous example that I managed to think of, the general question was, besides variables like &quot;spec_version&quot; and &quot;impl_version&quot;, what makes a node peer. I know that when you change the runtime you may bump up the `spec_version` which can cause your node to still peer, but they may have different runtimes." CreationDate="2022-04-06T16:26:04.473" UserId="139" />
  <row Id="1445" PostId="1658" Score="1" Text="There is too little focus on one question in this question IMHO... might you re-title this to be more specifically one question? we can of course open more related questions :) &quot;Can malicious node peering occur?&quot; &quot;What can malicious peers do to attack my node?&quot; ..." CreationDate="2022-04-06T17:27:14.477" UserId="34" />
  <row Id="1446" PostId="1656" Score="1" Text="You could do what Joe described in reverse order too: Have the anonymous proxy be controlled by a multisig, and if you need to replace a signatory, you simply create a new multisig that you add to the anonymous proxy and remove the previous one." CreationDate="2022-04-06T17:41:25.470" UserId="1820" />
  <row Id="1447" PostId="1656" Score="1" Text="So this is a great example that finally made it click for me: anon proxies are _keyless_ in that there is no private key that exists to be able to sign on behalf of this account. Thus when the anon proxy _sets a different delegate_, the full* exclusive control of the account (*assuming a fully permissive `ProxyType::Any`) atomically moved to another keyed account that can sign on it's behalf. Sound right? If so I can come up with a few more concrete examples :)" CreationDate="2022-04-06T17:54:45.067" UserId="34" />
  <row Id="1448" PostId="1638" Score="1" Text="this actually is likely better surfaced as an issue on the template. Have you opened one yet? Please do reference this question :)" CreationDate="2022-04-06T17:59:56.277" UserId="34" />
  <row Id="1449" PostId="1652" Score="0" Text="Do I have to edit any versions in the runtime? Which file should I upload? When I build for release, I only get `wasm` file for the runtime, and the node's binary is too big to upload." CreationDate="2022-04-06T18:23:53.887" UserId="245" />
  <row Id="1450" PostId="717" Score="0" Text="I edited the title and tags to be more descriptive and general" CreationDate="2022-04-06T19:25:17.813" UserId="34" />
  <row Id="1451" PostId="1649" Score="0" Text="It won‘t work because time is subjective. So a timeout won‘t fly within runtime logic. It will lead to consensus issues. Compilation right now is part of the fee structure but fees assume that everything is at most linear complexity." CreationDate="2022-04-06T19:42:02.190" UserId="16" />
  <row Id="1452" PostId="1679" Score="0" Text="what software are you using? https://github.com/paritytech/substrate-telemetry I assume?" CreationDate="2022-04-07T00:50:10.957" UserId="34" />
  <row Id="1453" PostId="1679" Score="0" Text="Do you have a backend running as described here? The names are different https://github.com/paritytech/substrate-telemetry#terminal-1--2---backend" CreationDate="2022-04-07T00:55:09.077" UserId="34" />
  <row Id="1454" PostId="1680" Score="0" Text="please include the versions of software you are using and the nodes you are connected to (and their versions)" CreationDate="2022-04-07T00:57:05.043" UserId="34" />
  <row Id="1456" PostId="1673" Score="0" Text="I haven't seen `ws/..` before, does it stand for web socket? If yes why would a node need websocket for peering?" CreationDate="2022-04-07T04:42:06.777" UserId="139" />
  <row Id="1457" PostId="1680" Score="0" Text="`submitAndWatchExtrinsic` + `Method not found` is certainly weird." CreationDate="2022-04-07T06:19:08.667" UserId="627" />
  <row Id="1458" PostId="1671" Score="0" Text="Thank you so much for your answer, it really helped me a lot!&#xA;&#xA;Can I understand it this way, &quot;Sandbox&quot; and &quot;Runtime&quot; belong to the same level in code implementation, and &quot;sandboxing execution engine&quot; (`wasmi` or `wasmer`) and &quot;runtime execution engine&quot; (`wasmi` or `wasmtime`) can be different.&#xA;&#xA;Interfaces such as `instance_new()` or `invoke()` are provided to the runtime in the form of host functions. For example, in the runtime instance we can call the imported function `instance_new()` to create a sandbox instance in the host." CreationDate="2022-04-07T06:32:10.327" UserId="2155" />
  <row Id="1459" PostId="1680" Score="0" Text="I see the same sporadically on `kusama-rpc.polkadot.io` - it is like some nodes in the RPC cluster is running a very weird version. Some work, some does not and have this issue. Seems like a broken deployment in the cluster, imho." CreationDate="2022-04-07T06:33:31.607" UserId="2132" />
  <row Id="1460" PostId="1676" Score="0" Text="Thank you. However the answer misses the question - I know how this applies to the runtime itself. However, the types for the params and the results are not specified for `rpc_methods` which is what this question relates to. Since we have the full type mapping now for the runtime, we should have it for RPC as well. A good example is the JS API which you linked - it has to do a manual mapping of all RPCs, e.g. this is for [api.rpc.chain.*](https://github.com/polkadot-js/api/blob/111540177f97b68ac8159069a0dbf5ad631c2b8c/packages/types/src/interfaces/chain/definitions.ts#L10-L86) in the JS API)." CreationDate="2022-04-07T06:37:51.783" UserId="2132" />
  <row Id="1461" PostId="1531" Score="0" Text="Actually that link to Astar docs is outdated. The best way to learn IMO is by reading the code and runnning the unit tests. You can check the implementation of Astar precompiles here: https://github.com/AstarNetwork/astar-frame/tree/polkadot-v0.9.17/precompiles&#xA;and for Moonbeam:&#xA;https://github.com/PureStake/moonbeam/tree/master/precompiles" CreationDate="2022-04-07T07:37:15.963" UserId="529" />
  <row Id="1462" PostId="1457" Score="1" Text="If you want to have EVM enabled chain which is Ethereum compatible, you need to support precompiles which are present on Ethereum. There are 8 handy precompiles on Eth which you can use in your smart contract and all of them are included in the Frontier&#xA;https://github.com/paritytech/frontier" CreationDate="2022-04-07T07:47:40.670" UserId="529" />
  <row Id="1463" PostId="1482" Score="0" Text="I've added a test repo, and seems the error can only be seen if deploying the contracts via polkadot.js.app, tests against the runtime confirms that either method to configure the salt allows the contracts to call each other. https://github.com/extraymond/substrate-contracts-node/blob/solang-test-0.12.0/runtime/README.md" CreationDate="2022-04-07T08:12:42.100" UserId="316" />
  <row Id="1464" PostId="1681" Score="0" Text="Are you talking about a chain extension?" CreationDate="2022-04-07T08:50:34.910" UserId="16" />
  <row Id="1465" PostId="1656" Score="1" Text="Yeah, what Dan said is correct, the &quot;anon proxy&quot; is keyless and has one (or many) proxies. The _proxied_ (anon account) can only be accessed via `proxy.proxy(&lt;call&gt;)`, but of course `call` could be to add a proxy (it can have multiple _proxies_) or remove a proxy, including the caller." CreationDate="2022-04-07T08:54:06.800" UserId="620" />
  <row Id="1466" PostId="1656" Score="0" Text="You could also transfer a full staked account if it's on an anon. Say an anon proxy has 100 DOT staked, of course it can't transfer parts of it without unbonding, but it could transfer &quot;ownership&quot; of the entire account in its staked state by adding a new `Any` proxy and then removing itself." CreationDate="2022-04-07T08:55:43.753" UserId="620" />
  <row Id="1467" PostId="1674" Score="0" Text="You can do the staking example even simpler. Just make a multisig composed entirely of anon proxies (and therefore transferable members) and then set a `Staking` proxy to the multisig account directly." CreationDate="2022-04-07T08:57:42.787" UserId="620" />
  <row Id="1468" PostId="1684" Score="0" Text="Thank you! Will subscribe to the issue above." CreationDate="2022-04-07T10:22:24.080" UserId="2132" />
  <row Id="1469" PostId="1652" Score="2" Text="The binary is not what gets uploaded on-chain. To replace to binary - copy it to a node and restart the node. The same happens on e.g. the Polkadot new version releases - it indicates to the validators if a binary upgrade is needed, this is independent of the on-chain forkless runtime upgrade." CreationDate="2022-04-07T10:26:15.160" UserId="2132" />
  <row Id="1470" PostId="1681" Score="0" Text="Yes, using `#[ink::chain_extension]` and `#[ink(payable)]` as mentioned in [the doc](https://paritytech.github.io/ink-docs/macros-attributes/chain-extension)" CreationDate="2022-04-07T10:43:32.857" UserId="121" />
  <row Id="1471" PostId="1671" Score="0" Text="Yeah, I think you can say that @EmisonLu" CreationDate="2022-04-07T11:05:32.187" UserId="45" />
  <row Id="1472" PostId="1693" Score="0" Text="are you sure? I use a similar code here and it seems to work fine: https://github.com/kianenigma/polkadot-portfolio/blob/master/src/fetch/substrate.ts#L33. Better if you post a code example, with expected output." CreationDate="2022-04-07T11:27:07.580" UserId="167" />
  <row Id="1473" PostId="1147" Score="0" Text="As far as I know Substrate comes with a Prometheus exporter built-in, with that you could have metrics to monitor" CreationDate="2022-04-07T11:51:29.717" UserId="189" />
  <row Id="1475" PostId="1591" Score="0" Text="That's what I was thinking so, in conclusion, using codec(mel_bound()) and scale_info(skip_type_params(T)) macros, is the only solution. Thanks for your help." CreationDate="2022-04-07T12:14:05.797" UserId="2136" />
  <row Id="1476" PostId="1691" Score="0" Text="Should I also note that port 9933 should be open on the ui node to execute this action?" CreationDate="2022-04-07T12:18:44.577" UserId="87" />
  <row Id="1477" PostId="1693" Score="0" Text="@kianenigma the code and a description are added. thank you." CreationDate="2022-04-07T12:19:31.790" UserId="642" />
  <row Id="1478" PostId="1693" Score="0" Text="recently @shawn-tabrizi had a twit about some changes regarding crwodloans deposit address modifiation...." CreationDate="2022-04-07T12:19:59.063" UserId="642" />
  <row Id="1479" PostId="1693" Score="0" Text="I don't think this specific API should be affected, but it is possible that 0.9.18 did change something in a breaking way.&#xA;&#xA;Are you able to share your address and expected result?" CreationDate="2022-04-07T13:39:57.007" UserId="28" />
  <row Id="1480" PostId="1678" Score="0" Text="Thanks for the explanation!" CreationDate="2022-04-07T13:54:06.713" UserId="2107" />
  <row Id="1481" PostId="1694" Score="0" Text="Ya, I have done it, not sure why its not showing on pallet inspector substrate-node-template" CreationDate="2022-04-07T13:54:18.007" UserId="213" />
  <row Id="1482" PostId="1693" Score="0" Text="@ShawnTabrizi, sure ,a Polkadot address which had contribution to Acala and a Kusama address which has contribution to Pichu, those addresses can be found at the bottom of the page here:  https://github.com/Nick-1979/polkadot-Js-Plus-extension#to-support   thank you" CreationDate="2022-04-07T14:13:10.450" UserId="642" />
  <row Id="1483" PostId="1691" Score="1" Text=":9944 for websockets. The hosted apps UI cannot make connections to `ws://` [endpoints](https://stackoverflow.com/questions/48866696/connecting-to-ws-websocket-unsecure-in-https-site), so if using that you would need to place it behind a nginx proxy with a certificate." CreationDate="2022-04-07T14:17:49.573" UserId="1970" />
  <row Id="1484" PostId="1701" Score="4" Text="I think it would be better to summarize the answer first, and then, in a footnote give credit to Shawn, otherwise it looks like you're @ messaging them instead of answering the question." CreationDate="2022-04-07T15:45:00.317" UserId="128" />
  <row Id="1485" PostId="1694" Score="0" Text="No. I am unable to make it work." CreationDate="2022-04-07T16:33:35.137" UserId="213" />
  <row Id="1486" PostId="1712" Score="0" Text="You may want to create your custom RPCs. https://docs.substrate.io/v3/runtime/custom-rpcs/" CreationDate="2022-04-07T16:53:10.727" UserId="245" />
  <row Id="1487" PostId="1712" Score="0" Text="Documentation is scarce for implementation. Any code examples." CreationDate="2022-04-07T17:42:49.597" UserId="213" />
  <row Id="1488" PostId="1673" Score="0" Text="Yes, it's for websockets. I think that the intention 'ws' addresses are published so nodes running in the browser can connect over websockets. Since they can't use tcp." CreationDate="2022-04-07T17:45:50.460" UserId="283" />
  <row Id="1489" PostId="1448" Score="0" Text="I think people are having a hard time answering this question because best practices are probably yet to emerge; cross-chain transfers are relatively new in Polkadot and Kusama and strong development patterns will only occur after a learning period." CreationDate="2022-04-07T17:49:08.677" UserId="283" />
  <row Id="1490" PostId="1712" Score="1" Text="You can check out this [pallet](https://github.com/JoshOrndorff/recipes/tree/master/pallets/sum-storage) from [substrate recipes](https://substrate.recipes/runtime-api.html). And [here](https://substrate.recipes/custom-rpc.html#rpc-to-call-a-runtime-api) how to call a runtime api using RPC. You can also take a look at [Subsocial's profile pallet](https://github.com/dappforce/subsocial-node/tree/master/pallets/profiles)" CreationDate="2022-04-07T18:07:30.433" UserId="245" />
  <row Id="1491" PostId="1712" Score="0" Text="https://substrate.recipes/runtime-api.html Trying to implement runtime api, but there is version conflict error for sp-api.  error: failed to select a version for `parity-util-mem`.&#xA;    ... required by package `sc-service v0.10.0-dev (https://github.com/paritytech/substrate.git?tag=monthly-2021-10#bf9683ee)`" CreationDate="2022-04-07T18:07:51.357" UserId="213" />
  <row Id="1492" PostId="1502" Score="1" Text="This feels like a bug report, not a genuine question/answer" CreationDate="2022-04-07T18:08:16.763" UserId="283" />
  <row Id="1493" PostId="1710" Score="1" Text="To add to this, `IterableStorageMap` is a trait, not a type. The concrete `StorageMap` exposed by `frame_support` is an `IterableStorageMap`, so this is why it has `iter_keys` and `iter_values` methods." CreationDate="2022-04-07T18:10:13.337" UserId="283" />
  <row Id="1494" PostId="1710" Score="1" Text="So you don't need to update the type of the storage map, but just ensure that the `IterableStorageMap` trait is in scope so you can use its methods by importing `IterableStorageMap`." CreationDate="2022-04-07T18:11:24.477" UserId="283" />
  <row Id="1495" PostId="1713" Score="5" Text="Want to note here, that transaction can NEVER be &quot;gasless&quot;, or in Substrate terms &quot;weightless&quot;. All extrinsics should record their weight. However, they can be &quot;feeless&quot;, as in the user can be programmed to not take a fee for the weight they use." CreationDate="2022-04-07T18:27:02.453" UserId="28" />
  <row Id="1496" PostId="1703" Score="0" Text="Excellent, thank you. I'll try both - the Proxy approach is just historic (a couple of months elsewhere), but I guess it may make more sense not to." CreationDate="2022-04-07T18:39:38.767" UserId="2132" />
  <row Id="1497" PostId="1712" Score="0" Text="Make sure that you're using the same substrate tag for the whole project. If different, it may cause conflicts." CreationDate="2022-04-07T18:55:14.373" UserId="245" />
  <row Id="1501" PostId="1721" Score="0" Text="Thank you Jaco!" CreationDate="2022-04-08T05:57:02.427" UserId="240" />
  <row Id="1502" PostId="1721" Score="0" Text="I'm guessing the normal runtime.wasm and runtime.compact.wasm are just intemediate build files at this point? (Since compression support is there and there doesn't seem a reason to use them at all anymore)" CreationDate="2022-04-08T06:09:44.890" UserId="1949" />
  <row Id="1503" PostId="1721" Score="1" Text="you can use `subwasm compress` and `subwasm decompress` to compress and decompress runtimes ( https://github.com/chevdor/subwasm )" CreationDate="2022-04-08T06:15:51.150" UserId="85" />
  <row Id="1504" PostId="1723" Score="1" Text="I think your second question is outside the scope of the original post.  There's an open issue here for that: https://github.com/paritytech/substrate-archive/issues/449 :)" CreationDate="2022-04-08T07:39:05.417" UserId="172" />
  <row Id="1505" PostId="1699" Score="0" Text="Thank you for the answer!&#xA;&#xA;I've went over the PR you linked and watches Shawn's video about storage (https://www.youtube.com/watch?v=9S8rmW8LD5o). It's more clear to me know what happens." CreationDate="2022-04-08T08:33:23.040" UserId="426" />
  <row Id="1507" PostId="1394" Score="0" Text="There is already same question of this here https://substrate.stackexchange.com/questions/178/how-can-i-get-my-parachain-to-produce-blocks-sanity-checklist" CreationDate="2022-04-08T09:35:49.727" UserId="298" />
  <row Id="1508" PostId="1728" Score="0" Text="What you mean by growth rate? The rate of how the storage requirements are growing? Or the rate of how fast you produce blocks?" CreationDate="2022-04-08T10:12:23.013" UserId="73" />
  <row Id="1509" PostId="1734" Score="0" Text="Thank you @bkchr :)" CreationDate="2022-04-08T10:15:45.657" UserId="200" />
  <row Id="1510" PostId="1728" Score="0" Text="@bkchr I mean the growth rate from the perspective of storage* (i will edit the question). Im thinking if the chain generates 900 MB of data in 2 days without any transactions, or just 1 validator, a back of the envelope calucalation suggests that within a year it will grow to around 180 GB. I don't know if that's a good size because apparently ethereum is a much larger network, running since 7 years now and is less than 1 TB today." CreationDate="2022-04-08T10:24:42.943" UserId="139" />
  <row Id="1511" PostId="1732" Score="0" Text="See this answer: https://stackoverflow.com/questions/56873179/substrate-has-runtime-versioning-what-is-the-purpose-and-use-case-for-these#:~:text=Runtime%20versioning%20is%20an%20important,feature%20of%20Substrate%20based%20blockchains.&amp;text=spec_version%20is%20used%20to%20signify,affect%20consensus%20in%20the%20network." CreationDate="2022-04-08T10:26:10.407" UserId="139" />
  <row Id="1512" PostId="1728" Score="1" Text="You are comparing here a Substrate archive node (validators are currently by default still archive nodes) vs an ethereum pruned node. Looking at the stats here: https://etherscan.io/chartsync/chainarchive You see that an ethereum archive nodes requires more than 10 TB today." CreationDate="2022-04-08T10:39:26.963" UserId="73" />
  <row Id="1513" PostId="1731" Score="0" Text="I guess I will go with the dummy impl approach for now. Thanks. But can you elaborate on how rpc collections approach would solve the problem?" CreationDate="2022-04-08T10:46:01.813" UserId="611" />
  <row Id="1515" PostId="1739" Score="0" Text="Yeah, the encoding part is a good tip, however it still complains: &quot;associated item not found in pallet_submitter::Pallet&lt;Runtime&gt;&quot;. Referring to the SubmittedTasks, Which makes sense as the StorageMap is technically defined inside the pallet module and not associated with the Pallet struct" CreationDate="2022-04-08T11:03:50.377" UserId="2099" />
  <row Id="1517" PostId="1739" Score="0" Text="Ahh yeah that makes sense. I edited my answer. Now it should work." CreationDate="2022-04-08T11:10:02.583" UserId="73" />
  <row Id="1518" PostId="1731" Score="0" Text="just try dummy impl, with rpc collections approach much more effort" CreationDate="2022-04-08T11:32:06.080" UserId="523" />
  <row Id="1519" PostId="1739" Score="0" Text="That is the syntax I was looking for, thanks. Now it works" CreationDate="2022-04-08T11:34:12.877" UserId="2099" />
  <row Id="1520" PostId="1724" Score="0" Text="Can you describe roughly what this storage migration does?" CreationDate="2022-04-08T12:19:02.210" UserId="45" />
  <row Id="1521" PostId="1737" Score="0" Text="Thank you. I'm aware of SS58 encoding. But what prevents me from using the same private key for Bitcoin, Ethereum, and Polkadot?" CreationDate="2022-04-08T12:46:44.160" UserId="160" />
  <row Id="1523" PostId="1737" Score="0" Text="At the end of the day a secp256k1 private key is only a 256bit integer. Thus, as is, a &quot;raw&quot; private key is not bound to any blockchain, is just a number.&#xA;&#xA;I think that the dialog in your post is suggesting you that the **AccoundId** (i.e. encoding of the public key) is not compatible with the other blockchains because of the encoding." CreationDate="2022-04-08T12:54:59.887" UserId="342" />
  <row Id="1524" PostId="1737" Score="0" Text="My question stems from the screenshot of PolkadotJS that says: `ECDSA (Non BTC/ETH compatible`. Sorry, I should have been clearer." CreationDate="2022-04-08T13:07:29.503" UserId="160" />
  <row Id="1525" PostId="1747" Score="0" Text="I see. So if I select _private key_ instead of mnemonic and select ECDSA, it should be compatible because it's skipping the derivation step?" CreationDate="2022-04-08T13:30:53.490" UserId="160" />
  <row Id="1526" PostId="1747" Score="2" Text="100% - it is just incompatible derivation steps that is at play here." CreationDate="2022-04-08T13:48:36.467" UserId="627" />
  <row Id="1527" PostId="1724" Score="0" Text="Bulk insert new data to storage." CreationDate="2022-04-08T14:45:53.083" UserId="206" />
  <row Id="1528" PostId="1477" Score="0" Text="this was super helpful thanks Jaco!" CreationDate="2022-04-08T14:53:35.790" UserId="2038" />
  <row Id="1529" PostId="1724" Score="0" Text="Can you elaborate on it more? As stated, the question can get good but generic answers. However, potentially there is a better solution for the particular problem." CreationDate="2022-04-08T15:06:53.050" UserId="45" />
  <row Id="1531" PostId="1727" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-04-08T16:44:38.467" UserId="-1" />
  <row Id="1532" PostId="1753" Score="0" Text="Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." CreationDate="2022-04-09T03:21:14.627" UserId="-1" />
  <row Id="1533" PostId="1755" Score="0" Text="This depends very  much on the context it is used. Perhaps provide a few examples to reference?" CreationDate="2022-04-09T03:22:12.893" UserId="34" />
  <row Id="1534" PostId="1755" Score="0" Text="Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." CreationDate="2022-04-09T03:22:24.027" UserId="-1" />
  <row Id="1535" PostId="1758" Score="0" Text="I see, thank you. This question should be discussed after we have the ethereum bridge. Right now I'm just learning, not in production yet." CreationDate="2022-04-09T04:25:09.677" UserId="1959" />
  <row Id="1536" PostId="1761" Score="2" Text="From what I can find on https://polkadot.network/launch-roadmap , parathreads are next on the roadmap. But if I go to the frontend, there are already a bunch of parathreads active.&#xA;Maybe the parathreads are already fully functioning, but it's the launching of a parathread that is being worked on? &#xA;Can anyone else comment on this?" CreationDate="2022-04-09T06:17:49.273" UserId="609" />
  <row Id="1538" PostId="1758" Score="0" Text="I also want to know the difference between them, please see [here](https://substrate.stackexchange.com/questions/1762/what-is-the-difference-between-globalconsensus-tuple-struct-with-networkid-a) bro" CreationDate="2022-04-09T07:21:18.107" UserId="1959" />
  <row Id="1539" PostId="1724" Score="0" Text="Here is a relevant question - https://substrate.stackexchange.com/questions/1329/how-to-perform-a-large-migration" CreationDate="2022-04-09T09:29:25.113" UserId="1970" />
  <row Id="1540" PostId="1767" Score="0" Text="Thank you. This app is extremely useful." CreationDate="2022-04-09T11:08:41.443" UserId="576" />
  <row Id="1541" PostId="1760" Score="0" Text="Have you checked out the code base on windows and then opened via mnt from wsl?" CreationDate="2022-04-09T12:34:24.297" UserId="1927" />
  <row Id="1542" PostId="1753" Score="1" Text="Most general questions like this can be answered by reading the official docs at: https://docs.substrate.io/ or various articles available online. I'm voting to close this question as it needs more focus or be more specific." CreationDate="2022-04-09T16:13:15.220" UserId="128" />
  <row Id="1543" PostId="1765" Score="0" Text="Simply linking to docs is not a good way to answer a question on Stack Exchange. It's best to quote the key information that answers the question and explain the context. Only then include the link as a reference." CreationDate="2022-04-09T16:15:30.210" UserId="128" />
  <row Id="1544" PostId="1760" Score="2" Text="Do you have `make` installed? There are similar questions already asked about this." CreationDate="2022-04-09T16:47:03.633" UserId="94" />
  <row Id="1546" PostId="1760" Score="1" Text="Yeah, should be the missing `make` tool.&#xA;From the backtrace you can see that it is the `main` calling `run` with some params.&#xA;&#xA;The only places this happens is [here](https://github.com/tikv/jemallocator/blob/2706fb3874e075eca51af7f672d228ce28d5c475/jemalloc-sys/build.rs#L266), [here](https://github.com/tikv/jemallocator/blob/2706fb3874e075eca51af7f672d228ce28d5c475/jemalloc-sys/build.rs#L274) and in other two places. All of these are calling `make` tool. &#xA;&#xA;`apt install make` should solve your problem" CreationDate="2022-04-09T17:07:15.463" UserId="342" />
  <row Id="1547" PostId="1754" Score="2" Text="You shouldn't repeat the title of the question in the question body. It's best to use the body of the question to add more context or to describe in what ways you tried to answer the question yourself." CreationDate="2022-04-09T17:23:31.277" UserId="128" />
  <row Id="1550" PostId="1752" Score="2" Text="Please provide more context and explain the question in more detail: Which address formats? Do you want to do it in code or just in general?. Also, it's best not to repeat the title of the question in the question body." CreationDate="2022-04-09T19:47:02.150" UserId="128" />
  <row Id="1551" PostId="1761" Score="0" Text="Please always link to source materials you reference " CreationDate="2022-04-09T23:56:58.947" UserId="34" />
  <row Id="1552" PostId="1750" Score="1" Text="Please add links to where you are reading about things, for others to reference and understand context" CreationDate="2022-04-10T00:00:24.440" UserId="34" />
  <row Id="1553" PostId="1760" Score="0" Text="Cheers guys, that was the issue. much appreciated for the assist." CreationDate="2022-04-10T06:07:30.677" UserId="2146" />
  <row Id="1554" PostId="1776" Score="0" Text="Idk if you knew, but it's possible to batch transactions up as a `utility.batch` or `utility.batchAll` transaction which can have a number of transactions in it. But the limitation is that if you want them signed they would all have to be signed by the same account." CreationDate="2022-04-10T06:45:13.690" UserId="85" />
  <row Id="1555" PostId="1777" Score="0" Text="Dupe of https://substrate.stackexchange.com/questions/529/failed-to-resolve-use-of-undeclared-crate-or-module-imp ?" CreationDate="2022-04-10T06:48:51.867" UserId="85" />
  <row Id="1556" PostId="1773" Score="0" Text="Parachains do have block finalisation - when the relay block is finalised then the associated parachain block is finalised. There's no problems with recursive relay chains from that perspective." CreationDate="2022-04-10T06:52:50.860" UserId="85" />
  <row Id="1557" PostId="1777" Score="1" Text="It is not a duplicate, the error is due to an improper rust version and probably needs a fix in the upstream dependencies of Substrate." CreationDate="2022-04-10T06:56:15.203" UserId="1768" />
  <row Id="1558" PostId="1777" Score="0" Text="This stack exchange is not for solving individual compile errors. This bug is also already fixed in master: https://github.com/paritytech/substrate/commit/4bc2af13cd81007a2a340d0333062179420d5daf" CreationDate="2022-04-10T07:19:49.497" UserId="73" />
  <row Id="1559" PostId="1778" Score="1" Text="It's work! I tried to ask him to send `10000` transactions, but he said it exceeded the limit of the pool, but it was successfully sent. Do you know where to configure `the limit of the pool`?" CreationDate="2022-04-10T08:46:20.390" UserId="299" />
  <row Id="1560" PostId="1778" Score="0" Text="And why does using `localhost` or `LAN IP` cause disconnect?" CreationDate="2022-04-10T08:47:39.690" UserId="299" />
  <row Id="1561" PostId="1777" Score="0" Text="@bkchr I understand that, but the solution to the linked question is not an appropriate solution to my question. I believe the commit link shared by you is correct answer." CreationDate="2022-04-10T09:15:41.490" UserId="1768" />
  <row Id="1562" PostId="1780" Score="0" Text="That's interesting. Is there a way I can test that (e.g., with multiple reads) to make sure?" CreationDate="2022-04-10T09:20:13.090" UserId="587" />
  <row Id="1564" PostId="1783" Score="6" Text="guess a customized consensus like [instant seal](https://stackoverflow.com/questions/61541866/how-do-i-run-substrate-in-a-way-so-that-transactions-get-validated-instantly-for) is what you actually need" CreationDate="2022-04-10T10:15:56.217" UserId="523" />
  <row Id="1565" PostId="1783" Score="3" Text="Epoch-based consensus algorithms such as babe and aura require to periodically produce blocks in order to allow to trigger some events at the end of each epoch (e.g. for babe =&gt; authorities set and rand seed change). &#xA;&#xA;This information is embedded within the block using the so called *Digest* entry." CreationDate="2022-04-10T11:27:18.810" UserId="342" />
  <row Id="1567" PostId="1783" Score="0" Text="Assuming that there is an implementation of some consensus algorithm that is safe if validators don't produce blocks, there should be some high-level runtime logic that panics (making the block invalid) if there are no transactions." CreationDate="2022-04-10T20:04:56.993" UserId="283" />
  <row Id="1568" PostId="1773" Score="2" Text="It could be done, but as you point out, the approval-checking and disputes mechanisms would have to be done differently as the 2nd order relay chain doesn't have authority over its own finalization." CreationDate="2022-04-10T20:07:26.777" UserId="283" />
  <row Id="1569" PostId="1783" Score="0" Text="@Ron awesome. Seems like a great starting point for what I need. I'll take a deeper look at that." CreationDate="2022-04-11T02:00:37.187" UserId="2228" />
  <row Id="1570" PostId="1783" Score="1" Text="@rob For my particular use case, something simple similar to instant seal should work fine, but for reference, Avalanche consensus doesn't need to produce blocks when there are no transactions. https://medium.com/avalancheavax/avalanche-consensus-101-99c68a3e3159 It's more than what I need, but if anyone wants to implement this for substrate, I'd be happy to collaborate." CreationDate="2022-04-11T02:16:25.720" UserId="2228" />
  <row Id="1571" PostId="1750" Score="1" Text="references added. Thanks" CreationDate="2022-04-11T04:36:12.293" UserId="1789" />
  <row Id="1573" PostId="1775" Score="0" Text="does that mean my parachain's crowdloan pallet is not needed for me to run a crowdloan, because the Relay chain has crowdloan already?" CreationDate="2022-04-11T09:53:31.630" UserId="1789" />
  <row Id="1576" PostId="1775" Score="0" Text="&quot;Parachains may implement other logic that looks at the state of the relay chain&quot; is my next question... please have a look https://substrate.stackexchange.com/questions/1801/how-to-get-relay-accounts-native-accounts-and-contributed-amounts-from-a-crowdl" CreationDate="2022-04-11T10:26:45.863" UserId="1789" />
  <row Id="1577" PostId="1791" Score="0" Text="Thank you. Oh i see. it is just hard to find those details" CreationDate="2022-04-11T10:30:44.463" UserId="1789" />
  <row Id="1578" PostId="1257" Score="1" Text="If you manage to run a crawler on a substrate network, please share with us! It's super interesting." CreationDate="2022-04-11T11:02:20.080" UserId="544" />
  <row Id="1579" PostId="1769" Score="0" Text="I'm getting sr25519 in my list but still, this function is returning an empty vector. –" CreationDate="2022-04-11T11:24:05.793" UserId="429" />
  <row Id="1580" PostId="1796" Score="0" Text="Thanks, I will try it. Btw, is my Kusama network address creation part is correct?" CreationDate="2022-04-11T11:32:11.357" UserId="2232" />
  <row Id="1581" PostId="1573" Score="0" Text="Answer updated, @DanielChmielewski. Thanks." CreationDate="2022-04-11T12:12:11.507" UserId="2124" />
  <row Id="1582" PostId="1805" Score="1" Text="You can take a look at the repository: https://github.com/TomaszWaszczyk/evm-substrate-address-converter to understand prefix." CreationDate="2022-04-11T12:25:26.037" UserId="19" />
  <row Id="1583" PostId="1562" Score="0" Text="@ShawnTabrizi, I am trying what you suggested to better understand the chain spec dependency. &#xA;```./target/debug/imbue-collator build-spec --chain imbue-dev --raw --disable-default-bootnode --features=runtime-benchmarks &gt; pukimak.json```,&#xA; it errors out with the following:&#xA;```error: Found argument '--features' which wasn't expected, or isn't valid in this context&#xA;&#xA;	If you tried to supply `--features` as a value rather than a flag, use `-- --features`&#xA;&#xA;USAGE:&#xA;    imbue-collator build-spec --chain &lt;CHAIN_SPEC&gt;&#xA;&#xA;For more information try --help```" CreationDate="2022-04-11T12:29:26.943" UserId="2124" />
  <row Id="1584" PostId="1804" Score="1" Text="Where did you get the chain spec? Which commands are you using? What are you trying to do with the spec?" CreationDate="2022-04-11T12:33:24.060" UserId="94" />
  <row Id="1585" PostId="1805" Score="0" Text="The pallet [claims](https://github.com/paritytech/polkadot/blob/634520cd3cf4b2b850db807daaaa32e480099981/runtime/common/src/claims.rs#L321) in Polkadot is doing something similar to this." CreationDate="2022-04-11T12:37:23.053" UserId="94" />
  <row Id="1586" PostId="1805" Score="1" Text="Does this answer your question? [How to convert a Substrate address to an Etherum address?](https://substrate.stackexchange.com/questions/1752/how-to-convert-a-substrate-address-to-an-etherum-address)" CreationDate="2022-04-11T12:38:28.647" UserId="94" />
  <row Id="1587" PostId="1804" Score="1" Text="Just as an addition, build-spec subcommand do not allow raw to plain conversion. So not an option." CreationDate="2022-04-11T12:40:06.867" UserId="165" />
  <row Id="1588" PostId="1805" Score="0" Text="@OliverTale-Yazdi this question seeks to perform the conversion in the opposite direction." CreationDate="2022-04-11T13:33:30.690" UserId="2247" />
  <row Id="1589" PostId="1780" Score="2" Text="Maybe, the simplest way to test is to benchmark it, and do a A/B test, such as just add another 10 times call to read the same storage(and key), and check the benchmark value." CreationDate="2022-04-11T14:40:05.960" UserId="393" />
  <row Id="1590" PostId="155" Score="0" Text="Shawn has a great video on the subject too: https://www.youtube.com/watch?v=5cgq5jOZx9g" CreationDate="2022-04-11T14:53:34.953" UserId="85" />
  <row Id="1591" PostId="1753" Score="0" Text="@DanielChmielewski Unfortunately such an explainer is either not available or not easily digestible for me (and probably others) through the official docs. As this question is posed to the layman, it would serve to help myself and other people to be directed to the correct portion of a dense, technical documentation set or to good articles detailing how Substrate works. In short, I have searched and cannot find it, so I would like for another person to help" CreationDate="2022-04-11T15:55:27.943" UserId="2212" />
  <row Id="1592" PostId="1765" Score="0" Text="Thank you! This is very helpful. I would possibly agree with @DanielChmielewski that highlighting some key information would make this answer even better" CreationDate="2022-04-11T15:58:13.110" UserId="2212" />
  <row Id="1593" PostId="1562" Score="1" Text="Features should be before build-spec" CreationDate="2022-04-11T16:01:37.527" UserId="28" />
  <row Id="1594" PostId="1784" Score="1" Text="This is incorrect, the full form of XCM is Cross Consensus Messaging, which means it doesn't really matter which consensus system that the sender or receiver is in, as long as they understand the SCALE-encoded XCMs, then interoperability between consensus system is possible." CreationDate="2022-04-11T17:33:02.707" UserId="104" />
  <row Id="1596" PostId="1807" Score="0" Text="Thanks! Let me try that!" CreationDate="2022-04-11T18:41:16.337" UserId="2244" />
  <row Id="1597" PostId="1812" Score="0" Text="It's a little bit too little context to provide a useful answer. Consider augmenting the question with a little bit more detail." CreationDate="2022-04-11T18:58:28.343" UserId="45" />
  <row Id="1598" PostId="1812" Score="2" Text="You may find this PR useful https://github.com/paritytech/substrate/pull/10403" CreationDate="2022-04-11T18:58:45.837" UserId="45" />
  <row Id="1599" PostId="1713" Score="0" Text="But this does it have security issues?" CreationDate="2022-04-11T19:26:22.657" UserId="351" />
  <row Id="1600" PostId="1812" Score="0" Text="I have a struct of many different chain addresses to attach to a user. I used T::AccountId for the dot address reference, I suppose I can change it to Vec&lt;u8&gt;. Its convenient to use the macro on those structs as it saves many lines of code." CreationDate="2022-04-11T19:27:57.070" UserId="2257" />
  <row Id="1601" PostId="1769" Score="0" Text="you have created `public_key` somewhere that maybe is not true `sr25519` please use [sr25519_generate_new](https://crates.parity.io/sp_keystore/trait.SyncCryptoStore.html#tymethod.sr25519_generate_new) instead and iterate over all sr25519 keys by [sr25519_public_keys](https://crates.parity.io/sp_keystore/trait.SyncCryptoStore.html#tymethod.sr25519_public_keys)" CreationDate="2022-04-11T21:09:00.647" UserId="697" />
  <row Id="1602" PostId="1814" Score="0" Text="I just manually impl Default for it. Thanks!" CreationDate="2022-04-11T23:26:16.090" UserId="2257" />
  <row Id="1603" PostId="1807" Score="0" Text="This worked perfectly! Is there any link to docs where this is documented?" CreationDate="2022-04-12T00:19:14.103" UserId="2244" />
  <row Id="1609" PostId="1258" Score="0" Text="How about accepting my reply as an answer ;P" CreationDate="2022-04-12T04:48:10.197" UserId="544" />
  <row Id="1613" PostId="1450" Score="0" Text="Better to disable it and config cors from the nginx side" CreationDate="2022-04-12T06:01:59.553" UserId="544" />
  <row Id="1614" PostId="1780" Score="0" Text="I don't think there's &quot;pay&quot; or &quot;charge&quot; in an extrinsic at all. All you can do is to benchmark the extrinsic, and assign a value to the weight for it. Depends on if you enable the state cache or not, you may get different benchmark result." CreationDate="2022-04-12T06:05:02.027" UserId="544" />
  <row Id="1615" PostId="1774" Score="1" Text="Not sure how the cache works, but my practice is to minimize the read and write operations and count all of them." CreationDate="2022-04-12T06:06:03.027" UserId="544" />
  <row Id="1616" PostId="1670" Score="0" Text="And please also pay attention to the constant cost of such advanced data structure. If the size of the container is not larger than some amount (e.g. 30-50), a naive vector can be even more efficient." CreationDate="2022-04-12T06:08:32.407" UserId="544" />
  <row Id="1617" PostId="1029" Score="0" Text="Welcome to join our #dev discussion channel if you are interested in http request from ink! (discord.gg/phala)" CreationDate="2022-04-12T06:13:52.657" UserId="544" />
  <row Id="1619" PostId="1807" Score="1" Text="It is not documented but we are thinking of adding some queries related to `parachains` and `crowdloans`. Until then, when you face a similar issue, you could try searching in `polkadot-js api` repo with keywords related to your question. In this case if you search with keywords `crowdloan info` or `crowdloan query` the result is this line `https://github.com/polkadot-js/api/blob/3ded30a0f308b5954bd9c2c0ff91abf81a273d67/packages/api-derive/src/crowdloan/childKey.ts#L38` which gives you the actual query you need to do. Or you can always post a question here and someone will be happy to help :)" CreationDate="2022-04-12T07:26:22.337" UserId="234" />
  <row Id="1621" PostId="1769" Score="0" Text="I was converting the public key into bytes using .as_bytes(), but after converting it using sp_core::sr25519::Public:: from_ss58check(), the problem got resolved.&#xA;&#xA;Converting a string of public key into bytes using .as_bytes() is the wrong approach, in substrate we should convert the keys into bytes using the substrate's internal components only.&#xA;&#xA;Thanks for your help." CreationDate="2022-04-12T10:40:00.547" UserId="429" />
  <row Id="1622" PostId="1814" Score="0" Text="@AaronEly please consider marking this answer as the solution, thanks." CreationDate="2022-04-12T12:07:53.240" UserId="45" />
  <row Id="1623" PostId="1711" Score="0" Text="This would be a good feature request on cumulus, but will eventually be solved by https://github.com/paritytech/cumulus/issues/483" CreationDate="2022-04-12T16:25:49.823" UserId="34" />
  <row Id="1624" PostId="1828" Score="0" Text="Got it, thank you @Jaco. Is working against the Rust docs the best approach for my task?" CreationDate="2022-04-12T16:46:01.540" UserId="2264" />
  <row Id="1625" PostId="1828" Score="0" Text="Start with metadata v14 - parse the metadata (ensure you have those structs right, this would be alignment with Rust) and extract the types from there. If you can setup all those types and encode/decode them, you have the bulk of everything supported (on a SCALE-level)." CreationDate="2022-04-12T18:45:42.117" UserId="627" />
  <row Id="1626" PostId="1830" Score="0" Text="Thanks, I guess the last time I used it was a while ago!" CreationDate="2022-04-12T19:09:54.573" UserId="380" />
  <row Id="1627" PostId="1679" Score="0" Text="Dear Dan, thanks for your questions: 1) yes, I cloned  github.com/paritytech/substrate-telemetry, compiled the backend and ran the frontend without changes, and 2) you are correct, my wording was wrong and I have corrected them in the original question. Any advise will be much appreciated!" CreationDate="2022-04-12T19:33:58.330" UserId="2169" />
  <row Id="1628" PostId="1828" Score="0" Text="I've started on that but I'm seeing another discrepancy which I can't account for. It seems that typename string are encoded with a first byte that when = 0 denotes a missing value and otherwise signifies the beginning of a string, but I'm not seeing the length of it as a compact integer. Am I missing something? Working with https://raw.githubusercontent.com/polkadot-js/api/master/packages/types-support/src/metadata/v14/substrate-types.json" CreationDate="2022-04-12T19:42:22.627" UserId="2264" />
  <row Id="1629" PostId="1805" Score="1" Text="The issue is that Ethereum addresses use different cryptosystem than most Substrate addresses. A valid private or public key for one system isn't translatable to the other. You'd have to build something like the claims pallet (or use the claims pallet)" CreationDate="2022-04-12T22:13:53.050" UserId="283" />
  <row Id="1630" PostId="1828" Score="0" Text="The JSON is information decoded from a SCALE input, it is not a SCALE display, SCALE is the raw hex byte stream. In JSON a string `&quot;xyz&quot;` has length 3, since we have delimiters in the format itself. In the SCALE input it would be `[3 &lt;&lt; 2, 0x78, 0x79, 0x7a]`." CreationDate="2022-04-13T05:42:15.857" UserId="627" />
  <row Id="1631" PostId="1822" Score="0" Text="How can I influence the block weight?" CreationDate="2022-04-13T06:49:01.853" UserId="139" />
  <row Id="1633" PostId="1828" Score="0" Text="Yeah, I've gotten that far but I'm losing it somewhere with the encoded types in v14. Must be a subtle bug somewhere, I'll keep looking. Thank you for your help." CreationDate="2022-04-13T07:00:04.747" UserId="2264" />
  <row Id="1635" PostId="1837" Score="0" Text="`reducible_balance` should be more accurate will deduct locked&amp;ed if necessary" CreationDate="2022-04-13T10:02:04.347" UserId="523" />
  <row Id="1636" PostId="1784" Score="0" Text="thanks for the clarification @KeithYeung" CreationDate="2022-04-13T10:07:35.267" UserId="523" />
  <row Id="1637" PostId="1785" Score="0" Text="There is a custom prefix where any number can be chosen - it should not be necessary to register in the SS58_Registry. There's a custom constructor here: https://docs.rs/ss58-registry/1.17.0/ss58_registry/struct.Ss58AddressFormat.html#method.custom" CreationDate="2022-04-13T11:14:43.060" UserId="85" />
  <row Id="1638" PostId="1845" Score="0" Text="Thanks for your answer. I just found another point, the second line `((38_000 as Weight).saturating_mul(x as Weight))`, do you know how `38_000` is generated? Can I see this as `T::Runner::call(...)` varying weight consumption as `gas_limit_call` changes?" CreationDate="2022-04-13T11:28:22.520" UserId="125" />
  <row Id="1644" PostId="1845" Score="0" Text="Yes. The benchmarking uses linear regression to find any linear dependency between the input parameters and the weight. The 38 ns is multiplied with your x aka `gas_limit_call`. parameter.  &#xA;The exact result and linear model should be printed to console as shown above.&#xA;PS: Updated my answer." CreationDate="2022-04-13T14:09:38.720" UserId="94" />
  <row Id="1645" PostId="1853" Score="0" Text="Could you tell me what code snip you'd like to see? Would the pallet_collective config suffice?" CreationDate="2022-04-13T14:14:13.470" UserId="139" />
  <row Id="1646" PostId="1853" Score="0" Text="At least that plus the configuration of any `Origin` you want to use it for. Probably the whole runtime lib.rs would be useful." CreationDate="2022-04-13T14:55:33.740" UserId="620" />
  <row Id="1649" PostId="1859" Score="0" Text="when you say &quot;the hardware requirements are aimed at Validators which participate in the consensus.&quot;, would you include Collators in that category as well?" CreationDate="2022-04-13T19:10:57.187" UserId="494" />
  <row Id="1651" PostId="1869" Score="0" Text="I am not totally sure if the function name comes from the Unix command touch because it is actually a command that updates the last time modified field of a file, but yeah it can be used to create new files. Anyway, it isn't really important where the name comes from. Thanks for the clarification!" CreationDate="2022-04-14T06:33:26.693" UserId="2163" />
  <row Id="1652" PostId="1868" Score="0" Text="Could you elaborate on why is that? I am not knowledgeable in cryptographic procedures." CreationDate="2022-04-14T07:07:33.677" UserId="139" />
  <row Id="1653" PostId="1870" Score="0" Text="And what changed in the runtime upgrade? Can this be reproduced?" CreationDate="2022-04-14T08:52:47.813" UserId="73" />
  <row Id="1654" PostId="1866" Score="0" Text="What you mean by state? Do you mean if the transaction is already included in a block or still waiting in the tx pool?" CreationDate="2022-04-14T08:57:19.233" UserId="73" />
  <row Id="1655" PostId="1862" Score="0" Text="Hey, could you please open an issue in Substrate. But your idea of first updating the node sounds good. You should compare a chain spec generated by the newer node vs your old chain spec and check on the differences." CreationDate="2022-04-14T09:04:50.740" UserId="73" />
  <row Id="1656" PostId="1876" Score="0" Text="Is there a downside to this? Why is it not default?" CreationDate="2022-04-14T09:22:18.663" UserId="94" />
  <row Id="1657" PostId="1858" Score="0" Text="Can't use it for my use case as I can't have WS connections (hence &quot;I'm not using a polkadot-js lib and only use HTTP RPC requests&quot;). There are several ways I could get these events from API, however, the easiest of the ways are not available for me." CreationDate="2022-04-14T09:39:49.837" UserId="2286" />
  <row Id="1658" PostId="1876" Score="2" Text="Not every type can be compacted, so you can not use it by default. Downside is that you trade smaller storage requirements for more computational requirements (but they are really neglectable)" CreationDate="2022-04-14T09:53:30.227" UserId="73" />
  <row Id="1659" PostId="1822" Score="0" Text="There are some good explanation in the Substrate docs site: https://docs.substrate.io/v3/runtime/weights-and-fees/. You should also check your runtime `src/lib.rs` file. There are constants to define the max weight for the block." CreationDate="2022-04-14T10:25:39.197" UserId="544" />
  <row Id="1660" PostId="1858" Score="0" Text="They are under `system.events`: `0x26aa394eea5630e07c48ae0c9558cef780d41e5e16056765bc8461851072c9d7`" CreationDate="2022-04-14T11:52:11.577" UserId="620" />
  <row Id="1661" PostId="1858" Score="0" Text="Yes, there is an RPC method ```state_getStorage``` that supposedly should allow to request events. However, there is very little documentation of what are the &quot;keys&quot; that are supposed to be associated with certain data in storage. On my Polkadot node the ```state_getKeys``` method, which is supposed to be called with 0 arguments, returns an error that it expects 1 or more arguments. Seems like the documentation is partially deprecated, since my node is running the latest version." CreationDate="2022-04-14T13:05:07.937" UserId="2286" />
  <row Id="1662" PostId="1866" Score="0" Text="Tx still waiting in the tx pool. If tx transaction finalized, I can get via event." CreationDate="2022-04-14T13:21:45.760" UserId="2293" />
  <row Id="1663" PostId="1872" Score="0" Text="I want get in my node via api.query." CreationDate="2022-04-14T13:22:24.420" UserId="2293" />
  <row Id="1664" PostId="1881" Score="0" Text="Bear in mind this is counted in the smallest unit so planks in the case of dot." CreationDate="2022-04-14T15:12:01.533" UserId="85" />
  <row Id="1665" PostId="1866" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-04-14T15:22:01.330" UserId="-1" />
  <row Id="1666" PostId="1856" Score="0" Text="Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." CreationDate="2022-04-14T15:22:54.733" UserId="-1" />
  <row Id="1667" PostId="1866" Score="0" Text="I mean when I call an extrinsic, can I get extrinsic information&#xA;Currently, I can only get the extrinsic information after the block is finalized." CreationDate="2022-04-14T15:52:41.717" UserId="2293" />
  <row Id="1668" PostId="1881" Score="0" Text="Yes take a look [here](https://wiki.polkadot.network/docs/learn-DOT#polkadot) for conversion. So in this example, 11,835,195,980,139,420,511 Plancks would be 1,183,519,598.0139420511 Dots!" CreationDate="2022-04-14T17:16:46.033" UserId="29" />
  <row Id="1671" PostId="1890" Score="0" Text="This is similar to https://substrate.stackexchange.com/questions/962/what-sort-of-skills-do-i-need-to-become-a-substrate-runtime-engineer" CreationDate="2022-04-14T21:41:52.810" UserId="172" />
  <row Id="1673" PostId="1887" Score="0" Text="thank you very much" CreationDate="2022-04-15T02:50:09.040" UserId="489" />
  <row Id="1674" PostId="1897" Score="0" Text="Get the hash of the message directly? Is it unique when the message content is the same? Can you provide some sample code?" CreationDate="2022-04-15T05:28:36.337" UserId="1959" />
  <row Id="1675" PostId="1902" Score="1" Text="My second pic show the Period is `32`, while my first pic use Lifetime: `64`, this cause signature mis-match. when I change Lifetime to `32`, the signature is matched." CreationDate="2022-04-15T11:54:11.440" UserId="301" />
  <row Id="1676" PostId="1903" Score="2" Text="PR to fix the docs: https://github.com/substrate-developer-hub/substrate-docs/pull/953&#xA;(Thank you for spotting this and bringing attention to it)" CreationDate="2022-04-15T12:52:23.930" UserId="85" />
  <row Id="1677" PostId="1882" Score="1" Text="An unconstrained `cargo update` is usually not a good idea. `cargo update -p sp-io` is usually ok though." CreationDate="2022-04-15T12:55:35.797" UserId="85" />
  <row Id="1678" PostId="1882" Score="0" Text="if you do a cargo build --release from the root that would build the pallets in wasm too. I would undo local changes and make sure that you have run `rustup target add wasm32-unknown-unknown`" CreationDate="2022-04-15T12:59:25.583" UserId="85" />
  <row Id="1679" PostId="1905" Score="0" Text="Incidentally these stats don't care if it's a `--release` build or a `--profile production` build (the latter takes considerably longer to compile but should be used for running benchmarks)" CreationDate="2022-04-15T14:00:33.340" UserId="85" />
  <row Id="1680" PostId="1310" Score="0" Text="Yes, typically your new trait will be implemented by another pallet and you'll just pass in that pallet as the Config trait's item." CreationDate="2022-04-15T14:13:41.523" UserId="53" />
  <row Id="1681" PostId="1783" Score="0" Text="Sounds like being a parathread might be what you're interested in becoming (if you don't want to be stand alone)?" CreationDate="2022-04-15T14:52:53.227" UserId="85" />
  <row Id="1682" PostId="1801" Score="1" Text="child-tries are mentioned a bit in Shawn's talk on storage: https://www.youtube.com/watch?v=kKKOL20FdII" CreationDate="2022-04-15T15:54:57.363" UserId="85" />
  <row Id="1683" PostId="1262" Score="0" Text="We updated the weights recently and compiler flags.  &#xA;I think that was after `v0.9.16`. Could please try again on master?" CreationDate="2022-04-15T17:26:23.480" UserId="94" />
  <row Id="1684" PostId="1903" Score="0" Text="Thanks @Squirrel. I discovered this solution as well in the middle of the night and came back to post this answer. I've encountered this exact same missing tuple parentheses discrepancy in the documentation of other languages/frameworks too." CreationDate="2022-04-15T18:08:15.400" UserId="2304" />
  <row Id="1685" PostId="676" Score="0" Text="Correct me if I am wrong but isn't that the job for `minimum_validator_count`? If election will fail for validators &lt; `validator_count` doesn't it invalidate the reason for existence of `minimum_validator_count`?" CreationDate="2022-04-16T12:19:47.367" UserId="139" />
  <row Id="1686" PostId="1904" Score="1" Text="Thanks. I compiled with the `fast-runtime` feature and it created a binary with faster epoch/era/etc times. Then I looked in the code and the values for various parameters can be configured at compile time with environment variables. I don't believe these are documented anywhere. They can be found in `runtime/src/polkadot/lib.rs` by searching for `prod_or_fast`. For example, `DOT_EPOCH_DURATION` sets the epoch duration." CreationDate="2022-04-16T17:57:59.750" UserId="2303" />
  <row Id="1690" PostId="1921" Score="1" Text="The `T::Moment` is an associated type and not a concrete type. The Moment type depends on what you give in the runtime pallet_nft config. So it's not a good solution to do `saturate_*` convert here." CreationDate="2022-04-17T09:11:53.427" UserId="125" />
  <row Id="1692" PostId="1788" Score="1" Text="I had the same issue and this solved my issue!" CreationDate="2022-04-17T11:19:18.997" UserId="2102" />
  <row Id="1694" PostId="1927" Score="0" Text="More confusing is that the generated type files contain: `'@open-web3/orml-types/interfaces/__esModule'` as imported packages, and yet this package is pulling types from our runtime and not ORML." CreationDate="2022-04-17T13:58:30.887" UserId="74" />
  <row Id="1695" PostId="1927" Score="0" Text="For this comment above, this is what is generated:&#xA;`import type { Perbill, Permill, WebbProposalsHeaderTypedChainId } from '@open-web3/orml-types/interfaces/__esModule';`&#xA;My Query/TX auto-generated files look OK but my types are not in the type file. I have updated our metadata but not sure if I should start defining our types directly in the type-definitions?" CreationDate="2022-04-17T14:15:30.693" UserId="74" />
  <row Id="1696" PostId="1916" Score="1" Text="polkadot can be compiled wtih `--features fast-runtime` that will reduce the wait times dramatically (for testing purposes)." CreationDate="2022-04-17T18:03:34.907" UserId="85" />
  <row Id="1697" PostId="1775" Score="1" Text="The crowd loan pallet isn't required on parachians. This isn't really useful in the context of one, but perhaps only could be used as a reference to inform of logic that might inspire your work and inform how to generate those rewards from reading storages on the relay chain" CreationDate="2022-04-17T18:34:31.740" UserId="34" />
  <row Id="1698" PostId="1801" Score="2" Text="Please parse your questions here into separate distinct ones. You ask quite a few, and its hard to parse what you are looking for specifically" CreationDate="2022-04-17T18:40:12.750" UserId="34" />
  <row Id="1699" PostId="1801" Score="1" Text="https://substrate.stackexchange.com/help/how-to-ask" CreationDate="2022-04-17T18:40:58.460" UserId="34" />
  <row Id="1701" PostId="1921" Score="0" Text="Please provide links as reference for the specific types, traits, and source to give context in the form of a https://stackoverflow.com/help/minimal-reproducible-example" CreationDate="2022-04-17T18:47:38.087" UserId="34" />
  <row Id="1702" PostId="1919" Score="0" Text="I have a struct that contains two keys that are of type AccountId. I'm just trying to set up a Default implementation for it, but because I have AccountId type values in it (key1, key2) then it is complaining to me about not having a proper Default implementation.&#xA;&#xA;Can you please give me a basic example of using Option&lt;T&gt;? I'm still learning my way around Rust and Substrate, would really appreciate it." CreationDate="2022-04-17T18:48:16.487" UserId="2311" />
  <row Id="1705" PostId="1928" Score="0" Text="Does this answer your question? [How to have a mapping in a custom structure inside an ink! contract?](https://substrate.stackexchange.com/questions/1659/how-to-have-a-mapping-in-a-custom-structure-inside-an-ink-contract)" CreationDate="2022-04-17T19:06:02.423" UserId="34" />
  <row Id="1706" PostId="1928" Score="0" Text="If not, what are you trying to do?" CreationDate="2022-04-17T19:07:03.070" UserId="34" />
  <row Id="1709" PostId="1928" Score="0" Text="I already checked that post, but it not really answered my question What I'm trying to ask is what is the correct way to create a custom struct: &quot;Using `Encode`, `Decode`&quot; or &quot;Implement some storage layout trait&quot;. And what the difference between these two approaches." CreationDate="2022-04-18T01:43:53.420" UserId="450" />
  <row Id="1710" PostId="1912" Score="1" Text="Yes, this does. Thank you so much for sharing!" CreationDate="2022-04-18T03:57:53.863" UserId="275" />
  <row Id="1711" PostId="1918" Score="0" Text="The following code is misleading:&#xA;```&#xA;#[derive(Clone, Encode, Decode, Eq, PartialEq, RuntimeDebug, TypeInfo)]&#xA;    pub struct NeuronMetadata&lt;AccountId&gt; {&#xA;      &#xA;              /// ---- The associated hotkey account.&#xA;        /// Registration and changing weights can be made by this&#xA;        /// account.&#xA;        pub key1: AccountId,&#xA;&#xA;        pub key2: AccountId,&#xA;     }&#xA;```&#xA;What you really declare here is template type name is AccountId, it has no relationship with &lt;T as frame_system::Config&gt;::AccountId." CreationDate="2022-04-18T08:08:20.190" UserId="393" />
  <row Id="1712" PostId="1920" Score="0" Text="By caller, do you mean the EOA which send this transaction ?" CreationDate="2022-04-18T08:12:20.487" UserId="393" />
  <row Id="1713" PostId="56" Score="0" Text="Hey note that the development of Hydra (https://www.joystream.org/hydra/) has been taken over by Subsquid (https://subsquid.io). The most up-to-date indexing template is here: https://github.com/subsquid/squid-template" CreationDate="2022-04-18T08:24:18.560" UserId="2331" />
  <row Id="1716" PostId="1882" Score="0" Text="@bkchr, that helped but not directly. I broke out a separate crate for some shared logic between two pallets, and I had to add `default-features = false` and then add that crate to `std`." CreationDate="2022-04-18T12:14:57.173" UserId="448" />
  <row Id="1717" PostId="1935" Score="0" Text="It works! Thank you so much!!!" CreationDate="2022-04-18T13:28:41.927" UserId="2307" />
  <row Id="1718" PostId="1943" Score="0" Text="What prevents you from migrating the code to a [Substrate Node Template](https://github.com/substrate-developer-hub/substrate-node-template) for pallet development purposes?" CreationDate="2022-04-18T14:34:43.657" UserId="29" />
  <row Id="1719" PostId="1919" Score="0" Text="By that, I meant changing the type of `key1` and `key2` from `AccountId` to `Option&lt;AccountId&gt;`. If you do so, then you won't need an explicit `impl Default` because you'd be able to put `derive(Default)` on `NeuronMetadata`." CreationDate="2022-04-18T15:08:20.420" UserId="45" />
  <row Id="1720" PostId="1919" Score="0" Text="Thanks so much @pepyakin! You've been super helpful.  I decided to instead remove `AccountId` from the struct and use it separately, as it appears that setting up a Default for AccountId is a bit counterintuitive as it was removed for security reasons. Going to mark this as solved." CreationDate="2022-04-18T17:34:09.697" UserId="2311" />
  <row Id="1721" PostId="1948" Score="1" Text="support for unfinalized blocks is in the backlog, ETA Q2. It requires live reorgs of the state by the processor, but would make the squids near real-time" CreationDate="2022-04-18T17:44:31.663" UserId="2331" />
  <row Id="1722" PostId="1928" Score="0" Text="As with most design decisions, what you are trying to do (accomplish) is important to drive your tools &amp; techniques used. I meant to ask that above: discuss what you are trying to do so the approach to use can be concretely based on goals." CreationDate="2022-04-18T18:12:43.680" UserId="34" />
  <row Id="1723" PostId="1018" Score="0" Text="The components seem incompatible: i7 is a desktop CPU and ECC is mostly available on server mobos that have Xeon CPU. What mobo do you use / recommend.&#xA;Perhaps you could share some examples people are using currently?" CreationDate="2022-04-18T18:47:09.763" UserId="2344" />
  <row Id="1725" PostId="1562" Score="0" Text="Tried as suggested but getting an exception as well&#xA;```./target/debug/imbue-collator --features runtime-benchmarks build-spec --chain imbue-dev --raw --disable-default-bootnode &gt; pukimak.json&#xA;error: Found argument '--features' which wasn't expected, or isn't valid in this context&#xA;&#xA;	If you tried to supply `--features` as a value rather than a flag, use `-- --features`&#xA;&#xA;USAGE:&#xA;    imbue-collator [OPTIONS] [-- &lt;RELAYCHAIN_ARGS&gt;...]&#xA;    imbue-collator &lt;SUBCOMMAND&gt;&#xA;&#xA;For more information try --help```" CreationDate="2022-04-18T19:02:06.810" UserId="2124" />
  <row Id="1726" PostId="1018" Score="0" Text="It would also be good to know why Intel is specified. There are AMD cpu (Ryzen PRO) and mobos that support ECC. What is Polkadot - running on Linux - using that requires Intel chipset?" CreationDate="2022-04-18T19:17:58.910" UserId="2344" />
  <row Id="1727" PostId="1952" Score="0" Text="For clarity sake, where are you trying to write this? For example you have access to `BlockNumber` here: https://github.com/paritytech/substrate/blob/master/frame/benchmarking/src/tests.rs#L94" CreationDate="2022-04-18T19:53:19.593" UserId="29" />
  <row Id="1728" PostId="1943" Score="1" Text="That's probably fairly unwieldy to do." CreationDate="2022-04-19T01:05:41.943" UserId="283" />
  <row Id="1729" PostId="1920" Score="0" Text="yes, that is correct." CreationDate="2022-04-19T02:13:51.640" UserId="2146" />
  <row Id="1730" PostId="1938" Score="0" Text="Thanks, quick and easy!" CreationDate="2022-04-19T02:14:33.667" UserId="2146" />
  <row Id="1731" PostId="1957" Score="0" Text="Can you clarify for the unfamiliar what receipts area link to more info?" CreationDate="2022-04-19T05:01:09.160" UserId="34" />
  <row Id="1732" PostId="1958" Score="0" Text="I know about Events, but my question is how we can verify an event's existence when we import a block at a later point in time since Substrate removes Events from storage the next block. In Ethereum, the receipts are also stored and can be retrieved to verify the status of a txn present inside a given block." CreationDate="2022-04-19T05:32:24.367" UserId="1768" />
  <row Id="1733" PostId="1957" Score="0" Text="Looks like you already did :)" CreationDate="2022-04-19T05:34:06.447" UserId="1768" />
  <row Id="1734" PostId="1018" Score="1" Text="This is not a *hard* requirement but more of a recommendation. There is a bit more explanation in [this](https://substrate.stackexchange.com/questions/1854/hardware-benchmark-standard-vs-ecosystem-nodes/1859#1859) question." CreationDate="2022-04-19T08:26:31.690" UserId="94" />
  <row Id="1735" PostId="1953" Score="0" Text="do you know how the last approach could be achieved?" CreationDate="2022-04-19T10:45:39.803" UserId="2338" />
  <row Id="1736" PostId="1724" Score="0" Text="For example we need to setup vestings for crowdloan contributions (around 50k inserts), can we do some kind of bulk insert, or it better to deploy new wasm with migration?" CreationDate="2022-04-19T10:58:41.270" UserId="206" />
  <row Id="1737" PostId="1958" Score="1" Text="There are `trie_root` and `extrinsic_root` in substrate header but no `receipt_root` which used as proof of event or logs as you mentioned. But we you can extend [`digest_item`](https://docs.rs/sp-runtime/latest/sp_runtime/enum.DigestItem.html) in header to add some proof which can be verified later" CreationDate="2022-04-19T11:10:39.787" UserId="523" />
  <row Id="1738" PostId="1958" Score="0" Text="Are there any examples or references to this approach?" CreationDate="2022-04-19T12:05:51.953" UserId="1768" />
  <row Id="1739" PostId="1953" Score="0" Text="You can do manually on polkadot{.js} UI or you can use JavaScript and call the polkadot{.js} api: https://polkadot.js.org/docs/substrate/storage#codestorageh256-optionpalletcontractswasmprefabwasmmodule" CreationDate="2022-04-19T13:16:15.380" UserId="29" />
  <row Id="1740" PostId="1953" Score="0" Text="Check this out: https://substrate.stackexchange.com/questions/1967/how-do-i-get-the-code-hash-of-a-smart-contract-using-polkadot-js-api" CreationDate="2022-04-19T13:41:37.707" UserId="29" />
  <row Id="1743" PostId="1142" Score="0" Text="Another minimal example in the docs: https://docs.substrate.io/tutorials/v3/proof-of-existence/#implement-pallet-events" CreationDate="2022-04-19T14:17:49.367" UserId="34" />
  <row Id="1744" PostId="1958" Score="0" Text="How can you store this: an indexer like [substrate archive](https://github.com/paritytech/substrate-archive) is typically used." CreationDate="2022-04-19T14:19:35.617" UserId="34" />
  <row Id="1745" PostId="1958" Score="0" Text="See also https://substrate.stackexchange.com/questions/35/is-there-a-good-indexer-for-substrate-chains-like-the-graph" CreationDate="2022-04-19T14:19:55.360" UserId="34" />
  <row Id="1748" PostId="1928" Score="0" Text="The use case is very simple: Have a custom struct and a field with that struct in contract storage.&#xA;&#xA;However, in the past few days, I learnt more about storage layout. So what I guess for the simple use case I describe above: The `Encode`, `Decode` allows serialization, deserialization of a struct into single bytes as we know, which also means that if we don't derive `SpreadLayout` for that custom struct, the default storage layout for that struct is `PackedLayout` and the struct data is packed into one single cell.&#xA;&#xA;Can you confirm this? Because that is exactly what I want to know. @DanShield" CreationDate="2022-04-19T14:44:26.690" UserId="450" />
  <row Id="1749" PostId="1891" Score="0" Text="Yup, that does it. Thanks for the quick answer!" CreationDate="2022-04-19T15:27:24.950" UserId="1816" />
  <row Id="1750" PostId="1977" Score="0" Text="Thanks a lot for your answer! I hope these things can be unified in the future with `skip_type_params`" CreationDate="2022-04-19T21:24:41.063" UserId="587" />
  <row Id="1751" PostId="1970" Score="0" Text="When you just want to do testing, you can use `--chain westmint-dev` instead. This provides an ephemeral and deterministic development chain." CreationDate="2022-04-19T21:31:38.097" UserId="94" />
  <row Id="1752" PostId="1973" Score="0" Text="Could you provide the source code of the pallet please? Where did you get the example code for the minting from?" CreationDate="2022-04-19T21:37:52.257" UserId="94" />
  <row Id="1753" PostId="1970" Score="0" Text="That is good to know. TY Oliver!" CreationDate="2022-04-19T23:01:10.503" UserId="29" />
  <row Id="1756" PostId="1973" Score="0" Text="The example code is from the benchmarking of the auction pallet link to the full source code can be found [here](https://github.com/chexware/Bit-Country-Blockchain/blob/benchmarking/estate-and-auction-pallets/pallets/auction/src/benchmarking.rs) @oliver-tale-yazdi" CreationDate="2022-04-19T23:59:45.853" UserId="2065" />
  <row Id="1757" PostId="1980" Score="0" Text="Thanks, Bruno! I would try your solution there, but it's actually failing deeper in the substrate logic when I try to call `.is_success`. &#xA;&#xA;Example: &#xA;&#xA; `receipt = self.active_substrate.submit_extrinsic(extrinsic, wait_for_inclusion=True)`&#xA; `if receipt.is_success:` --&gt; Fails Here&#xA;&#xA;I've opened an issue. I could submit a PR to fix this myself, but I'm not clear how you're converting the decimal. Is it always safe to trim trailing 0's? Seems to me this is an important question for knowing where to start the decimal conversion." CreationDate="2022-04-20T01:52:17.163" UserId="2356" />
  <row Id="1758" PostId="1958" Score="0" Text="Thanks @DanShields but I need to verify events inside a light client, indexers are not useful for that." CreationDate="2022-04-20T02:11:56.630" UserId="1768" />
  <row Id="1759" PostId="1038" Score="1" Text="@FennSaji https://github.com/dpryde258/enhanced-substrate-node-template. This is the substrate node template I fork from original substrate-node-template. It is a PoS chain but using Aura instead of Babe. It follows exactly what _rob describes to move to PoS with Aura. The reason I made this template is because Babe has a risk that may brick your chain if all your validators somehow can't produce blocks in a while. For small company like us, where we don't have much resources to monitor the nodes, it's very risky for us. That's why we decide to switch back to Aura" CreationDate="2022-04-20T05:18:05.117" UserId="450" />
  <row Id="1760" PostId="1038" Score="0" Text="@DanielLam Thank you very much, very much appreciated." CreationDate="2022-04-20T08:01:01.093" UserId="403" />
  <row Id="1763" PostId="1982" Score="0" Text="You might want to read up about the proposed changes: https://github.com/paritytech/polkadot/pull/5205" CreationDate="2022-04-20T09:39:27.117" UserId="85" />
  <row Id="1764" PostId="1988" Score="2" Text="Are you looking for an explorer? https://www.subscan.io/" CreationDate="2022-04-20T10:03:26.820" UserId="2366" />
  <row Id="1765" PostId="1988" Score="0" Text="Thanks. I was looking for same." CreationDate="2022-04-20T10:11:04.833" UserId="140" />
  <row Id="1766" PostId="1953" Score="0" Text="yup but i need to access it in rust, not from the js api" CreationDate="2022-04-20T10:16:08.553" UserId="2338" />
  <row Id="1767" PostId="1660" Score="0" Text="Hello, running `api --seed .. --tx tx.session.setKeys 0x... --ws ws://127.0.0.1:9944` gives me a `Error: You need to specify the command to execute, e.g. query.system.account`. Why is that?" CreationDate="2022-04-20T10:26:30.750" UserId="139" />
  <row Id="1768" PostId="1891" Score="0" Text="Actually, I have another question. `read_trie_value` is returning the encoded header, but there are two leading bytes that are not part of the header (0xe902). When I remove them I can decode the header correctly. Any idea what these are?" CreationDate="2022-04-20T10:47:43.583" UserId="1816" />
  <row Id="1769" PostId="1978" Score="1" Text="Sounds interesting, not an expert, but I think a layer-2 should have its own runtime and then just update the block_hash at regular intervals to layer-1. Anything more complicated than this you are just re-building a relaychain-parachain model. Also iiuc parachains can become their own relaychains in future." CreationDate="2022-04-20T11:27:41.737" UserId="2366" />
  <row Id="1770" PostId="1980" Score="0" Text="Awesome. Looks like Jaco answered the question. The error field is no longer an `index` (u8) but a 4 byte array that encodes the error using SCALE instead of relying on a lookup. As mentioned [here](https://github.com/paritytech/contracts-ui/issues/282#issuecomment-1098181714)." CreationDate="2022-04-20T13:12:51.100" UserId="29" />
  <row Id="1771" PostId="1891" Score="0" Text="The value in the storage is actually a `Vec&lt;u8&gt;` that itself contains the encoded header. So, you need to do something like `Header::decode(&amp;mut &amp;Vec::&lt;u8&gt;::decode(&amp;mut &amp;data[..])?[..])?`." CreationDate="2022-04-20T13:21:43.840" UserId="73" />
  <row Id="1772" PostId="1992" Score="0" Text="You were right, using the chainspec you shared solved the issue. Although I have another question, when I started the node I can see this&#xA;```  &#xA;2022-04-20 13:20:09 [Relaychain] Block import error: Database    &#xA;2022-04-20 13:20:09 [Relaychain] ? Error importing block 0xef24675155e6e5fe947e: consensus error: Import failed: Import failed: Database    &#xA;2022-04-20 13:20:09 [Relaychain] DB corrupted: Corruption: Corrupted compressed block contents: Snappy. Repair will be triggered on next restart    &#xA;``` but fixes itself and starts syncing in ~30sec. Is this normal?" CreationDate="2022-04-20T13:23:54.863" UserId="2366" />
  <row Id="1773" PostId="1987" Score="2" Text="Make sure that you have generated your raw chain spec as outlined in the tutorial and that you used this raw chain spec to generate the genesis state." CreationDate="2022-04-20T13:30:25.627" UserId="73" />
  <row Id="1774" PostId="1995" Score="1" Text="Can you try adding: `--ws-max-out-buffer-capacity=99999 --rpc-max-payload=99999` or something similar? Does this resolve the issue?" CreationDate="2022-04-20T14:39:45.687" UserId="28" />
  <row Id="1775" PostId="1984" Score="1" Text="Thank you for your suggestion. I was about to PR moonbeam to add this but sent the proposal to Substrate instead https://github.com/paritytech/substrate/pull/11250" CreationDate="2022-04-20T14:46:42.300" UserId="200" />
  <row Id="1776" PostId="1981" Score="0" Text="The partialFee seems to be defined in the sidecar project: https://github.com/paritytech/substrate-api-sidecar" CreationDate="2022-04-20T14:49:17.510" UserId="85" />
  <row Id="1777" PostId="1996" Score="0" Text="You can take a look at [this](https://github.com/kaichaosun/substrate-stencil) template. BABE and GRANDPA come built-in to the template." CreationDate="2022-04-20T15:07:58.020" UserId="245" />
  <row Id="1778" PostId="1996" Score="0" Text="Thanks, I'll check it out" CreationDate="2022-04-20T15:15:18.047" UserId="2099" />
  <row Id="1779" PostId="1494" Score="1" Text="Sounds good. Do you have example of all this steps?" CreationDate="2022-04-20T15:49:13.450" UserId="2314" />
  <row Id="1780" PostId="1997" Score="1" Text="try rev=&quot;580ebae1&quot; on your pallet-contracts crate imports so that your importing the same version of substrate (otherwise I think it will just take latest master which is likely conflicting wtih the one you have brought in. Alternatively, `cargo update -p sp-io` should upgrade the locked substrate version to the latest master. Hope this helps." CreationDate="2022-04-20T16:17:54.820" UserId="85" />
  <row Id="1781" PostId="1998" Score="0" Text="Also, I just realized, this may be a TypeORM issue." CreationDate="2022-04-20T16:30:09.793" UserId="2146" />
  <row Id="1782" PostId="1997" Score="1" Text="@Squirrel It worked :D" CreationDate="2022-04-20T16:45:36.290" UserId="2163" />
  <row Id="1783" PostId="1992" Score="0" Text="Asked as seperate question here https://substrate.stackexchange.com/questions/2002/database-corruption-on-syncing-parachain-to-rococo" CreationDate="2022-04-20T16:53:41.167" UserId="2366" />
  <row Id="1784" PostId="2000" Score="1" Text="The code you have linked in the transaction pool is not related in any way to the format of the extrinsic. This particular line is about backwards compatibility for the `TaggedTransactionQueue`, because there was added a new parameter for the `validate_transaction` function. For your other questions, I don't really get what you speak about? What version do you speak about or what format? Would be better if you could be more specific." CreationDate="2022-04-20T17:25:22.703" UserId="73" />
  <row Id="1785" PostId="1978" Score="0" Text="I think you're right. Doing this in a single runtime could have bottlenecks. What I need and it's not possible atm is having a 2nd order Relay chain under the Kusama/Polkadot Relay chain. I've decided to go with 2 blockchains. Layer 1 will have room for layer 2 blockchains. Let's see where I'll end up" CreationDate="2022-04-20T18:04:54.117" UserId="245" />
  <row Id="1786" PostId="1997" Score="0" Text="Excellent news. Rock on!" CreationDate="2022-04-20T18:12:54.273" UserId="85" />
  <row Id="1787" PostId="1949" Score="0" Text="Looks like someone is implementing this now https://github.com/paritytech/substrate/pull/11250" CreationDate="2022-04-20T20:43:19.337" UserId="94" />
  <row Id="1788" PostId="2005" Score="0" Text="understood, will track the issue. Thanks!" CreationDate="2022-04-20T21:35:46.330" UserId="1816" />
  <row Id="1789" PostId="189" Score="0" Text="I have faced a similar stall but I have total connectivity with all my peers. Where would you go from there?" CreationDate="2022-04-21T06:00:52.907" UserId="139" />
  <row Id="1790" PostId="1996" Score="0" Text="How many nodes are you running? Are blocks being produced?" CreationDate="2022-04-21T09:18:34.033" UserId="139" />
  <row Id="1791" PostId="1987" Score="0" Text="i did, i copied the command line" CreationDate="2022-04-21T09:34:41.537" UserId="2355" />
  <row Id="1792" PostId="1996" Score="0" Text="Are you getting an `Unexpected epoch change` error? Please include the errors coming from the terminal logs if there are any. This could be what you're looking for: https://github.com/paritytech/substrate/issues/4464" CreationDate="2022-04-21T11:10:33.480" UserId="172" />
  <row Id="1794" PostId="2014" Score="1" Text="What kind of messages do you see in your node cli output?" CreationDate="2022-04-21T11:55:31.023" UserId="28" />
  <row Id="1795" PostId="1987" Score="0" Text="Hey there Erudyx, I am the steward of the Kabocha repo. Looks like you’re not connected to the same network, perhaps you need to remove the bootnode from the parachain chain spec, becuase it might be trying to boot into other collators of Kabocha parachain on Pop-Art Relay Test net, not on your relay? &#xA;&#xA;I am assuming your trying to create your own setup?" CreationDate="2022-04-21T13:46:42.053" UserId="298" />
  <row Id="1796" PostId="2024" Score="0" Text="https://github.com/paritytech/substrate-debug-kit/blob/master/offline-election&#xA;may also take Kian's offline-election tool as reference" CreationDate="2022-04-21T14:13:59.743" UserId="523" />
  <row Id="1797" PostId="2014" Score="0" Text="Just the regular `Idle` messages. I've restarted the node and now my chain is &gt;4800 blocks w/ the exact chainspec so my guess it is probably to do something with my server experiencing downtime. If I could figure out if my server indeed went down then I can dismiss any problems with the node code/operation and close this question." CreationDate="2022-04-21T15:02:22.473" UserId="139" />
  <row Id="1798" PostId="2023" Score="1" Text="What is `fast_runtime`? Currently I have shortened era to 10 minutes and epoch to 5 minutes and that seems to be serving well. I noticed that even though the validators get transitioned from waiting to active after an epoch, it's not until an era that they start validating. Just wanted someone to confirm my findings." CreationDate="2022-04-21T15:04:34.090" UserId="139" />
  <row Id="1799" PostId="2014" Score="2" Text="How about right when the blockchain stalls. Certainly there will be some error message which appears." CreationDate="2022-04-21T16:00:18.880" UserId="28" />
  <row Id="1800" PostId="1660" Score="0" Text="Also it requires two arguments, what should the second arg be?" CreationDate="2022-04-21T19:13:30.590" UserId="139" />
  <row Id="1801" PostId="1997" Score="1" Text="@Squirrel Either we should close this thread, or post the solution as an answer" CreationDate="2022-04-21T23:43:14.340" UserId="28" />
  <row Id="1802" PostId="2033" Score="0" Text="thank you @burak - my problem is that https://paritytech.github.io/contracts-ui/ shows connection error and cannot connect to local node, preventing contract deployment" CreationDate="2022-04-22T06:17:43.993" UserId="2394" />
  <row Id="1803" PostId="2036" Score="0" Text="Can you add which browser you are using?" CreationDate="2022-04-22T06:49:06.757" UserId="16" />
  <row Id="1804" PostId="2036" Score="0" Text="@AlexanderTheißen running on Chrome , Apple M1 chip. &#xA;Chrome error: WebSocket connection to 'ws://127.0.0.1:9944/' failed: &#xA;connect @ polkadot.25fc112e.js:23" CreationDate="2022-04-22T06:56:03.440" UserId="2394" />
  <row Id="1805" PostId="2033" Score="1" Text="I had to add `--unsafe-ws-external` to `substrate-contracts-node` but not sure this is correct" CreationDate="2022-04-22T07:01:20.487" UserId="2394" />
  <row Id="1806" PostId="2035" Score="1" Text="Yes, this is correct. Glad we could figure it out." CreationDate="2022-04-22T07:22:47.737" UserId="28" />
  <row Id="1807" PostId="2024" Score="0" Text="I'm not sure if I follow your idea, sorry. As an example:&#xA;- Starting with a random active validator's stash account: JACO(V05), &quot;148CkH8YBzA1pbudK1bMo2zUMHZwbucBVH8s3utwTS687UiR&quot;. It has 2.04 MDOT in staking.&#xA;- Its controller (according to `Staking:Bonded`) is &quot;148CkH8YBzA1pbudK1bMo2zUMHZwbucBVH8s3utwTS687UiR&quot; with 570.9 DOT in it (500 DOT blocked for itself)&#xA;- And passing that controller account to `Staking:Ledger` I got those 500 DOT, not the 2.04 MDOT.&#xA;&#xA;I'll keep trying, perhaps I'm missing something.&#xA;Thanks!" CreationDate="2022-04-22T07:52:37.583" UserId="2383" />
  <row Id="1808" PostId="2024" Score="0" Text="JACO does not have 2.04 MDOT personally in staking. That 2.04 MDOT number comes from all of the nominations that JACO has accumulated, specifically from being active. So for non-active validators, their number will always be 0, since no stake will be used to back them in an era where they are not active." CreationDate="2022-04-22T08:30:04.457" UserId="28" />
  <row Id="1809" PostId="2024" Score="0" Text="Exactly, that was my original question. Is there a way to know the DOT that a non-active validator for the current era has from its own and other's stake? I guess there's a way because the system must know that the validator 298th has less than the 297th and it doesn't deserve to be validating" CreationDate="2022-04-22T08:49:01.393" UserId="2383" />
  <row Id="1811" PostId="2038" Score="0" Text="Yes indeed. I had trouble with it when I gave a % instead of a Perbill." CreationDate="2022-04-22T11:07:47.800" UserId="139" />
  <row Id="1812" PostId="2053" Score="0" Text="Hi, are you using contracts or pallets? Because gas is a contract specific terminology while pallets use weights to determine the cost of a transaction . Please do clarify" CreationDate="2022-04-22T11:16:14.003" UserId="88" />
  <row Id="1813" PostId="2048" Score="0" Text="Already did  &#xA;&#xA;dev@dev:~/Desktop/project/giant-teller-poa$ rustup target add wasm32-unknown-unknown --toolchain nightly&#xA;info: component 'rust-std' for target 'wasm32-unknown-unknown' is up to date" CreationDate="2022-04-22T11:18:49.443" UserId="1950" />
  <row Id="1814" PostId="2053" Score="0" Text="@islami00 it's a contract" CreationDate="2022-04-22T11:22:31.590" UserId="2395" />
  <row Id="1815" PostId="1987" Score="0" Text="the bootnode is already an empty array&#xA;I'm just trying to connect my local kabocha parachain collator node to my local polkadot relay chain" CreationDate="2022-04-22T11:40:06.850" UserId="2355" />
  <row Id="1816" PostId="1742" Score="0" Text="We developed migration pallet. It stores whole big migration under one key and then every block in on_initialize hook it takes part of migration and stores it under right key. All transactions are disallowed (BaseFilter in system pallet) while migration is running, so state will be consistent" CreationDate="2022-04-22T12:42:30.587" UserId="206" />
  <row Id="1817" PostId="2046" Score="0" Text="Usually dangerous rpc like `author.insert_key` or expensive rpc like `state.storage_pairs` should be marked as unsafe.  You can just search substrate code base with `deny_unsafe.check_if_safe()` to find all unsafe methods as mentioned above" CreationDate="2022-04-22T13:22:20.107" UserId="523" />
  <row Id="1818" PostId="2047" Score="1" Text="I used to get this error when adding custom RPCs to my node. The error has nothing to do with your pallet, it might be an issue regarding your pallet configuration for the node or the runtime. In my case the issue was that I was missing some configuration for the node/rpc.rs file and therefore this error was appearing, even thought its not related" CreationDate="2022-04-22T13:37:42.360" UserId="2102" />
  <row Id="1819" PostId="2031" Score="0" Text="Another potential way is to use an [indexer](https://substrate.stackexchange.com/questions/35/is-there-a-good-indexer-for-substrate-chains-like-the-graph)." CreationDate="2022-04-22T13:48:20.193" UserId="29" />
  <row Id="1820" PostId="2028" Score="0" Text="Are you using this: https://github.com/Zondax/ledger-polkadot?" CreationDate="2022-04-22T13:50:29.930" UserId="29" />
  <row Id="1821" PostId="2024" Score="1" Text="I believe the staking system is more complex than you are making it out to be. The distribution of funds is calculated using a Phragmen Election Algorithm, and the amount of stake behind users is dynamically adjusted at the time of calculation. If you are not &quot;active&quot;, then it does not really make sense to look up a number like what you are describing. See videos like: https://www.youtube.com/watch?v=MjOvVhc1oXw" CreationDate="2022-04-22T15:00:46.073" UserId="28" />
  <row Id="1822" PostId="2058" Score="0" Text="thing is, i'm not interacting with any contracts. I'm merely indexing the details of previous interactions on chain." CreationDate="2022-04-22T15:38:07.200" UserId="2395" />
  <row Id="1823" PostId="2024" Score="0" Text="@ShawnTabrizi thanks, I was somehow familiar with the Phragmen algorithm, but I guess not as much as I should. I will read about it to modify my idea of checking the staking amount for non-active validators. Thanks!" CreationDate="2022-04-22T16:26:23.443" UserId="2383" />
  <row Id="1825" PostId="2068" Score="0" Text="(The diagrams will improve over time as I get better with figment jam)" CreationDate="2022-04-22T17:03:50.087" UserId="85" />
  <row Id="1826" PostId="2054" Score="0" Text="Not likely , there is no relation on those 2 since the legacy projects are working ( v3.0.0 )" CreationDate="2022-04-22T18:55:07.330" UserId="1950" />
  <row Id="1828" PostId="2048" Score="0" Text="In addition how that this can be different from other implementations since STD has been passed and yes I am building in my Linux instance Ubuntu 22.04" CreationDate="2022-04-22T19:53:16.700" UserId="1950" />
  <row Id="1829" PostId="2061" Score="1" Text="There were a few recently fixed bugs in sync. Consider updating your dependency version." CreationDate="2022-04-23T00:11:43.857" UserId="283" />
  <row Id="1830" PostId="2073" Score="0" Text="Not sure if this is in-line with your question but this may be helpful: https://substrate.stackexchange.com/questions/1074/how-do-i-become-a-substrate-developer" CreationDate="2022-04-23T01:24:17.617" UserId="29" />
  <row Id="1831" PostId="2077" Score="1" Text="What is the error you see?" CreationDate="2022-04-23T07:29:07.433" UserId="28" />
  <row Id="1833" PostId="2077" Score="0" Text="@ShawnTabrizi The error I'm seeing is now updated." CreationDate="2022-04-23T08:57:22.300" UserId="2363" />
  <row Id="1834" PostId="2073" Score="0" Text="Thanks, Bruno and Shawn! This already gives me a very detailed answer." CreationDate="2022-04-23T10:21:22.640" UserId="2399" />
  <row Id="1835" PostId="2079" Score="1" Text="I would like to tackle some of the ending questions, even though perhaps it would make more sense to create specific Qs in stackexchange for each of them.&#xA;&#xA;- safest DB to clear ?: My two cents here is that it doesn't make a difference from the perspective of the node, as if it has not the history it will start importing blocks from others.&#xA;&#xA;- How to debug block production on parachains: Here it might be helpfull keeping the logs, but activating trace for `cumulus-collator` target by adding `-lcumulus-collator=trace` to your lunch script." CreationDate="2022-04-23T13:55:36.303" UserId="165" />
  <row Id="1836" PostId="2079" Score="1" Text="Also, worth mentioning that the relaychain is expecting from the parachain blocks built on top of the last block it has been finalized. If you have removed collators DBs while running, and they are starting from scratch again, relaychain won't be able to finalize blocks because the parachain nodes are building on top of something different to what is expected from the validators (relaychain) point of view." CreationDate="2022-04-23T14:03:34.937" UserId="165" />
  <row Id="1837" PostId="2077" Score="1" Text="why are you calling `metadata()` if you are trying to access storage?" CreationDate="2022-04-23T16:39:06.953" UserId="28" />
  <row Id="1840" PostId="2083" Score="0" Text="Can I take it this way. **base_fee = WeightToFee(ExtrinsicBaseWeight);**&#xA;&#xA;**weight_fee = WeightToFee(weight);**" CreationDate="2022-04-23T19:05:31.930" UserId="299" />
  <row Id="1841" PostId="2083" Score="0" Text="I am clear about the function of `WeightToFee`, but I am not clear about the independent variable of WeightToFee." CreationDate="2022-04-23T19:08:36.477" UserId="299" />
  <row Id="1842" PostId="2083" Score="0" Text="My understanding is that base fee is actually `WeightToFee(ExtrinsicBaseWeight);`." CreationDate="2022-04-23T19:09:19.637" UserId="299" />
  <row Id="1843" PostId="2083" Score="0" Text="And `weight fee` is `WeightToFee(weight)`." CreationDate="2022-04-23T19:10:14.943" UserId="299" />
  <row Id="1844" PostId="2083" Score="0" Text="Do I understand this correctly?" CreationDate="2022-04-23T19:10:43.910" UserId="299" />
  <row Id="1845" PostId="2083" Score="0" Text="I don't understand what you are asking me, or what problem you are running into, or what problem you are trying to solve. Please spend the time to clarify your question so that we can more specifically help you." CreationDate="2022-04-23T20:10:33.020" UserId="28" />
  <row Id="1847" PostId="2083" Score="0" Text="Thanks, I have solved this problem, I now have a new problem, I will raise a new problem." CreationDate="2022-04-23T20:16:38.973" UserId="299" />
  <row Id="1848" PostId="2034" Score="1" Text="As a general comment, I think you ask a lot of great questions, but also a lot of the question you ask could be solved by just looking at the code a little bit. For example just searching &quot;Validator with index&quot; in Substrate would tell you were there error is coming from, and you could see the contextual information about when that error is triggered. I suggest that you spend a bit more time diving into the code, which can save you time when debugging issues like this." CreationDate="2022-04-23T20:27:48.863" UserId="28" />
  <row Id="1849" PostId="2083" Score="0" Text="If this answers your question, please do mark it as answered. Thanks." CreationDate="2022-04-23T20:40:01.040" UserId="28" />
  <row Id="1850" PostId="2028" Score="0" Text="Can you please describe the steps required to reproduce this issue?" CreationDate="2022-04-23T20:41:34.350" UserId="28" />
  <row Id="1851" PostId="2077" Score="0" Text="@ShawnTabrizi Because I need a StorageEntry for for the fetch function: https://docs.rs/subxt/latest/subxt/storage/struct.StorageClient.html#method.fetch" CreationDate="2022-04-24T05:36:48.823" UserId="2363" />
  <row Id="1852" PostId="1083" Score="0" Text="Thank you @h4x3rotab !" CreationDate="2022-04-24T09:40:15.967" UserId="183" />
  <row Id="1853" PostId="2096" Score="0" Text="Hit:1 http://packages.microsoft.com/repos/code stable InRelease&#xA;Hit:2 http://cn.archive.ubuntu.com/ubuntu jammy InRelease                                                                                               &#xA;Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                                                        &#xA;Hit:4 http://cn.archive.ubuntu.com/ubuntu jammy-updates InRelease          &#xA;Hit:5 http://cn.archive.ubuntu.com/ubuntu jammy-backports InRelease        &#xA;Ign:6 https://deb.nodesource.com/node_14.x jammy InRelease" CreationDate="2022-04-24T11:36:04.513" UserId="2406" />
  <row Id="1854" PostId="2096" Score="0" Text="Err:7 https://deb.nodesource.com/node_14.x jammy Release&#xA;  404  Not Found [IP: 23.213.230.141 443]&#xA;Reading package lists... Done&#xA;E: The repository 'https://deb.nodesource.com/node_14.x jammy Release' does not have a Release file.&#xA;N: Updating from such a repository can't be done securely, and is therefore disabled by default.&#xA;N: See apt-secure(8) manpage for repository creation and user configuration details.&#xA;Error executing command, exiting" CreationDate="2022-04-24T11:36:09.853" UserId="2406" />
  <row Id="1855" PostId="2096" Score="0" Text="Thank you for your help." CreationDate="2022-04-24T11:38:52.263" UserId="2406" />
  <row Id="1856" PostId="2096" Score="0" Text="## Confirming &quot;jammy&quot; is supported...&#xA;&#xA;+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_14.x/dists/jammy/Release'&#xA;&#xA;## Your distribution, identified as &quot;jammy&quot;, is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support" CreationDate="2022-04-24T12:07:16.803" UserId="2406" />
  <row Id="1857" PostId="2034" Score="0" Text="@ShawnTabrizi thanks for tip shawn I'll keep this in mind when investigating in the future, but sometimes falling back to this site seems so much easier. Anyway I always appreciate you taking the time to provide us with great answers!" CreationDate="2022-04-24T14:51:18.217" UserId="139" />
  <row Id="1858" PostId="2090" Score="0" Text="That's interesting. I wonder why would my &quot;new&quot; validator be in the DisabledValidator storage value when the network hasn't seen it before?" CreationDate="2022-04-24T14:53:03.187" UserId="139" />
  <row Id="1859" PostId="2085" Score="0" Text="Can you provide us a couple of scenarios where `utility.batch()` and `utility.batchAll()`  are used? I've never found myself calling them directly although I have noticed that they get triggered when I am staking." CreationDate="2022-04-24T14:56:29.630" UserId="139" />
  <row Id="1860" PostId="2041" Score="0" Text="Is substrate_api_client different from polkadot_js_api_client?" CreationDate="2022-04-24T17:49:25.627" UserId="139" />
  <row Id="1861" PostId="2090" Score="0" Text="hard to say, you would need to do some lower level tracking here to see the exact behaviors leading to this" CreationDate="2022-04-24T20:34:16.247" UserId="28" />
  <row Id="1862" PostId="2034" Score="0" Text="I'm always happy to help. I think you will find a nice balance between the two if you keep this in mind." CreationDate="2022-04-24T20:34:58.790" UserId="28" />
  <row Id="1863" PostId="2094" Score="2" Text="Kailai these are great questions. I would recommend you focus in on one question per post or indicate which question is your over-arching question that can represent all the underlying questions you have." CreationDate="2022-04-24T22:21:55.680" UserId="29" />
  <row Id="1864" PostId="2085" Score="0" Text="[Here](https://substrate.stackexchange.com/a/2087/29) is a scenario where `utility.batchAll()` is used. In this case, I want to ensure the first extrinsic succeeds before the second one is called." CreationDate="2022-04-24T22:31:06.780" UserId="29" />
  <row Id="1867" PostId="2028" Score="0" Text="@Bruno I noticed a new version of the app available from Zondax' github.  How do I install it to my Ledger?  I only know how to install the app from LedgerLive, which currently only has the older version 10.9180.1" CreationDate="2022-04-24T22:53:48.850" UserId="2389" />
  <row Id="1868" PostId="2028" Score="0" Text="@ShawnTabrizi the error msg occurs in the pop-up window when I try to sign a DOT txn" CreationDate="2022-04-24T22:54:25.473" UserId="2389" />
  <row Id="1869" PostId="2028" Score="0" Text="Stoic the [Zondax Ledger Polkadot app](https://github.com/Zondax/ledger-polkadot) is for [development purposes only](https://github.com/Zondax/ledger-polkadot#attention). Installation instructions are [here](https://github.com/Zondax/ledger-polkadot/blob/main/docs/build.md). Please read the disclaimer: https://github.com/Zondax/ledger-polkadot#attention" CreationDate="2022-04-24T23:21:09.353" UserId="29" />
  <row Id="1870" PostId="2029" Score="0" Text="This isn't really an answer, and doesn't seem to add much value or instruct on how to achieve what the question is asking. Please be more prescriptive when trying to answer questions here." CreationDate="2022-04-25T02:31:42.143" UserId="34" />
  <row Id="1871" PostId="2096" Score="0" Text="Just saying - this is a security anti-patern to just `sudo` something you found `curl`ed... I think I know where you are getting this from, but please do update on the source from where to get the official install from  -- also voting to close as this is not a substrate question" CreationDate="2022-04-25T02:35:07.437" UserId="34" />
  <row Id="1872" PostId="2095" Score="0" Text="voting to close as this is not a substrate question." CreationDate="2022-04-25T02:35:26.950" UserId="34" />
  <row Id="1873" PostId="2091" Score="0" Text="Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." CreationDate="2022-04-25T02:37:49.247" UserId="-1" />
  <row Id="1874" PostId="2091" Score="0" Text="That noted ^^^ There can be a few questions that reference this one and are derived from it. It helps to have a single clear question per post , see https://substrate.stackexchange.com/help/how-to-ask" CreationDate="2022-04-25T02:39:46.087" UserId="34" />
  <row Id="1875" PostId="2070" Score="1" Text="This is the part I didn't read properly, the fact that the size they gave (15 to 20 GB) is for 1.6M blocks... So yes, the size I had on my volumes make more sense now. Thanks for the information." CreationDate="2022-04-25T05:41:18.343" UserId="151" />
  <row Id="1876" PostId="2071" Score="0" Text="There are times I need information that are from up to 2 year old. More exactly I query the block heigh of blocks that could be up to 2 years old to have the timestamp of the block. Sadly before I needed that information I was using a non-archive node." CreationDate="2022-04-25T05:44:38.600" UserId="151" />
  <row Id="1878" PostId="2077" Score="1" Text="@ShawnTabrizi is right, what you are doing here is reading from the `metadata()` definition itself. See my answer for how to do what you want" CreationDate="2022-04-25T08:27:47.647" UserId="451" />
  <row Id="1879" PostId="2091" Score="2" Text="Does this answer your question? [How can I transfer assets using XCM?](https://substrate.stackexchange.com/questions/37/how-can-i-transfer-assets-using-xcm)" CreationDate="2022-04-25T08:39:20.497" UserId="104" />
  <row Id="1881" PostId="2047" Score="1" Text="Thank you yes that was the issue" CreationDate="2022-04-25T08:45:17.210" UserId="1950" />
  <row Id="1882" PostId="2091" Score="0" Text="I have read that answer before, and I understand the two kinds of asset transfer way. What really bothered me is that I wanna confirm that whether only relaychain and common-good parachains use &quot;teleport&quot; and other parachains&lt;-&gt;relaychain and parachain&lt;-&gt;parachain actually adopt &quot;reserve backed&quot;. So I take an example and list the path of a xcm asset transfer under my understanding. Just wanna know if I get the right path, thanks." CreationDate="2022-04-25T09:06:38.327" UserId="613" />
  <row Id="1883" PostId="2091" Score="0" Text="Plus, I think most parachains are adopting XTokens pallet which implements asset transfer upon xcm. But Im not really good at rust right now, So I wonder whether what this pallet actually implements is not &quot;teleport&quot; but &quot;reserve backed&quot; way." CreationDate="2022-04-25T09:07:51.560" UserId="613" />
  <row Id="1884" PostId="1983" Score="0" Text="This indeed require a change in the error processing for the Python lib, I will follow up on the related Github issue" CreationDate="2022-04-25T10:52:04.900" UserId="276" />
  <row Id="1885" PostId="2072" Score="0" Text="Hi! thank you for the answer! is it the same in moonbeam too?" CreationDate="2022-04-25T10:59:33.923" UserId="2395" />
  <row Id="1886" PostId="2116" Score="0" Text="Thanks! How can I find who got slashed? I assume that the slashed account would be the one that paid 11.0711047073 DOT to 1zug" CreationDate="2022-04-25T11:49:36.167" UserId="2412" />
  <row Id="1887" PostId="2121" Score="0" Text="The availability store that Jeff mentions is actually a part of Polkadot: a blockchain built on Substrate. Thus there is no such thing as Availability Store in Substrate." CreationDate="2022-04-25T12:28:16.290" UserId="45" />
  <row Id="1888" PostId="2116" Score="1" Text="I get it now, the source of funds is newly issued money." CreationDate="2022-04-25T12:32:21.923" UserId="2412" />
  <row Id="1889" PostId="78" Score="0" Text="Even though subsquid is good, if you put it under heavy load, for example, using sub-flood, you'll see that subsquid gets really slow and It is not very useful if you want to keep your indexing process on a similar pace as the main chain." CreationDate="2022-04-25T13:29:20.950" UserId="2102" />
  <row Id="1890" PostId="1012" Score="0" Text="Subsquid archive is not as performant as substrate-archive, and even though it is easier to understand, it has some flaws that make it only useful for small proofs of concepts or small projects, but I don't think it can be used for large or chains with a high volumen of transactions" CreationDate="2022-04-25T13:45:53.340" UserId="2102" />
  <row Id="1891" PostId="147" Score="1" Text="Is it possible to use `sp_arithmetic` in ink contracts?" CreationDate="2022-04-25T13:53:54.660" UserId="380" />
  <row Id="1892" PostId="2106" Score="1" Text="I agree. [This](https://substrate.stackexchange.com/a/2126/29) post has some good points on using [substrate-archive](https://github.com/paritytech/substrate-archive). I think it could be a better solution for you." CreationDate="2022-04-25T14:23:13.913" UserId="29" />
  <row Id="1893" PostId="2120" Score="0" Text="Thank you for the answer.&#xA;For question 1, I mean in which circumstances, more specifically, that code means if the o:OuterOrigin is signed, then it gives us AccountId that is signed, in which case o:OuterOrigin is not representing signed extrinsic? which gives us BadOrigin type." CreationDate="2022-04-25T14:49:32.940" UserId="2140" />
  <row Id="1894" PostId="2131" Score="1" Text="I already have all those env variables. &#xA;If I were to try the parity db where exactly do I enable it? In the runtime/Cargo.toml?" CreationDate="2022-04-25T15:01:33.597" UserId="448" />
  <row Id="1895" PostId="2120" Score="0" Text="To clear my thought on question 2, so to be associated type of Origin, our own type should implement that all bounded traits for type Origin, am I right?" CreationDate="2022-04-25T15:03:15.557" UserId="2140" />
  <row Id="1896" PostId="2122" Score="0" Text="&quot;names and decimals of tokens in moonbeam&quot; - do you mean total issuance or do you mean you want to understand volume of what tokens are being transacted? (You can see the events related to moonbeam here: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fwss.api.moonbeam.network#/explorer )" CreationDate="2022-04-25T15:06:32.723" UserId="85" />
  <row Id="1897" PostId="2129" Score="0" Text="Can you explain why the `Get` implementation needs to be dynamically changed? The value should be constant when implemented in your runtime, and thus, when you run benchmarks, you will get exactly the results for the value that put. In summary, I think you might be doing something wrong here." CreationDate="2022-04-25T15:21:15.417" UserId="28" />
  <row Id="1898" PostId="2067" Score="0" Text="the polkadot guide was very useful, and the reference setup will help a lot!" CreationDate="2022-04-25T16:44:24.160" UserId="2107" />
  <row Id="1900" PostId="2103" Score="0" Text="Yes, I know that runtime compiles to WASM in no-std. But here is a short list of operations that caused a bug described in the question:&#xA;1) Clone Node Template. Builds successfully  &#xA;&#xA;2) Import sp-consensus-pow. Change some stuff in it.  &#xA;&#xA;3) Build again. Build fails. And the error occurs somewhere in `finalty-grandpa` and `storage` crates because of `std` feature.  &#xA;&#xA;Once again, I did _not_ change anything in those crates (they are the same as in step 1), but they fail to build. Why so?" CreationDate="2022-04-25T17:58:17.380" UserId="2408" />
  <row Id="1901" PostId="2116" Score="0" Text="It's not newly issued DOT, it's a percentage (I believe 10 or 20%) of the total slash. You can see who was slashed by the `identity` in the equivocation report." CreationDate="2022-04-25T18:00:39.297" UserId="620" />
  <row Id="1902" PostId="2124" Score="0" Text="What transaction caused this? Was it a large batch transaction by any chance? Something similar was fixed in  [substrate#11206](https://github.com/paritytech/substrate/pull/11206), which is not released yet AFAIK." CreationDate="2022-04-25T18:01:06.453" UserId="94" />
  <row Id="1903" PostId="2103" Score="0" Text="An error similar to mine was described [here](https://github.com/paritytech/substrate/issues/4333)" CreationDate="2022-04-25T18:01:57.167" UserId="2408" />
  <row Id="1904" PostId="2130" Score="1" Text="It reports &quot;c++: internal compiler error: Killed (program cc1plus)&quot;, which is a GCC fault. &quot;Just retry it&quot; normally works." CreationDate="2022-04-25T18:03:44.600" UserId="94" />
  <row Id="1905" PostId="2103" Score="0" Text="Are you using the recent rust stable version?" CreationDate="2022-04-25T18:08:36.920" UserId="94" />
  <row Id="1906" PostId="2028" Score="0" Text="@Bruno I understand.  Will wait for Ledger to approve before I install version v12.9190.0.  One question, do you know if it fixes the issue that I mentioned above.  The error when using Polkadot.js web extension to sign a txn?  Are you part of the Zondax team?  If not, how do I get in touch with them?  Thanks" CreationDate="2022-04-25T18:36:16.990" UserId="2389" />
  <row Id="1908" PostId="2129" Score="0" Text="tl;dr it's just easier this way. I need to benchmarks two paths: happy path and *other path*. Other path is invoked when there is more items (in the storage) than the `Get` parameter (1K here). It's a convoluted setup to get it over 1k and trigger that other logic, and the number of elements won't impact the compute complexity. It does not need to be dynamically changed though, conditional compilation is also a possibility, so I might just go with that." CreationDate="2022-04-25T19:26:39.420" UserId="425" />
  <row Id="1909" PostId="2028" Score="0" Text="I am not part of their team. If this is a polkadot{.js} error, you could try opening an issue [here](https://github.com/polkadot-js/extension/issues). If it is a ledger error then maybe reach out to their support [here](https://support.ledger.com/hc/en-us/categories/4404369571601?support=true). Oh and Zondax's contact is on [this](https://zondax.ch/contact) page." CreationDate="2022-04-25T20:26:27.313" UserId="29" />
  <row Id="1911" PostId="2103" Score="0" Text="Yes. I've updated to stable 1.60 and nightly 1.62. Also added wasm32-unknown-unknown as a new target" CreationDate="2022-04-25T21:31:44.750" UserId="2408" />
  <row Id="1913" PostId="2129" Score="1" Text="Yeah I don't think it will be possible to do what you want here for actual benchmarks. For tests, there are some tricks, but these would fail in the real runtime environment. And for good reason. Some of why this is not possible is that we use rust and type safety to ensure that things we expect to be constant are" CreationDate="2022-04-25T21:35:50.287" UserId="28" />
  <row Id="1914" PostId="2103" Score="0" Text="Sounds silly, but perhaps its as simple as missing feature flags https://substrate.stackexchange.com/a/2088/34 but I have not reviewed your node linked in the OP to determine for sure" CreationDate="2022-04-26T00:13:35.080" UserId="34" />
  <row Id="1915" PostId="2106" Score="0" Text="Yes, sure, give indexers a try." CreationDate="2022-04-26T02:12:14.403" UserId="393" />
  <row Id="1916" PostId="2128" Score="0" Text="Actually, I know the docs you mentioned~ But I think there's not enough information there. So are there any docs with more details?" CreationDate="2022-04-26T03:16:15.043" UserId="2411" />
  <row Id="1918" PostId="2134" Score="0" Text="I dont quite understand why $KAR have to be minted on statemine then be transfered to other chain in reserve backed way? Why not Bifrost and Moonriver register a sovereign account just on Karura?" CreationDate="2022-04-26T04:50:53.723" UserId="613" />
  <row Id="1919" PostId="2134" Score="0" Text="How $BNC and $KAR are transfered to each parachain in practice?" CreationDate="2022-04-26T04:52:08.773" UserId="613" />
  <row Id="1920" PostId="2121" Score="0" Text="It's not very clear about your purpose. Do you want to make an index about transaction fees or you want to verify OCW ability ? Which is more important for you ?" CreationDate="2022-04-26T08:17:22.097" UserId="393" />
  <row Id="1921" PostId="2123" Score="0" Text="The code in your question has some typo, try correct it first:&#xA;1. In the first screen shot, variable name is chainTree2&#xA;2. In the second screen shot, variable name is chainTree" CreationDate="2022-04-26T08:27:28.817" UserId="393" />
  <row Id="1923" PostId="2139" Score="0" Text="in this case not really, no - I'm conditioning the constant value on the `runtime-benchmarks` feature atm to run the benchmark" CreationDate="2022-04-26T10:20:36.817" UserId="425" />
  <row Id="1925" PostId="2130" Score="0" Text="I restarted my computer and it compiled." CreationDate="2022-04-26T10:27:29.577" UserId="448" />
  <row Id="1926" PostId="2122" Score="0" Text="@Squirrel I'm trying to get token name, decimals, such as shown here: https://moonbeam.moonscan.io/token/0x818ec0a7fe18ff94269904fced6ae3dae6d6dc0b#readContract" CreationDate="2022-04-26T10:31:56.270" UserId="2395" />
  <row Id="1927" PostId="1859" Score="0" Text="Yes also for collators." CreationDate="2022-04-26T10:33:23.437" UserId="94" />
  <row Id="1928" PostId="2139" Score="0" Text="Then how about just make it as a storage value, and change it before benchmark ?" CreationDate="2022-04-26T10:56:18.917" UserId="393" />
  <row Id="1929" PostId="2139" Score="0" Text="Invoking the whole storage machinery for one integer seems like an overkill (maybe even an anti-pattern). In any case I think I have an answer. Thank you!" CreationDate="2022-04-26T11:22:42.390" UserId="425" />
  <row Id="1930" PostId="2121" Score="0" Text="We are looking to analyze transaction fee data over a period of n blocks in the runtime environment (OCW looks to be the most appropriate vehicle to do so). This information will not be stored and does not need to persist once calculated.&#xA;&#xA;This would look something like:&#xA;&#xA;calculate_transaction_fees(curr_block_number, n_blocks);&#xA;and would return the sum of the transaction fees over the specified range of blocks." CreationDate="2022-04-26T13:05:26.220" UserId="2092" />
  <row Id="1931" PostId="2123" Score="2" Text="Possibly caused by https://polkadot.js.org/docs/api/FAQ#since-upgrading-to-the-7x-series-typescript-augmentation-is-missing for TS augmentation" CreationDate="2022-04-26T13:41:15.570" UserId="627" />
  <row Id="1932" PostId="2156" Score="0" Text="added but getting same error..." CreationDate="2022-04-26T15:25:18.527" UserId="157" />
  <row Id="1935" PostId="2117" Score="0" Text="Try where possible to copy the output into the question rather than pictures so people can search and copy and paste." CreationDate="2022-04-26T20:53:49.227" UserId="85" />
  <row Id="1936" PostId="2176" Score="0" Text="Thank you for answer, that magic do work. Btw, is it rust issue? asking because I do see that `frame_system::Config` is `'static + Eq + Clone`" CreationDate="2022-04-26T20:56:19.360" UserId="2283" />
  <row Id="1937" PostId="2176" Score="0" Text="Not an issue directly, more like a limitation of the default derive macros." CreationDate="2022-04-26T21:14:46.367" UserId="73" />
  <row Id="1938" PostId="2183" Score="0" Text="Ah, that's what that number is in phase. The u32 is the extrinsic id (the transaction id). Great, now I just need to look up lots of extrinsic's by id..." CreationDate="2022-04-27T07:33:16.217" UserId="85" />
  <row Id="1939" PostId="2183" Score="0" Text="Ah subxt can listen to blocks: `client.rpc().subscribe_blocks()` (but maybe we need to add that not uncommon usecase to the subxt examples!)" CreationDate="2022-04-27T08:02:23.117" UserId="85" />
  <row Id="1940" PostId="2183" Score="0" Text="Thank you so much for getting me unstuck!" CreationDate="2022-04-27T08:18:53.320" UserId="85" />
  <row Id="1941" PostId="2116" Score="0" Text="I guess the source of funds is open to interpretation: slashed money is burnt, then some of the burnt money is sent to the reporter, so it either comes from the burnt money (and is therefore newly issued again) or from the reporter" CreationDate="2022-04-27T09:38:41.130" UserId="2412" />
  <row Id="1942" PostId="2185" Score="0" Text="Consider specifying: what error are you getting?" CreationDate="2022-04-27T09:54:00.117" UserId="45" />
  <row Id="1943" PostId="2185" Score="0" Text="creation of MyToken20 errored: [ethjs-query] while formatting outputs from RPC '{&quot;value&quot;:{&quot;code&quot;:-32603,&quot;data&quot;:{&quot;code&quot;:-32603,&quot;message&quot;:&quot;submit transaction to pool failed: Pool(InvalidTransaction(InvalidTransaction::Custom(1)))&quot;}}}'" CreationDate="2022-04-27T09:56:34.427" UserId="398" />
  <row Id="1944" PostId="2116" Score="0" Text="Slashes are not burnt, they get sent [to the treasury](https://github.com/paritytech/polkadot/blob/release-v0.9.20/runtime/polkadot/src/lib.rs#L571)" CreationDate="2022-04-27T09:58:27.647" UserId="620" />
  <row Id="1945" PostId="2156" Score="1" Text="was able to fix this by extending `ModuleWorker` and `ModuleParams` with `R: ProvideRuntimeApi&lt;B&gt;` and moving `R:Api` there. weird stuff but marking as correct answer." CreationDate="2022-04-27T11:10:33.693" UserId="157" />
  <row Id="1946" PostId="2174" Score="0" Text="If `p` is `10000000` and `q` is `1250000000`, then the corresponding polynomial is `Perbill(80000000)*x`. So how much balance does `1 weight` correspond to?" CreationDate="2022-04-27T11:42:52.260" UserId="299" />
  <row Id="1947" PostId="2160" Score="0" Text="Left some thoughts in https://github.com/paritytech/xcm-format/pull/28 with more context in the linked polkadot issue :) Are issues and PRs there the right way to start conversations around the evolution of XCM?" CreationDate="2022-04-27T14:19:05.693" UserId="67" />
  <row Id="1948" PostId="2174" Score="0" Text="Edited the post to address" CreationDate="2022-04-27T14:21:11.237" UserId="620" />
  <row Id="1949" PostId="2191" Score="1" Text="This is not correct `await api.query.staking.erasStakers(635, null)` - use `.entries`, see https://polkadot.js.org/docs/api/cookbook/storage#how-do-i-use-entrieskeys-on-double-maps (that is what the apps UI uses above)" CreationDate="2022-04-27T14:22:43.777" UserId="627" />
  <row Id="1950" PostId="2171" Score="0" Text="Thanks @bkchr. I don't need multiple nodes validating the data in this instance. There is no benefit to any node for lying and only a very minor inconvenience to the network if they do, so I see it as low risk. Yes I could implement crowd validation but it would really be over engineering for the sake of it in this case. If I can't get the node count I'll design some form of algorithm similar to networked resource management." CreationDate="2022-04-27T15:11:50.087" UserId="2136" />
  <row Id="1951" PostId="2191" Score="0" Text="You don't need a specific RPC call, what the UI is doing is querying the storage directly which is done with `state_getStorage`, but it requires to pass the storage key encoded which is not friendly to do by hand but your Rust client should be able to do that for you." CreationDate="2022-04-27T16:29:18.550" UserId="67" />
  <row Id="1952" PostId="2193" Score="0" Text="can you provide source of the code that is misbehaving?" CreationDate="2022-04-27T16:44:00.037" UserId="34" />
  <row Id="1953" PostId="2193" Score="1" Text="I added a link to the exact LOC that produced the error. It appears to come from any case of `#[pallet::error]` in our repo." CreationDate="2022-04-27T18:24:22.820" UserId="2441" />
  <row Id="1954" PostId="2184" Score="0" Text="This is a warning letting you know that connectivity to validators is below the desired threshold. The PR for this is [here](https://github.com/paritytech/polkadot/pull/3916)." CreationDate="2022-04-27T18:45:46.213" UserId="29" />
  <row Id="1955" PostId="2007" Score="0" Text="Thanks, Shawn! Quick follow up, it looks like this returns unlocking WND in terms of the era it becomes available. Ex: 'unlocking': [{'value': 1000000000000, 'era': 5064}, {'value': 4000000000000, 'era': 5066}, {'value': 2000000000000, 'era': 5069}]. Do you know how to query the current era as well?" CreationDate="2022-04-27T19:05:46.117" UserId="2356" />
  <row Id="1956" PostId="2193" Score="2" Text="the Cargo.toml says edition 2018, though. https://github.com/PureStake/moonbeam/blob/bc4d3dbd6159893fab4d9adb265a581d7c502563/pallets/parachain-staking/Cargo.toml#L5" CreationDate="2022-04-27T19:29:18.200" UserId="361" />
  <row Id="1957" PostId="2121" Score="1" Text="One way to work around the lack of history would be to have the OCW store the fee data indexed by block in offchain storage and then use that for the calculations." CreationDate="2022-04-27T19:37:09.650" UserId="361" />
  <row Id="1960" PostId="2199" Score="0" Text="Thanks, that was indeed the problem!" CreationDate="2022-04-27T22:35:51.653" UserId="2441" />
  <row Id="1962" PostId="2184" Score="0" Text="I see, thanks, and I think the connected=2 means my validator was only connected with 2 other validators, right? But I also see the idle(5 peers) in the below. I used to think that means my validator was connected with 5 other validators, but now here is a connected=2. I was confused, so could you tell me what's the differences between them?" CreationDate="2022-04-28T01:00:41.800" UserId="2034" />
  <row Id="1963" PostId="2168" Score="0" Text="I have tried to use different log levels and also the -ldebug flag from cli but, the logs are not visible in https://telemetry.polkadot.io/" CreationDate="2022-04-28T07:30:32.247" UserId="2033" />
  <row Id="1964" PostId="2208" Score="1" Text="Can you show us the list of XCM instructions that you've constructed?" CreationDate="2022-04-28T08:00:04.867" UserId="104" />
  <row Id="1965" PostId="2208" Score="0" Text="Hi @KeithYeung, I did it through orml xtokens transfer, basically, the below XCM instructions have been executed.&#xA;&#xA;`// On parachain A:  WithdrawAsset (Succeeded) =&gt; DepositReserveAsset (Succeeded)&#xA;&#xA; // On parachain B: ReserveAssetDeposited (Succeed) =&gt; ClearOrigin (Succeed) =&gt; BuyExecution (Failed) =&gt; DepositAsset -&gt; Not reach`" CreationDate="2022-04-28T08:05:23.370" UserId="70" />
  <row Id="1967" PostId="2196" Score="0" Text="Seems that desub requires a byte slice but the extrinsics from a block seem to be OpaqueExtrinsics that are not so keen on showing their bytes..." CreationDate="2022-04-28T08:07:56.997" UserId="85" />
  <row Id="1968" PostId="2197" Score="0" Text="No, you don't need to manually do it. What's your use case?" CreationDate="2022-04-28T08:19:27.683" UserId="429" />
  <row Id="1969" PostId="2200" Score="0" Text="You are asking you add something additional to your block header? Or what does &quot;along side Extrinsics&quot; mean?" CreationDate="2022-04-28T08:25:22.823" UserId="28" />
  <row Id="1970" PostId="2197" Score="0" Text="I want to use BoundedVec at GenesisConfig" CreationDate="2022-04-28T08:36:58.817" UserId="2283" />
  <row Id="1973" PostId="2197" Score="0" Text="Are you getting any errors on that?" CreationDate="2022-04-28T08:46:48.600" UserId="429" />
  <row Id="1974" PostId="2208" Score="1" Text="The payment provided (whatever that is) cannot be used to pay for the weight which `BuyExecution` is attempting to purchase. Without seeing the actual XCM instruction, the contents of the Holding register and the specifics of the `Trader` type, it's impossible to describe what you should change to make it work." CreationDate="2022-04-28T08:48:02.057" UserId="53" />
  <row Id="1975" PostId="2197" Score="0" Text="Here the details: at GenesisConfig [memories: Vec&lt;(T::AccountId, Vec&lt;(ID, Vec&lt;ID&gt;, Value)&gt;)&gt;](https://github.com/DigitaIAM/nae-substrate-node/blob/main/pallets/nae/src/lib.rs#L84) and Value is [here](https://github.com/DigitaIAM/nae-substrate-node/blob/main/pallets/nae/src/lib.rs#L55). After adding `String(BoundedVec&lt;u8, T::MaxString&gt;),` to enum compiler raise error **the trait `Serialize` is not implemented for `BoundedVec&lt;u8, &lt;T as pallet::Config&gt;::MaxString&gt;`**" CreationDate="2022-04-28T08:52:27.860" UserId="2283" />
  <row Id="1976" PostId="2200" Score="0" Text="&quot;Extrinsic&quot; just means &quot;external data&quot;. It does not necessarily need to be signed or (immediately) actionable, so you probably just want to define a new kind of extrinsic? Did you look at the Inherents/`InherentData` API? See pallet_timestamp for a simple example." CreationDate="2022-04-28T08:53:50.857" UserId="53" />
  <row Id="1977" PostId="2197" Score="0" Text="I believe this should resolve by adding support to serde::Serialize." CreationDate="2022-04-28T08:57:01.330" UserId="429" />
  <row Id="1978" PostId="2196" Score="1" Text="`OpaqueExtrinsic` is `Encode`, so it's easy enough to get a byte slice. IIRC extrinsics are typically stored double-encoded (to avoid prescience of a chain's transaction format in lower-level code), so dpending on how desub works you may need to pass it an encoded byte slice. e.g. if you have `xt: OpaqueExtrinsic`, and you want a byte slice you would do either: `&amp;xt.encode()[..]` or `&amp;xt.encode().encode()[..]`." CreationDate="2022-04-28T08:58:54.887" UserId="53" />
  <row Id="1979" PostId="2208" Score="1" Text="The two issues most likely are: a) the asset which `Trader` is expecting is not the asset which `BuyExecution` is attempting to pay with (perhaps the `MultiLocation` is incorrect?); or b) `Trader` has been configured with an asset-per-weight price which results in more of the asset needed for the weight you're trying to buy than the payment you are attempting to pay for it with." CreationDate="2022-04-28T09:02:18.587" UserId="53" />
  <row Id="1980" PostId="2197" Score="0" Text="where it should be added? I do have [it](https://github.com/DigitaIAM/nae-substrate-node/blob/main/pallets/nae/src/lib.rs#L51)" CreationDate="2022-04-28T09:02:19.537" UserId="2283" />
  <row Id="1981" PostId="2197" Score="0" Text="in your derive attribute." CreationDate="2022-04-28T09:04:40.090" UserId="429" />
  <row Id="1982" PostId="2171" Score="0" Text="Okay, but even with knowing the number of peers, you will not know how many of them run the offchain worker. You will need to have some kind of backup." CreationDate="2022-04-28T09:05:07.593" UserId="73" />
  <row Id="1983" PostId="2197" Score="0" Text="Well, as mention above I do have it. And code compile until I add `String(BoundedVec&lt;u8, T::MaxString&gt;),`" CreationDate="2022-04-28T09:20:14.290" UserId="2283" />
  <row Id="1984" PostId="2197" Score="0" Text="Can you please add it like this?&#xA;#[derive(Encode, Decode, TypeInfo, MaxEncodedLen, CloneNoBound, RuntimeDebugNoBound, PartialEqNoBound, EqNoBound, Serialize, Deserialze)]" CreationDate="2022-04-28T09:26:11.057" UserId="429" />
  <row Id="1985" PostId="2177" Score="0" Text="Can you clarify your question? You want to create a custom RPC which does those 3 queries at once?" CreationDate="2022-04-28T09:27:39.413" UserId="28" />
  <row Id="1986" PostId="2197" Score="0" Text="As expected, same error. I don't see any Serialize/Deserialize implementation for BoundedVec or I'm missing something?" CreationDate="2022-04-28T09:44:41.873" UserId="2283" />
  <row Id="1987" PostId="2197" Score="0" Text="I'm not sure about this then." CreationDate="2022-04-28T10:10:56.830" UserId="429" />
  <row Id="1990" PostId="2208" Score="1" Text="Are you using IdentityFee rather than WeightToFee?  Relevant issue: https://github.com/paritytech/cumulus/issues/920" CreationDate="2022-04-28T10:18:12.810" UserId="85" />
  <row Id="1991" PostId="2205" Score="0" Text="(Tagging as mev as that is what the genre is known as.)" CreationDate="2022-04-28T10:20:28.960" UserId="85" />
  <row Id="1992" PostId="2215" Score="1" Text="In case it helps, here also is the code for decondng things in desub-current: https://github.com/paritytech/desub/blob/master/desub-current/src/decoder/decode_value.rs. Definitely going to look at adding this sort of support to subxt." CreationDate="2022-04-28T10:27:52.017" UserId="474" />
  <row Id="1993" PostId="2205" Score="0" Text="Maximal extractable value" CreationDate="2022-04-28T10:30:58.180" UserId="85" />
  <row Id="1994" PostId="2208" Score="0" Text="Thanks @Gav for your suggestion. I am looking into these possible issues and trying to isolate them. I will report back on how it goes which may be helpful for other builders in the future." CreationDate="2022-04-28T10:41:27.113" UserId="70" />
  <row Id="1995" PostId="2171" Score="0" Text="Okay, so let's ignore the number of peers part and go with your idea to have multiple validators. If say, I wanted to require 3 validators to either approve or reject, what's the best way to implement that in such a way that a single node cannot approve/reject 3 times and therefore validate alone?" CreationDate="2022-04-28T11:13:04.630" UserId="2136" />
  <row Id="1996" PostId="2140" Score="0" Text="Ok, not I get it.&#xA;Thank you for the answer" CreationDate="2022-04-28T11:16:30.173" UserId="2140" />
  <row Id="1997" PostId="2228" Score="0" Text="Monomorphisation. If you have 3 different impl of the trait then when you pass it to a function, three concrete functions taking those types will be created. (The alternative would be dyn objects where a virtual lookup table is used and there's only one copy of the final function.)" CreationDate="2022-04-28T11:59:47.903" UserId="85" />
  <row Id="1998" PostId="2228" Score="0" Text="You will see this pattern often to make the code a bit more readable: `type BalanceOf&lt;T&gt; = &lt;&lt;T as Config&gt;::EVM as EVM&lt;AccountIdOf&lt;T&gt;&gt;&gt;::Balance;`" CreationDate="2022-04-28T12:02:05.083" UserId="85" />
  <row Id="1999" PostId="2208" Score="0" Text="Thanks @Squirrel. I looked into it and seems it doesn't cause the issue. I used `FixedRateOfFungible` to calculate fee per second." CreationDate="2022-04-28T12:25:05.683" UserId="70" />
  <row Id="2000" PostId="2228" Score="0" Text="so... does T as config, type-casting..? or just simply bouding the type" CreationDate="2022-04-28T12:53:00.493" UserId="2140" />
  <row Id="2001" PostId="2123" Score="1" Text="Thank you Jaco, indeed I am encountering the issue described by your link. I am attempting to apply the types augmentation in our 'api' package before our 'options' export, but hitting separate TS compilation issues related to ESM configuration in the 'api' package and CJS configuration in our types package.&#xA;&#xA;&#xA;The FAQ docs mention: 'only the augmentation for the specific chain... should be imported'.  To be clear, I am assuming users of our api should only need an 'options' import from the 'api' package alone - and not an explicit import to our 'typegen' package?" CreationDate="2022-04-28T13:13:27.793" UserId="624" />
  <row Id="2002" PostId="2230" Score="0" Text="This won't solve the issue, that solution only works if you are indeed using that package, which is not the case. As you can see on the first comment of his question, the issue has nothing to do with that package." CreationDate="2022-04-28T13:25:59.330" UserId="2102" />
  <row Id="2003" PostId="2179" Score="1" Text="Next time, if you can limit your post to one question, that would be great." CreationDate="2022-04-28T13:37:03.267" UserId="29" />
  <row Id="2004" PostId="2214" Score="0" Text="Thank you very much! i have got it." CreationDate="2022-04-28T14:02:10.023" UserId="489" />
  <row Id="2005" PostId="2039" Score="1" Text="Thank you, this was very helpful!" CreationDate="2022-04-28T15:06:30.030" UserId="2042" />
  <row Id="2006" PostId="2230" Score="0" Text="I had exactly the same error 3 days ago and the solution I've provided worked.Before that I did everything from previous comments here and nothing worked" CreationDate="2022-04-28T15:24:25.493" UserId="2408" />
  <row Id="2007" PostId="2171" Score="0" Text="In that case, each node should have a signing key, like they do for BABE/GRANDPA, which allows you to tell them apart from each other." CreationDate="2022-04-28T15:26:04.900" UserId="28" />
  <row Id="2008" PostId="2047" Score="1" Text="@ox12 if you resolved the issue, can you write a self-answer and mark it as answered" CreationDate="2022-04-28T15:35:48.093" UserId="28" />
  <row Id="2009" PostId="2200" Score="0" Text="@ShawnTabrizi Yes, I want to add additional data to the block header. Thanks, @ Gav, I'll take a look." CreationDate="2022-04-28T17:39:37.977" UserId="245" />
  <row Id="2010" PostId="2237" Score="1" Text="I think that's technically possible, but why? This has the same ramifications as having no fees (e.g. DoS) but it also adds incentive to do that on top." CreationDate="2022-04-28T20:51:30.320" UserId="45" />
  <row Id="2011" PostId="2242" Score="0" Text="Ok, I figured as much, but how would using an `Option` of a compact integer look like in Rust?" CreationDate="2022-04-28T20:52:07.787" UserId="3" />
  <row Id="2012" PostId="2242" Score="0" Text="Well, @mkl, there is no magic. The rule is always either `0` or `1` followed by the encoding of the `T` type in case of `Some`, irregardless what type `T` is. I updated the answer with an example." CreationDate="2022-04-28T21:03:01.993" UserId="45" />
  <row Id="2013" PostId="2242" Score="0" Text="What I meant is: How do I actually do this in substrate (using `pallet::compact`, for example)?" CreationDate="2022-04-28T21:29:52.277" UserId="3" />
  <row Id="2014" PostId="2242" Score="0" Text="Ok, I see, I misinterpreted you. However, it is still not clear what you are asking. Do you mean you want to know how to, e.g., declare a variable that is an `Option` with an integer, that when encoded, will be represented in compact encoding when `Some`?" CreationDate="2022-04-28T21:36:32.627" UserId="45" />
  <row Id="2015" PostId="2242" Score="0" Text="I'd like to use a compactly encoded `Option` as parameter for an extrinsic." CreationDate="2022-04-28T21:40:31.407" UserId="3" />
  <row Id="2016" PostId="2242" Score="0" Text="Well, in that case, it should be as easy as slapping a `pallet::compact` attribute to an argument. Here is an example: https://github.com/paritytech/substrate/blob/d79a2afd565d93bcc369aa7c80c0f4261e051929/frame/balances/src/lib.rs#L278" CreationDate="2022-04-28T22:20:11.297" UserId="45" />
  <row Id="2017" PostId="2184" Score="0" Text="`connected=2` refers to connected peers who we know are authorities (according to the DHT records they've published). So there may be 5 peers but we do not necessarily know that they are authorities that is why you see `Idle (5 peers)`" CreationDate="2022-04-29T02:24:20.403" UserId="29" />
  <row Id="2018" PostId="2184" Score="1" Text="I partly understand it now, thanks a lot." CreationDate="2022-04-29T02:50:34.073" UserId="2034" />
  <row Id="2019" PostId="2254" Score="0" Text="Any reason for using a forward slash in your string?" CreationDate="2022-04-29T05:55:17.807" UserId="429" />
  <row Id="2020" PostId="1297" Score="1" Text="Actually it's&#xA;&#xA;`return api.tx.proxy.proxy(address, &quot;Governance&quot;, api.tx.democracy.vote(ref_index, vote));`" CreationDate="2022-04-29T05:56:39.027" UserId="344" />
  <row Id="2021" PostId="2177" Score="0" Text="@ShawnTabrizi yes that's it. do you have a suggestion ?" CreationDate="2022-04-29T06:06:13.277" UserId="632" />
  <row Id="2022" PostId="2254" Score="0" Text="Oh yeah I get an `InvalidFormat` error if I don't put forward slash on the secret phrase. With `/` characters, I get `InvalidPhrase`, so I think thats kinda better. Also, my understanding from the `Pair` documentation was that I need to separate the words for the mnemonics with `/` character. I may have understood the `Pair` docs wrong tho" CreationDate="2022-04-29T06:13:23.923" UserId="1809" />
  <row Id="2023" PostId="2177" Score="0" Text="You either need to make 3 RPC calls, or write your own custom RPC in Substrate which does all three at once. There is no &quot;trick&quot; here." CreationDate="2022-04-29T06:51:48.933" UserId="28" />
  <row Id="2024" PostId="2245" Score="0" Text="I get the same errors :/ I have another rpc function that retrieves the first element of the storageMap and it works fine, but it seems like I'm doing something wrong or my functions are not getting the item correctly." CreationDate="2022-04-29T06:56:09.757" UserId="2102" />
  <row Id="2025" PostId="2237" Score="0" Text="I'm not thinking of a decentralized network, I was thinking about a private network where there are already well known addresses and if they send transactions with some information, It is already assumed to be correct. On a decentralized network I guess it will require some validators to ensure that the information is correct and later on award the providers and also the validators, but its not the case" CreationDate="2022-04-29T06:59:17.873" UserId="2102" />
  <row Id="2026" PostId="2258" Score="0" Text="Thanks, i got it!" CreationDate="2022-04-29T08:13:17.577" UserId="489" />
  <row Id="2027" PostId="2257" Score="0" Text="The solution works like a charm. Thank you" CreationDate="2022-04-29T08:52:39.733" UserId="398" />
  <row Id="2028" PostId="2249" Score="1" Text="You could also send inherents into the transaction pool, as they are unsigned transactions. However, the inherent implementation should prevent that inherents are applied more than once per block." CreationDate="2022-04-29T08:59:01.860" UserId="73" />
  <row Id="2029" PostId="1868" Score="0" Text="@Purple_Turtle, I am not a pro, but I am inclined to think that it won't fit to a comment and would probably be better off as a subject for another question." CreationDate="2022-04-29T09:53:42.057" UserId="45" />
  <row Id="2030" PostId="2118" Score="0" Text="Thanks for answering. After your answer I found that somehow the repo I cloned was slightly old version.  I used the one you shared and this problem got fixed." CreationDate="2022-04-29T11:06:27.747" UserId="2414" />
  <row Id="2031" PostId="2242" Score="0" Text="Thanks, I know generally how `pallet::compact` works. It just doesn't seem like it works with `Option`. Sorry, the question was badly phrased. It's now updated." CreationDate="2022-04-29T11:24:38.920" UserId="3" />
  <row Id="2032" PostId="2262" Score="1" Text="Substrate SE was created partially to allow wider scoped questions where the answers would still benefit some other people in the Polkadot/Kusama/Substrate ecosystem. Could you please rephrase your question in a way that it might be answered to benefit others as well?" CreationDate="2022-04-29T11:29:16.027" UserId="138" />
  <row Id="2033" PostId="2268" Score="0" Text="Thanks, it worked, I thought only serde_json has &quot;arbitrary_precision&quot;, but I had only jsonrpc-core as dependancy." CreationDate="2022-04-29T11:49:00.013" UserId="213" />
  <row Id="2034" PostId="2271" Score="0" Text="Hey @Balthazar Wazowski, welcome! I like the title of this question, but it's far too many questions within that. Please refine a post down to one question for the community to provide an answer to, I encourage you to ask many around this topic! here is a primer: https://substrate.stackexchange.com/help/how-to-ask" CreationDate="2022-04-29T12:04:10.420" UserId="34" />
  <row Id="2035" PostId="2271" Score="0" Text="https://wiki.polkadot.network/docs/learn-comparisons-cosmos here is also a good start" CreationDate="2022-04-29T12:04:58.133" UserId="34" />
  <row Id="2036" PostId="2271" Score="0" Text="and another one https://medium.com/@arikan/a-comparison-of-heterogeneous-blockchain-networks-4bf7ff2fe279" CreationDate="2022-04-29T12:09:13.087" UserId="34" />
  <row Id="2037" PostId="2271" Score="0" Text="For general conversation, you might try this chatroom as well: https://matrix.to/#/#substratedevs:matrix.org" CreationDate="2022-04-29T12:09:52.087" UserId="34" />
  <row Id="2038" PostId="2234" Score="0" Text="That solved the issue. Thanks!" CreationDate="2022-04-29T12:13:57.027" UserId="2408" />
  <row Id="2039" PostId="2179" Score="0" Text="https://substrate.stackexchange.com/help/how-to-ask is a good thing to review to help you pose good questions here :)" CreationDate="2022-04-29T12:14:25.477" UserId="34" />
  <row Id="2040" PostId="2201" Score="0" Text="Are you sure /private/tmp/node01/chains/local_testnet/keystore is corect? Then the base path should be /private/tmp/node01" CreationDate="2022-04-29T12:19:02.967" UserId="34" />
  <row Id="2043" PostId="2029" Score="0" Text="@systemnotes - please use the comment feature for this type of response." CreationDate="2022-04-29T12:31:41.193" UserId="172" />
  <row Id="2045" PostId="2103" Score="0" Text="No, `std` features were the first thing I've checked. They are all in place." CreationDate="2022-04-29T12:56:34.430" UserId="2408" />
  <row Id="2046" PostId="2263" Score="0" Text="Thank you for your reply! So, as you can see, i added an example. So, can you advise on the next step to extract data? My final step is to decode the data this Extrinsic has. If i use match tx.function {Call::Balances(..)) how would i get into the next layer of the call(pls. see the description) to reach the Call::my_custom_function.content?" CreationDate="2022-04-29T14:29:05.457" UserId="2339" />
  <row Id="2047" PostId="2280" Score="0" Text="Please share links to your source and describe your exact flow for performing migrations? 3.0.0 to polkadot-v0.9.18 included many migrations IIRC, and thus you will need to make sure you capture those that might have been removed in the meantime, as is the practice when no longer needed I believe." CreationDate="2022-04-29T14:39:39.543" UserId="34" />
  <row Id="2048" PostId="2249" Score="0" Text="Inherents aren't runtime calls. Time stamps are a good example." CreationDate="2022-04-29T14:48:27.010" UserId="172" />
  <row Id="2049" PostId="1995" Score="1" Text="Pro tip: --dev implies --tmp for a while now, so it's redundant to use both :)" CreationDate="2022-04-29T14:50:29.757" UserId="34" />
  <row Id="2050" PostId="2279" Score="0" Text="Thank you! It should be Polkadot browser app -&gt; Developer -&gt; Sudo &gt; Sudo Access tab!" CreationDate="2022-04-29T14:52:20.920" UserId="1789" />
  <row Id="2051" PostId="1995" Score="0" Text="Can you also comment on where this node is hosted? Is it local and behind a firewall? do you see any peers or other connections? Can you provide detail on what you think those WS connections come from?" CreationDate="2022-04-29T14:52:57.093" UserId="34" />
  <row Id="2052" PostId="2277" Score="1" Text="Please mark this as the answer if you are satisfied :) Welcome to the community!" CreationDate="2022-04-29T14:54:13.620" UserId="34" />
  <row Id="2053" PostId="2283" Score="0" Text="Thanks, very helpful." CreationDate="2022-04-29T14:56:34.133" UserId="608" />
  <row Id="2054" PostId="843" Score="0" Text="How do I upgrade if it doesn't produce blocks? From this page https://docs.substrate.io/how-to-guides/v3/parachains/runtime-upgrades/ it looks like I have to actually submit some extrinsics. It wouldn't work, would it?" CreationDate="2022-04-29T15:11:34.207" UserId="530" />
  <row Id="2055" PostId="2249" Score="0" Text="Edited my answer." CreationDate="2022-04-29T15:14:08.500" UserId="29" />
  <row Id="2056" PostId="2277" Score="1" Text="I attempted to but it says I'll have to wait 2 days.  Will return in 2 days to do so.  Thanks pleasure to be here :)" CreationDate="2022-04-29T15:25:08.237" UserId="2451" />
  <row Id="2057" PostId="2285" Score="0" Text="I get `InvalidHexString(InvalidStringLength)` when I submit the extrinsic I have signed with the key pair generated from this approach.. Any clues why this might be happening? I'm pretty sure the `key pair` generated is of the same type as `AccountKeyring::Bob.pair()`. `AccountKeyring::Bob.pair()` works, but the one I generated doesn't... Your code works tho" CreationDate="2022-04-29T15:41:50.477" UserId="1809" />
  <row Id="2058" PostId="2277" Score="0" Text="While you wait, please feel free to ask more questions about cryptography and ZKPs :-D" CreationDate="2022-04-29T15:54:02.800" UserId="34" />
  <row Id="2059" PostId="2245" Score="1" Text="Can you edit the question and add your rpc and runtime api code?" CreationDate="2022-04-29T16:41:41.830" UserId="245" />
  <row Id="2060" PostId="2242" Score="0" Text="@mkl I've updated the answer." CreationDate="2022-04-29T17:17:27.307" UserId="45" />
  <row Id="2061" PostId="2242" Score="0" Text="Many thanks. That's surprisingly simple." CreationDate="2022-04-29T17:23:55.660" UserId="3" />
  <row Id="2062" PostId="2269" Score="0" Text="Hey Tau, welcome to the community! i wanted to ask, might you edit this question to be more succinct and identify what the overall question is? It's hard to parse as is, without sections / headers / line breaks. https://substrate.stackexchange.com/help/how-to-ask is worth a look too to get started" CreationDate="2022-04-29T17:32:34.623" UserId="34" />
  <row Id="2063" PostId="2288" Score="1" Text="Hi @Balthazar ! The way your question is currently framed will yield opinion based answers which is not what Stack Exchange is for. Please try to reframe it and provide a clearer scope on what you’re asking, for eg: « what are the architectural differences » or « what underlying mechanisms are different »." CreationDate="2022-04-29T17:51:16.323" UserId="172" />
  <row Id="2064" PostId="2269" Score="0" Text="Let me see if I understand: you want to use a SPREE to form a kind of mediator/enforcer of continued interoperability between parachains (as needed, with a restricted generality of things like runtime upgrades)?" CreationDate="2022-04-29T18:14:04.590" UserId="34" />
  <row Id="2065" PostId="2269" Score="0" Text="From my limited understanding of SPREE, it was more generally to be used as the name implies: mediate state transitions off of a parachain that it cannot directly change with runtime upgrades and (for anything but perhaps a relay chain governance common good parachain) could not force state on. Breaking interoperability for general XCM that isn't mediated by SPREE didn't fit my mental model of what it could do, until now." CreationDate="2022-04-29T18:14:32.930" UserId="34" />
  <row Id="2066" PostId="2269" Score="0" Text="so seeing these two models: SPREE acting only as a 3rd party state machine vs. SPREE acting as a limited authority on general execution on other chains." CreationDate="2022-04-29T18:14:43.260" UserId="34" />
  <row Id="2067" PostId="2288" Score="1" Text="Please don't ask duplicate questions - https://substrate.stackexchange.com/questions/2271/question-substrate-vs-cosmos-sdk" CreationDate="2022-04-29T18:29:14.670" UserId="627" />
  <row Id="2069" PostId="2288" Score="1" Text="Does this answer your question? [Question: Substrate vs Cosmos SDK](https://substrate.stackexchange.com/questions/2271/question-substrate-vs-cosmos-sdk)" CreationDate="2022-04-29T18:40:01.027" UserId="34" />
  <row Id="2070" PostId="2285" Score="0" Text="Perhaps my actual issue is different from what I was thinking when I opened this question.." CreationDate="2022-04-29T19:01:02.273" UserId="1809" />
  <row Id="2071" PostId="2291" Score="0" Text="I think you need to be more specific here. Not sure what you mean by &quot;some methods to add my new runtime interface or externalities into the runtime&quot;. Generally modifying the storage behavior of your Substrate chain will make your node incompatible with Polkadot." CreationDate="2022-04-30T05:12:46.247" UserId="28" />
  <row Id="2072" PostId="2280" Score="0" Text="We can take for example the node of the substrate repository. Starting the network with 3.0.0 and wanting to upgrade to polkadot-v0.9.18. That will fit many scenario for the standard pallet library upgrade." CreationDate="2022-04-30T05:46:42.053" UserId="464" />
  <row Id="2073" PostId="2301" Score="0" Text="So basically if we take the same polkadot release ( polkadot-v0.8.29 ) that is equal to the latest major substrate 3.0.0, we can then upgrade the node by incrementing the polkadot release one by one ( with runtime change of course ) and it would work as a proper way to migrate." CreationDate="2022-04-30T06:19:43.500" UserId="464" />
  <row Id="2074" PostId="2301" Score="0" Text="Also including runtime migrations which were included in those Polkadot releases, but yeah, that should work. Stuff like this: https://github.com/paritytech/polkadot/pull/5374/files" CreationDate="2022-04-30T06:25:50.403" UserId="28" />
  <row Id="2077" PostId="2305" Score="0" Text="It does appear to me that `ReservableCurrency` is the best fit for my purpose. I believe that `NamedReservableCurrency` will allow me better cross pallet functions because it also adds an id to the currency." CreationDate="2022-04-30T10:48:50.393" UserId="139" />
  <row Id="2078" PostId="1658" Score="0" Text="@DanShields of course this question could use a more concise title indeed." CreationDate="2022-04-30T10:50:18.433" UserId="139" />
  <row Id="2079" PostId="2285" Score="0" Text="Maybe you encode the extrinsic incorrectly? You can look at the line that the error appears in your code." CreationDate="2022-04-30T11:04:34.613" UserId="94" />
  <row Id="2080" PostId="2305" Score="0" Text="Yes, `NamedReservableCurrency` is the best choice." CreationDate="2022-04-30T12:53:55.417" UserId="28" />
  <row Id="2081" PostId="2308" Score="0" Text="What did you modify about your project? Did you make sure to add the `std` feature to any imported crates?" CreationDate="2022-04-30T12:55:29.730" UserId="28" />
  <row Id="2082" PostId="2300" Score="0" Text="Thanks for taking the time to provide such a comprehensive and insightful response!  I've got a lot to say in response to but the comment field is limited to ~500 characters.  Is there a research platform / forum where we can discuss in a more interactive manner as opposed to the Q/A + comments style?" CreationDate="2022-04-30T13:52:28.083" UserId="2451" />
  <row Id="2083" PostId="2300" Score="1" Text="Probably best to open an issue somewhere like here: https://github.com/w3f/polkadot-spec/issues" CreationDate="2022-04-30T13:56:29.490" UserId="28" />
  <row Id="2084" PostId="2308" Score="0" Text="Basically, I'm trying to implement PoW (smth like Kulupu's but more simple) on top of node template. I've added [primitives](https://github.com/kulupu/kulupu/tree/master/primitives), [difficulty](https://github.com/kulupu/kulupu/tree/master/frame/difficulty) pallets and one more pallet with my custom Sha256 PoW logic. &#xA;I doublechecked that each crate's `std` is listed in `[features]`" CreationDate="2022-04-30T14:03:18.087" UserId="2408" />
  <row Id="2086" PostId="2300" Score="0" Text="thank you I'll be sure to do that" CreationDate="2022-04-30T14:05:46.220" UserId="2451" />
  <row Id="2087" PostId="2308" Score="0" Text="The error here is almost certainly due to some missing feature stuff. I would start with the base node-template, and make changes one by one, checking each time it compiles." CreationDate="2022-04-30T14:09:20.197" UserId="28" />
  <row Id="2088" PostId="2308" Score="0" Text="That would be the best solution, but it would take me too much time to go back to the start and do the same steps once again:( That's why I'm trying to fix it the other way." CreationDate="2022-04-30T14:14:03.740" UserId="2408" />
  <row Id="2089" PostId="2295" Score="1" Text="AFAIK, you need to pay a transaction fee for signed transactions. Try funding the account you created and see if you get an error." CreationDate="2022-04-30T17:47:43.297" UserId="245" />
  <row Id="2090" PostId="2299" Score="0" Text="Thanks Shawn " CreationDate="2022-04-30T20:08:03.837" UserId="710" />
  <row Id="2091" PostId="2290" Score="0" Text="Oh, I work for Phala &amp; we were thinking about different ways to parse the output. We have a solution that does an attestation verification doing something slightly similar except the response isn’t in json format. was a small limitation for one of the queries that’ll send an HTTP request &amp; then parse the response. Since the query is not changing the state of the contract then there shouldn’t be any gas fees in this instance, right? Not entirely sure on that part." CreationDate="2022-04-30T21:14:42.213" UserId="549" />
  <row Id="2092" PostId="1632" Score="0" Text="may I ask how you set up your cloud machine? I'm trying to do the same, but for some reason I can't get my local nodes to connect to the cloud node." CreationDate="2022-04-30T22:03:01.087" UserId="2107" />
  <row Id="2093" PostId="2291" Score="0" Text="In other words, my question is that how pallet macros actual job, I have found the code in client side. When substrate receive a new block then will construct a new state machine from sp_state_machine and work with current block changes set. But I cant found that where the pallet storage items use the ext refernce at all" CreationDate="2022-04-30T22:56:59.277" UserId="676" />
  <row Id="2095" PostId="2291" Score="0" Text="I'm sorry. Your question does not make sense to me. Take a look at: https://stackoverflow.com/help/how-to-ask" CreationDate="2022-05-01T08:22:14.370" UserId="28" />
  <row Id="2096" PostId="1632" Score="0" Text="@edmassarani I suggest you ask a question on this forum and provide enough details to your problems to make it a good question." CreationDate="2022-05-01T08:58:48.310" UserId="139" />
  <row Id="2097" PostId="2312" Score="0" Text="If I understand correctly you have 1 cloud machine running 3 docker images? I don't see your command including a `node-key` attribute, so maybe you're manually entering a new peerId on your local machine everytime after copying it from the docker output?" CreationDate="2022-05-01T10:21:37.433" UserId="139" />
  <row Id="2098" PostId="2311" Score="0" Text="My guess is trial and error. I had this question long back as well but never found a satisfactory answer." CreationDate="2022-05-01T10:23:23.430" UserId="139" />
  <row Id="2099" PostId="2059" Score="0" Text="What's the github issue (if there exists one) that will remove this limitation from babe? Could you post it here?" CreationDate="2022-05-01T11:15:16.203" UserId="139" />
  <row Id="2100" PostId="2226" Score="1" Text="Please mark the question as answered if you're happy it's solved now." CreationDate="2022-05-01T12:50:37.693" UserId="53" />
  <row Id="2101" PostId="2304" Score="0" Text="Thank you for the details, Shawn!" CreationDate="2022-05-01T16:43:21.883" UserId="2140" />
  <row Id="2102" PostId="2312" Score="0" Text="correct, I'm inserting the node keys manually afterwards" CreationDate="2022-05-01T16:51:01.190" UserId="2107" />
  <row Id="2103" PostId="2177" Score="0" Text="yes that is exactly what I want to do : write my one custom RPC but I dont know how to get those substrate informations given by system_syncState or system_properties ?" CreationDate="2022-05-01T19:16:49.320" UserId="632" />
  <row Id="2104" PostId="2322" Score="0" Text="Can you include the entire command that you're using to run your node?" CreationDate="2022-05-02T04:53:08.713" UserId="139" />
  <row Id="2105" PostId="2308" Score="1" Text="Strange, I am getting the same `error: cannot find macro 'format' in this scope` when doing a `cargo check` in my runtime folder.  this started after I added a new pallet to my runtime, and updated the versions in the `cargo.toml` in the runtime. definitely a dependency problem, still trying to figure it out....." CreationDate="2022-05-02T06:27:31.357" UserId="309" />
  <row Id="2106" PostId="2322" Score="0" Text="yeah, added it now" CreationDate="2022-05-02T08:17:16.627" UserId="2107" />
  <row Id="2107" PostId="2324" Score="0" Text="I had all those parameters already added except for the `rpc-methods`, tried adding it as well, but no success" CreationDate="2022-05-02T08:20:25.177" UserId="2107" />
  <row Id="2108" PostId="2325" Score="0" Text="Can you please add the line of your `Cargo.toml` where you import the crate to your question?" CreationDate="2022-05-02T09:31:31.917" UserId="16" />
  <row Id="2109" PostId="2325" Score="0" Text="I found that changing from `chrono = &quot;0.4&quot;` to `chrono = { version = &quot;0.4&quot;, default-features = false }` solved the issue" CreationDate="2022-05-02T09:47:53.667" UserId="2394" />
  <row Id="2110" PostId="2179" Score="0" Text="Does this answer your question? [Is a transaction an extrinsic?](https://substrate.stackexchange.com/questions/2248/is-a-transaction-an-extrinsic)" CreationDate="2022-05-02T10:01:53.817" UserId="172" />
  <row Id="2111" PostId="2320" Score="2" Text="If you are working with democracy pallet, [preimages](https://github.com/paritytech/substrate/tree/master/frame/preimage) is another one you want to check out" CreationDate="2022-05-02T10:13:01.423" UserId="165" />
  <row Id="2112" PostId="2316" Score="0" Text="Possibly you are not signing the extrinsics with the `Era::Immortal` and they become invalid before making it into the block. Could you post your code please?" CreationDate="2022-05-02T11:09:45.113" UserId="94" />
  <row Id="2113" PostId="2295" Score="0" Text="Why are you using `UncheckedExtrinsicV4`? Where are you calling this code? Having the complete source helps with answering this." CreationDate="2022-05-02T11:12:08.667" UserId="94" />
  <row Id="2114" PostId="2302" Score="0" Text="Thank you very much! It's what I was looking for!" CreationDate="2022-05-02T12:07:50.653" UserId="2339" />
  <row Id="2115" PostId="2316" Score="0" Text="It looks like the default paramters for subxt include `Era::Immortal` as seen [here](https://github.com/paritytech/subxt/blob/3d669f97c6d3adbb8297f458a1bb35e7ec5cc7ba/subxt/src/extrinsic/params.rs#L136). Also added a code example" CreationDate="2022-05-02T12:34:58.583" UserId="2463" />
  <row Id="2116" PostId="2337" Score="1" Text="Thanks a lot. I have tried to authorize + enact flow then runtime upgrades succeed. So, there are two more questions, 1. what's the difference between authorize + enact and Sudo + set_code, I see they are also calling the schedule_code_upgrade(code) to do the same things. &#xA;2. how to “schedule a runtime upgrade after N blocknum”? tried but failed. (authorize + scheduleAfter enact)." CreationDate="2022-05-02T14:59:30.877" UserId="2379" />
  <row Id="2117" PostId="2177" Score="0" Text="@ShawnTabrizi do you have an idea ?" CreationDate="2022-05-02T16:39:39.520" UserId="632" />
  <row Id="2118" PostId="2295" Score="0" Text="@Burak - adding funds to the newly generated key-pair/account worked for me. If you put this comment as the answer, I will accept it. Thank you" CreationDate="2022-05-02T18:22:51.513" UserId="1809" />
  <row Id="2119" PostId="2295" Score="0" Text="@OliverTale-Yazdi - I will try to add more relevant info next time. Sorry about that" CreationDate="2022-05-02T18:23:24.777" UserId="1809" />
  <row Id="2120" PostId="2347" Score="0" Text="can you provide source to your application? What libs are you using to sign? what keyring?" CreationDate="2022-05-02T21:40:55.813" UserId="34" />
  <row Id="2121" PostId="2347" Score="0" Text="Please also checkout https://substrate.stackexchange.com/help/how-to-ask - better formed questions here will get you better answers :) Welcome to the community!" CreationDate="2022-05-02T21:42:21.717" UserId="34" />
  <row Id="2122" PostId="2345" Score="0" Text="What is your chainspec file? Did you edit this to include your bootnodes?" CreationDate="2022-05-02T21:46:46.193" UserId="34" />
  <row Id="2123" PostId="2347" Score="0" Text="Basically I'm looking for something similar to ethers.providers.TransactionResponse from the ethers project but for polkadot. Something That I can pass a signed transaction or even a signature to and retrieve a transaction hash" CreationDate="2022-05-02T21:55:32.790" UserId="2470" />
  <row Id="2124" PostId="2335" Score="0" Text="to get a deeper grasp of what parachains can do, you might read the https://github.com/w3f/parachain-implementers-guide - it's very detailed and may provide some answers" CreationDate="2022-05-02T22:18:49.337" UserId="34" />
  <row Id="2125" PostId="2335" Score="0" Text="Where does the info in you problems section come from? Can you link to sources in the question?" CreationDate="2022-05-02T22:20:35.717" UserId="34" />
  <row Id="2126" PostId="2327" Score="0" Text="Please change your question to have one question only, and provide more context, instead of two semi-related questions." CreationDate="2022-05-02T22:22:56.233" UserId="34" />
  <row Id="2127" PostId="2348" Score="0" Text="how is adding it to the chain spec different than passing it as a param when running the node?" CreationDate="2022-05-02T23:13:29.553" UserId="2107" />
  <row Id="2129" PostId="2350" Score="0" Text="Thx ed. what do they mean by Custom(String) ?" CreationDate="2022-05-02T23:47:17.473" UserId="2471" />
  <row Id="2130" PostId="2328" Score="0" Text="This question is a bit confusing. Are you indeed specifically asking whether _smart contracts_ can mint assets, or are you actually trying to ask about whether _pallets_ can mint assets?" CreationDate="2022-05-02T23:57:16.857" UserId="104" />
  <row Id="2131" PostId="2350" Score="0" Text="That is for when you define a new type which is neither of the predefined ones. So you can have it called whatever you want." CreationDate="2022-05-02T23:58:36.853" UserId="2107" />
  <row Id="2133" PostId="2347" Score="0" Text="I am using the polkadot SignPayload function and was wondering if I can retrieve the transaction hash from it" CreationDate="2022-05-03T01:46:45.460" UserId="2470" />
  <row Id="2134" PostId="2294" Score="0" Text="1. Can I ask what are the use cases of Encode/Decode if it doesn't influence the storage layout? The only case I can think of is message parameters and returns.&#xA;&#xA;2. I understands `SpreadLayout` but can't understand `SpreadAllocate` and why is it important for `Mapping`. Thanks" CreationDate="2022-05-03T02:56:52.693" UserId="450" />
  <row Id="2135" PostId="2328" Score="1" Text="I'm asking whether smart contracts (ink! Wasm or EVM) can mint Statemint assets. Thank you, @KeithYeung" CreationDate="2022-05-03T03:32:51.073" UserId="2466" />
  <row Id="2136" PostId="2348" Score="1" Text="The cli flag appends to the list, it doesn't replace it. https://github.com/paritytech/substrate/blob/master/client/cli/src/params/network_params.rs#L193-L194" CreationDate="2022-05-03T04:18:54.613" UserId="34" />
  <row Id="2137" PostId="2345" Score="0" Text="Sounds dumb: are you able to `dig {CUSTOM_DOMAIN}` from the node within this nginx instance? Perhaps DNS isn't working properly." CreationDate="2022-05-03T04:22:35.513" UserId="34" />
  <row Id="2138" PostId="2328" Score="0" Text="Then this is a question that is asking us to speculate a bit into the future. For one, I don't believe ink! SCs can freely call a chain's extrinsics, but someone can correct on this. For two, ink! SCs can't interact with XCM just yet. Both of these needs to happen first before we can talk about whether or not SCs can or should be able to mint Statemint assets." CreationDate="2022-05-03T05:04:25.650" UserId="104" />
  <row Id="2139" PostId="2328" Score="0" Text="That's right. The only way right now is to create assets using SCs on an EVM-enabled chain. But these assets are locked in on the chain, and I can't bring the assets to other chains." CreationDate="2022-05-03T07:18:02.657" UserId="2466" />
  <row Id="2141" PostId="2342" Score="0" Text="Are you runining node with -dev --tmp -lruntime::contracts=debug flags ?" CreationDate="2022-05-03T07:51:23.220" UserId="567" />
  <row Id="2142" PostId="2348" Score="0" Text="But that's exactly my point, if it still adds it to the list then there's no difference. I tried it anyway, but did not work." CreationDate="2022-05-03T08:02:26.917" UserId="2107" />
  <row Id="2144" PostId="2345" Score="0" Text="I am able to dig it and get a response. I do think that the problem is with the nginx config, but I have no idea what it is." CreationDate="2022-05-03T08:10:45.787" UserId="2107" />
  <row Id="2145" PostId="2335" Score="0" Text="- I have already read that guide, my question is very specific, and its not about parachains per say, its about how to configure a Substrate chain in a way that may allow for effective optimistic finalization.&#xA;- What info are you asking about specifically? the 1min finalization time you can see in any block explorer, the fact that it can be much larger on occasion requires you to understand how Polkadot finalizes parachains, there is lots of information on this." CreationDate="2022-05-03T08:12:50.263" UserId="362" />
  <row Id="2146" PostId="2356" Score="1" Text="try like this: query[&quot;psp22::balance_of&quot;]()" CreationDate="2022-05-03T08:30:55.740" UserId="567" />
  <row Id="2147" PostId="2356" Score="0" Text="you also forgot an &quot;,&quot; between { gasLimit }, alice" CreationDate="2022-05-03T09:03:21.277" UserId="567" />
  <row Id="2148" PostId="2350" Score="0" Text="but when i use &quot;chainType&quot;: &quot;whateverIwant&quot; it doesn't work I get an error." CreationDate="2022-05-03T10:05:01.277" UserId="2471" />
  <row Id="2149" PostId="2350" Score="0" Text="Just tested it and you need to pass it in as `&quot;chainType&quot;: { &quot;Custom&quot;: &quot;Whatever you want&quot; }`" CreationDate="2022-05-03T10:29:43.840" UserId="2107" />
  <row Id="2150" PostId="2245" Score="1" Text="`id` is `Vec&lt;u8&gt;`, so you need to encode it as a hex string, as per the error message. Pass this via curl as the id `0x31323334333231`" CreationDate="2022-05-03T10:46:15.960" UserId="627" />
  <row Id="2151" PostId="2353" Score="0" Text="Clients get chain's metadata from their runtimes, I don't know if I follow your question.&#xA;https://docs.substrate.io/v3/runtime/metadata/" CreationDate="2022-05-03T10:59:09.073" UserId="165" />
  <row Id="2153" PostId="2356" Score="0" Text="You are potentially using the incorrect `ABI` file for the contract at this address." CreationDate="2022-05-03T15:22:06.920" UserId="380" />
  <row Id="2154" PostId="2356" Score="1" Text="This error message may suggest that the contract does not exist at the address you are providing. Are you sure it is instantiated correctly (promise fulfilled, providing correct account id, etc.)" CreationDate="2022-05-03T15:24:45.620" UserId="170" />
  <row Id="2155" PostId="2321" Score="0" Text="As far as I know, part of the idea behind gossip is to avoid sending direct messages so that a relationship between the sender and the receiver cannot be established. Sending a direct message to a peer would identify this relationship and therefore break the anonymity of the protocol. That said, the docs state that `Consensus code can invoke ... send_topic to send all messages under a single topic to a specific peer.` [Source](https://docs.rs/sc-network-gossip/latest/sc_network_gossip/)" CreationDate="2022-05-03T15:40:56.253" UserId="380" />
  <row Id="2157" PostId="2321" Score="0" Text="Anonymity of what protocol? I'm intentionally trying to send a target an encrypted piece of data that only they're able to decrypt. If I gossip it, then I am creating an unnecessary amount of outbound traffic. We are currently gossiping it and trying to reduce our outbound bandwidth, since ours continues to climb through our specific protocol implementation. Sending directly would at least be an improvement on that." CreationDate="2022-05-03T19:04:17.503" UserId="74" />
  <row Id="2158" PostId="2326" Score="0" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-05-04T02:36:07.847" UserId="-1" />
  <row Id="2159" PostId="2353" Score="0" Text="The root of this question stems from it being cumbersome to sign transactions for every chain while interacting on Polksdot.js.  For background, I am part of a validation company, and being current on changes to statuses of projects through their various testnet stages is important.  This requires me to sign many metadata updates while I go through project lists.  This process gets repeated over again quite frequently.  From my POV, and I am not a developer so forgive me if this is an improbable feat, but it would streamline my workload if I could sign one Tx for updating all metadata." CreationDate="2022-05-04T03:26:44.073" UserId="658" />
  <row Id="2160" PostId="2362" Score="0" Text="Like we do for insert keys from the different terminal after running the node, I want to achieve the same for off-chain storage but the problem I'm facing here is to get the off-chain storage instance without creating a new runner. As we get the backend instance from the new_partial() and new partial accepts a sc_service::Configuration which we'll get from the after creating the runner." CreationDate="2022-05-04T06:48:43.700" UserId="429" />
  <row Id="2161" PostId="2318" Score="0" Text="Thank you and pepyakin.&#xA;&#xA;My conclusion is to make a PoC with an HTTP API with whitelisted commands. Users will be notified about the potential risks. The source code will be made open with a delay to lessen abuse possibilities." CreationDate="2022-05-04T06:51:42.730" UserId="2458" />
  <row Id="2162" PostId="2359" Score="0" Text="That's true for polkadotjs-UI. But you can print to the console of the substrate node &amp; it works with tx as well" CreationDate="2022-05-04T07:31:20.950" UserId="567" />
  <row Id="2163" PostId="2372" Score="1" Text="Thanks, this is fixed in v1.2.31." CreationDate="2022-05-04T09:54:43.927" UserId="279" />
  <row Id="2164" PostId="2359" Score="0" Text="Personally, when I submit a tx from the polkadot apps interface, I don't get any ink! debug on the substrate node. When I submit a query, I do get ink! debug on the substrate node." CreationDate="2022-05-04T10:10:14.373" UserId="380" />
  <row Id="2165" PostId="2359" Score="0" Text="This is when I'm running substrate with log flags `-lerror,runtime::contracts=debug`" CreationDate="2022-05-04T10:24:33.023" UserId="380" />
  <row Id="2166" PostId="1955" Score="2" Text="These docs seem quite outdated - written for polkadot v1.4.0. Surely typegen scripts have changed since then, especially with regards to https://github.com/paritytech/substrate/pull/8615" CreationDate="2022-05-04T11:21:53.113" UserId="624" />
  <row Id="2167" PostId="2363" Score="0" Text="Thank you.&#xA;&#xA;This what I want to do, but this only works if I have a way of picking such blocks which does not constantly result in reverting, because at some rate this becomes unacceptable for the UX.&#xA;&#xA;I am surprised that you say I cannot impact this rate, e.g. Aura would seem to be lower rate than BABE? Beyond this some param values perhaps could impact it, but I may be misinformed here.&#xA;&#xA;In any case: I guess I need to collect some real data on orphan rate of parachains as they currently stand to see how acceptable this is. Do you know if such data exists already?" CreationDate="2022-05-04T12:15:44.407" UserId="362" />
  <row Id="2168" PostId="2359" Score="2" Text="just tested with polkadotjs &amp; you are right. I got log on query but not on tx" CreationDate="2022-05-04T14:25:37.700" UserId="567" />
  <row Id="2169" PostId="2347" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-05-04T14:47:36.993" UserId="-1" />
  <row Id="2171" PostId="2355" Score="0" Text="This doesn't seem to work as expected. See here: https://westend.subscan.io/extrinsic/10696943-2&#xA;&#xA;I expected to get the exstrinsic hash: 0xb11b3c5e7ef8efb518de8f0b6ca0107d06a47c6da949cd39ef40a76753c87ff8&#xA;But I ended up getting this extrinsic hash:&#xA;0x0fb3c429f27ffe991796ce594525eeac301a16a2f0ccd4f4caec2979332feadd&#xA;From the following signature: 0x85af7c6a21502dbdbd123596d804ad5eba1343d9c61128c7f96bb719887081ba5953519d68e8a9a2ff853c3d656a1406f2e814b456fcd983fa1c853fa62f3a03&#xA;&#xA;Any ideas?" CreationDate="2022-05-04T15:50:06.340" UserId="2470" />
  <row Id="2172" PostId="2394" Score="0" Text="As I check in https://paritytech.github.io/ink/ink_env/enum.Error.html. There are `ContractReverted`, `CalleeReverted`. Should developers have an eye on them?" CreationDate="2022-05-04T16:12:40.063" UserId="450" />
  <row Id="2173" PostId="2355" Score="0" Text="You need the entire extrinsic, not just the signature. You can see how Sidecar does it: https://github.com/paritytech/substrate-api-sidecar/blob/992b458/src/services/blocks/BlocksService.ts#L368" CreationDate="2022-05-04T18:39:03.710" UserId="620" />
  <row Id="2174" PostId="2394" Score="0" Text="`CalleeReverted` is used during [the checking of execution result](https://github.com/paritytech/ink/blob/2bccebff7a8fdcc2b35437e9f55e29117dc2c414/crates/env/src/engine/on_chain/impls.rs#L398). If it is reverted we will try to decode the output into the expected type(like `Result`)." CreationDate="2022-05-04T19:02:26.583" UserId="599" />
  <row Id="2175" PostId="2396" Score="1" Text="yeah, but my problem is mainly with the peer to peer connectivity, not related to rpc" CreationDate="2022-05-04T22:42:16.403" UserId="2107" />
  <row Id="2176" PostId="2398" Score="0" Text="Where do you actually want to transfer your KSM to?" CreationDate="2022-05-04T23:12:39.223" UserId="104" />
  <row Id="2177" PostId="2400" Score="1" Text="You need to provide more logs on validator side. And try 3 validators instead 2." CreationDate="2022-05-05T00:01:22.530" UserId="359" />
  <row Id="2178" PostId="2130" Score="1" Text="There is an open issue already:&#xA;https://github.com/substrate-developer-hub/substrate-node-template/issues/338" CreationDate="2022-05-05T00:41:30.143" UserId="205" />
  <row Id="2179" PostId="2377" Score="0" Text="But, you see, in the picture I asked, there is no hash" CreationDate="2022-05-05T02:34:03.863" UserId="2481" />
  <row Id="2180" PostId="2402" Score="0" Text="Thanks Keith, yes I am aware of that referendum (this information is to increase my knowledge :)" CreationDate="2022-05-05T03:19:12.923" UserId="710" />
  <row Id="2182" PostId="2377" Score="1" Text="The above is not the JS API - so you need to, as explained, get the blake2b-256 of the SCALE-encoded extrinsic data. So call the blake2b in your toolset with the encoded extrinsic, that gives you the hash." CreationDate="2022-05-05T05:15:35.093" UserId="627" />
  <row Id="2183" PostId="2399" Score="0" Text="As the message suggests, run `yarn dedupe` or `npm dedupe` (depending on your package manager)" CreationDate="2022-05-05T05:17:51.387" UserId="627" />
  <row Id="2184" PostId="2394" Score="1" Text="Ok Now I understand the difference between the `Trapped` and `Reverted` variant. Actually, they follow the same semantics of `panic!()` and `Result` in Rust. For new readers, this is what I mean.&#xA;&#xA;When you receive the `Trapped`, the error can be expected (because you intentionally `panic!()` in your contract) or unexpected (because the code you don't control `panic!()`). But overall, we should treat this as unexpected error&#xA;&#xA;When you receive the `Reverted`, this means that your contract handle the error smoothly and it's part of business logic. So the error for this case is expected." CreationDate="2022-05-05T05:48:28.007" UserId="450" />
  <row Id="2186" PostId="2377" Score="0" Text="Thank you, but what I want is the Java version." CreationDate="2022-05-05T06:07:49.453" UserId="2481" />
  <row Id="2187" PostId="2356" Score="1" Text="Ensure that you are on the latest API version. There has recently been changes made to the error structures in substrate. Since you fail on the result, it would seem to point to that." CreationDate="2022-05-05T06:09:34.300" UserId="2132" />
  <row Id="2188" PostId="2382" Score="0" Text="thank you very much, i got it !" CreationDate="2022-05-05T06:34:30.670" UserId="489" />
  <row Id="2190" PostId="2375" Score="0" Text="I have solved it. Thank you for providing methods" CreationDate="2022-05-05T08:07:09.393" UserId="2481" />
  <row Id="2191" PostId="2194" Score="0" Text="Thank you so much Gav! Very clear and I understand why all chains are using reserve assets" CreationDate="2022-05-05T09:10:43.683" UserId="18" />
  <row Id="2192" PostId="2384" Score="0" Text="Damn good idea !&#xA;I'll explain why i wanted a u128: I'm trying to benchmark a mint pallet, but the existential deposit was something like 10_000_000_000, so i needed to iterate from this to something like 100B.&#xA;I see now why its not a good idea, thanks for the answer !" CreationDate="2022-05-05T09:37:51.593" UserId="2355" />
  <row Id="2193" PostId="2398" Score="0" Text="The destination is the account ID in the image (5ECMd...) *on the parent chain*. This might resolve into a different account on the local chain and is determined by the XCM configuration of the local chain (specifically the `SovereignAccountOf` type)." CreationDate="2022-05-05T09:58:47.603" UserId="53" />
  <row Id="2194" PostId="618" Score="0" Text="This is a possibility, but it's not a complete solution. The XCM instruction set and XCVM register set could reasonably support independent and composable extensions. However, these do not form the whole XCM protocol. `MultiLocation` and `MultiAsset` are two of the many other dependent types used substantially. Many of these types would not easily support independent and composable extensions, meaning that authoring an extension to XCM would look rather different to authoring a new version of XCM." CreationDate="2022-05-05T10:08:44.500" UserId="53" />
  <row Id="2196" PostId="2326" Score="0" Text="Ah, so even the order of dependencies declarations in `Cargo.toml`s matters? Could you please share the version of your `toml` that fixed the issue? I'm facing the same problem now..." CreationDate="2022-05-05T10:25:36.213" UserId="2408" />
  <row Id="2197" PostId="2411" Score="0" Text="I followed your steps (i already did 1 and 2), but i still have the errors. I made some clarification in the OP about the errors i encounter" CreationDate="2022-05-05T10:58:24.583" UserId="2355" />
  <row Id="2198" PostId="2410" Score="0" Text="Please paste here the first compiler error exactly as it appears." CreationDate="2022-05-05T11:20:05.333" UserId="28" />
  <row Id="2199" PostId="2410" Score="0" Text="To have a correct format, i added the first error on the OP" CreationDate="2022-05-05T11:27:09.990" UserId="2355" />
  <row Id="2200" PostId="2409" Score="0" Text="Why are you trying to calculate the hash and not call the function directly?" CreationDate="2022-05-05T11:32:44.007" UserId="620" />
  <row Id="2201" PostId="2411" Score="0" Text="You are getting error from your pallet as per the error message and not from importing the pallet. So checkout your code inside pallet treasury. Or you can share your repo for more clarification." CreationDate="2022-05-05T11:39:02.907" UserId="351" />
  <row Id="2202" PostId="2411" Score="0" Text="i didn't change anything in pallet_treasury code, I only copied it, pasted in /pallet/sub-treasury and renamed as it should.&#xA;&#xA; I have this version: https://github.com/paritytech/substrate/tree/master/frame/treasury" CreationDate="2022-05-05T11:44:52.907" UserId="2355" />
  <row Id="2203" PostId="2411" Score="0" Text="yes but the errors are from sub_treasury pallet. So the treasury pallet is fine" CreationDate="2022-05-05T11:48:56.970" UserId="351" />
  <row Id="2204" PostId="2411" Score="0" Text="Yea but sub_treasury is the treasury pallet renamed renamed, if i let it be called treasury, i have the same error" CreationDate="2022-05-05T12:00:32.843" UserId="2355" />
  <row Id="2205" PostId="2411" Score="0" Text="can you point me to your repo (or is it closed source?)" CreationDate="2022-05-05T13:00:43.740" UserId="351" />
  <row Id="2206" PostId="2094" Score="0" Text="I see, thanks @Bruno. I'll rephrase it and create new tickets" CreationDate="2022-05-05T13:01:27.433" UserId="183" />
  <row Id="2207" PostId="2373" Score="0" Text="What local node are you using ?" CreationDate="2022-05-05T13:05:30.553" UserId="567" />
  <row Id="2208" PostId="2397" Score="0" Text="Thank you, Drew! Is 196 number of bytes? Do you know how to get this number from a block using polkadot js api?" CreationDate="2022-05-05T13:07:23.440" UserId="2485" />
  <row Id="2209" PostId="2417" Score="0" Text="How about enabling these as default in the client without the node operator setting this flag?" CreationDate="2022-05-05T13:19:23.997" UserId="28" />
  <row Id="2210" PostId="2411" Score="1" Text="sadly it's a closed source.&#xA;But i understood my problem, the treasury version i took was on master, and the version of substrate i was using was 0.9.16, so a different one. i just took the treasury code from polkadot-v0.9.16 branch on substrate, and now it's working just fine :)" CreationDate="2022-05-05T13:20:22.153" UserId="2355" />
  <row Id="2211" PostId="2417" Score="2" Text="I don't want to compile `rockdb` at all. Only use `parity-db`. Is that even possible? TIA." CreationDate="2022-05-05T13:32:05.823" UserId="205" />
  <row Id="2212" PostId="2399" Score="0" Text="Does `yarn dedupe` actually work for other people?  when I try it I get an error message that it isn't necessary (and it doesn't do anything): ```rogerbos@rogers-mbp pulse % yarn dedupe&#xA;yarn dedupe v1.22.18&#xA;warning ../../package.json: No license field&#xA;error The dedupe command isn't necessary. `yarn install` will already dedupe.&#xA;info Visit https://yarnpkg.com/en/docs/cli/dedupe for documentation about this command.```" CreationDate="2022-05-05T13:33:59.230" UserId="716" />
  <row Id="2213" PostId="2414" Score="0" Text="The problem was unmatching version. I'm accepting your answer because it clearly answer to the title question, but could you please note on your response to be careful of which version of the pallet we're taking, so people wont do the same mistake as me ? Thanks :D" CreationDate="2022-05-05T13:34:06.963" UserId="2355" />
  <row Id="2214" PostId="2417" Score="1" Text="Not compiling `rocksdb` is currently not possible. Would require some changes to the code.&#xA;&#xA;Regarding enabling it by default, yes that will come when paritydb is seen as 100% stable." CreationDate="2022-05-05T13:39:27.417" UserId="73" />
  <row Id="2215" PostId="2417" Score="0" Text="Thanks @bkchr, I'll update the question so it becomes useful then." CreationDate="2022-05-05T13:53:02.483" UserId="205" />
  <row Id="2216" PostId="2132" Score="0" Text="This is wrong. `NotCallable` is emitted when the address being called is not a contract at all." CreationDate="2022-05-05T15:46:40.927" UserId="16" />
  <row Id="2217" PostId="2049" Score="0" Text="There's quite a lot of documentation in the XCM pallet which should answer this comprehensively. See these two functions specifically:  https://github.com/paritytech/polkadot/blob/0a34022e31c85001f871bb4067b7d5f5cab91207/xcm/pallet-xcm/src/lib.rs#L508-L523 and https://github.com/paritytech/polkadot/blob/0a34022e31c85001f871bb4067b7d5f5cab91207/xcm/pallet-xcm/src/lib.rs#L716-L732 ." CreationDate="2022-05-05T17:31:06.207" UserId="53" />
  <row Id="2219" PostId="2395" Score="0" Text="It worked! Thank you!" CreationDate="2022-05-05T19:28:11.360" UserId="2485" />
  <row Id="2220" PostId="2408" Score="0" Text="What you mean by confirmation time?" CreationDate="2022-05-05T19:44:29.137" UserId="73" />
  <row Id="2221" PostId="2371" Score="0" Text="You could write a [script](https://docs.libp2p.io/tutorials/getting-started/javascript). [Here](https://docs.rs/libp2p/0.44.0/libp2p/tutorials/ping/index.html) is a Rust version." CreationDate="2022-05-05T20:50:22.917" UserId="29" />
  <row Id="2222" PostId="2426" Score="0" Text="Usually, we use custom error for our contract. But as you said, we may also receive `CalleeTrapped` as `Result::Err` also. So how do we combine that system error with the custom error of the contract in the function signature ` -&gt; Result&lt;&gt;`. Thanks @Alexander" CreationDate="2022-05-06T06:22:33.840" UserId="450" />
  <row Id="2223" PostId="2426" Score="0" Text="You don't receive `CallTrapped` if you return `Result::Err`. Only when you trap." CreationDate="2022-05-06T06:52:10.833" UserId="16" />
  <row Id="2224" PostId="2408" Score="0" Text="Time of successful transaction in the block" CreationDate="2022-05-06T06:52:24.797" UserId="2481" />
  <row Id="2226" PostId="2132" Score="0" Text="Both contracts were **definitely** deployed and I was receiving this message in the substrate debug when trying to perform a cross-contract call. `2022-05-04 13:41:19.688 DEBUG ThreadId(34) runtime::contracts: Execution finished with debug buffer: panicked at 'encountered error while calling External::external_function: NotCallable', /usr/local/cargo/git/checkouts/external-9b59cb28149dd121/c56b619/contracts/lib.rs:1046:9`. Deleting this cached version is what fixed it for me." CreationDate="2022-05-06T08:25:58.303" UserId="380" />
  <row Id="2227" PostId="2426" Score="0" Text="Sorry but what I mean is that is there any example that handle two cases `CallTrapped` and `Result::Err` for a cross-contract call. This is important because from the caller perspective, we never know what the callee will return. Thanks" CreationDate="2022-05-06T08:42:34.827" UserId="450" />
  <row Id="2228" PostId="2409" Score="0" Text="@joepetrowski I need the hash as func input [authorize_upgrade](https://paritytech.github.io/cumulus/cumulus_pallet_parachain_system/pallet/struct.Pallet.html#method.authorize_upgrade) to kickoff the upgrade." CreationDate="2022-05-06T09:12:00.973" UserId="1813" />
  <row Id="2229" PostId="843" Score="0" Text="It seems paras.forceSetCurrentCode on a relaychain is the solution." CreationDate="2022-05-06T11:30:07.047" UserId="530" />
  <row Id="2231" PostId="2431" Score="1" Text="Great suggestion.  I didn't want to mess with the resolutions myself because I don't know which version to use, but the suggestion to get them from Polkadot was helpful.  Note that I had to delete the node_modules and re-install to resolve other errors.  Thanks!" CreationDate="2022-05-06T13:06:24.620" UserId="716" />
  <row Id="2232" PostId="2424" Score="1" Text="I’m voting to close this question because this probably should be posted as an issue in Substrate repo." CreationDate="2022-05-06T13:08:28.173" UserId="45" />
  <row Id="2233" PostId="2435" Score="0" Text="It works with &quot;params&quot;: [null,0, 3, 5]" CreationDate="2022-05-06T13:13:47.287" UserId="213" />
  <row Id="2234" PostId="1801" Score="0" Text="I am not familiar with that code, but from the context it seems that &quot;The root of this&quot; refers to the child-trie. Since child-trie is a trie it has a merkle root. The root of a merkle trie can be used as an authorization of some data being in that trie." CreationDate="2022-05-06T13:32:25.450" UserId="45" />
  <row Id="2235" PostId="2426" Score="1" Text="I found the github issue of this. https://github.com/paritytech/ink/issues/1207. Thanks" CreationDate="2022-05-06T14:45:48.557" UserId="450" />
  <row Id="2236" PostId="2333" Score="0" Text="You can accept your own answer." CreationDate="2022-05-06T15:25:11.077" UserId="16" />
  <row Id="2238" PostId="2424" Score="0" Text="@pepyakin I have tried posting it in the node-template repo and it redirects me to stackexchange, check my update." CreationDate="2022-05-06T16:35:32.603" UserId="2494" />
  <row Id="2239" PostId="2424" Score="0" Text="Hey Lucian and sorry for this bad experience. This looks as a bug to me, that's why I figured it would be better off as an issue." CreationDate="2022-05-06T16:43:29.937" UserId="45" />
  <row Id="2240" PostId="2424" Score="0" Text="do you have any environment variables defined? How did you install Rust? Have you tried overriding the rust toolchain? what's the output of just `rustp show`, without +nightly?" CreationDate="2022-05-06T16:52:07.697" UserId="45" />
  <row Id="2242" PostId="2171" Score="0" Text="@ShawnTabrizi, is consensus from offchain workers necessary? Or if my validate_unsigned function checks the payload has been signed with an AuthorityID and that the source is local and doesn't propagate the validated transaction, can I assume that the call is not coming from some malicious node running a customised version of my offchain worker function?" CreationDate="2022-05-06T18:02:37.393" UserId="2136" />
  <row Id="2243" PostId="2290" Score="1" Text="Alright got it! We recently had a call with Phala and this issue was brought up again. The result is this GitHub ticket now: https://github.com/paritytech/substrate/issues/11367." CreationDate="2022-05-06T19:08:15.597" UserId="227" />
  <row Id="2244" PostId="2443" Score="0" Text="Try adding `--rpc-cors all`. If you are running in `--dev` mode the default is to allow all origins." CreationDate="2022-05-06T19:30:50.093" UserId="245" />
  <row Id="2245" PostId="2440" Score="0" Text="What does PoV stand for?" CreationDate="2022-05-06T19:33:30.720" UserId="245" />
  <row Id="2246" PostId="1779" Score="0" Text="I'm currently facing the same issue. What do you mean by &quot;fetching the latest version of substrate&quot;? Just include `sp-core = { version = &quot;6.0.0&quot;, default-features = false, git = &quot;https://github.com/paritytech/substrate.git&quot;, branch = &quot;polkadot-v0.9.19&quot; }` in `Cargo.toml` or what? I'm currently working on node template which I cloned on 9th of April" CreationDate="2022-05-06T19:43:59.427" UserId="2408" />
  <row Id="2247" PostId="2424" Score="0" Text="No worries, I think sorting out this issue will be beneficial for everyone starting out with substrate on mac silicon. I have updated my post with the `rustup show` output.&#xA;&#xA;On the same note, I don't have any rust specific env vars, the installation was done following the guide on https://docs.substrate.io/v3/getting-started/installation/" CreationDate="2022-05-06T21:00:38.360" UserId="2494" />
  <row Id="2248" PostId="2440" Score="2" Text="PoV stands for proof of validity. See more in https://medium.com/polkadot-network/polkadot-v1-0-sharding-and-economic-security-e03099b4fa81" CreationDate="2022-05-06T21:13:49.317" UserId="45" />
  <row Id="2249" PostId="2443" Score="2" Text="@Burak The `-rpc-cors all` worked, many thanks!" CreationDate="2022-05-06T21:22:40.917" UserId="2495" />
  <row Id="2250" PostId="2424" Score="0" Text="Sure, agreed. The thing is that I write this text from an M1 machine as well and the project builds well for me without any problem, hence the questions and thinking that it's a bug. I am not sure what is happening. Have you tried running `cargo clean`? Maybe reinstalling the parts/whole of the toolchain helps?" CreationDate="2022-05-06T23:14:26.520" UserId="45" />
  <row Id="2251" PostId="2423" Score="0" Text="As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-05-06T23:34:05.843" UserId="-1" />
  <row Id="2252" PostId="2444" Score="0" Text="Yes this is perfect." CreationDate="2022-05-07T02:12:47.120" UserId="450" />
  <row Id="2253" PostId="2409" Score="0" Text="How are you kicking off the upgrade? That is likely the problem, not `authorize_upgrade`." CreationDate="2022-05-07T06:01:12.223" UserId="620" />
  <row Id="2254" PostId="2424" Score="0" Text="Cleaning the project didn't help, I have also tried re-installing the toolchain without luck, is there a place in github I could open up an issue? I believe this thing deserves an indepth investigation." CreationDate="2022-05-07T11:44:49.443" UserId="2494" />
  <row Id="2255" PostId="2424" Score="0" Text="Can you check if the same happens when you are building https://github.com/paritytech/substrate ? If so, I'd leave it there." CreationDate="2022-05-07T12:07:24.657" UserId="45" />
  <row Id="2256" PostId="2424" Score="2" Text="I've found the issue, I had a previous installation of fleet lying around: https://github.com/dimensionhq/fleet it seems it was polluting the dependencies list somehow. Removed that and everything works as expected. Thanks!" CreationDate="2022-05-07T13:06:34.497" UserId="2494" />
  <row Id="2257" PostId="2449" Score="0" Text="thanks for the answer joe! can you clarify which DOT transfer will fail? the one that empties the account, or the one that brings it back to life?" CreationDate="2022-05-07T14:46:14.340" UserId="494" />
  <row Id="2261" PostId="2449" Score="0" Text="The one that empties it. An account cannot be killed when reference counters exist on the account." CreationDate="2022-05-07T18:54:49.887" UserId="28" />
  <row Id="2263" PostId="2412" Score="1" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-05-08T00:37:28.620" UserId="-1" />
  <row Id="2264" PostId="2452" Score="0" Text="As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-05-08T00:38:14.200" UserId="-1" />
  <row Id="2265" PostId="2409" Score="0" Text="1. `npx @polkadot/api-cli@beta --ws $provider --sudo --seed &quot;$phrase&quot; tx.parachainSystem.authorizeUpgrade $hash`; 2. `npx @polkadot/api-cli@beta --ws $provider --sudo --seed &quot;$phrase&quot; --params $wasm tx.parachainSystem.enactAuthorizedUpgrade`; with `$hash=0xdeadbeef..?` and `$wasm=./path/to/export-genesis-wasm-output`" CreationDate="2022-05-08T08:29:26.373" UserId="1813" />
  <row Id="2266" PostId="2434" Score="1" Text="what do you mean by 'on-chain data on pallet' and 'on-chain data on the pallet'? i think you mean you want to write code in the pallet implementation itself, such as in an extrinsic function or in `on_initialize` or `on_finalize` that will try to get transaction data by transaction hash that may have been stored in that pallet's storage and where the associated data was originally generated off-chain, and that on-chain data may not be trustful unless you accompany each storage item with a timestamp of when it was stored along with flagging missing data based on benchmarked response times" CreationDate="2022-05-08T10:54:35.003" UserId="83" />
  <row Id="2268" PostId="2463" Score="0" Text="Your TypeScript is not augmented, so it returns a default `Codec`. See this for the solution - https://polkadot.js.org/docs/api/FAQ#since-upgrading-to-the-7x-series-typescript-augmentation-is-missing" CreationDate="2022-05-09T05:03:49.627" UserId="627" />
  <row Id="2269" PostId="2434" Score="0" Text="Hi Luke, you are right. In my case, my node integrates Frontier and I want to implement the dispatchable function to get EVM transaction data by the transaction hash. What do you think is the appropriate solution to do that?" CreationDate="2022-05-09T05:03:53.197" UserId="515" />
  <row Id="2270" PostId="2437" Score="0" Text="Thank you, but what I want to know is. (get_external_by_id) if this is an RPC, which RPC is it?" CreationDate="2022-05-09T07:22:37.353" UserId="2481" />
  <row Id="2272" PostId="2470" Score="0" Text="Oooooh, i understand ! But why is there a need for a generic parameter within the pallet ? Is this a substrate syntax, or is it some rust dark magic ?" CreationDate="2022-05-09T09:22:01.473" UserId="2355" />
  <row Id="2273" PostId="2470" Score="0" Text="I'm guessing the FRAME macros that expand the pallet code into the runtime Wasm need the generic parameter, but would need one of the FRAME core guys like @shawntabrizi to help out more." CreationDate="2022-05-09T09:31:56.743" UserId="620" />
  <row Id="2274" PostId="2362" Score="0" Text="Then the RPC should be extended if your use-case is not possible rather than hacking with two terminals?" CreationDate="2022-05-09T09:32:01.677" UserId="94" />
  <row Id="2275" PostId="2460" Score="0" Text="Thanks for your detailed answer! Unfortunately, still stuck at the original question as the call data is just a derivative of the code hash - how did you calculate it?" CreationDate="2022-05-09T09:37:45.093" UserId="1813" />
  <row Id="2276" PostId="2362" Score="0" Text="Yes, you are correct, we can achieve this through RPC, but for now, I've added a check on the node startup logic to set the configurations." CreationDate="2022-05-09T09:40:25.367" UserId="429" />
  <row Id="2277" PostId="2473" Score="0" Text="Thank you, but if you use HTTP to request the RPC method. （api.query.timestamp.now.at(hash);） How to write this?" CreationDate="2022-05-09T09:41:24.973" UserId="2481" />
  <row Id="2278" PostId="2475" Score="0" Text="Ooooh i see ! and what are the consequences of using this macro ?" CreationDate="2022-05-09T09:59:28.080" UserId="2355" />
  <row Id="2279" PostId="2475" Score="3" Text="Its meant to make migration easier since most of the older pallets where written when this check did not exist. The consequence is that if you have no other checks in place, an attacker could store large data and bloat your chain state." CreationDate="2022-05-09T10:02:26.587" UserId="2366" />
  <row Id="2282" PostId="2475" Score="0" Text="Okay ! Thank you for the information :)" CreationDate="2022-05-09T12:25:05.033" UserId="2355" />
  <row Id="2285" PostId="2478" Score="1" Text="The latest frontier support EIP 1559 transaction by default. Is your frontier version too old?" CreationDate="2022-05-09T12:57:27.293" UserId="125" />
  <row Id="2286" PostId="2478" Score="0" Text="No we are using latest frontier https://github.com/AstarNetwork/Astar" CreationDate="2022-05-09T12:58:58.183" UserId="2478" />
  <row Id="2287" PostId="2478" Score="0" Text="What have you tried and what is the specific issue you are facing?" CreationDate="2022-05-09T13:06:16.213" UserId="28" />
  <row Id="2288" PostId="2478" Score="0" Text="We are getting error EIP 1559 transaction not supported in metamask which checks this based on latest block containing baseFeePerGas which is not being returned. We have tried Ethereum::migrate_block_v0_to_v2 https://github.com/AstarNetwork/Astar/pull/629/files" CreationDate="2022-05-09T13:20:48.737" UserId="2478" />
  <row Id="2289" PostId="2478" Score="0" Text="It is working for our collator with --dev flag but not on live network.  https://github.com/AstarNetwork/Astar" CreationDate="2022-05-09T13:23:19.567" UserId="2478" />
  <row Id="2290" PostId="2481" Score="0" Text="Ok !! everythings make sense now, thank you !" CreationDate="2022-05-09T13:32:28.327" UserId="2355" />
  <row Id="2292" PostId="2469" Score="5" Text="It sounds like you want to use a tool like [Substrate Sidecar](https://github.com/paritytech/substrate-api-sidecar) for what you are doing here. These properties are not easily accessible via RPC." CreationDate="2022-05-09T13:37:47.843" UserId="28" />
  <row Id="2293" PostId="2466" Score="0" Text="It sounds like you want to use a tool like [Substrate Sidecar](https://github.com/paritytech/substrate-api-sidecar) for what you are doing here. These properties are not easily accessible via RPC." CreationDate="2022-05-09T13:38:14.607" UserId="28" />
  <row Id="2294" PostId="2456" Score="0" Text="Try asking your question here: https://stackoverflow.com/questions/tagged/python" CreationDate="2022-05-09T13:46:03.050" UserId="28" />
  <row Id="2295" PostId="2460" Score="0" Text="Here's the PR that added the ability to the UI: https://github.com/polkadot-js/apps/pull/5226&#xA;&#xA;I'd consider adding it to the output of your builds, though. [SrTool](https://github.com/paritytech/srtool) for example gives you the blake256 hash when it builds the runtime." CreationDate="2022-05-09T14:49:40.137" UserId="620" />
  <row Id="2296" PostId="2460" Score="0" Text="Also added a feature request for the CLI: https://github.com/polkadot-js/tools/issues/376" CreationDate="2022-05-09T14:55:59.940" UserId="620" />
  <row Id="2297" PostId="2245" Score="0" Text="@Jaco At the start of the post you can see that I also tried that. Now im getting the same issue even when working with u64 instead of Vec&lt;u8&gt;. Im passing as &quot;params&quot;: [null, 1] and now it expects a sequence and not an integer :(" CreationDate="2022-05-09T15:06:37.920" UserId="2102" />
  <row Id="2298" PostId="2460" Score="0" Text="Thanks a ton for your profound support and follow-up. Really appreciate the `srtool` hint and `tools` PR &lt;3" CreationDate="2022-05-09T15:38:13.397" UserId="1813" />
  <row Id="2299" PostId="2443" Score="1" Text="@Burak - make it an answer for upvotes :)" CreationDate="2022-05-09T15:44:42.433" UserId="34" />
  <row Id="2300" PostId="2471" Score="0" Text="Can't believe I missed that! I modified the runtime to include that and my contract deploys successfully now." CreationDate="2022-05-09T16:27:38.120" UserId="543" />
  <row Id="2301" PostId="2437" Score="1" Text="I don't think so... But you can check all the available RPC methods using `curl -H &quot;Content-Type: application/json&quot; -d '{&quot;id&quot;:1, &quot;jsonrpc&quot;:&quot;2.0&quot;, &quot;method&quot;: &quot;rpc_methods&quot;}' https://kusama-rpc.polkadot.io`. And https://polkadot.js.org/docs/substrate/rpc/" CreationDate="2022-05-09T17:31:28.733" UserId="14" />
  <row Id="2302" PostId="2473" Score="0" Text="You mean wirh Curl? You probably would need to calculate the storage hash. There is an explanation here: https://www.shawntabrizi.com/substrate/querying-substrate-storage-via-rpc/" CreationDate="2022-05-09T19:26:32.733" UserId="94" />
  <row Id="2303" PostId="1995" Score="0" Text="Hey, sorry I didn't update for a while. I just left it exposed for testing. I was using ufw but not blocking port 9944. Currently I'm migrating to a k8s setup with multiple ksm nodes being proxied by an nginx server, so that should be better." CreationDate="2022-05-10T00:07:31.267" UserId="2376" />
  <row Id="2304" PostId="2245" Score="0" Text="If you pass an encoded `Bytes`, you need to pass it explicitly quoted since it is a string, not a number. So this `&quot;0x31323334333231&quot;` is correct, this `0x31323334333231` is not. (This is why the node error refers to &quot;hex string&quot;)" CreationDate="2022-05-10T05:13:08.073" UserId="627" />
  <row Id="2305" PostId="1297" Score="0" Text="Thank you adjusted. (Copied from above, so didn't check properly)" CreationDate="2022-05-10T05:59:26.713" UserId="627" />
  <row Id="2306" PostId="2495" Score="0" Text="Have you considered updating you Polkadot client?" CreationDate="2022-05-10T07:07:17.663" UserId="94" />
  <row Id="2307" PostId="2494" Score="0" Text="Why do I use HTTP to request the RPC method getblock. Don't you see the return message (timestamp. Now)?" CreationDate="2022-05-10T08:30:35.940" UserId="2481" />
  <row Id="2308" PostId="2482" Score="0" Text="Why do I use HTTP to request the RPC method getblock. Don't you see the return message (timestamp. Now)?" CreationDate="2022-05-10T08:30:45.577" UserId="2481" />
  <row Id="2309" PostId="2494" Score="1" Text="As explained above, it is an extrinsic. So the extrinsic for the `timestamp.set` call will have the information. (On relay-chains this is generally the first , but obviously could change in order). The decoded extrinsic will have the information, i.e. the decoded part of the extrinsics key in the block." CreationDate="2022-05-10T09:36:51.090" UserId="627" />
  <row Id="2310" PostId="549" Score="0" Text="It solved my problem, thx." CreationDate="2022-05-10T11:25:44.723" UserId="393" />
  <row Id="2311" PostId="2171" Score="0" Text="When you verify the signature in the runtime, it is fine. However, you don't need to check the source, not sure what this should bring." CreationDate="2022-05-10T11:42:16.043" UserId="73" />
  <row Id="2312" PostId="2504" Score="1" Text="Run the tutorials first and try to understand what is going on. 2 focus on the errors from the compiler, edit this post and include the errors." CreationDate="2022-05-10T13:12:43.127" UserId="116" />
  <row Id="2313" PostId="2503" Score="1" Text="As @drahnr mention ZombieNet will add some cli flags needed to work (like ports) but also will make some customization in the chain-spec (e.g. set the validators keys). Can your chain-spec (rococo-custom-2-raw.json) be generated in plain format by the collator? If not you can use the `chain_spec_path` to use the pre-generated one but you will need more configurations in the nodes.&#xA;Thanks!" CreationDate="2022-05-10T13:39:19.790" UserId="279" />
  <row Id="2314" PostId="2504" Score="1" Text="I recommend NOT to use the old `decl_*!` syntax, and instead use the newest attribute macros in FRAME v2. Otherwise, yes, you need to post information about the errors you are facing." CreationDate="2022-05-10T18:15:23.133" UserId="28" />
  <row Id="2315" PostId="2508" Score="1" Text="curl `rpc_methods` will show you all calls exposed by the node. `contractInfoOf` is a state call, e.g. the correct storage key to `stage_getStorage`" CreationDate="2022-05-10T18:25:45.823" UserId="627" />
  <row Id="2316" PostId="2508" Score="0" Text="Thanks, Jaco. Very helpful." CreationDate="2022-05-10T18:32:14.913" UserId="380" />
  <row Id="2317" PostId="2487" Score="0" Text="Thank you Dan. And off topic, since you were kind and answered: I can't find if there is a way of running the node with a 0 block time, in order to test pallets without worrying about consensus delays. Do you know? Thank you." CreationDate="2022-05-10T18:34:46.757" UserId="2505" />
  <row Id="2318" PostId="2508" Score="0" Text="Is the storage key the encoded contract address? e.g. `u8aToHex(decodeAddress(&quot;5CYKEXWU3L4zWregopd2bTjoZLH9yHBpfXaqkFaTfxacaSA1&quot;))`" CreationDate="2022-05-10T19:07:40.240" UserId="380" />
  <row Id="2319" PostId="2499" Score="0" Text="As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-05-11T03:44:24.273" UserId="-1" />
  <row Id="2320" PostId="2498" Score="1" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-05-11T03:44:48.000" UserId="-1" />
  <row Id="2321" PostId="2511" Score="0" Text="Hi Thank you. is there a guide on how to add this `adder-collator` in my image?" CreationDate="2022-05-11T04:39:54.637" UserId="1789" />
  <row Id="2322" PostId="2494" Score="0" Text="I don't understand. Can you be more specific? I also know that it needs to be parsed, but what exactly? How to analyze? Through what analysis?" CreationDate="2022-05-11T06:42:43.237" UserId="2481" />
  <row Id="2323" PostId="2437" Score="0" Text="What's your answer? What's the use of all the RPC methods you gave me? What I want is which RPC is used at the bottom? bottom! Do you understand?" CreationDate="2022-05-11T06:46:53.750" UserId="2481" />
  <row Id="2325" PostId="2511" Score="0" Text="how to build an image with adder-collator? Please have a look here: https://substrate.stackexchange.com/questions/2523/zombienet-how-to-build-a-docker-image-with-my-parachain-and-adder-collator-bina" CreationDate="2022-05-11T07:18:10.993" UserId="1789" />
  <row Id="2326" PostId="2437" Score="0" Text="Like I said, I don't think that there is a single RPC method to fetch an extrinsic data. You'll have to fetch the whole block data (`chain_getBlock`) and then decode its content to get what you want. Do you understand?" CreationDate="2022-05-11T08:28:33.287" UserId="14" />
  <row Id="2327" PostId="2524" Score="0" Text="If you try without all the basepaths then it will run the chains in --dev mode forcing it to start fresh each time (or you could try deleting /tmp/polkadot-launch ). It can take a while for the parachain to mount onto the relay chain. Is there anything in the 9988.log that gives any hints?" CreationDate="2022-05-11T08:32:05.253" UserId="85" />
  <row Id="2328" PostId="2524" Score="0" Text="thanks for the hints. afaik we rm `/tmp/polkadot-launch`. so will  try new random paths. yeah, just found it takes up to 3 minutes get blocks produced on our parachain.  waited statemine too - not helped. will try to read log." CreationDate="2022-05-11T08:44:15.393" UserId="484" />
  <row Id="2329" PostId="2494" Score="1" Text="Decode the extrinsics in the block. Those retrieved as part of the extrinsics array in your screenshot. One of those decoded extrinsics would be timestamp.set - it would most probably be the first extrinsic if from a relay chain, i.e. [0x280402000b919bbc3b8001](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama-rpc.dwellir.com#/extrinsics/decode/0x280402000b919bbc3b8001). From this decoded extrinsic, get the first argument to this function - it is the `Compact&lt;u64&gt;` that denotes the miliseconds." CreationDate="2022-05-11T08:53:19.313" UserId="627" />
  <row Id="2330" PostId="2508" Score="2" Text="It is encoded using the hasher for the map. One of the examples that show the key I can think of is the apps UI chain-state app, e.g. [Canvas on Rococo](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frococo-canvas-rpc.polkadot.io#/chainstate) has contracts, so if you navigate in that app to contracts.contractInfoOf you can see how the key is generated in the details below." CreationDate="2022-05-11T09:56:53.133" UserId="627" />
  <row Id="2331" PostId="2494" Score="0" Text="You only told me the way, but didn't say the specific way? What do you use to analyze?" CreationDate="2022-05-11T10:03:03.123" UserId="2481" />
  <row Id="2332" PostId="2494" Score="0" Text="What method is used to parse this data?" CreationDate="2022-05-11T10:03:37.623" UserId="2481" />
  <row Id="2333" PostId="2494" Score="0" Text="Can you show me the screenshot of the way you analyze the data" CreationDate="2022-05-11T10:05:14.127" UserId="2481" />
  <row Id="2334" PostId="2494" Score="0" Text="It is SCALE-encoded, as per the metadata. Substrate uses this encoding extensively. See these SO questions for background on what that is - https://substrate.stackexchange.com/questions/277/why-do-i-need-to-use-scale-codec/302#302 &amp; https://substrate.stackexchange.com/questions/201/how-to-decode-extrinsic-at-json-rpc-calls-databyte-code/203#203 If you don't have a SCALE decoder for storage or extrinsics, then I would really suggest you follow the advice elsewhere and use sidecar which does the decoding on your behalf and provides simple endpoints to access it." CreationDate="2022-05-11T10:22:39.143" UserId="627" />
  <row Id="2335" PostId="1995" Score="0" Text="How often do you connecting via WS? Are you closing the connections or keeping the open?" CreationDate="2022-05-11T10:44:46.667" UserId="94" />
  <row Id="2336" PostId="2511" Score="1" Text="Hi, I just answered in the issue and the SE question. Thanks!!" CreationDate="2022-05-11T10:50:51.390" UserId="279" />
  <row Id="2340" PostId="2525" Score="0" Text="Resolved  after updating the version below two crates as&#xA;ethereum = { version = &quot;0.12&quot;, default-features = false, features = [&quot;with-codec&quot;] }&#xA;ethereum-types = { version = &quot;0.13.1&quot;, default-features = false, features = [&quot;rlp&quot;, &quot;codec&quot;] }" CreationDate="2022-05-11T12:19:48.690" UserId="2033" />
  <row Id="2341" PostId="2525" Score="0" Text="can you please add this as the answer?" CreationDate="2022-05-11T12:38:48.747" UserId="29" />
  <row Id="2345" PostId="2538" Score="5" Text="The wiki also has an entry on this - https://wiki.polkadot.network/docs/build-protocol-info#unique-identifiers-for-extrinsics" CreationDate="2022-05-11T13:14:10.840" UserId="627" />
  <row Id="2347" PostId="2537" Score="3" Text="There is too little information here. Please state what reserve chain you are attempting to use, the full XCM you are sending, what chain you are sending from, what chain you expect to be credited, the XCM config on the reserve chain (unless it is one of those in the Polkadot/Cumulus codebase), the XCM config of the final destination chain." CreationDate="2022-05-11T14:01:35.893" UserId="53" />
  <row Id="2348" PostId="2537" Score="0" Text="Apologies for the missing information.&#xA;The issue has been resolved.&#xA;Will keep this in mind next time. Thank you." CreationDate="2022-05-11T14:10:27.880" UserId="522" />
  <row Id="2349" PostId="2528" Score="0" Text="Do I have to add this adder-collator to my parachain repo??? I didn't have it but I can run my parachain locally with 2 relay chain nodes... I am confused!" CreationDate="2022-05-11T14:10:34.063" UserId="1789" />
  <row Id="2350" PostId="2528" Score="0" Text="If I need it to run the ZombieNet test, Okay! Did you mean to run that command above in Polkadot repo, get the adder-collator binary, then copy &amp; paste it into my parachain repo, then make a docker image for the Zombienet tests? Thanks" CreationDate="2022-05-11T14:12:19.257" UserId="1789" />
  <row Id="2351" PostId="2524" Score="0" Text="ok. added logs. blocks are not produced. peers are initialized so. not sure why there is no nominators. may be given small amount of nodes and local chain they are not needed. i have made all up to 5 nodes on relay. and tried 2-3 nodes of statemine." CreationDate="2022-05-11T15:25:24.620" UserId="484" />
  <row Id="2352" PostId="2524" Score="0" Text="may be it relates to special parent to child relation of relay to statemine." CreationDate="2022-05-11T15:57:44.020" UserId="484" />
  <row Id="2353" PostId="1995" Score="0" Text="I've got an app with a constant connection as well as clients who can connect from local html/js app. From the app I'm only calling `new WsProvider(wsUrl || 'ws://127.0.0.1:9944')` once. From the client, shouldn't it disconnect on window close?" CreationDate="2022-05-11T16:22:49.267" UserId="2376" />
  <row Id="2354" PostId="2486" Score="0" Text="&quot;run a contract as a mock&quot; doesn't look like a well defined term to me. Can you please elaborate what you mean? I posted an answer on how you could run some integration tests." CreationDate="2022-05-11T18:03:29.530" UserId="16" />
  <row Id="2355" PostId="2378" Score="0" Text="Have you checked out the [delegator example](https://github.com/paritytech/ink/tree/master/examples/delegator)?" CreationDate="2022-05-11T18:05:24.127" UserId="16" />
  <row Id="2356" PostId="2528" Score="0" Text="Hi, does your parachain repo compile a custom collator? Is this repo based on the available `template`(https://github.com/substrate-developer-hub/substrate-parachain-template)? Also, if you can share your repo I can check the needed config.&#xA;Thanks!" CreationDate="2022-05-11T19:01:00.730" UserId="279" />
  <row Id="2357" PostId="2486" Score="0" Text="I mean have a mocked/fake contract in JavaScript without running any code in rust. Essentially having a mirror of the contract but in JavaScript/TypeScript. I realise that the wasm probably can't be repurposed for this but you never know. I see there are contract [tests in polkadot-js](https://github.com/polkadot-js/api/tree/master/packages/api-contract/src/test/compare) but I'm not sure how they function." CreationDate="2022-05-11T20:22:21.290" UserId="380" />
  <row Id="2358" PostId="2483" Score="0" Text="can you modify the post so that it focuses on **one** question?" CreationDate="2022-05-11T20:26:15.317" UserId="29" />
  <row Id="2359" PostId="2486" Score="0" Text="You want to rewrite the contract in javascript?" CreationDate="2022-05-11T22:21:40.860" UserId="16" />
  <row Id="2360" PostId="2528" Score="0" Text="Yes, mine is based on substrate parachain template" CreationDate="2022-05-12T04:09:39.923" UserId="1789" />
  <row Id="2361" PostId="2503" Score="0" Text="Thank you so much!" CreationDate="2022-05-12T04:39:38.470" UserId="1789" />
  <row Id="2362" PostId="2494" Score="0" Text="I'm ashamed of which method I want to use to get the data" CreationDate="2022-05-12T06:15:14.950" UserId="2481" />
  <row Id="2363" PostId="2494" Score="0" Text="def existing = &quot;xxxxxxx&quot;&#xA;        ExtrinsicReader&lt;BalanceTransfer&gt; reader = new ExtrinsicReader&lt;&gt;(&#xA;                new BalanceTransferReader(SS58Type.Network.CANARY),&#xA;                SS58Type.Network.CANARY&#xA;        )&#xA;        when:&#xA;        def rdr = new ScaleCodecReader(Hex.decodeHex(existing))&#xA;        def act = reader.read(rdr)" CreationDate="2022-05-12T06:16:54.853" UserId="2481" />
  <row Id="2364" PostId="2494" Score="0" Text="Extrasic is parsed in this way, but there is no time in it?" CreationDate="2022-05-12T06:17:10.660" UserId="2481" />
  <row Id="2365" PostId="2494" Score="0" Text="Do you have Skype as a chat tool? This is my account number- charlie@outlook.com ）, can you add my friends to guide me?" CreationDate="2022-05-12T06:19:56.767" UserId="2481" />
  <row Id="2366" PostId="2494" Score="0" Text="Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/136244/discussion-between-andy-and-jaco)." CreationDate="2022-05-12T06:38:18.513" UserId="2481" />
  <row Id="2367" PostId="2437" Score="0" Text="I know it needs to be parsed, but you write (get_external_by_id) this is just a method name! What is in this method? This is what I want!" CreationDate="2022-05-12T06:49:56.433" UserId="2481" />
  <row Id="2368" PostId="2437" Score="0" Text="How did you decode it? Through what classes? What method? How? How to write specifically?" CreationDate="2022-05-12T06:51:23.397" UserId="2481" />
  <row Id="2369" PostId="2540" Score="0" Text="Was it clear that this was the case? Specific error messages are key to usability." CreationDate="2022-05-12T07:08:23.003" UserId="85" />
  <row Id="2371" PostId="2437" Score="0" Text="Sorry but I don't have time to do that work for you. Like I wrote in this comment, you'd be better using some of the available libraries (JS or Python, in my example) to get what you want. I did not write `get_external_by_id` and wrote `get_extrinsic_by_id` and also its content to help you in some directions." CreationDate="2022-05-12T08:21:31.867" UserId="14" />
  <row Id="2372" PostId="2503" Score="0" Text="To give a bit more context: `docker-compose` as toy deployment tool and serves a different purpose than what a more tailored integration testing tool does. The integration tool makes some assumptions about the binaries deployed. It's not meant as a replacement or general purpose tool. It's sole purpose is to simplify the deployments of ad-hoc test networks and have per node assertion integrations." CreationDate="2022-05-12T08:59:23.543" UserId="1861" />
  <row Id="2373" PostId="2437" Score="0" Text="It doesn't help me! I knew all you said. I just don't know the specific method. But thank you, too" CreationDate="2022-05-12T09:07:25.453" UserId="2481" />
  <row Id="2374" PostId="2494" Score="0" Text="Ask another question, how to get the result of each transaction?" CreationDate="2022-05-12T09:42:24.520" UserId="2481" />
  <row Id="2375" PostId="2558" Score="0" Text="Thanks for the insightful answer. I guess if we want to avoid having the native tx always having a higher priority over EVM or vice versa, reverse engineering and creating a universal fee/tip calculator is the best solution. Adding the tip by 1 is the solution we were using now, but understanding when to increment it again was the challenge since at some point the queue will fill up with 1 tip" CreationDate="2022-05-12T11:49:05.890" UserId="693" />
  <row Id="2376" PostId="2562" Score="1" Text="You can check this answer:&#xA;https://substrate.stackexchange.com/questions/863/how-to-return-the-whole-mapping-from-a-contract-method" CreationDate="2022-05-12T12:46:02.270" UserId="567" />
  <row Id="2377" PostId="1128" Score="0" Text="I love the initiative... But I don't know if this stack exchange should be used for more social and opinion based lost s like this... We likely should use this to open a new meta post to discus" CreationDate="2022-05-12T12:46:40.640" UserId="34" />
  <row Id="2378" PostId="2550" Score="0" Text="Big fan. Not super frequent though." CreationDate="2022-05-12T12:47:03.390" UserId="34" />
  <row Id="2379" PostId="1128" Score="0" Text="See this discussion on Meta: [Should we encourage or discourage social &amp; community focused questions?](https://substrate.meta.stackexchange.com/questions/118/should-we-encourage-or-discourage-social-community-focused-questions/)" CreationDate="2022-05-12T12:58:32.430" UserId="34" />
  <row Id="2380" PostId="2562" Score="1" Text="Vec is heap-allocated, what if I have a really large collection?" CreationDate="2022-05-12T12:58:49.857" UserId="425" />
  <row Id="2381" PostId="1129" Score="0" Text="Any specific episode you like most? Why?" CreationDate="2022-05-12T12:58:52.107" UserId="34" />
  <row Id="2383" PostId="2556" Score="1" Text="Do note that the careers page is maintained by Parity and at least at the time of writing is mostly confined to posts from Parity, Web3, and those in the https://substrate.io/ecosystem/substrate-builders-program/ run by Parity." CreationDate="2022-05-12T13:05:05.937" UserId="34" />
  <row Id="2384" PostId="2549" Score="0" Text="Would you consider hackathons as a &quot;website&quot; to find jobs? If not, might we edit this post to be more broad at generally best ways to find a position? This could include other learning resources and things listed in https://substrate.io/ecosystem/square-one/ for example" CreationDate="2022-05-12T13:07:10.170" UserId="34" />
  <row Id="2385" PostId="2561" Score="0" Text="Could you pass the required information back in the function responses? AFAIK there is no way to capture events emitted by a callee contract." CreationDate="2022-05-12T13:08:58.147" UserId="380" />
  <row Id="2386" PostId="2561" Score="0" Text="@forgetso&#xA;You mean to return the values, that I want to emit, from the inner function to the outer contract and then emit the event from the outer contract, right?&#xA;That's one approach, yup, but I was wondering if there is an other way of doing it" CreationDate="2022-05-12T13:18:25.150" UserId="2338" />
  <row Id="2387" PostId="2561" Score="0" Text="That's what I meant, yes. I know it's a pain. Although currently I'm [not sure you'd even be able to emit the event in the calling contract due to this bug](https://github.com/paritytech/ink/issues/1000)" CreationDate="2022-05-12T13:54:33.740" UserId="380" />
  <row Id="2388" PostId="2560" Score="0" Text="Thank you. I used that command and found parachain id value is fixed!?? please have a look: https://substrate.stackexchange.com/questions/2565/zombienet-test-fails-after-changing-parachain-id" CreationDate="2022-05-12T14:12:06.010" UserId="1789" />
  <row Id="2389" PostId="2512" Score="0" Text="Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." CreationDate="2022-05-12T14:22:11.593" UserId="-1" />
  <row Id="2390" PostId="2494" Score="0" Text="public static void main(String[] args) {&#xA;        UInt32Reader reader = new UInt32Reader();&#xA;&#xA;        String str = &quot;0x280402000b919bbc3b8001&quot;;&#xA;        String replace = str.replace(&quot;0x&quot;, &quot;&quot;);&#xA;        ByteData readA = ByteData.from(replace);&#xA;&#xA;        ScaleCodecReader codec = new ScaleCodecReader(readA.getBytes());&#xA;        codec.hasNext();&#xA;        Long read = codec.read(reader);&#xA;        System.out.println(read);&#xA;&#xA;&#xA;    }" CreationDate="2022-05-12T15:16:17.450" UserId="2481" />
  <row Id="2391" PostId="2494" Score="0" Text="I tried to analyze it like this, but the result was not correct. Is it wrong?" CreationDate="2022-05-12T15:16:37.260" UserId="2481" />
  <row Id="2392" PostId="2483" Score="0" Text="thanks, but i think these question are closely connected" CreationDate="2022-05-12T15:48:20.400" UserId="489" />
  <row Id="2393" PostId="2566" Score="1" Text="As @drahnr says you need to provide the parachain-id through the cli, I just put a working config and test for parachain-2000 in the gh issue (https://github.com/paritytech/zombienet/issues/193#issuecomment-1125314298).&#xA;Thanks!" CreationDate="2022-05-12T18:48:06.937" UserId="279" />
  <row Id="2394" PostId="2567" Score="0" Text="This is because it is an [instantiable pallet](https://paritytech.github.io/substrate/latest/frame_support/attr.pallet.html#example-for-pallet-with-instance). Some pallets, like the assets pallet, allow for multiple instances of the same pallet." CreationDate="2022-05-12T20:25:18.660" UserId="29" />
  <row Id="2395" PostId="2567" Score="1" Text="@Mrisho, If you want to help this site, please put the effort to put appropriate tags on your questions. `[substrate-node]` tag on this question is not helpful or appropriate." CreationDate="2022-05-12T20:42:35.210" UserId="28" />
  <row Id="2396" PostId="2573" Score="0" Text="Thanks, for clarity, there is currently no validation on the size of the extrinsic? So if my transaction takes a vector as param `Vec&lt;u8&gt;` there is nothing limiting the size?&#xA;In short, a single transaction can take the whole block size?" CreationDate="2022-05-12T22:16:10.737" UserId="590" />
  <row Id="2397" PostId="2573" Score="1" Text="I think so, but users are also paying a &quot;per byte fee&quot;. So it is not cheap at all to submit large transactions like this. Would be basically the same cost as submitting 100 transactions which fill up the block..." CreationDate="2022-05-12T23:06:02.817" UserId="28" />
  <row Id="2398" PostId="2557" Score="1" Text="Can you provide a link to the github repo with your changes? It is hard to debug your error with knowing what changes you have made." CreationDate="2022-05-12T23:19:13.430" UserId="29" />
  <row Id="2400" PostId="2557" Score="1" Text="Please provide more details about the changes you made which led to these errors." CreationDate="2022-05-12T23:29:04.200" UserId="28" />
  <row Id="2401" PostId="2545" Score="0" Text="Next time please provide the associated error message. Thanks!" CreationDate="2022-05-13T00:23:52.483" UserId="29" />
  <row Id="2402" PostId="2566" Score="0" Text="I see to add `args = [&quot;--parachain-id 2000&quot;]` Thank you!" CreationDate="2022-05-13T03:46:00.277" UserId="1789" />
  <row Id="2403" PostId="2575" Score="0" Text="!!the answer you give is so bad" CreationDate="2022-05-13T04:01:28.163" UserId="2529" />
  <row Id="2404" PostId="2545" Score="0" Text="well. ````api.tx.uniques.setAttribute(classId, null,&quot;Link&quot;,&quot;https://cloudflare-ipfs.com/ipfs/QmRdpVRCLxN51vNnYCRr2is1w6UVpT3mR8YDov9ktPmKub&quot;), // this tx will crash&#xA;```` this line will crash in rust" CreationDate="2022-05-13T04:03:58.003" UserId="2529" />
  <row Id="2408" PostId="2583" Score="0" Text="Hi @Russo, how you create your image? Can you share the Dockerfile and some logs from the collator?" CreationDate="2022-05-13T10:00:13.030" UserId="279" />
  <row Id="2410" PostId="2545" Score="1" Text="It is crashing because you are hitting the [`ValueLimit`](https://github.com/paritytech/cumulus/blob/master/polkadot-parachains/westmint/src/lib.rs#L498)." CreationDate="2022-05-13T00:22:57.607" UserId="29" />
  <row Id="2412" PostId="2378" Score="0" Text="I think it's not suitable for my situation. I think the `delegator example` is suitable for 'static' scenarios. But anyway, I have solved the problem. Thank you all the same." CreationDate="2022-05-13T14:12:06.227" UserId="2417" />
  <row Id="2413" PostId="2590" Score="0" Text="Oh, thank you! Maybe a feature can be added that controls it at compile time. I can open a PR if that seems reasonable to you." CreationDate="2022-05-13T14:55:39.320" UserId="2534" />
  <row Id="2416" PostId="1995" Score="0" Text="If it helps you need to check if you have a health check running, sometimes that causes an influx of connection requests which overloads your connection limit&#xA;&#xA;I am not sure closing the window disconnects the connection, perhaps someone else can confirm" CreationDate="2022-05-13T18:44:15.370" UserId="18" />
  <row Id="2417" PostId="2590" Score="0" Text="Yes please open a PR and mention chain extensions there." CreationDate="2022-05-13T21:30:40.060" UserId="16" />
  <row Id="2418" PostId="2378" Score="0" Text="You can post an answer and accept it yourself it this case." CreationDate="2022-05-13T21:31:49.290" UserId="16" />
  <row Id="2419" PostId="2587" Score="2" Text="I suggest you start learning about &quot;Trait&quot; and &quot;impl Trait&quot; first, before moving into FRAME:&#xA;&#xA;https://doc.rust-lang.org/rust-by-example/trait.html&#xA;,&#xA;https://doc.rust-lang.org/rust-by-example/trait/impl_trait.html" CreationDate="2022-05-13T23:59:14.580" UserId="205" />
  <row Id="2421" PostId="2488" Score="0" Text="Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." CreationDate="2022-05-14T01:45:55.083" UserId="-1" />
  <row Id="2422" PostId="2557" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-05-14T01:46:24.920" UserId="-1" />
  <row Id="2423" PostId="2604" Score="0" Text="Thanks Shawn. Very informative." CreationDate="2022-05-14T05:17:28.237" UserId="373" />
  <row Id="2425" PostId="2520" Score="0" Text="Thanks, that was extremely helpful, I got it working now!" CreationDate="2022-05-14T18:09:55.733" UserId="1792" />
  <row Id="2426" PostId="260" Score="1" Text="Thanks for pointing this out! I just tried your suggestion and it works just fine without the rest of the compiled artifact. This really slims down the final image" CreationDate="2022-05-14T21:48:20.157" UserId="88" />
  <row Id="2427" PostId="2596" Score="0" Text="Thank you Shawn. your tutorial is awesome" CreationDate="2022-05-15T02:05:44.743" UserId="576" />
  <row Id="2428" PostId="2595" Score="0" Text="Thank you Mrisho" CreationDate="2022-05-15T02:06:23.443" UserId="576" />
  <row Id="2429" PostId="2489" Score="0" Text="Thank you so much. I think we can use https://polkadot.js.org/docs/ to generate/sign a transaction." CreationDate="2022-05-15T14:56:41.067" UserId="2519" />
  <row Id="2430" PostId="2549" Score="0" Text="I wouldn't have considered going to a hackathon to find a job, but that's the great thing about asking the question - if it's a way that roles are filled then going to hackathons is a great and fun answer." CreationDate="2022-05-15T16:28:38.073" UserId="85" />
  <row Id="2431" PostId="307" Score="1" Text="should never unwrap in the runtime." CreationDate="2022-05-15T18:22:07.600" UserId="28" />
  <row Id="2432" PostId="2446" Score="0" Text="Your implementation is way more straightforward than other ones, IMHO. I migrated this to Dart and it works great! The only failing test is `-100_i8`. I'll investigate further once I got my coffee :)" CreationDate="2022-05-16T00:05:16.570" UserId="245" />
  <row Id="2434" PostId="2618" Score="0" Text="wow this works like a charm! do you have any reference or link where this is explained as you did?" CreationDate="2022-05-16T03:22:16.893" UserId="2394" />
  <row Id="2435" PostId="2531" Score="3" Text="Indeed, it seems the issue here is that the bounties pallet is not instantiate, which is blocking having multiple treasuries with bounties. Otherwise, if you dont have bounties for the second instance, it should work fine, even with just one balance." CreationDate="2022-05-16T03:24:39.327" UserId="28" />
  <row Id="2436" PostId="2531" Score="2" Text="Tracking issue here: https://github.com/paritytech/substrate/issues/11421" CreationDate="2022-05-16T03:27:14.813" UserId="28" />
  <row Id="2437" PostId="2615" Score="2" Text="This is fixed by following the answer [here](https://substrate.stackexchange.com/questions/2613/ink-cannot-derive-spreadlayout-and-spreadallocate-for-simple-struct-and-enum)" CreationDate="2022-05-16T03:29:20.847" UserId="2394" />
  <row Id="2438" PostId="2557" Score="0" Text="@Bruno https://github.com/Amit22antier/Node-template-consensus.git" CreationDate="2022-05-16T06:02:03.647" UserId="2281" />
  <row Id="2441" PostId="2557" Score="0" Text="https://github.com/Amit22antier/Node-template-consensus @ShawnTabrizi" CreationDate="2022-05-16T06:16:22.863" UserId="2281" />
  <row Id="2443" PostId="2626" Score="0" Text="Thanks, changing the type of AccountId in my mock runtime worked :)" CreationDate="2022-05-16T08:09:17.420" UserId="2355" />
  <row Id="2446" PostId="2628" Score="0" Text="What is the value of `asset_id` in your script?" CreationDate="2022-05-16T09:23:38.787" UserId="380" />
  <row Id="2447" PostId="2628" Score="0" Text="@forgetso It's a type of pallet_assets::AssetId, for example:&#xA;&#xA;`let roc_id: &lt;T as pallet_assets::Config&gt;::AssetId = 0u32.into();`" CreationDate="2022-05-16T09:25:38.990" UserId="2246" />
  <row Id="2448" PostId="2145" Score="0" Text="I think once you've decoded the scale, then you have to decode it on the eth side. I'm guessing that https://github.com/rust-ethereum/ethabi should be able to do it though have not tried this out yet." CreationDate="2022-05-16T09:58:09.390" UserId="85" />
  <row Id="2449" PostId="2623" Score="0" Text="I think a [bridge](https://wiki.polkadot.network/docs/learn-bridges#ethereum-bridge-smart-contracts--polkadot) is the planned way for polkadot to communicate with ethereum." CreationDate="2022-05-16T10:05:06.163" UserId="380" />
  <row Id="2450" PostId="2628" Score="0" Text="Can you please share the code where you are defining your storage?" CreationDate="2022-05-16T11:00:50.557" UserId="429" />
  <row Id="2451" PostId="2628" Score="0" Text="@PawanBisht Here is the [storage definition](https://github.com/Phala-Network/khala-parachain/blob/62737d6d31cc49b6f1aac7ffd58a116173143c4a/pallets/assets-registry/src/lib.rs#L194), and here is the [migration script](https://github.com/Phala-Network/khala-parachain/blob/62737d6d31cc49b6f1aac7ffd58a116173143c4a/pallets/assets-registry/src/migration.rs#L33)." CreationDate="2022-05-16T11:33:13.967" UserId="2246" />
  <row Id="2452" PostId="2566" Score="0" Text="See also https://github.com/paritytech/zombienet/issues/203" CreationDate="2022-05-16T13:17:09.527" UserId="1861" />
  <row Id="2454" PostId="2638" Score="1" Text="Excellent news. Much appreciated that you're making it easier for cross-chain explorers to show what's going on." CreationDate="2022-05-16T13:47:11.453" UserId="85" />
  <row Id="2455" PostId="2583" Score="1" Text="Hi @Russo, can you update your Dockerfile to expose the default ports `30333 9933 9944`? Thanks!" CreationDate="2022-05-16T14:29:38.677" UserId="279" />
  <row Id="2456" PostId="2628" Score="0" Text="Are you importing your pallet for accessing the storage?" CreationDate="2022-05-16T14:32:18.567" UserId="429" />
  <row Id="2457" PostId="2628" Score="0" Text="Or what error you are getting?" CreationDate="2022-05-16T14:40:07.653" UserId="429" />
  <row Id="2459" PostId="2634" Score="0" Text="What do you mean it's more &quot;neat on WASM runtime pattern&quot; ? Also, forkless upgradability could be achieved (with more difficulty, sure) with native runtimes so it doesn't really answer the question." CreationDate="2022-05-16T15:59:15.970" UserId="172" />
  <row Id="2460" PostId="2408" Score="0" Text="Does this answer your question? [Can I get this timestamp through RPC getblock?](https://substrate.stackexchange.com/questions/2466/can-i-get-this-timestamp-through-rpc-getblock)" CreationDate="2022-05-16T18:22:12.910" UserId="94" />
  <row Id="2461" PostId="2577" Score="2" Text="Hi @Russo, I just push a change draft a new release `v1.2.34` where you don't need to set the `parachain-id` argument anymore.&#xA;Thanks for your feedback!" CreationDate="2022-05-16T19:34:51.953" UserId="279" />
  <row Id="2464" PostId="2651" Score="0" Text="Is this for Westend or are you running Westend locally?" CreationDate="2022-05-16T23:36:59.053" UserId="29" />
  <row Id="2465" PostId="2580" Score="0" Text="public static void main(String[] args) {&#xA;        UInt32Reader reader = new UInt32Reader();&#xA;&#xA;        String str = &quot;0x280402000b919bbc3b8001&quot;;&#xA;        String replace = str.replace(&quot;0x&quot;, &quot;&quot;);&#xA;        ByteData readA = ByteData.from(replace);&#xA;&#xA;        ScaleCodecReader codec = new ScaleCodecReader(readA.getBytes());&#xA;        codec.hasNext();&#xA;        Long read = codec.read(reader);&#xA;        System.out.println(read);&#xA;&#xA;&#xA;    }" CreationDate="2022-05-17T03:16:14.187" UserId="2481" />
  <row Id="2466" PostId="2580" Score="0" Text="What kind of method is the timestamp problem? I tried several methods similar to the above, but I haven't got the timestamp yet" CreationDate="2022-05-17T03:17:11.590" UserId="2481" />
  <row Id="2467" PostId="2577" Score="0" Text="It works! Thank you :)" CreationDate="2022-05-17T04:10:58.567" UserId="1789" />
  <row Id="2468" PostId="2652" Score="0" Text="Sorry if I wasn't perfectly clear - my screenshot was from the Network -&gt; Staking tab. And not it still shows the same era, almost 5 days now." CreationDate="2022-05-17T06:17:38.630" UserId="2555" />
  <row Id="2469" PostId="2651" Score="0" Text="That's for public Westend, you can see that on official polkadot.js app when you go to Network -&gt; Staking -&gt; Overview" CreationDate="2022-05-17T06:18:53.787" UserId="2555" />
  <row Id="2470" PostId="2557" Score="0" Text="@ShawnTabrizi i was trying to change consensus form Aura to babe in node Template and i was adding pallets like im-online,staking,babe,authority-discovery and other dependency which are required for the changes and i am facing this error while compiling the code .I am sharing the github repo, check it if you can help me out github.com/Amit22antier/Node-template-consensus.git" CreationDate="2022-05-17T06:29:27.600" UserId="2281" />
  <row Id="2472" PostId="2657" Score="0" Text="Thanks for the answer. Is there an option to decode it using `parity_scale_codec::Decode`? If I understand correctly `Decode` is just a Trait and I need pre-defined `Struct` to use it. Where can I find the structure of an event?" CreationDate="2022-05-17T07:41:20.443" UserId="1760" />
  <row Id="2474" PostId="2659" Score="0" Text="If I understand correctly your error is in instantiating the contract, could you show that part of code? And btw if you are writing ink! smart contracts, I recommend you use [OpenBrush library](https://github.com/Supercolony-net/openbrush-contracts)" CreationDate="2022-05-17T09:00:20.510" UserId="170" />
  <row Id="2475" PostId="2659" Score="0" Text="can you please point out, where is the error? &#xA;I don't have any idea which part is generating error." CreationDate="2022-05-17T09:12:46.150" UserId="2558" />
  <row Id="2476" PostId="2659" Score="0" Text="are you saying that, error is getting generated due to missing implementation of trait `FromAccountId` ?" CreationDate="2022-05-17T09:15:35.120" UserId="2558" />
  <row Id="2477" PostId="2659" Score="0" Text="If the answer is yes, I saw other contracts also doing the same. They were also not implementing that trait." CreationDate="2022-05-17T09:18:24.483" UserId="2558" />
  <row Id="2478" PostId="2634" Score="0" Text="@SachaLansky I think the second paragraph answer you question well, solving the miners/validators' consensus with on-chain-upgrade as a transaction is the true value of WASM which bring more autonomous and shorten the whole upgrade process." CreationDate="2022-05-17T09:28:05.087" UserId="393" />
  <row Id="2480" PostId="2659" Score="0" Text="I've edited the post, added the code that is calling the contract. &#xA;should I share `Cargo.toml` code too?&#xA;@Coreggon" CreationDate="2022-05-17T09:50:52.300" UserId="2558" />
  <row Id="2481" PostId="2666" Score="0" Text="Thanks Oliver! Very grateful for your answer.  It would be great to get that second method added to the docs (unless it is already there and I missed it)." CreationDate="2022-05-17T12:07:43.073" UserId="716" />
  <row Id="2482" PostId="2667" Score="0" Text="Thanks! &#xA;&#xA;For the node upgrade I'm following the guide:&#xA;https://github.com/paritytech/substrate/blob/master/docs/Upgrading-2.0-to-3.0.md&#xA;&#xA;However it only covers the upgrade to V3. If I want to get the latest version of contract pallet or the latest monthly upgrade, shall I follow and implement the diffs that happened after V3 release?" CreationDate="2022-05-17T12:11:32.323" UserId="2561" />
  <row Id="2483" PostId="2652" Score="0" Text="Updated my screenshots. Looks fine to me. Try connecting to a Parity node and see if there is a difference." CreationDate="2022-05-17T12:18:26.900" UserId="29" />
  <row Id="2484" PostId="2662" Score="0" Text="I saw that in psp34 contract there is no `transfer_from` function. &#xA;how would I create a deposit function for user to deposit into smart contract ? can you give me idea?" CreationDate="2022-05-17T12:35:00.450" UserId="2558" />
  <row Id="2485" PostId="2652" Score="1" Text="hmm... yeah it looks OK now for me too - not sure what happened as I was trying with incognito mode &amp; different nodes earlier to rule out any caching issues... thanks for your help :)" CreationDate="2022-05-17T12:35:16.670" UserId="2555" />
  <row Id="2486" PostId="2647" Score="0" Text="Your issue is on cargo.toml and can you try to clean cache ( cargo clean). If it doesnt work try to check careful your dependecies" CreationDate="2022-05-17T14:21:38.427" UserId="351" />
  <row Id="2487" PostId="2662" Score="0" Text="You don't need `transfer_from`. You can read the PSP description. NFT has only one owner. If someone tries to transfer it, we already know from who we need to transfer=)" CreationDate="2022-05-17T15:22:48.273" UserId="599" />
  <row Id="2488" PostId="2662" Score="0" Text="`rust&#xA;pub fn deposit(&amp;mut self, nft_contract: AccountId, token_id: u32, to: AccountId) {&#xA;let res = PSP34Ref::transfer(&amp;nft_contract, to, Id::u32(token_id), vec![99, 99]);&#xA;}`                                                                                                                                     so if I create a function like above, transfer function will be called by the function caller by itself?" CreationDate="2022-05-17T15:50:40.983" UserId="2558" />
  <row Id="2489" PostId="2676" Score="0" Text="For immortal, blockHash needs to be the same as genesisHash. (It will only differ for mortal, where the actual blockHash for the era begin is provided)" CreationDate="2022-05-17T16:10:59.917" UserId="627" />
  <row Id="2490" PostId="1814" Score="0" Text="@AaronEly &#xA;&#xA;can you provide the code snippet to implement Default for AccountId." CreationDate="2022-05-17T16:29:11.520" UserId="2033" />
  <row Id="2491" PostId="2666" Score="0" Text="It is documented [here](https://polkascan.github.io/py-substrate-interface/#substrateinterface.SubstrateInterface.rpc_request)." CreationDate="2022-05-17T17:29:28.520" UserId="94" />
  <row Id="2492" PostId="2662" Score="0" Text="No, the function is called by your contract. Your contract sends a cross-contract call, so `ink_end::caller()` is `Ebisu` contract. If `Ebisu` has the allowance to do a transfer, it will be done." CreationDate="2022-05-17T17:30:17.383" UserId="599" />
  <row Id="2493" PostId="2618" Score="1" Text="No=) Soon all those traits should be removed in https://github.com/paritytech/ink/pull/1217. After OpenBrush or ink! will describe a new storage in details and examples." CreationDate="2022-05-17T17:32:19.743" UserId="599" />
  <row Id="2494" PostId="2676" Score="0" Text="Did you try `subkey verify` to debug it? Otherwise make sure to use the correct signature prefix, for sr25519 its `substrate`." CreationDate="2022-05-17T17:46:51.713" UserId="94" />
  <row Id="2495" PostId="2677" Score="2" Text="Insightful... didn't actually fully think through the &quot;upgradable contract&quot; angle myself. The support for both is mostly still there for legacy reasons (the UI always lags quite a bit between changes instead of forcing people to go immediately), but it certainly makes sense when you upgrade and then attach to the contract to have a separate ABI." CreationDate="2022-05-17T18:57:18.673" UserId="627" />
  <row Id="2497" PostId="2665" Score="0" Text="Welcome to the community! this is a good set of questions, but please do limit to one at a time, as the answers can be much more targeted https://substrate.stackexchange.com/help/how-to-ask" CreationDate="2022-05-17T22:00:31.257" UserId="34" />
  <row Id="2498" PostId="2664" Score="0" Text="Glad this worked! When you see an issue in the docs, please do be so kind as to open an issue - or if you have a solution, a PR :) - so we can get that fixed up! Perhaps this was you? https://github.com/substrate-developer-hub/substrate-docs/issues/1003" CreationDate="2022-05-17T22:19:11.323" UserId="34" />
  <row Id="2499" PostId="2628" Score="0" Text="@PawanBisht Yes, I have imported it. And the errors:&#xA;`Error: Input(&quot;failed to execute TryRuntime_on_runtime_upgrade: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed`&#xA;&#xA;And i also got message: &#xA;`Corrupted state at [247, 134, 14, 82, 179, 211, 102, 13, 227, 92, 128, 132, 85, 236, 72, 54, 194, 126, 131, 60, 159, 34, 33, 143, 86, 41, 12, 5, 63, 19, 39, 211, 180, 222, 242, 92, 253, 166, 239, 58, 0, 0, 0, 0]`, I think that storage i query maybe corrupted, but why i can acces via polkadot.js.app? BTW, i read another storage item in migration script, it works well." CreationDate="2022-05-18T03:31:59.660" UserId="2246" />
  <row Id="2500" PostId="2662" Score="0" Text="if the user calls the above function that I have written, will user get the message for accepting the transfer made by smart contract on behalf of the user ?" CreationDate="2022-05-18T05:15:29.213" UserId="2558" />
  <row Id="2501" PostId="2685" Score="2" Text="The compiler seems to be telling you the problem: `doesn't satisfy &lt;_ as pallet_ipl::Config&gt;::Licenses = pallet_ips::benchmarking::InvArchLicenses`" CreationDate="2022-05-18T06:12:57.877" UserId="28" />
  <row Id="2502" PostId="2535" Score="0" Text="I know this, but my problem is to request RPC directly through HTTP. What you said won't help me" CreationDate="2022-05-18T06:50:36.210" UserId="2481" />
  <row Id="2503" PostId="2634" Score="0" Text="@SachaLansky By &quot;neat on WASM runtime pattern&quot;, I mean one solution(WASM runtime) solves two problem (one is runtime's forkless upgradability, the other is ocw's easy upgradablity)" CreationDate="2022-05-18T06:57:19.193" UserId="393" />
  <row Id="2504" PostId="2628" Score="0" Text="Because I have added a field on RegisterInfo at the end, I guess I need to translate it to the new value. If I want to query it with the new RegisterInfo on an old runtime, it shouldn't work." CreationDate="2022-05-18T07:30:50.313" UserId="2246" />
  <row Id="2505" PostId="2664" Score="0" Text="That was not me, I just encountered the same error yesterday when trying to complete the tutorial. But indeed, those commits fixed the tutorial :)" CreationDate="2022-05-18T07:31:17.270" UserId="2025" />
  <row Id="2506" PostId="2698" Score="0" Text="But that's all hard mode stuff. Desub might help you as strong typing probably isn't your friend here. Maybe the easier route might be to call sidecar rest urls for the data you need - that gives json back: https://paritytech.github.io/substrate-api-sidecar/dist/" CreationDate="2022-05-18T08:40:32.150" UserId="85" />
  <row Id="2507" PostId="2676" Score="0" Text="This is insane. I can't even validate a signature signed by polkadot in subkey. Updated the gist with code and output." CreationDate="2022-05-18T08:48:04.370" UserId="2264" />
  <row Id="2508" PostId="2131" Score="0" Text="just as you build cumulus or polkadot: `cargo build --features with-parity-db`" CreationDate="2022-05-18T08:50:54.600" UserId="85" />
  <row Id="2509" PostId="2657" Score="1" Text="The above are all using that `Decode` trait but the key is that you need to give it the type to re-hydrate (to deserialise into). That's the `Event` type that is defined on the runtime associated with the parachain / relay chain that your decoding the event for." CreationDate="2022-05-18T08:55:12.263" UserId="85" />
  <row Id="2510" PostId="2652" Score="1" Text="We are consistently seeing wrong era info for Westend at our side too, connecting to every node and in several computers.  I created an issue for polkadot-js: https://github.com/polkadot-js/apps/issues/7607" CreationDate="2022-05-18T08:57:11.370" UserId="2025" />
  <row Id="2511" PostId="2698" Score="0" Text="public static void main(String[] args) {&#xA;        //TODO&#xA;        // Correct result: 1651825968&#xA;        UInt32Reader reader = new UInt32Reader();&#xA;        String str = &quot;0x280402000b919bbc3b8001&quot;;&#xA;        String replace = str.replace(&quot;0x&quot;, &quot;&quot;);&#xA;        BigInteger ten = new BigInteger(replace, 16);&#xA;        String two = ten.toString(2);&#xA;&#xA;        ScaleCodecReader codec = new ScaleCodecReader(two.getBytes());&#xA;        codec.hasNext();&#xA;        Long read = codec.read(reader);&#xA;        System.out.println(&quot;timestamp:&quot;+read);&#xA;    }" CreationDate="2022-05-18T09:25:06.340" UserId="2481" />
  <row Id="2512" PostId="2698" Score="0" Text="The result is still wrong. The correct result should be 1651825968. What went wrong?" CreationDate="2022-05-18T09:26:14.397" UserId="2481" />
  <row Id="2513" PostId="2695" Score="0" Text="Tks for the information. Is it ok to use `k256` crate? Because we need to have a backup plan if ink! team decide to stabilize after we launched the contracts." CreationDate="2022-05-18T09:36:51.977" UserId="450" />
  <row Id="2514" PostId="974" Score="0" Text="Hi @h4x3rotab, is it fine If I ask for the script? We currently encounter the same problem because we're batching nonces from an account." CreationDate="2022-05-18T09:40:55.290" UserId="450" />
  <row Id="2516" PostId="2698" Score="0" Text="`replace` needs to be turned into bin from the hex string encoding that it is whereas you're trying to read it as a big integer. After the 0x there's `28` - that's 2x16 + 8 which is the byte 40 (a u8 in rust speak). You need to call Convert.FromHexString(replace) to get the scale binary and then you can decode that." CreationDate="2022-05-18T10:06:59.317" UserId="85" />
  <row Id="2517" PostId="2704" Score="0" Text="This question provides an adequate answer https://substrate.stackexchange.com/questions/1896/configure-chain-parameters-epoch-era-bondig-etc-for-dev-node  however I do want to expand on what the new timings will become." CreationDate="2022-05-18T10:21:59.097" UserId="340" />
  <row Id="2518" PostId="2681" Score="0" Text="Thanks a lot for your comment, this is very useful. &#xA;&#xA;Maybe a simple question, just want a confirmation for my peace of mind. I assume if we upgrade the contracts pallet to support the latest ink! version, the smart contract that have been previously deployed will not be affected in any way?" CreationDate="2022-05-18T11:25:06.497" UserId="2561" />
  <row Id="2519" PostId="2708" Score="2" Text="`insertKey` is a rpc and not a transaction. So, you can not get this error for calling a rpc." CreationDate="2022-05-18T11:47:12.107" UserId="73" />
  <row Id="2520" PostId="2708" Score="1" Text="The error you are showing seems to come from a runtime upgrade, not setting keys for a node." CreationDate="2022-05-18T11:50:18.833" UserId="165" />
  <row Id="2521" PostId="2700" Score="1" Text="I believe the resource you are looking for is now here: https://github.com/paritytech/substrate/blob/master/scripts/ci/monitoring/alerting-rules/alerting-rules.yaml" CreationDate="2022-05-18T12:41:26.050" UserId="29" />
  <row Id="2522" PostId="2672" Score="0" Text="Thank you for the clear breakdown, this was exactly what I was looking for. For trade offs, isn’t there any overhead for interacting with a Wasm runtime in terms of speed ? Also harder to debug ? Or are these things just getting better too ?" CreationDate="2022-05-18T13:14:21.193" UserId="172" />
  <row Id="2523" PostId="2698" Score="0" Text="（   String two = ten.toString(2);   ）  The result is binary" CreationDate="2022-05-18T13:26:43.760" UserId="2481" />
  <row Id="2524" PostId="2706" Score="0" Text="Thank you, but I didn't quite understand what you said. I have to study it. But is your calculation is wrong? Should it be 1651825968 2022-05-06 16:32:48?" CreationDate="2022-05-18T13:29:17.200" UserId="2481" />
  <row Id="2525" PostId="2680" Score="0" Text="The bad thing there is that I have to match inside that function and write the value twice, once in the codec parameter and once inside the `get_version` function. The `codec` parameter must be a literal, which means if I ever decide to change the encoding index for any reason (this is not specific to blocks), there will be a consistency problem that's only caught by a test that may or may not exist. I hope it's not so much trouble to add this function to scale." CreationDate="2022-05-18T13:40:51.643" UserId="169" />
  <row Id="2526" PostId="2662" Score="0" Text="PSP34 `transfer` works in the same way as `transfer_from` would, but there is no redundant `from` since we know who owns the token with `id`. So if they have the allowance or own the token, it will be sent." CreationDate="2022-05-18T13:47:07.513" UserId="170" />
  <row Id="2527" PostId="2706" Score="0" Text="The value decoded as `1650269658001` above is correct, [see it here decoded](https://polkadot.js.org/apps/#/extrinsics/decode/0x280402000b919bbc3b8001). That value indeed converts to `Mon Apr 18 2022 08:14:18 GMT+0000` using [epochconvert.com](https://www.epochconvert.com/) as well as [epochtimestamp.com](https://epochtimestamp.com/) (GMT times given since it is universal)" CreationDate="2022-05-18T14:04:25.490" UserId="627" />
  <row Id="2528" PostId="2711" Score="0" Text="I think this question is solved already here: https://substrate.stackexchange.com/questions/1200/how-to-calculate-sovereignaccount-for-parachain/1210#1210" CreationDate="2022-05-18T14:21:52.200" UserId="2025" />
  <row Id="2529" PostId="2695" Score="0" Text="k256 should work. We use it inside the substrate runtime, too. However it could be that it makes to contract too big." CreationDate="2022-05-18T14:25:36.807" UserId="16" />
  <row Id="2530" PostId="2706" Score="0" Text="... Also adding the Westend block [apps UI](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fwestend-rpc.dwellir.com#/explorer/query/0x3a0ab3cfddfed654683749546ddc7c4d71e73ee46b32f7575aca314f164d32b8) and on [subscan](https://westend.subscan.io/block/0x3a0ab3cfddfed654683749546ddc7c4d71e73ee46b32f7575aca314f164d32b8) where the timestamps (match, taking UTC into account), here is also the decoding [apps UI link](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fwestend-rpc.dwellir.com#/extrinsics/decode/0x280402000b919bbc3b8001) and [on subscan](https://westend.subscan.io/extrinsic/10463935-0)" CreationDate="2022-05-18T14:28:12.787" UserId="627" />
  <row Id="2531" PostId="2676" Score="1" Text="After running more tests I found that even though the error points to the signature, the problem is not the signature but one of, or both of, the era and block hash. I tried going with era = 0 and block hash = genesis but I still get the same errors. Any ideas?" CreationDate="2022-05-18T14:39:06.553" UserId="2264" />
  <row Id="2533" PostId="2583" Score="0" Text="Hi @Russo, is this the error `Error: Input(&quot;Error parsing spec file: missing field `relay_chain` at line 155 column 1&quot;)`, in this case looks like the chain-spec is wrong. Are the image public for try to reproduce?" CreationDate="2022-05-18T15:11:19.790" UserId="279" />
  <row Id="2534" PostId="2691" Score="0" Text="I agree. Eventually we have plans to shift to API based mechanism instead of local file reading. Can you please guide me how can I make a Get REST API call and read JSON/SCALE data from that in substrate?" CreationDate="2022-05-18T15:20:11.970" UserId="2567" />
  <row Id="2536" PostId="2676" Score="1" Text="See https://github.com/polkadot-js/wasm/issues/352 - your input is wrong into subkey. As per the first comment by me to your question above, your blockHash value is wrong and this will make the verification fail. (The linkes issue has the expected values as a comment as well)" CreationDate="2022-05-18T15:28:58.163" UserId="627" />
  <row Id="2537" PostId="2690" Score="0" Text="That make sense now, thanks! The fc- packages I was seeing are part of the frontier template’s client folder, so I guess it stands for “frontier client”, thanks!" CreationDate="2022-05-18T15:55:45.900" UserId="2568" />
  <row Id="2538" PostId="2663" Score="0" Text="I’m voting to close this question because it's been fixed upstream." CreationDate="2022-05-18T16:02:31.027" UserId="34" />
  <row Id="2539" PostId="2714" Score="2" Text="As per the on-chain metadata - for Westend &amp; Kusama, the balances pallet is on index `04` for Polkadot it is on `05`. (These needs to be retrieved from the metadata, it cannot be hardcoded since it will be different between chains and could even move, although that is now more unlikely). TL;DR Always retrieve the pallet and method indexes from the on-chain metadata." CreationDate="2022-05-18T16:14:13.177" UserId="627" />
  <row Id="2540" PostId="2583" Score="0" Text="Hi @Russo, but the output of zombienet show any error?&#xA;Thanks!" CreationDate="2022-05-18T16:18:44.810" UserId="279" />
  <row Id="2541" PostId="2691" Score="0" Text="Check out the [Polkadot JS API](https://polkadot.js.org/docs/api/examples/promise/read-storage), otherwise, please open a new question with clear details about what you are trying to do, what issues you are running into, etc... https://substrate.stackexchange.com/help/how-to-ask" CreationDate="2022-05-18T16:34:37.013" UserId="28" />
  <row Id="2542" PostId="2583" Score="0" Text="no error at all. Only my block height test failed, and the collator URL did not work as described above. That's all. any idea? Thanks!" CreationDate="2022-05-18T17:33:31.437" UserId="1789" />
  <row Id="2543" PostId="2695" Score="0" Text="We will definitely have to check on that. One more thing: &quot;Does contract size affect the gas fee?&quot;. As I understand, &quot;automatic deposit collection” (https://www.parity.io/blog/ink-3-0-paritys-rust-based-language-gets-a-major-update) will only affect what storage users use, not the contract size?&#xA;&#xA;FYI: We're running the solochain, as I know, contracts in parachains is a very complexed subject so we may want to skip the complexity of this if it concerns you." CreationDate="2022-05-18T18:12:47.870" UserId="450" />
  <row Id="2544" PostId="2583" Score="0" Text="Hi @Russo are you still using this line in your Dockerfile `CMD tail -f /dev/null` ? Can you post again your updated Dockerfile?" CreationDate="2022-05-18T18:43:20.237" UserId="279" />
  <row Id="2546" PostId="2685" Score="0" Text="it seems they are originating from the `where_clause` in `benchmarking.rs` of ips and ipt pallets." CreationDate="2022-05-18T20:35:29.023" UserId="494" />
  <row Id="2547" PostId="2722" Score="0" Text="Thanks Artur, that's what I did, but no luck... The first step of the build (1/5 dev [unoptimized + debuginfo]) is using 3.0.1, but the release build (2/5) is using 3.1.0." CreationDate="2022-05-18T21:03:00.490" UserId="48" />
  <row Id="2548" PostId="2695" Score="1" Text="Contracts are part of storage, too. So the deposit will be higher for bigger contracts when uploading them. Additionally, bigger contracts also execute slower (more code needs to be executed) and hence consume more gas." CreationDate="2022-05-18T21:34:28.597" UserId="16" />
  <row Id="2549" PostId="2722" Score="0" Text="Please add a link in your original posting to the repo which you try to compile. Can't really help without the code." CreationDate="2022-05-18T21:36:13.937" UserId="16" />
  <row Id="2551" PostId="2692" Score="0" Text="Thanks. In the case of mutate, if `foo_key` does not exist in the map, will it error?" CreationDate="2022-05-18T22:37:33.373" UserId="285" />
  <row Id="2552" PostId="2721" Score="0" Text="Can you please include more details about how you set up your project and the specific error you are facing?" CreationDate="2022-05-18T22:51:06.137" UserId="28" />
  <row Id="2553" PostId="2721" Score="0" Text="Thanks @ShawnTabrizi and Alexander, I just added some informations." CreationDate="2022-05-18T23:00:41.827" UserId="48" />
  <row Id="2554" PostId="2685" Score="0" Text="Thank you!. We'll try to iterate it over." CreationDate="2022-05-19T01:07:00.557" UserId="135" />
  <row Id="2555" PostId="2722" Score="0" Text="Could you try hardcoding `version = &quot;=3.0.1&quot;` in your `Cargo.toml`? The `&quot;=x.x.x&quot;` will pin this very version." CreationDate="2022-05-19T04:10:25.753" UserId="227" />
  <row Id="2556" PostId="2700" Score="0" Text="Thank you for point me to the right resource @Bruno. One more question: I see bunch of metrics exported by substrate, is there a way of adding a custom metric or any link to all the metrics being exported by Substrate?" CreationDate="2022-05-19T04:24:05.903" UserId="2492" />
  <row Id="2558" PostId="2727" Score="1" Text="You're the boss @cmichi !  &#xA;With `version = &quot;=3.0.1&quot;`, contract are instantiated correctly in node v0.13.  &#xA;Thanks for your help." CreationDate="2022-05-19T06:00:31.347" UserId="48" />
  <row Id="2560" PostId="2583" Score="0" Text="I have made a better question with Parachain-template: https://substrate.stackexchange.com/questions/2729/zombienet-substrate-parachain-template-block-heightblock-producing-test-f" CreationDate="2022-05-19T08:15:19.643" UserId="1789" />
  <row Id="2561" PostId="2692" Score="1" Text="No, when you call `get()` or `mutate()`, if there is no value present in the map, it will return the default instead, which for a vec is just an empty `vec![]`." CreationDate="2022-05-19T08:34:08.490" UserId="2192" />
  <row Id="2562" PostId="2678" Score="0" Text="what value does `staking.ValidatorCount` has?" CreationDate="2022-05-19T08:44:47.207" UserId="167" />
  <row Id="2563" PostId="2732" Score="0" Text="Hi. Thanks for your comment. I was able to get response. One more question. How can I get human readable value from response? I am getting &lt;BN: 4f56b6cd0ff56b83&gt;" CreationDate="2022-05-19T10:06:24.413" UserId="2581" />
  <row Id="2564" PostId="2732" Score="1" Text="You can use `toString()`, `toHuman()` or `toBigInt()` to get a more friendly value.&#xA;&#xA;More info at https://polkadot.js.org/docs/api/start/types.basics/" CreationDate="2022-05-19T10:36:14.980" UserId="48" />
  <row Id="2565" PostId="2730" Score="0" Text="Depends on how the topology of your chain looks like. Does it have parachains? Multiple nodes? We are working on a general way to benchmark various chain setups, but that could take another month or two." CreationDate="2022-05-19T10:57:46.210" UserId="94" />
  <row Id="2566" PostId="2729" Score="0" Text="Hi @Russo, can you start a new pod/container from your image and try to run the collator with `target/release/parachain-collator` to check that the process starts as expected. Thanks!" CreationDate="2022-05-19T11:10:00.403" UserId="279" />
  <row Id="2567" PostId="2732" Score="0" Text="Hi, I am trying api.query.staking.eraStakers on https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama-rpc.polkadot.io#/chainstate which you sent.&#xA;However, I cannot select any AccountId32, or type. I can type era. How can I select account?" CreationDate="2022-05-19T11:34:59.467" UserId="2581" />
  <row Id="2568" PostId="2732" Score="1" Text="Not sure to understand what you are trying to do.  &#xA;&#xA;From the polkadiot.js.org/apps, you need to enable the `include option` option, then slect/type an account address.  &#xA;&#xA;For example, era `3728` and account `JCghFN7mD4ETKzMbvSVmMMPwWutJGk6Bm1yKWk8Z9KhPGeZ` are valid inputs." CreationDate="2022-05-19T11:42:58.603" UserId="48" />
  <row Id="2570" PostId="2701" Score="0" Text="Thanks! And how will the data be passed to the other oracles for consensus gathering?" CreationDate="2022-05-19T12:51:16.633" UserId="2569" />
  <row Id="2571" PostId="2714" Score="1" Text="Thanks, it helped a lot!" CreationDate="2022-05-19T13:04:09.230" UserId="2538" />
  <row Id="2572" PostId="2730" Score="0" Text="@OliverTale-Yazdi for now I am running 2 nodes and it's a solo chain so no parachains." CreationDate="2022-05-19T13:12:58.400" UserId="139" />
  <row Id="2573" PostId="2735" Score="1" Text="Why would you want to recompile if you're only changing the bootnode address? Just make the relevant changes in the generated chain spec file and you should be good to go. Also on preexisting nodes that are syncing you can pass the new peer id address with the `--bootnodes` flag." CreationDate="2022-05-19T13:16:25.163" UserId="139" />
  <row Id="2574" PostId="1129" Score="1" Text="Mostly I really appreciate the &quot;Let's take an hour and calmly talk about why we're doing this and why it's important&quot;.&#xA;It has been immensely helpful in building my understanding of what is possible in this ecosystem. Going to cowardly say that I don't have any favorites yet, but I really appreciate the mix between the Parachain projects and the Development/Philosophy ones." CreationDate="2022-05-19T14:14:33.973" UserId="609" />
  <row Id="2575" PostId="2678" Score="0" Text="The validator count is equal to the number of initial validators, which in this case is 3 https://github.com/ChainSafe/substrate-node-template/blob/dfo/gssmr-test-staking/node/src/chain_spec.rs#L184 @kianenigma" CreationDate="2022-05-19T15:11:53.940" UserId="12" />
  <row Id="2576" PostId="2739" Score="0" Text="Where are you trying to declare this app crypto type? You have made `default-features=false` which implies this may be inside the runtime, in which case, the runtime must compile without `std`, so you cannot declare such a macro in your runtime." CreationDate="2022-05-19T15:14:15.317" UserId="28" />
  <row Id="2578" PostId="2739" Score="0" Text="`app_crypto!` macro is used in `pow/src/lib.rs/` like [here](https://github.com/kulupu/kulupu/blob/0f89b1306803e4c7822f332dcdfeaeca7ccc6c6c/pow/src/lib.rs#L47).  &#xA;&#xA;`Cargo.toml` lines I've provided are from `pow/Cargo.toml`.    &#xA;&#xA;`pow` crate is in the same directory as `node`, `pallets`, `runtime`, etc." CreationDate="2022-05-19T15:32:14.870" UserId="2408" />
  <row Id="2579" PostId="2739" Score="0" Text="I've tried removing `default-features = false`, tried adding `features = [&quot;full_crypto&quot;]` in that  .toml, tried deleting whole `[features]` section of that .toml - nothing helped" CreationDate="2022-05-19T15:39:22.957" UserId="2408" />
  <row Id="2580" PostId="2739" Score="0" Text="`pow` crate is imported to the `node` crate" CreationDate="2022-05-19T15:56:26.760" UserId="2408" />
  <row Id="2581" PostId="2738" Score="0" Text="Hi, try using `http://localhost:9090` (without the `s`)." CreationDate="2022-05-19T16:08:29.083" UserId="279" />
  <row Id="2582" PostId="2739" Score="0" Text="You should just add the dependency like: `sp-application-crypto = { version = &quot;6.0.0&quot;, git = &quot;https://github.com/paritytech/substrate.git&quot;, branch = &quot;polkadot-v0.9.19&quot; }`. With no features or anything. This should work, otherwise, you will need to share more details about your project, and the changes you made." CreationDate="2022-05-19T16:10:29.323" UserId="28" />
  <row Id="2583" PostId="2739" Score="0" Text="Ok, I have another question then. This [line](https://github.com/paritytech/substrate/blob/0ba251c9388452c879bfcca425ada66f1f9bc802/primitives/application-crypto/src/lib.rs#L189) here says &quot;`std` feature is enabled&quot;. Is that `sp-application-crypto`'s `std` feature or any other pallet's? Should I only activate `std` feature of that pallet or of __all__ pallets that import this pallet?" CreationDate="2022-05-19T16:28:22.137" UserId="2408" />
  <row Id="2584" PostId="2739" Score="0" Text="I mentioned above, you CANNOT do `std` in the runtime or in Pallets. This code cannot exist inside a pallet, it will never compile. This code must live in the client of your node, which is all `std`. So you will not be able to get app_crypto macro working in the runtime/pallet code." CreationDate="2022-05-19T17:02:07.087" UserId="28" />
  <row Id="2585" PostId="2739" Score="0" Text="`app_crypto!` -&gt; `pow` crate -&gt; `node` crate. So this macro does live in the client of the node where `std` is allowed. It has nothing to do with runtime. Sorry, I meant 'crates', not 'pallets' in the previous comment." CreationDate="2022-05-19T17:15:25.657" UserId="2408" />
  <row Id="2586" PostId="2743" Score="1" Text="Please dont post a link to some external code sandbox. Please include the code snippet and the actual error that is returned in this question." CreationDate="2022-05-19T17:29:22.177" UserId="609" />
  <row Id="2587" PostId="2739" Score="0" Text="As you can see in the [Cargo.toml](https://github.com/kulupu/kulupu/blob/0f89b1306803e4c7822f332dcdfeaeca7ccc6c6c/pow/Cargo.toml) for `pow` there are no mentions of features being enabled. You can see in [`application-crypto`](https://github.com/paritytech/substrate/blob/master/primitives/application-crypto/Cargo.toml), the default feature is `[std]`, so if you put no features, std is default." CreationDate="2022-05-19T17:32:06.460" UserId="28" />
  <row Id="2588" PostId="2743" Score="1" Text="I updated question!" CreationDate="2022-05-19T17:42:40.033" UserId="2581" />
  <row Id="2589" PostId="2745" Score="0" Text="Can you send me example u128 type amount value? @CustomBlink" CreationDate="2022-05-19T17:58:56.520" UserId="2581" />
  <row Id="2590" PostId="2745" Score="0" Text="While not applicable here specifically, it is a good question. The JS API will detect and convert formats as/when needed. So where number inputs are required, it would accept: number, BN, BigInt, string (decimal numbers), hex (0x prefixed) and will do the conversion as required." CreationDate="2022-05-19T19:02:08.057" UserId="627" />
  <row Id="2591" PostId="2735" Score="0" Text="because we need to distribute it on the complete network ( more than 300 nodes ) and not on a dev one." CreationDate="2022-05-19T19:09:10.050" UserId="464" />
  <row Id="2592" PostId="2729" Score="0" Text="Hi @Russo, from the error looks like `rococo-native` feature isn't set. Is the project in a public repo?" CreationDate="2022-05-19T22:46:51.597" UserId="279" />
  <row Id="2593" PostId="2738" Score="0" Text="I have done that too, it result in the same error." CreationDate="2022-05-20T00:57:10.020" UserId="2414" />
  <row Id="2594" PostId="2700" Score="0" Text="Please update the question to provide more detail: https://substrate.stackexchange.com/help/how-to-ask so others can also benefit from this post." CreationDate="2022-05-20T02:05:47.967" UserId="34" />
  <row Id="2595" PostId="2752" Score="0" Text="https://github.com/substrate-developer-hub/substrate-docs/pull/1040 fixes this" CreationDate="2022-05-20T02:56:10.933" UserId="34" />
  <row Id="2596" PostId="2738" Score="0" Text="I’m voting to close this question because https://github.com/substrate-developer-hub/substrate-docs/pull/1040 fixes this" CreationDate="2022-05-20T02:56:46.773" UserId="34" />
  <row Id="2597" PostId="2738" Score="0" Text="strangely the header shows as &quot;off topic&quot; - it's not! Thanks for identifying the issue :) &#xA;When you have issues with instructions on docs, please open an issue: https://github.com/substrate-developer-hub/substrate-docs/issues/new/choose" CreationDate="2022-05-20T02:58:03.080" UserId="34" />
  <row Id="2599" PostId="2735" Score="0" Text="It depends then on what method are your users running. Are they running the node with a flag such as `--mainnet`, if so then yes what you say is the right way, but then users would have to download more data as compared to simply downloading a chainspec. on the other hand if you are just distributing the chainspec, there's no need for any of that." CreationDate="2022-05-20T04:36:01.427" UserId="139" />
  <row Id="2600" PostId="2718" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-05-20T04:36:50.633" UserId="-1" />
  <row Id="2601" PostId="2750" Score="0" Text="Please share more info and source: https://substrate.stackexchange.com/help/how-to-ask as is it's hard to tell what your issues are" CreationDate="2022-05-20T04:38:08.113" UserId="34" />
  <row Id="2602" PostId="2668" Score="0" Text="Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." CreationDate="2022-05-20T04:40:25.680" UserId="-1" />
  <row Id="2603" PostId="2719" Score="0" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-05-20T04:42:25.077" UserId="-1" />
  <row Id="2604" PostId="2700" Score="0" Text="Substrate exports multiple Prometheus metrics which I was looking to find where if possible one can define own metrics to be exported. Now I am able to view all exported metrics but still not finding a way to define a custom metrics. I hope I clarified it enough?" CreationDate="2022-05-20T05:37:32.553" UserId="2492" />
  <row Id="2605" PostId="2738" Score="0" Text="Hi Dan now it's working, I am able to connect, you can close this issue. Also I have faced these kind of issues in docs where shared instructions in doc does not work after implementing them. I will raise all of them so it can be corrected." CreationDate="2022-05-20T07:05:36.303" UserId="2414" />
  <row Id="2606" PostId="2754" Score="0" Text="Hi @Jaco. Is there any way to filter events list by section or method? For example, I want to get events list which section is &quot;staking&quot; only" CreationDate="2022-05-20T07:21:16.140" UserId="2581" />
  <row Id="2608" PostId="2729" Score="0" Text="@pepoviola yes. I have updated the repo how to set it in Substrate-Parachain-Template0918 github.com/AuroraLantean/-substrate-parachain-template0918 ?" CreationDate="2022-05-20T09:55:44.013" UserId="1789" />
  <row Id="2609" PostId="2760" Score="1" Text="The API will decorate the endpoints based on what is available on the node, e.g. `rpc_methods` and in the runtime metadata. Polkadot is not an ETH-compatible chain, it doesn't have the Frontier pallet. The `eth.*` namespace will only be available on chains with Frontier." CreationDate="2022-05-20T09:58:34.460" UserId="627" />
  <row Id="2610" PostId="2729" Score="1" Text="Great! I will take a look and try to make it works." CreationDate="2022-05-20T10:02:08.587" UserId="279" />
  <row Id="2611" PostId="2755" Score="1" Text="The a &quot;Read-only file system&quot; error when trying to run the code sounds to me like it does not have the ability to write to some directory it needs to; I'd check your filesystem permissions on any directories mentioned in the config file." CreationDate="2022-05-20T10:54:07.787" UserId="474" />
  <row Id="2612" PostId="2760" Score="0" Text="So... Is there any endpoints on polkadot chain which returns me transaction summary? I digged into documentation but couldn't find anything related. By the way thank you for your explanation Jaco!" CreationDate="2022-05-20T11:06:57.297" UserId="2588" />
  <row Id="2613" PostId="2759" Score="0" Text="And also Westend can be used for testing your polkadot/kusama node setup." CreationDate="2022-05-20T11:41:28.413" UserId="351" />
  <row Id="2615" PostId="2760" Score="0" Text="In Substrate, transaction hashes are not unique, there is no RPC to retrieve by tx hash. Here is a link to the [Polkadot wiki](https://wiki.polkadot.network/docs/build-protocol-info#unique-identifiers-for-extrinsics) that explains the non-uniqueness of transaction hashes." CreationDate="2022-05-20T13:46:10.817" UserId="627" />
  <row Id="2616" PostId="2766" Score="0" Text="Thanks for the reply, Alejandro! Unfortunately that is still not working...I have submitted an edit to Eclesio's original post that shows 3/4 active validators, with 1 waiting :/" CreationDate="2022-05-20T16:47:15.740" UserId="12" />
  <row Id="2617" PostId="2771" Score="0" Text="Can you please share more details about what the proposal is doing, and how you have set up the end to end test here?" CreationDate="2022-05-20T20:49:06.440" UserId="28" />
  <row Id="2618" PostId="1844" Score="0" Text="Bump: so with a count of 1 I will make assumption you are running with --dev. With --chain local-polkadot then it would be 2. I too have tried those extrinsic to no avail. I would like to see an answer." CreationDate="2022-05-20T21:42:22.430" UserId="340" />
  <row Id="2619" PostId="2750" Score="0" Text="Added source code as well as compiler info, plz have a check again" CreationDate="2022-05-21T05:49:07.437" UserId="2584" />
  <row Id="2620" PostId="2768" Score="0" Text="I used bellow steps:&#xA;1、 Deploy Test contract using Test.contract abi into Shibuya network via Polkadot/Substarte Portal as you mentioned above.&#xA; 2、exec “createNew” of Test contract via Polkadot ui failed with “Contract.ContractTrapped” error.&#xA; I’m pretty sure the error is caused by the expression “new Base()”, so i want to to know why this case will happen since it works normal in EVM-model. I’m not sure if it’s related to Shibuya substrate-runtime (mybe not support create new contract in an existed one ) or the solang compiler itself (has some issues to compile solidity into wasm-bytecode)" CreationDate="2022-05-21T05:51:48.290" UserId="2584" />
  <row Id="2621" PostId="2770" Score="0" Text="Thanks @Shawn Tabrizi. Could you please tell how to check for particular pallet if storage migration has happened, and what will happen in case when storage migration was not performed during upgrade" CreationDate="2022-05-21T12:58:56.133" UserId="140" />
  <row Id="2622" PostId="2771" Score="0" Text="In the proposal, we are just transferring the balance from one account to another." CreationDate="2022-05-21T14:15:26.430" UserId="377" />
  <row Id="2623" PostId="2768" Score="0" Text="https://stackoverflow.com/help/minimal-reproducible-example would be best" CreationDate="2022-05-21T15:02:40.487" UserId="34" />
  <row Id="2624" PostId="2768" Score="0" Text="In general, answers should _not_ include followup questions, ideally these are sorted in comments on the OP before https://substrate.stackexchange.com/help/how-to-ask // https://substrate.stackexchange.com/help/how-to-answer FYI :" CreationDate="2022-05-21T15:03:53.120" UserId="34" />
  <row Id="2625" PostId="2771" Score="1" Text="In this case, you probably need to use `force_transfer`, instead of `transfer`. As mentioned, if you don't share more specific details, I can't help you figure out the issue." CreationDate="2022-05-21T16:29:16.770" UserId="28" />
  <row Id="2626" PostId="2770" Score="0" Text="You need to look at the PRs in Substrate which are labeled `runtime-migration`: https://github.com/paritytech/substrate/pulls?q=is%3Apr+label%3AE1-runtimemigration+is%3Aclosed" CreationDate="2022-05-21T16:29:59.913" UserId="28" />
  <row Id="2627" PostId="2780" Score="0" Text="https://stackoverflow.com/help/minimal-reproducible-example please provide specific things you changed, and a MVE" CreationDate="2022-05-21T17:52:37.573" UserId="34" />
  <row Id="2628" PostId="2775" Score="0" Text="tried using cargo tree for this, it just ended up giving the same errors as beforehand, no matter what command I run" CreationDate="2022-05-21T19:39:51.647" UserId="2557" />
  <row Id="2629" PostId="2744" Score="0" Text="I did exactly what you suggested and imported `sp-application-crypto` like that. It did not fix the bug. To me it seems completely obvious that `std` of that crate should be enabled in that case, and thus `full-crypto` should be enabled making [this](https://github.com/paritytech/substrate/blob/7a28c62246406839b746af2201309d0ed9a3f526/primitives/application-crypto/src/lib.rs#L63) and [this](https://github.com/paritytech/substrate/blob/7a28c62246406839b746af2201309d0ed9a3f526/primitives/application-crypto/src/lib.rs#L191) macros work. But it doesn't. I'm literally out of ideas now." CreationDate="2022-05-21T19:56:48.610" UserId="2408" />
  <row Id="2631" PostId="2744" Score="0" Text="I also checked that none of [these](https://github.com/paritytech/substrate/blob/7a28c62246406839b746af2201309d0ed9a3f526/primitives/application-crypto/src/lib.rs#L136) function are callable. Which means that `app_crypto_pair` macro was not called which means that [this](https://github.com/paritytech/substrate/blob/7a28c62246406839b746af2201309d0ed9a3f526/primitives/application-crypto/src/lib.rs#L95) version of `app_crypto` was called which means that `full_crypto` was not enabled" CreationDate="2022-05-21T20:03:51.770" UserId="2408" />
  <row Id="2632" PostId="2744" Score="0" Text="You can check my [code](https://github.com/CREESTL/Crain/blob/main/pow/Cargo.toml) out" CreationDate="2022-05-21T20:07:02.563" UserId="2408" />
  <row Id="2633" PostId="2744" Score="0" Text="Even explicitly enabling both `std` and `full_crypto` features doesn't help: `sp-application-crypto = { version = &quot;6.0.0&quot;, features = [&quot;std&quot;, &quot;full_crypto&quot;], git = &quot;https://github.com/paritytech/substrate.git&quot;, branch = &quot;polkadot-v0.9.19&quot; }&#xA;`" CreationDate="2022-05-21T21:40:20.530" UserId="2408" />
  <row Id="2634" PostId="2777" Score="0" Text="How many nodes does your network have?" CreationDate="2022-05-22T11:46:53.783" UserId="94" />
  <row Id="2635" PostId="2780" Score="0" Text="You can access my repo [link](https://github.com/vjgaur/substrate-proof-of-work) I just added my pow code separately. But even after removing that it gives the same error. I did not add any code in runtime.  Please refer the github repo for code" CreationDate="2022-05-22T11:51:00.477" UserId="2414" />
  <row Id="2636" PostId="2741" Score="2" Text="Awesome, thank you for the very detailed response" CreationDate="2022-05-22T12:04:37.737" UserId="2560" />
  <row Id="2637" PostId="2748" Score="0" Text="Thanks for the details Sacha" CreationDate="2022-05-22T12:05:48.330" UserId="2560" />
  <row Id="2638" PostId="2788" Score="0" Text="Polytope labs has been working on the solution on compiling the substrate in the cloud. cargo-cloud and prolly soon it will be available for the community" CreationDate="2022-05-22T14:37:19.950" UserId="351" />
  <row Id="2639" PostId="2785" Score="0" Text="That fits my question really well. Thank you for that. How could I create an imbalance out of a balance?" CreationDate="2022-05-22T18:08:12.483" UserId="2484" />
  <row Id="2643" PostId="2785" Score="0" Text="Doh, read it too fast. Updated for when just dealing with balances." CreationDate="2022-05-23T05:25:21.107" UserId="620" />
  <row Id="2644" PostId="2793" Score="0" Text="Thanks friend. I can not subscribe to transaction events as I am not the one who performed the transaction. My customer is going perform transaction. And I have to confirm it at my end (knowing his source address and time window when he initiated the transaction). and I am looking at Polkadot JS API solution.  Thanks." CreationDate="2022-05-23T05:59:37.697" UserId="2057" />
  <row Id="2646" PostId="2678" Score="0" Text="And what is `type ElectionProvider` in staking? see: https://substrate.stackexchange.com/questions/296/for-staking-pallet-what-options-do-i-have-for-electionprovider. You probably want to make sure you are using some of the simpler ones, running election onchain." CreationDate="2022-05-23T07:38:44.867" UserId="167" />
  <row Id="2649" PostId="2777" Score="0" Text="2 validator slots, 3 nodes set to validate, 4 nodes in total" CreationDate="2022-05-23T08:29:21.490" UserId="340" />
  <row Id="2651" PostId="2778" Score="0" Text="similar Q: https://substrate.stackexchange.com/questions/198/how-do-you-add-new-validators-for-your-blockchain-testnet&#xA;&#xA;and Q: https://substrate.stackexchange.com/questions/2678/local-network-does-not-change-validator-set" CreationDate="2022-05-23T10:39:40.400" UserId="340" />
  <row Id="2652" PostId="2778" Score="0" Text="The builtin dev account Alice should have the Sudo power to call those extrinsics, however I suspect the bad origin maybe due to the sudo pallet no longer in by default." CreationDate="2022-05-23T10:42:34.100" UserId="340" />
  <row Id="2653" PostId="2778" Score="0" Text="Only certain chain specs have sudo enabled (polkadot no longer does).&#xA;&#xA;With Alice extrinsic.sudo.sudo(call) .staking. setValidatorCount :u32&#xA;&#xA;Value changes instantly(or until block is replicated out)" CreationDate="2022-05-23T13:28:13.267" UserId="340" />
  <row Id="2654" PostId="2799" Score="0" Text="According to the spec the `Pause` should be enacted on block finalization and `Resume` should be enacted on block import. As the `Pause` is enacted on block finalization should we consider it in the `next_change`?" CreationDate="2022-05-23T14:01:17.310" UserId="282" />
  <row Id="2655" PostId="2793" Score="0" Text="If you know the time window, then you can just look at the events for each block in that time window. Otherwise, why not just use a block explorer like https://www.subscan.io/" CreationDate="2022-05-23T14:07:28.097" UserId="28" />
  <row Id="2656" PostId="2678" Score="0" Text="@kianenigma - `ElectionProvider` type is `ElectionProviderMultiPhase` https://github.com/ChainSafe/substrate-node-template/blob/dfo/gssmr-test-staking/runtime/src/lib.rs#L508" CreationDate="2022-05-23T14:32:56.067" UserId="12" />
  <row Id="2657" PostId="2775" Score="0" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-05-23T14:38:15.083" UserId="-1" />
  <row Id="2658" PostId="2798" Score="0" Text="&quot;monthly-2022-01&quot; I see used, what node template version are you using? Please do use matching versions!" CreationDate="2022-05-23T14:40:07.737" UserId="34" />
  <row Id="2659" PostId="2803" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-05-23T14:40:30.837" UserId="-1" />
  <row Id="2660" PostId="2799" Score="0" Text="Edited my response. I hadn't checked that the spec defined when to enact `Pause/Resume`. Enacting `Pause` messages on finality makes sense but it also makes the tracking considerably more complex. Also keep in mind that I haven't given that much thought to this yet since I don't have any plans of implementing this for now." CreationDate="2022-05-23T14:42:36.040" UserId="452" />
  <row Id="2661" PostId="2706" Score="0" Text="Still wrong, the time of this block should be May 6" CreationDate="2022-05-23T14:57:24.860" UserId="2481" />
  <row Id="2662" PostId="2672" Score="0" Text="There is some overhead, I believe I mentioned that the cost is performance for using a VM relative to using no VM. In case of Wasm the inefficiencies are coming from different places. A notable one is copying data into the sandbox requirement." CreationDate="2022-05-23T16:09:13.497" UserId="45" />
  <row Id="2663" PostId="2672" Score="0" Text="I am not entirely sure that there are problems with debugging. As I mentioned the tooling improves, wasmtime supports connecting lldb nowadays. That is not terribly useful though since debugging a runtime is not really convenient to do with a debugger anyway." CreationDate="2022-05-23T16:14:12.027" UserId="45" />
  <row Id="2666" PostId="2375" Score="0" Text="If you have solved the issue, you should post the solution as an answer to this question so that others who have the same issue can also find the solution." CreationDate="2022-05-23T16:28:22.290" UserId="28" />
  <row Id="2667" PostId="2793" Score="0" Text="yes, But that would be exhaustive. Any simple and elegant way to find fund transfers from specific address? Thanks." CreationDate="2022-05-23T17:27:23.373" UserId="2057" />
  <row Id="2668" PostId="2793" Score="0" Text="A block explorer is the elegant way. This is true for any blockchain that exists today." CreationDate="2022-05-23T18:05:33.223" UserId="28" />
  <row Id="2669" PostId="2778" Score="0" Text="use build-spec to export the local and staging specs compare and then adjust the local to have higher validators keeping the builtin dev accounts for easy spin up." CreationDate="2022-05-23T19:51:35.083" UserId="340" />
  <row Id="2670" PostId="2793" Score="0" Text="Thanks Shawn, will look for JS APIs to scan blocks. If you know any sample code for filtering transactions for transactions between A and B addresses, please do share.&#xA;I am not accepting above as solution, because I can not 'subscribe' APIs as I am not the one who is generating the fund transfer transaction." CreationDate="2022-05-24T02:59:49.050" UserId="2057" />
  <row Id="2672" PostId="2800" Score="0" Text="Thanks for highlighting this. You are correct. I did not have std crate in  my cargo.toml.  After I added and enabled it worked for me. Thanks" CreationDate="2022-05-24T06:53:39.387" UserId="2414" />
  <row Id="2673" PostId="2816" Score="0" Text="Seems inefficient to have to fetch the state for `system.lastRuntimeUpgrade` at each block to see if the metadata has changed before decoding. Is the runtime version or metadata version (or a hash of these) stored in the block header somewhere?" CreationDate="2022-05-24T07:10:03.197" UserId="85" />
  <row Id="2674" PostId="2816" Score="0" Text="This would be nice to have as on chain state: https://github.com/polkadot-js/api/blob/master/packages/types-known/src/upgrades/kusama.ts" CreationDate="2022-05-24T07:19:04.213" UserId="85" />
  <row Id="2675" PostId="2821" Score="0" Text="If you want to test a kusama or polkadot chain with sudo then the easiest way at the moment is to cherry pick this commit https://github.com/paritytech/polkadot/commit/791c8b8f9e6fe00b631f2cace0d6d65151487eb4 (see the commit comment to fix up the Cargo.tomls)" CreationDate="2022-05-24T08:28:54.947" UserId="85" />
  <row Id="2676" PostId="2727" Score="1" Text="Just want to add that I experienced the same issue (trying to deploy other example contracts) and it was solved as @cmichi said." CreationDate="2022-05-24T08:29:14.483" UserId="2025" />
  <row Id="2677" PostId="2678" Score="0" Text="What are some of the events that you see from `ElectionProviderMultiPhase` pallet?" CreationDate="2022-05-24T08:46:45.870" UserId="167" />
  <row Id="2681" PostId="2533" Score="1" Text="I was using Fleet on Debian machine but did not see any difference." CreationDate="2022-05-24T13:46:42.040" UserId="19" />
  <row Id="2682" PostId="2795" Score="4" Text="I assume that you are getting this response when querying a Kusama node.&#xA;&#xA;If you do the same query to a Polkadot node, it should report an empty account.&#xA;&#xA;My best guess for the existence of this balance under the empty address is that someone sent those funds to this address in the past as a test or by mistake. Now this funds are locked/burnt forever since this empty address is not accessible by a private key or any other origin.&#xA;&#xA;You can actually see the same situation on Westend testnet, where the empty address has `free: 3,064,499,998,607`." CreationDate="2022-05-24T15:07:03.597" UserId="2025" />
  <row Id="2684" PostId="2779" Score="0" Text="Thanks all, that worked! Got it up and running." CreationDate="2022-05-24T18:25:53.750" UserId="466" />
  <row Id="2685" PostId="2798" Score="0" Text="Thanks @DanShields. I went through the process from scratch and was careful to use v0.9.19 for the node template as well as the frontend template and I get the same results. I will continue to dig as the problem is likely something I'm doing wrong. Question on versions: Should the template versions match exactly or is v0.9.20 on the frontend expected to be backwards compatible with v0.9.19 on the node, for example?" CreationDate="2022-05-24T18:38:49.543" UserId="2130" />
  <row Id="2686" PostId="2678" Score="0" Text="@kianenigma - I submitted an edit to show the events I'm seeing. It looks like there is one election round that happens, but then none after that (?)" CreationDate="2022-05-24T19:51:04.257" UserId="12" />
  <row Id="2687" PostId="2836" Score="0" Text="I created a pull request for this [here](https://github.com/substrate-developer-hub/substrate-node-template/pull/348)." CreationDate="2022-05-24T20:03:36.830" UserId="2484" />
  <row Id="2688" PostId="2836" Score="0" Text="Also look at [this](https://substrate.stackexchange.com/questions/46/wasm32-unknown-unknown-target-is-not-supported-error-while-integrating-try-run)" CreationDate="2022-05-24T20:47:23.583" UserId="2484" />
  <row Id="2689" PostId="1779" Score="0" Text="I was able to solve it by working with the master branch. If I remember correctly, the fix for this is not included in branch polkadot-v0.9.19" CreationDate="2022-05-25T04:38:46.997" UserId="1768" />
  <row Id="2690" PostId="2843" Score="0" Text="I am writing a comprehensive guide around this and will publish it here soon (it might take a week or two though, as I am going offline for a while)." CreationDate="2022-05-25T04:46:30.980" UserId="167" />
  <row Id="2691" PostId="2839" Score="1" Text="Can you define easier? You could of course use an existing block explorer like https://www.subscan.io/ which provides a REST endpoint for getting this information... however, to generate it yourself, you will basically need an archive of all the data like what `substrate-archive` provides." CreationDate="2022-05-25T05:06:42.190" UserId="28" />
  <row Id="2692" PostId="2678" Score="0" Text="Yeah that is strange. You should eventually get the `ElectionFinalized` event. Also, are you getting any events that signify the epoch/era has changed? Try `type Fallback = &lt;whatever is GovernanaceFallback&gt;` here: https://github.com/ChainSafe/substrate-node-template/blob/dfo/gssmr-test-staking/runtime/src/lib.rs#L435" CreationDate="2022-05-25T05:07:27.657" UserId="167" />
  <row Id="2693" PostId="2678" Score="0" Text="I probably found *an* issue, not sure if it is the only one: Look into your validator logs: they must be trimming the solutions to nothing because you set the maximum possible weight/length for them to 0: https://github.com/ChainSafe/substrate-node-template/blob/ae6202b86fce3ca5f0f2a6c7913b73f30d65c2e1/runtime/src/lib.rs#L429" CreationDate="2022-05-25T05:09:07.580" UserId="167" />
  <row Id="2694" PostId="2845" Score="0" Text="too little detail, normally you may check it step by step. e.g: 1.query prometheus endpoint to see if data is ready, 2.check Grafana template config to see if metrics defined consistent with what in prometheus. 3... and so on." CreationDate="2022-05-25T07:20:35.580" UserId="523" />
  <row Id="2696" PostId="2838" Score="0" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-05-25T09:34:58.030" UserId="-1" />
  <row Id="2697" PostId="2829" Score="0" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-05-25T09:36:31.150" UserId="-1" />
  <row Id="2698" PostId="2845" Score="0" Text="The last time I checked the grafana dashboard config was outdated. It was updated two years ago. It that the one you are using?" CreationDate="2022-05-25T09:55:15.683" UserId="94" />
  <row Id="2699" PostId="2842" Score="0" Text="You mean to proxy each extrinsic call? Like `custom_payment_pallet::Dispatch(call)` which then stores the weight used by `call`?" CreationDate="2022-05-25T09:57:54.453" UserId="94" />
  <row Id="2700" PostId="2851" Score="0" Text="Can you be a bit more explicit? Do you want to call an evm function from a substrate pallet?" CreationDate="2022-05-25T11:04:47.033" UserId="85" />
  <row Id="2701" PostId="2729" Score="0" Text="Hi @Russo, yes you can that one and add the `build` phase to inject then the binary." CreationDate="2022-05-25T11:14:31.160" UserId="279" />
  <row Id="2702" PostId="2845" Score="0" Text="@ron I know it's little detail, hard to detail being new to this. I have followed all the steps from doc. Also there are hardly any resource for new dev to refer on this topic. I have captured the screen presenting what all I am doing, I hope this helps you to understand my problem better. [link](https://drive.google.com/file/d/1BDyIivif1Bdp5AbVUW2yuM4WGVPHSQH8/view?usp=sharing) ." CreationDate="2022-05-25T11:44:17.827" UserId="2414" />
  <row Id="2703" PostId="2845" Score="0" Text="@oliver not sure how old is this stuff. I am using the Visualise Node Metrics doc for achieving this. But it does not work with said steps. I am not sure if all steps are complete there in doc and it's a challenge to troubleshoot as there is no other reference material to refer" CreationDate="2022-05-25T11:46:07.427" UserId="2414" />
  <row Id="2704" PostId="2851" Score="0" Text="@Squirrel no sorry, eth_call allow to call any evm function. I would like to know if there is something similar to call any substrate function within an rpc call ?" CreationDate="2022-05-25T12:49:33.460" UserId="632" />
  <row Id="2705" PostId="2729" Score="0" Text="@pepoviola I made a new question to follow this question. Please have a look, ok? https://substrate.stackexchange.com/questions/2856/zombienet-substrate-parachain-template-how-to-write-the-dockerfile" CreationDate="2022-05-25T14:54:11.907" UserId="1789" />
  <row Id="2706" PostId="2842" Score="0" Text="I might have mislead you on accident. I used a feeless extrinsic as an example. What I want to do is limit the weight of a particular extrinsic or a set of extrinsic in a block." CreationDate="2022-05-25T15:31:08.603" UserId="590" />
  <row Id="2707" PostId="2842" Score="0" Text="In the example above, if I were to implement a pallet that keeps track of weight consumed in a block and it errors out. As a result, users would get charged a fee because of the failure?&#xA;&#xA;Perhaps, I am wrong, but I thought that weights were checked at the transaction pool before being added in a block. In the above example this happens after a transaction was added to be part of a block?" CreationDate="2022-05-25T15:35:28.427" UserId="590" />
  <row Id="2708" PostId="2818" Score="0" Text="I think it would be a good idea to leave a comment there, since it might be not obvious" CreationDate="2022-05-25T23:01:09.523" UserId="45" />
  <row Id="2709" PostId="2729" Score="0" Text="Hi @Russo, sounds good. Follow this thread there. Thanks!" CreationDate="2022-05-25T23:03:01.603" UserId="279" />
  <row Id="2710" PostId="2825" Score="0" Text="I want to get the peercount on the Polkadot blockchain The following methods can meet my needs for the time being：&#xA;&#xA;Start adding running parameters --rpc-method=Unsafe&#xA;Use system_peers json-rpc method." CreationDate="2022-05-26T02:40:21.967" UserId="2600" />
  <row Id="2711" PostId="2378" Score="0" Text="Can you share the solution, I am stuck in same situation" CreationDate="2022-05-26T06:54:25.583" UserId="2631" />
  <row Id="2713" PostId="2866" Score="0" Text="I've done the same for now but just to note that we probably should not be hardcoding the key as hex but getting subxt to generate the key." CreationDate="2022-05-26T08:19:31.097" UserId="85" />
  <row Id="2714" PostId="2727" Score="0" Text="@cmichi weirdly I am getting `error[E0061]: this function takes 2 arguments but 1 argument was supplied, an argument of type ExecuteConstructorConfig is missing` on constructors using `version = &quot;=3.0.1&quot;`" CreationDate="2022-05-26T08:59:49.123" UserId="2394" />
  <row Id="2715" PostId="2870" Score="0" Text="I am experiencing the same issue, weirdly enough this was working 3 days ago on 3.0.1" CreationDate="2022-05-26T09:42:25.850" UserId="2394" />
  <row Id="2716" PostId="2727" Score="1" Text="others are experiencing same issue: https://substrate.stackexchange.com/questions/2870/cargo-contract-throws-error-about-supplied-arguments-in-inkconstructor-f" CreationDate="2022-05-26T09:44:44.080" UserId="2394" />
  <row Id="2717" PostId="2870" Score="0" Text="Can you please post a minimal reproducer repo?" CreationDate="2022-05-26T10:55:22.460" UserId="16" />
  <row Id="2718" PostId="2870" Score="0" Text="@mastro we're the same! It was working 2 days ago for me!.&#xA;@AlexanderTheißen I used cargo contract 1.4, and I used &#xA;`cargo contract new flipper` , then changed all versions to `&quot;=3.0.1&quot;`" CreationDate="2022-05-26T11:09:54.620" UserId="2473" />
  <row Id="2719" PostId="2870" Score="0" Text="If you're using the substrate contracts node, you can [try to update it to get rid of the `module imports a non-existent function` error](https://github.com/paritytech/ink/issues/1253#issuecomment-1124958646)." CreationDate="2022-05-26T11:25:57.507" UserId="380" />
  <row Id="2720" PostId="2819" Score="0" Text="Thank you for writing so much code. But it would be nice to have a java version. I can't understand this JS." CreationDate="2022-05-26T12:10:42.647" UserId="2481" />
  <row Id="2722" PostId="2882" Score="0" Text="I already tried that.  It does not work on the substrate-node-template repository.  Some version problem.  The guide also did not provide what version we should add to the Cargo file.  The substrate-contracts-node is not good for production, the block creation is not normal." CreationDate="2022-05-26T14:46:51.840" UserId="2565" />
  <row Id="2724" PostId="1368" Score="0" Text="I am using FRAME v2 and in v2 there is no error when declaring the Storage with private visibility.&#xA;But also Id didn't found any difference b/w pub(super) and private for the storage because in both case I am able to access it from PolkadotJs Explorer" CreationDate="2022-05-26T15:55:41.840" UserId="2033" />
  <row Id="2726" PostId="2884" Score="3" Text="but to be clear any other on or off chain incentive structure could also be used to incentivise the collators - it does not _have_ to be staking." CreationDate="2022-05-26T17:09:41.063" UserId="85" />
  <row Id="2727" PostId="2397" Score="0" Text="Grab the block, encode it into a Uint8Array, and then print the length of that array." CreationDate="2022-05-26T19:47:28.760" UserId="74" />
  <row Id="2728" PostId="2878" Score="0" Text="Have you considered opening an issue there or a PR to correct? https://github.com/paritytech/cargo-contract" CreationDate="2022-05-27T03:03:41.453" UserId="34" />
  <row Id="2729" PostId="2855" Score="1" Text="https://substrate.stackexchange.com/help/how-to-answer please do not use the answer section for more questions." CreationDate="2022-05-27T03:04:51.867" UserId="34" />
  <row Id="2733" PostId="2775" Score="0" Text="You need to upgrade your libraries and set a parity-util-mem manually in the Cargo.toml config" CreationDate="2022-05-27T06:29:14.993" UserId="560" />
  <row Id="2734" PostId="2870" Score="0" Text="@forgetso I can't upgrade to v0.9.22 because my substrate node will ultimately use orml currencies and tokens, and the latest update is still using `polkadot-v0.9.19`" CreationDate="2022-05-27T06:51:05.567" UserId="2473" />
  <row Id="2736" PostId="2856" Score="1" Text="Hi @Russo, I can reproduce now and I working on a fix ( and a working example). Thanks!" CreationDate="2022-05-27T09:42:22.883" UserId="279" />
  <row Id="2737" PostId="2833" Score="1" Text="Check out this answer I posted in another question. https://substrate.stackexchange.com/a/2334/165" CreationDate="2022-05-27T09:58:50.713" UserId="165" />
  <row Id="2738" PostId="2903" Score="1" Text="So for the code example , you can split the logic using the same pallet, just add function.rs file and put the function which modifies the storage. But In a case of  2 pallet interacting, The loosely coupling way is to define a trait and make sure the other pallet implement that trait and in your pallet1 you can use the functionality. So for example how pallet balances is being coupled. But in your example is like you are trying to loosely couple and tight couple at once" CreationDate="2022-05-27T11:29:21.017" UserId="351" />
  <row Id="2739" PostId="2878" Score="1" Text="I already did https://github.com/paritytech/cargo-contract/issues/587" CreationDate="2022-05-27T12:05:13.807" UserId="477" />
  <row Id="2740" PostId="2899" Score="1" Text="This is likely an issue with permissions and root user vs normal user. Check that your dirs anf files are correctly setup with permissions for the user" CreationDate="2022-05-27T13:29:50.883" UserId="34" />
  <row Id="2741" PostId="2669" Score="0" Text="I’m voting to close this question because this issue has been resolved upstream. Should no longer be a problem when released." CreationDate="2022-05-27T13:33:44.627" UserId="34" />
  <row Id="2742" PostId="2903" Score="0" Text="thats the conclusion I reached, I can create a single pallet with multiple structures and add the functions.rs file to remove some code from the lib.rs, but should that be the approach? If i'm handling two items that are related should I keep them on a single pallet or in different pallets?" CreationDate="2022-05-27T14:04:53.983" UserId="2102" />
  <row Id="2743" PostId="2870" Score="0" Text="This is super strange, what does `cargo contract --version` output? Could you try it with the latest `cargo-contract` v1.4.0?" CreationDate="2022-05-27T15:57:21.030" UserId="227" />
  <row Id="2744" PostId="2771" Score="0" Text="Do you have a WS address we can connect to along with the Github repo? TY." CreationDate="2022-05-27T16:49:05.277" UserId="29" />
  <row Id="2745" PostId="2781" Score="0" Text="If you can include a WS address and a Github repo that would be great!" CreationDate="2022-05-27T16:55:01.087" UserId="29" />
  <row Id="2748" PostId="2782" Score="0" Text="`InvalidTransaction::Stale` points that the transaction is outdated, which can be caused by the nonce being too low." CreationDate="2022-05-28T14:42:01.387" UserId="165" />
  <row Id="2749" PostId="2919" Score="0" Text="Have you tried adding peers and sending transactions?" CreationDate="2022-05-28T17:43:04.577" UserId="245" />
  <row Id="2750" PostId="2903" Score="1" Text="I really think you should use only one pallet, checkout even frame_system handles alot of things" CreationDate="2022-05-28T20:39:36.180" UserId="351" />
  <row Id="2753" PostId="2378" Score="0" Text="It's a long time to be back here~ OK, I will share my solution below~" CreationDate="2022-05-29T03:57:44.923" UserId="2417" />
  <row Id="2754" PostId="2917" Score="2" Text="you _cannot_ use std in your runtime. If you are building a pallet this isn't going to work." CreationDate="2022-05-29T03:58:06.193" UserId="34" />
  <row Id="2755" PostId="2919" Score="0" Text="No, I did not. If I'm not mistaken, a single PoW node should be able to produce blocks because a `--force-authoring` [key](https://substrate.stackexchange.com/questions/752/what-is-the-internal-logic-of-force-authoring-flag) was passed." CreationDate="2022-05-29T08:33:27.703" UserId="2408" />
  <row Id="2757" PostId="2916" Score="0" Text="Thanks Michi, that will be very useful for the contract verification'" CreationDate="2022-05-29T11:41:07.137" UserId="529" />
  <row Id="2758" PostId="2870" Score="0" Text="did you guys managed to get it working?" CreationDate="2022-05-29T11:43:58.067" UserId="2394" />
  <row Id="2763" PostId="2870" Score="0" Text="@cmichi yes it's v1.4.0" CreationDate="2022-05-30T01:32:52.970" UserId="2473" />
  <row Id="2765" PostId="2918" Score="0" Text="wow thank you it works! May I know why you set enable_tracing = false? Do I need that?" CreationDate="2022-05-30T11:56:53.650" UserId="1789" />
  <row Id="2766" PostId="2955" Score="2" Text="Indeed, think it is simpler than existing extraction. I logged it to keep it in the queue as a reminder - https://github.com/polkadot-js/api/issues/4875 (PRs really welcome if you get this right, I actually need it quite a bit and would make my life simpler)" CreationDate="2022-05-30T12:17:42.527" UserId="627" />
  <row Id="2767" PostId="2953" Score="0" Text="Can you show me the implementation of Polkadot? For example, in the simulator, how does [`remark.encode().into()`](https://github.com/paritytech/polkadot/blob/2c28577134/xcm/xcm-simulator/example/src/lib.rs#L187) decode into a transaction during execution?" CreationDate="2022-05-30T12:46:33.013" UserId="1959" />
  <row Id="2768" PostId="2918" Score="1" Text="Hi @Russo, at the moment is needed because `tracing` is enabled by default with `k8s` provider and the parachain-template node doesn't support the tracing flag. I will fix this in a new version of zombienet." CreationDate="2022-05-30T12:58:17.187" UserId="279" />
  <row Id="2771" PostId="2953" Score="1" Text="The XCM executor decodes it accordingly to the `Call` type parameter for the XCM: https://github.com/paritytech/polkadot/blob/2c285771342a84e13dab696ef86902f73d4fbd4c/xcm/xcm-executor/src/lib.rs#L342" CreationDate="2022-05-30T15:10:14.550" UserId="104" />
  <row Id="2772" PostId="2971" Score="0" Text="I want to make it so other's can use it like how I can access those top parathreads" CreationDate="2022-05-30T23:37:52.900" UserId="2665" />
  <row Id="2773" PostId="2971" Score="0" Text="So you have to run you collator exposed to the internet (eg. in a VPS). That way users will be able to fill the &quot;custom endpoint&quot; in with your collator endpoint (eg. &#xA; `ws://mycollator.com:9944`) and interact with it. Here is a tutorial to deploy a wss (secured websocket) in a VPS: https://wiki.polkadot.network/docs/maintain-wss" CreationDate="2022-05-30T23:50:16.767" UserId="14" />
  <row Id="2774" PostId="2971" Score="0" Text="Oh wow. I tried deploying a parathread because I couldn't get that to work. That's unfortunate. I'm on a windows machine and for some reason I can't get my 443 port to be exposed. I guess I'll make another question since your comment resolves this one. Thank you." CreationDate="2022-05-30T23:52:45.320" UserId="2665" />
  <row Id="2775" PostId="2971" Score="0" Text="Be 100% sure everything is working locally before you try anything on Rococo, as the docs try and stress. Rococo isn't a place to try out the basics as much as it is a place to get more advanced and interconnected operations tested" CreationDate="2022-05-31T02:40:18.557" UserId="34" />
  <row Id="2777" PostId="2962" Score="1" Text="well i changed to `=3.0.1` and it works! You are my hero! My savior! Thanks @Shunsuke!&#xA;&#xA;@mastro try it: &#xA;`ink_lang_codegen = {version = &quot;=3.0.1&quot;, default-features = false}`" CreationDate="2022-05-31T02:59:16.390" UserId="2473" />
  <row Id="2778" PostId="2967" Score="1" Text="Fixed in the docs now. Thanks for reporting, guthub is best to report errors like this though FYI, to get it fixed " CreationDate="2022-05-31T03:03:20.147" UserId="34" />
  <row Id="2780" PostId="2974" Score="0" Text="Welcome to the community " CreationDate="2022-05-31T04:47:08.963" UserId="34" />
  <row Id="2781" PostId="2974" Score="0" Text="Please take some time to review https://substrate.stackexchange.com/help/how-to-ask to learn how to form better questions. As it is this question is too broad. What chain? What's the purpose to update? Etc." CreationDate="2022-05-31T04:49:22.927" UserId="34" />
  <row Id="2782" PostId="2975" Score="1" Text="Yup! More details here https://github.com/paritytech/substrate/pull/8615" CreationDate="2022-05-31T04:50:56.297" UserId="34" />
  <row Id="2783" PostId="2781" Score="0" Text="@Bruno it is not possible to me to share github repo can you please give some idea that how can i correct this or where i have to change.&#xA;Thanks in advance...." CreationDate="2022-05-31T07:26:39.363" UserId="406" />
  <row Id="2784" PostId="2902" Score="1" Text="Note that Kilt, Mangata Finance, and Zeitgeist may also be using Moonbeam's parachain-staking pallet" CreationDate="2022-05-31T08:55:21.840" UserId="83" />
  <row Id="2785" PostId="2918" Score="0" Text="is there a reason why you and Polkadot team chose Ubuntu as base image? I think Debian is more secure than Ubuntu. Thanks" CreationDate="2022-05-31T12:49:33.710" UserId="1789" />
  <row Id="2786" PostId="2959" Score="0" Text="Thanks  it was helpful" CreationDate="2022-05-31T13:56:37.580" UserId="1731" />
  <row Id="2788" PostId="2969" Score="0" Text="Where does the `chainspec.block_time` comes from? I thought that the timestamp of each block is the `now()` timestamp." CreationDate="2022-05-31T14:18:55.427" UserId="450" />
  <row Id="2789" PostId="2808" Score="0" Text="Yes, this is great" CreationDate="2022-05-31T14:19:23.920" UserId="450" />
  <row Id="2790" PostId="2921" Score="1" Text="Hi thanks , I tried this json template it did work for me." CreationDate="2022-05-31T15:11:44.900" UserId="2414" />
  <row Id="2791" PostId="2949" Score="0" Text="I was thinking something similar but then I thought about hooks like on_initialize and on_finalize do not have fees associated with them but we assign weights to them." CreationDate="2022-05-31T16:40:11.730" UserId="590" />
  <row Id="2792" PostId="2984" Score="1" Text="other options also could be:  &#xA;  a) just moving project dir somewhere out of the `home` dir, or  &#xA;  b) set [build.target-dir](https://doc.rust-lang.org/cargo/reference/config.html#buildtarget-dir) to be some path outside your `home` dir" CreationDate="2022-05-31T16:44:08.357" UserId="472" />
  <row Id="2796" PostId="2554" Score="0" Text="I get the same error when trying to upgrade a Frontier-based chain from Sep2021 release to May2022 release using [this tutorial](https://docs.substrate.io/tutorials/v3/forkless-upgrades/)" CreationDate="2022-05-31T22:28:30.303" UserId="244" />
  <row Id="2797" PostId="2554" Score="0" Text="My error is this `can_author_with returned: Failed to get runtime version at BlockId::Hash(0x...) and will disable authoring. Error: VersionInvalid(&quot;RuntimeConstruction(Other(\&quot;host doesn't provide such function: env:ext_storage_root_version_2\&quot;))&quot;)`" CreationDate="2022-05-31T22:32:53.567" UserId="244" />
  <row Id="2798" PostId="2843" Score="0" Text="See this answer https://substrate.stackexchange.com/a/2979/83" CreationDate="2022-06-01T07:51:56.057" UserId="83" />
  <row Id="2801" PostId="653" Score="0" Text="@Bukks no you need both ext_hash and block number. See this https://substrate.stackexchange.com/questions/2536/why-could-we-find-the-same-transaction-hash-in-3-different-blocks" CreationDate="2022-06-01T11:58:26.370" UserId="552" />
  <row Id="2802" PostId="2996" Score="1" Text="Could you add your `xcm_executor` config in your `xcm_config` for both runtimes, para and relay, please.&#xA;&#xA;Although, consider teleporting for &quot;moving&quot; the relay's native token to a parachain and back." CreationDate="2022-06-01T12:25:53.497" UserId="165" />
  <row Id="2803" PostId="2996" Score="0" Text="Hi @AlejandroMartinez is this enough ? https://github.com/mangata-finance/mangata-node/blob/develop/runtime/mangata-rococo/src/lib.rs#L1244-L1263 ? ..for relay chain we are using docker image for testing parity/polkadot:v0.9.22  so that should be https://github.com/paritytech/polkadot/blob/v0.9.22/runtime/rococo/src/lib.rs" CreationDate="2022-06-01T13:02:47.343" UserId="1793" />
  <row Id="2804" PostId="2590" Score="0" Text="I've opened a PR here: https://github.com/paritytech/ink/pull/1279" CreationDate="2022-06-01T14:52:01.167" UserId="2534" />
  <row Id="2805" PostId="2969" Score="0" Text="Hi @forgetso, can you please check my comment. Tks" CreationDate="2022-06-01T15:48:06.403" UserId="450" />
  <row Id="2806" PostId="2996" Score="0" Text="@AlejandroMartínez" CreationDate="2022-06-01T16:01:38.663" UserId="1793" />
  <row Id="2807" PostId="2969" Score="0" Text="Apologies Daniel, I was referring to the ink unit test environment but I now see that you are looking to run integration tests. The solution above will not work for integration tests and I've highlighted this" CreationDate="2022-06-01T16:13:33.683" UserId="380" />
  <row Id="2808" PostId="3005" Score="0" Text="https://wiki.polkadot.network/docs/learn-bridges#resources-and-examples" CreationDate="2022-06-01T17:05:09.507" UserId="220" />
  <row Id="2809" PostId="2969" Score="0" Text="The reason why I used integration test is because the contracts needs cross-call to another contracts. AFAIK, we can't do this in `unit test`. To be more specific, we actually re-implement UniswapV2 in ink!. We have a pool contract that depends on two psp22 tokens contract. Is there a way to mock these two psp22 token contracts in unit tests? Tks alot @forgetso" CreationDate="2022-06-01T17:21:09.210" UserId="450" />
  <row Id="2810" PostId="2973" Score="1" Text="please check https://substrate.stackexchange.com/questions/334/what-kinds-of-sync-mechanisms-does-substrate-implement/406" CreationDate="2022-06-01T18:27:34.437" UserId="494" />
  <row Id="2811" PostId="2969" Score="0" Text="Cross contract calls are not possible in ink unit tests currently. If you need to use block timestamps in integration tests you will have to setup your contract data so that the timestamps reflect the test outcome you require. You won't be able to manipulate the timestamps of blocks without manually editing the database or switching the chain data between tests." CreationDate="2022-06-01T19:31:31.923" UserId="380" />
  <row Id="2812" PostId="2865" Score="1" Text="This question may be helpful for you: https://substrate.stackexchange.com/questions/711/when-should-i-use-balances-pallet-and-when-should-i-use-assets-pallet" CreationDate="2022-06-01T19:47:39.647" UserId="29" />
  <row Id="2813" PostId="3005" Score="2" Text="Using InterBTC, yes - the user would deposit their BTC via Interlay. From there you could use Moonriver to build a SC around [xckBTC](https://docs.moonbeam.network/builders/xcm/xc20/xc20). Acala [EVM+](https://wiki.acala.network/learn/acala-evm/acala-evm-composable-defi-stack/composable-defi-stack#fully-composable-defi-primitives-in-evm-and-runtime) allows for SC's and cross-chain assets and they also have kBTC. You could build a parachain and open an HRMP channel with Interlay and put your logic in a runtime. You could build a SC's parachain, use ink!, and open an HRMP channel with Interlay." CreationDate="2022-06-01T20:39:35.827" UserId="29" />
  <row Id="2817" PostId="3009" Score="0" Text="Thank you for the explanation Shawn" CreationDate="2022-06-02T06:38:07.423" UserId="1793" />
  <row Id="2819" PostId="3009" Score="1" Text="But in general those naming convention are I think not so good design .. if something is called FREE should be FREE .. same thing for frozen .. to substract something from free to give me the reducible balance sounds strange ... this maybe should be documented. What do you think ?" CreationDate="2022-06-02T07:12:20.263" UserId="1793" />
  <row Id="2821" PostId="3010" Score="0" Text="Tks for the suggestion. I'm trying to find a solution that can set the timestamp from the client as part of the test. It should behave as `evm_increaseTime` rpc supported in `hardhat` node." CreationDate="2022-06-02T08:06:23.717" UserId="450" />
  <row Id="2822" PostId="3010" Score="1" Text="Perhaps you could create a [custom RPC](https://docs.substrate.io/v3/runtime/custom-rpcs/) that can be called by the JS environment. This custom RPC call could make use of the Timestamp pallet, as suggested by Shawn." CreationDate="2022-06-02T09:07:37.673" UserId="380" />
  <row Id="2823" PostId="2991" Score="0" Text="solution was gas limit needed to be -1 :)" CreationDate="2022-06-02T10:16:02.723" UserId="2680" />
  <row Id="2824" PostId="3017" Score="0" Text="What environment are you in? Relay you are connecting to? Testing locally?" CreationDate="2022-06-02T12:37:22.830" UserId="34" />
  <row Id="2825" PostId="3017" Score="0" Text="Why may I ask are you on such  outdated dependencies and what are you upgrading from yo 0.9.13?" CreationDate="2022-06-02T12:38:21.687" UserId="34" />
  <row Id="2827" PostId="3017" Score="0" Text="@DanShields we are connect to local rococo which is used to act as the staging net before mainnet." CreationDate="2022-06-02T13:05:27.930" UserId="393" />
  <row Id="2828" PostId="3018" Score="0" Text="See also https://substrate.stackexchange.com/questions/2774/error-failed-to-select-a-version-for-parity-util-mem" CreationDate="2022-06-02T13:09:49.443" UserId="34" />
  <row Id="2829" PostId="3017" Score="0" Text="What version of rococo local? You cannot connect to mainnet at this old version" CreationDate="2022-06-02T13:12:10.873" UserId="34" />
  <row Id="2830" PostId="3017" Score="0" Text="@DanShields We didn't upgrade any dependency of Substrate or Cumulus, this upgrade just carry our own pallet's modification. So I don't think the version is the really relative to this question(truly, it's too old)." CreationDate="2022-06-02T13:12:36.863" UserId="393" />
  <row Id="2831" PostId="3017" Score="0" Text="rococo local's version is also 0.9.13." CreationDate="2022-06-02T13:19:43.647" UserId="393" />
  <row Id="2832" PostId="3017" Score="0" Text="Please update everything to the latest possible release (at this time that is 0.9.23)" CreationDate="2022-06-02T14:09:01.983" UserId="34" />
  <row Id="2833" PostId="3017" Score="0" Text="what are you *starting* with and *going to* in this upgrade?" CreationDate="2022-06-02T14:09:27.077" UserId="34" />
  <row Id="2834" PostId="3017" Score="0" Text="@DanShields In this upgrade, we just upgrade our self-define pallet." CreationDate="2022-06-02T15:16:30.670" UserId="393" />
  <row Id="2835" PostId="2988" Score="0" Text="min active stake does not guarantee rewards as it could have been applied to an oversubscribed validator. The min active nomination value can be seen on the Polkadot JS Staking Targets page. That value seems to be coming from https://github.com/polkadot-js/apps/blob/d8f3fca21e8d94d38691a2c1ce224d8ea9cee3e7/packages/page-staking/src/useSortedTargets.ts#L105" CreationDate="2022-06-02T15:36:18.323" UserId="32" />
  <row Id="2836" PostId="3020" Score="0" Text="I was asking for calling other internal functionalities, thanks for the clarification. I will rearrange my question." CreationDate="2022-06-02T15:54:33.280" UserId="2163" />
  <row Id="2837" PostId="2793" Score="0" Text="Shawn, I can not use subscan.io as chain I am using is not supported by them yet." CreationDate="2022-06-03T04:33:52.897" UserId="2057" />
  <row Id="2838" PostId="3000" Score="0" Text="thank you @HCastano for telling us the cause of the error. :)" CreationDate="2022-06-03T07:05:25.463" UserId="2473" />
  <row Id="2840" PostId="3034" Score="0" Text="`T::Hashing` is probably the hashing configuration of your pallet? Could you please share the source code?" CreationDate="2022-06-03T08:24:41.447" UserId="94" />
  <row Id="2841" PostId="3032" Score="2" Text="Check [this one](https://substrate.stackexchange.com/questions/2443/connection-refused-using-unsafe-rpc-external-unsafe-ws-external). You can try running your node with `--unsafe-ws-external --unsafe-rpc-external --rpc-cors all`." CreationDate="2022-06-03T08:46:35.623" UserId="14" />
  <row Id="2842" PostId="3032" Score="0" Text="@ArturGontijo It works fine, post as answer mate!" CreationDate="2022-06-03T09:13:27.483" UserId="180" />
  <row Id="2844" PostId="3033" Score="0" Text="can you please share your error logs?" CreationDate="2022-06-03T09:41:50.947" UserId="429" />
  <row Id="2845" PostId="3008" Score="0" Text="Only I have to update the new binary with old chain-specs file will it work ?" CreationDate="2022-06-03T13:53:06.423" UserId="2033" />
  <row Id="2846" PostId="3008" Score="0" Text="After submitting the upgrade tx, try to simply run the same command you used to start the network the first time, only change the binary." CreationDate="2022-06-03T14:12:41.400" UserId="244" />
  <row Id="2848" PostId="3034" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-06-03T14:56:43.557" UserId="-1" />
  <row Id="2849" PostId="3038" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-06-03T14:57:34.413" UserId="-1" />
  <row Id="2852" PostId="2793" Score="0" Text="updated my post" CreationDate="2022-06-03T15:21:59.597" UserId="28" />
  <row Id="2855" PostId="2714" Score="0" Text="@atesz if this solved your problem, maybe you can answer your own post with the details that specifically unblocked you so that others can learn too." CreationDate="2022-06-03T16:57:49.393" UserId="28" />
  <row Id="2856" PostId="1450" Score="0" Text="@Purple_Turtle did you ever get an answer to this question? if so, can you answer your post below" CreationDate="2022-06-03T18:09:44.523" UserId="28" />
  <row Id="2857" PostId="3008" Score="0" Text="Thanku, I will follow the same." CreationDate="2022-06-03T18:37:13.667" UserId="2033" />
  <row Id="2858" PostId="3050" Score="0" Text="This source is unmodified? What are your node logs?" CreationDate="2022-06-03T19:31:47.330" UserId="34" />
  <row Id="2859" PostId="3030" Score="1" Text="As you mentioned it has bottlenecks and is not ideal for most cases. &#xA;I'm testing locally with 2 seconds block time and I can see some validators skipping slot claiming because finality is lagging." CreationDate="2022-06-03T19:36:55.510" UserId="245" />
  <row Id="2860" PostId="3050" Score="0" Text="Yes, I just updated `customSpec.json` and created a new raw spec. Logs are just idling. I've managed to solve the issue. I knew It wasn't a good question but it worked as a totem :)" CreationDate="2022-06-03T19:42:31.673" UserId="245" />
  <row Id="2861" PostId="3055" Score="0" Text="What are the possible &quot;withdraw reasons&quot; that you would want to include?" CreationDate="2022-06-03T21:46:11.053" UserId="28" />
  <row Id="2862" PostId="3055" Score="0" Text="I just need access as to whether or not the withdraw event was from a Transaction Fee, so the existing [Reasons enum](https://github.com/paritytech/substrate/blob/0ba251c9388452c879bfcca425ada66f1f9bc802/frame/balances/src/lib.rs#L628-L635) would suffice for my purpose. It looks like it may be difficult (depending on the subsequent events) to parse the transaction fee from a Withdrawal with [Reasons::All](https://github.com/paritytech/substrate/blob/0ba251c9388452c879bfcca425ada66f1f9bc802/frame/balances/src/lib.rs#L641), but if I understand correctly, that would be a small minority of txns." CreationDate="2022-06-03T22:09:49.063" UserId="2678" />
  <row Id="2863" PostId="3052" Score="0" Text="tried it both with and without, did not work. I managed to set up the reverse proxy with the IP but in a different port by using Nginx streams. but I could not find a way to set up the stream to use DNS." CreationDate="2022-06-03T22:11:27.740" UserId="2107" />
  <row Id="2864" PostId="1106" Score="1" Text="Sorry for making this an answer; it won't let me comment without 50 rep first :/ We're trying to do the exact thing above, however, the benchmarks are calling the runtime config version and not the mock config version of the trait implementation, and I can't figure out why. The mock pallet config is set to use `T::AccountHandler`, defined inside mock.rs, for a defined `AccountProvider` trait. mock.rs:&#xA;```&#xA;pub struct AccountHandler;&#xA;impl AccountProvider&lt;AccountId, BlockNumber&gt; for AccountHandler { fn get_msa_id(key: &amp;AccountId) -&gt; Option&lt;MessageSenderId&gt; { // etc. }&#xA;}&#xA;impl pallet_messages::Conf" CreationDate="2022-06-04T00:32:54.213" UserId="2060" />
  <row Id="2865" PostId="2793" Score="0" Text="Shawn, thanks for providing code which certainly helps to find which block the funds arrived to specific address. But this is still half done. I need to confirm &quot;how many funds came from which source address&quot;. This is because the payment system will be used by multiple people(source addresses) simultaneously. Your code above helps to find blocks where funds came. Now, how to explore transactions from that block to find which &quot;source address&quot; sent &quot;how much fund&quot; to my destination address. Thanks." CreationDate="2022-06-04T07:02:52.180" UserId="2057" />
  <row Id="2866" PostId="556" Score="0" Text="Would be nice to be able to go from timestamp to nearest block header though. Holding that data and having an RPC call for it would be a lot more efficient than having users binary search you via RPC calls. At the moment there's no linkage between the relay chains except via timestamps - it's the only way to find out what kusama block is happening when polkadot is on block X. Those external tools will be able to do it too but they will be centralised to one degree or another." CreationDate="2022-06-04T08:12:39.083" UserId="85" />
  <row Id="2867" PostId="3036" Score="0" Text="Thanks Ignacio. Exactly what you describe we used now xTokens and we were able to withdraw KSM from parachain to relay chain. Thanks" CreationDate="2022-06-04T11:18:57.263" UserId="1793" />
  <row Id="2868" PostId="2793" Score="0" Text="I am not really interested to write your program for you. If you are running into issues with writing some code, or if you have more specific technical questions which can be answered, feel free to open a new post with that. https://substrate.stackexchange.com/help/how-to-ask" CreationDate="2022-06-04T11:56:09.547" UserId="28" />
  <row Id="2869" PostId="2793" Score="0" Text="You should also review the Polkadot JS Docs: https://polkadot.js.org/docs/" CreationDate="2022-06-04T11:56:48.530" UserId="28" />
  <row Id="2870" PostId="3052" Score="0" Text="Are there new errors or information that you can provide so we can get you a proper answer here? Definitely the examples you posted in your main question are missing the `/wss`, so maybe you need to post updated error messages with the proper commands" CreationDate="2022-06-04T12:00:45.853" UserId="28" />
  <row Id="2871" PostId="3055" Score="0" Text="I don't think we would add this information in this way. For this specific scenario, the best suggestion would be an event specific to transaction payment pallet which specifically emits the fee taken. Beyond that, I have written some code which tries to track fees, and what I end up doing is look at the deposit events for the block author and the treasury, which combined, is the total fee taken for that extrinsic." CreationDate="2022-06-04T12:05:44.197" UserId="28" />
  <row Id="2872" PostId="3059" Score="1" Text="Yeah I wrote a function that does better than binary search based on the block time:&#xA;https://github.com/joepetrowski/rpc-sidecar-requests/blob/083a9f0/stakingrewards.py#L190L262" CreationDate="2022-06-04T14:41:14.627" UserId="620" />
  <row Id="2873" PostId="3055" Score="0" Text="Makes sense. The better ask is probably adding an event to the txn payment pallet as you mention. The problem with looking at the treasury/block author deposit events specifically is that while it may work for a majority of existing chains, this fee logic is customizable and thus not generalizable for all substrate chains" CreationDate="2022-06-04T15:53:21.793" UserId="2678" />
  <row Id="2875" PostId="3052" Score="0" Text="There aren't exactly error messages. The node just don't find each other. I believe the problem is that, using the DNS, the node can be found, but it replies through its own IP, and the connection can't be established because it should come from the same &quot;origin&quot;. Not sure if this makes sense." CreationDate="2022-06-04T17:33:43.920" UserId="2107" />
  <row Id="2877" PostId="3059" Score="0" Text="My rough cut rust version: https://github.com/gilescope/dotsamatown/blob/b9cd64d507051b45bc75a4640688e29faea13237/src/datasource/time_predictor.rs - alas didn't see your impl until I had written it." CreationDate="2022-06-04T18:21:50.653" UserId="85" />
  <row Id="2879" PostId="1450" Score="0" Text="@ShawnTabrizi nope. I just do it with rpc-cors all. I do not recall getting it to work with local host or a specific origin only." CreationDate="2022-06-04T19:20:10.187" UserId="139" />
  <row Id="2881" PostId="3021" Score="0" Text="1. We have bump the spec version. 2. We use sudo.setCode to upgrade." CreationDate="2022-06-05T06:50:19.570" UserId="393" />
  <row Id="2882" PostId="3021" Score="0" Text="will sudo.setCode break this ?" CreationDate="2022-06-05T06:51:57.170" UserId="393" />
  <row Id="2883" PostId="1450" Score="0" Text="Write that as an answer? Or are you still looking for a config more specific?" CreationDate="2022-06-05T07:34:03.843" UserId="28" />
  <row Id="2884" PostId="3065" Score="1" Text="Thank you for your reply! I got it." CreationDate="2022-06-05T13:59:49.127" UserId="2701" />
  <row Id="2885" PostId="3049" Score="0" Text="Thanks, I finally used the [translate()](https://github.com/Phala-Network/khala-parachain/blob/33d3c391bc04b803b2d3de6775567d7da18f0ff9/pallets/assets-registry/src/migration.rs#L48) method to convert an old item to a new one. Sure an old item also needs to be declared to help read from the storage." CreationDate="2022-06-06T03:18:51.223" UserId="2246" />
  <row Id="2887" PostId="3017" Score="0" Text="Now, we begin to reproduce this scenario in our local dev machine, hope to reproduce it and get something close to the nature." CreationDate="2022-06-06T06:13:15.663" UserId="393" />
  <row Id="2888" PostId="3073" Score="0" Text="Thank you very much. In my environment, your code worked except that 'console.log(&quot;accountId=&quot; + key.args[0].toHuman() + &quot;, value=&quot; + value.toHuman())' outputs ' &lt;snip&gt; value=[object Object]'  When I changed it to 'console.log(value.toHuman())', it worked. Concatenation of string and value.toHuman() may have some unexpected behavior unknown to me." CreationDate="2022-06-06T09:50:25.087" UserId="2701" />
  <row Id="2889" PostId="3073" Score="0" Text="When I changed it to 'console.log(&quot;accountId=&quot; + key.args[0].toHuman() + &quot;, value=&quot; + JSON.stringify(value.toHuman(), null, 4));', it showed the value in full details. Thank you again." CreationDate="2022-06-06T09:56:26.663" UserId="2701" />
  <row Id="2890" PostId="3073" Score="0" Text="Sorry for multiple comment, some of the value were still not fully converted into human-readable format, such as [Array] [Array] below. I thought it was due to JSON issue but could not resolve. &#xA;{&#xA;  judgements: [],&#xA;  deposit: '49,999,999,500',&#xA;  info: {&#xA;    additional: [ [Array], [Array] ],&#xA;    display: 'None',&#xA;    legal: 'None',&#xA;    web: 'None',&#xA;    riot: 'None',&#xA;    email: 'None',&#xA;    pgpFingerprint: null,&#xA;    image: 'None',&#xA;    twitter: 'None'&#xA;  }&#xA;}" CreationDate="2022-06-06T10:31:46.153" UserId="2701" />
  <row Id="2891" PostId="2858" Score="0" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-06-06T10:40:17.693" UserId="-1" />
  <row Id="2892" PostId="2898" Score="0" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-06-06T10:44:48.057" UserId="-1" />
  <row Id="2895" PostId="2917" Score="0" Text="yeah I realized this... There is some std leak somewhere" CreationDate="2022-06-06T14:46:55.190" UserId="560" />
  <row Id="2896" PostId="2793" Score="0" Text="Shawn, this is little bit annoying. I was looking for API to scan block for transactions. I have gone through documentation." CreationDate="2022-06-06T14:49:39.900" UserId="2057" />
  <row Id="2897" PostId="3015" Score="0" Text="Please consider marking the answer as `Solution` if it solved your problem. This helps the community to find answers quickly." CreationDate="2022-06-06T14:58:20.797" UserId="94" />
  <row Id="2898" PostId="3073" Score="0" Text="Edited the (untested) code with JSON.stringify to serialize object." CreationDate="2022-06-06T15:50:47.693" UserId="1949" />
  <row Id="2903" PostId="3078" Score="0" Text="Where did you find that broken link? please do report it in an issue on the offending repo if the docs or wiki :)" CreationDate="2022-06-06T23:33:49.013" UserId="34" />
  <row Id="2904" PostId="3078" Score="0" Text="It is _not_ suggested at the moment to try and add a &quot;dummy&quot; parachain just to test things out. Westend doens't allow for general parachains and likely will not, and rococo is really for testing _staging ready_ chains that are looking to launch on Kusama while it's still a more manual an limited availability zone for open slots." CreationDate="2022-06-06T23:35:48.427" UserId="34" />
  <row Id="2905" PostId="3078" Score="0" Text="please use instead https://github.com/paritytech/zombienet or https://github.com/open-web3-stack/parachain-launch to test locally if you don't want to manually configre a parachain similar to kitties, if so, please follow the cumulus tutorial: https://docs.substrate.io/tutorials/v3/cumulus/start-relay/" CreationDate="2022-06-06T23:38:02.737" UserId="34" />
  <row Id="2906" PostId="170" Score="0" Text="@Keith Yeung.&#xA;First, thanks for your article.&#xA;I just tried as you mentioned above but I got an error when run &quot;cargo build --release&quot; command.&#xA;Here is my error.&#xA;[![enter image description here](https://i.stack.imgur.com/Dd2jC.png)](https://i.stack.imgur.com/Dd2jC.png) How can I fix this problem?&#xA;Please teach me.&#xA;Best Regards." CreationDate="2022-06-05T12:43:36.460" UserId="2684" />
  <row Id="2907" PostId="170" Score="0" Text="You need to add the missing import at the top of the file: `use sc_service::Properties`. If you are using the node-template, you can see that there's already an import of the sc_service, so you can extend it like `use sc_service::{ChainType, Properties};` The rust compiler gives really good error handling and details on how to solve it." CreationDate="2022-06-06T05:43:09.093" UserId="2102" />
  <row Id="2909" PostId="2793" Score="0" Text="Please open a question for that new specific question, and I (or someone else) will be happy to answer it." CreationDate="2022-06-07T03:07:25.173" UserId="28" />
  <row Id="2910" PostId="3081" Score="0" Text="does this solve your problem? https://stackoverflow.com/questions/52656814/can-i-alias-fully-qualified-syntax &amp;&amp; https://doc.rust-lang.org/book/ch19-03-advanced-traits.html#fully-qualified-syntax-for-disambiguation-calling-methods-with-the-same-name" CreationDate="2022-06-07T04:03:29.630" UserId="34" />
  <row Id="2912" PostId="3077" Score="0" Text="if Alice and Bob are validators then are they being run on a standalone chain and connected to a relay chain via a bridge? Or are Alice and Bob collators?" CreationDate="2022-06-07T08:24:07.253" UserId="83" />
  <row Id="2915" PostId="3017" Score="0" Text="We have solved this problem, and I'll explain the whole thing later." CreationDate="2022-06-07T10:57:13.927" UserId="393" />
  <row Id="2916" PostId="2382" Score="0" Text="Thanks for your response. There is also `Endowed`. What does it mean?" CreationDate="2022-06-07T10:58:36.267" UserId="2705" />
  <row Id="2918" PostId="3077" Score="0" Text="I want to Purge the validators" CreationDate="2022-06-07T11:46:04.640" UserId="555" />
  <row Id="2919" PostId="3077" Score="1" Text="Have you tried to use PolkadoJS: `Developer -&gt; Sudo -&gt; validatorManager.deregisterValidators()` ?" CreationDate="2022-06-07T12:31:22.770" UserId="14" />
  <row Id="2920" PostId="3092" Score="0" Text="Sounds like you're emptying the account after the first test or the account is empty. How much funds does `5F2DEdhqyaDvPpasrhSLv8KxjdnVG1MZTAkHPA5doArnvQj4` have? Maybe you should send some more from `Alice` etc." CreationDate="2022-06-07T13:08:22.880" UserId="380" />
  <row Id="2922" PostId="3077" Score="0" Text="If i run, this error comes:  Prepared block for proposing at 778 (8 ms) [hash: 0xa83337f768d6b1811130a0f6ff1d43bc5425e65c7ede352362606c7f5618636a; parent_hash: 0xd3cb…e7be; extrinsics (2): [0x3866…add7, 0xcb0d…1786]]&#xA;2022-06-07 18:31:00  Pre-sealed block for proposal at 778. Hash now 0x25bfe9c9be345bfcec6ca3a3c56b65a254cf8f71c210907427e0b134853fabc0, previously 0xa83337f768d6b1811130a0f6ff1d43bc5425e65c7ede352362606c7f5618636a.&#xA;2022-06-07 18:31:00 Error with block built on 0xd3cbe75706aa06b2ee91b1aa7c1316e458f72af9b7f282bab2d91278e2b5e7be: Import failed: Unexpected epoch change" CreationDate="2022-06-07T13:28:41.547" UserId="555" />
  <row Id="2923" PostId="3077" Score="0" Text="@DeepakChaudhary that sounds like an issue with the consensus mechanism. What are your chain specifications?" CreationDate="2022-06-07T13:50:51.390" UserId="272" />
  <row Id="2924" PostId="2918" Score="0" Text="could you help with Github CICD setup with Zombienet? Thanks https://substrate.stackexchange.com/questions/3096/how-to-setup-kubectl-minikube-zombienet-tests-in-github-cicd" CreationDate="2022-06-07T14:03:42.510" UserId="1789" />
  <row Id="2927" PostId="3021" Score="0" Text="You can use `setCode`- it does not break anything. It is fine to use. `authorize_upgrade` and then `enact_authorized_upgrade` is discrete where as `setCode` just bundles it all together." CreationDate="2022-06-07T15:06:58.570" UserId="29" />
  <row Id="2928" PostId="3099" Score="0" Text="Can you share the runtime you are using? `set_balance` requires Root origin, and it looks like you don't have the Democracy included that would dispatch the call as root." CreationDate="2022-06-07T18:58:14.607" UserId="620" />
  <row Id="2929" PostId="3103" Score="0" Text="Thanks so much Tony.  Exactly what I did but had to use NGINX/Proxy to be able to expose the websocket.   But all is well and done.  Thanks so much again" CreationDate="2022-06-08T00:11:05.343" UserId="2565" />
  <row Id="2930" PostId="3021" Score="0" Text="Thank you, Bruno." CreationDate="2022-06-08T02:21:37.650" UserId="393" />
  <row Id="2931" PostId="3105" Score="2" Text="Of course adding a chain extension is doable. However compared with mature smart contract language like Solidity, it's definitely reasonable to have native balance query. You can find the full list of the native API here: https://paritytech.github.io/ink/ink_env/#functions" CreationDate="2022-06-08T03:40:46.597" UserId="544" />
  <row Id="2932" PostId="3057" Score="0" Text="Hey @Swader, thanks for the response. I ended up building a SQL db I populated with SubSquid. At the time they don't have extrinsics for remarks, formally accessible. I was still able to pull them and 'scrape' the blockchain for any OP_TYPE remarks. &#xA;Works like a charm.&#xA;&#xA;Next, create my own Node to seed my own DB I use" CreationDate="2022-06-08T03:48:26.090" UserId="2146" />
  <row Id="2933" PostId="3077" Score="0" Text="https://substrate.stackexchange.com/questions/707/after-restarting-a-chain-i-get-a-clientimportunexpect-epoch-change-error-wh is the issue, you want to reset your nodes database with the `--purge` command. See `--help` for use there." CreationDate="2022-06-08T06:35:30.613" UserId="34" />
  <row Id="2934" PostId="3077" Score="0" Text="Checkout https://substrate.stackexchange.com/help/how-to-ask to get familiar with best practices to get support of the community here :)" CreationDate="2022-06-08T06:36:55.370" UserId="34" />
  <row Id="2936" PostId="3101" Score="0" Text="What is your specific question / problem?" CreationDate="2022-06-08T10:01:03.377" UserId="28" />
  <row Id="2939" PostId="3112" Score="0" Text="Thank you for the response @shawn. After creating an Asset in para chain, I was able to teleport it to relay chain, but on relay chain I am getting UntrustedTeleportLocation. Can you guide what could be the case here?" CreationDate="2022-06-08T11:37:33.643" UserId="2709" />
  <row Id="2941" PostId="3116" Score="0" Text="Wouldn't it be possible to use the `ink!` chain extension to call the `scheduler` pallet?" CreationDate="2022-06-08T15:20:34.013" UserId="14" />
  <row Id="2942" PostId="3116" Score="1" Text="Yes, but the principal is still the same. You have something _external_ to `ink!` that is doing the call to the `retrieve` function. It's not native to `ink!`. Plus, you would need to incentivise a network of nodes running your customised substrate node containing the aforementioned chain extension." CreationDate="2022-06-08T15:28:56.347" UserId="380" />
  <row Id="2943" PostId="3116" Score="0" Text="Got it, thanks!" CreationDate="2022-06-08T15:34:42.433" UserId="14" />
  <row Id="2944" PostId="3115" Score="2" Text="Have you created both genesis (state and wasm) using the same raw chain spec JSON file that your parachain is using to run? Maybe describing all the steps you took would be useful for us to help you." CreationDate="2022-06-08T16:34:55.630" UserId="14" />
  <row Id="2945" PostId="3115" Score="0" Text="You try using a file upload ?" CreationDate="2022-06-08T16:55:22.120" UserId="34" />
  <row Id="2946" PostId="3115" Score="0" Text="Also as a best practice, updating your Polkadot dependency should match on collator and relay chain. In this specific case I think you at incompatible. Try updating your coalitor" CreationDate="2022-06-08T16:57:18.523" UserId="34" />
  <row Id="2947" PostId="3101" Score="0" Text="why is our benchmark not using the mocked trait?" CreationDate="2022-06-08T18:04:04.910" UserId="590" />
  <row Id="2948" PostId="3121" Score="0" Text="Yeah, I've already come up with the same idea of storing indexes in Vec, thnx" CreationDate="2022-06-08T19:31:32.413" UserId="2408" />
  <row Id="2949" PostId="3113" Score="0" Text="this idea is interesting, how can I see it's worked?&#xA;```cargo build``` and ```cargo check``` didn't." CreationDate="2022-06-09T03:55:46.420" UserId="515" />
  <row Id="2950" PostId="2991" Score="1" Text="Duplicate of https://substrate.stackexchange.com/questions/2356/contract-call-returns-error-found-input-with-28-bits-expected-8-polkadot-js" CreationDate="2022-06-09T06:56:06.393" UserId="1949" />
  <row Id="2952" PostId="3115" Score="0" Text="Thank you for your comments &#xA;&#xA;@ArturGontijo Yes, genesis state and wasm comes from the same raw chain spec JSON file. https://raw.githubusercontent.com/AstarNetwork/Astar/fix/modify-astar-alphanet-raw/bin/collator/res/astar-alphanet.raw.json&#xA;&#xA;parachain-id is 2006 export-genesis-state &amp; export-genesis-wasm result in the above state." CreationDate="2022-06-09T09:46:53.407" UserId="275" />
  <row Id="2953" PostId="3115" Score="0" Text="@DanShields I see. I'll try to update version" CreationDate="2022-06-09T09:50:06.907" UserId="275" />
  <row Id="2954" PostId="3049" Score="0" Text="If you found your own answer to the question, please do post the answer and mark the question as resolved :)" CreationDate="2022-06-09T10:41:55.190" UserId="28" />
  <row Id="2955" PostId="3112" Score="0" Text="XCM is not aware of the logic of both chains. You can absolutely initiate some XCM from parachain A, which will then be rejected by parachain B or even the relay chain. In this case, as I have mentioned, your Parachain is trying to move some asset to the relay chain, but the relay chain does not support that asset, nor does it trust your chain (an XCM configuration). Because of that, it will reject that XCM message." CreationDate="2022-06-09T10:43:33.913" UserId="28" />
  <row Id="2957" PostId="3113" Score="1" Text="You need to run tests on the crate which contains the `construct_runtime!`, so `cargo test -p node-template-runtime`, or potentially some special test/mock function in your pallet tests." CreationDate="2022-06-09T10:52:51.133" UserId="28" />
  <row Id="2960" PostId="3148" Score="0" Text="Can you please share reproduction steps, and how you are trying to &quot;view&quot; them?" CreationDate="2022-06-09T14:55:36.800" UserId="28" />
  <row Id="2961" PostId="3149" Score="0" Text="Unfortunately, `remark_with_event` cannot be called from root origin as it requires a signature." CreationDate="2022-06-09T15:07:03.190" UserId="2713" />
  <row Id="2963" PostId="3148" Score="0" Text="1. Run relay node in dev mode (template in Substrate repo) &#xA;&#xA;2. Execute sudo(remark(...))&#xA;&#xA;3. In Polkadot-JS Apps look at the block in which the sudo extrinsic was successful. It just lists sudo whereas a normal remark is listed under extrinsics. I am wondering if there is any way to view the sudo(remark(...))), maybe with a block explorer like Subscan if it exists? I would like to propose a remark to governance and have it executed and refer to it later." CreationDate="2022-06-09T15:19:15.463" UserId="2713" />
  <row Id="2964" PostId="3150" Score="0" Text="https://substrate.stackexchange.com/a/2491/380" CreationDate="2022-06-09T15:50:53.297" UserId="380" />
  <row Id="2966" PostId="3122" Score="0" Text="The reason was that I've been using a `members: Vec&lt;AccountId&gt;` in my storage struct. But it's really strange that this is not possible. Opening another question then." CreationDate="2022-06-09T15:55:25.143" UserId="2408" />
  <row Id="2967" PostId="3150" Score="0" Text="Try adding --rpc-cors all. If you are running in --dev mode the default is to allow all origins." CreationDate="2022-06-09T16:04:29.700" UserId="2634" />
  <row Id="2969" PostId="3150" Score="0" Text="this could be related to ad blockers on your browser." CreationDate="2022-06-09T18:50:18.803" UserId="494" />
  <row Id="2970" PostId="712" Score="0" Text="`Currency` is not a pallet, it is a trait defined by FRAME that pallet-balances implements." CreationDate="2022-06-09T19:01:44.953" UserId="494" />
  <row Id="2971" PostId="3161" Score="0" Text="A quick follow up what exactly is included in a POV, I can't quite find that in the codebase" CreationDate="2022-06-09T20:28:48.883" UserId="711" />
  <row Id="2972" PostId="3161" Score="1" Text="The final block + the storage proof (aka everything you read from the storage + intermediate trie nodes)." CreationDate="2022-06-09T20:47:15.607" UserId="73" />
  <row Id="2973" PostId="3160" Score="0" Text="I signed Alice's public key using https://polkadot.js.org/apps/#/signing. I',m sure that `sig` is what I send with the header. After signing, I send the combination as a header using Postman. I guess I need to use a client library that can create a 64-byes long signature." CreationDate="2022-06-09T21:27:55.743" UserId="245" />
  <row Id="2974" PostId="3008" Score="0" Text="@Asmita if that worked for you please accept it as the correct answer :-)" CreationDate="2022-06-09T21:30:34.360" UserId="244" />
  <row Id="2975" PostId="3162" Score="0" Text="Tks for the info @bkchr. As I understand, while syncing (replaying), old host functions are still needed if there exists transactions using the old host functions in the past. . But if there are no transactions using that old host functions from the beginning, we can remove it right?" CreationDate="2022-06-10T02:51:05.753" UserId="450" />
  <row Id="2976" PostId="3163" Score="1" Text="Also, a sane migration will only happen if the current and onchain `StorageVersion`  don't match, which in this case they do. This is why they are being printed." CreationDate="2022-06-10T06:00:13.637" UserId="167" />
  <row Id="2977" PostId="3169" Score="0" Text="Yeah, I know both of these things. Sorry to be so blunt, but this doesn't answer my question at all: &quot;Is this expected behavior? I would have expected the storage version of the pallet to be written to storage at genesis. If this is expected behavior, why is this the case?&quot;" CreationDate="2022-06-10T06:26:36.743" UserId="3" />
  <row Id="2978" PostId="3115" Score="0" Text="Using polkadot-launch, with Relaychain rococo-local, parachain with this raw spec json can produce blocks. However, with westend-local, it doesn't produce blocks." CreationDate="2022-06-10T06:53:18.190" UserId="275" />
  <row Id="2979" PostId="3169" Score="0" Text="&quot;I would have expected the storage version of the pallet to be written to storage at genesis. &quot; --- It's not work that way, storage version number in pallet::storage_version macro is just a mark, won't affect the real storage version in DB." CreationDate="2022-06-10T08:28:45.950" UserId="393" />
  <row Id="2980" PostId="3141" Score="1" Text="Indeed. Releases are weekly, generally on weekends (+ or - and day or two)" CreationDate="2022-06-10T08:51:18.627" UserId="627" />
  <row Id="2981" PostId="3147" Score="0" Text="Maybe you can check if the log level has changed between v0.9.16 and v0.9.23. And try to pass env arguments for log level, set all to trace, check if the log occurs." CreationDate="2022-06-10T09:03:38.540" UserId="393" />
  <row Id="2982" PostId="3169" Score="0" Text="Okay, but why? If I start a development node after my chain has had a couple of storage migrations, this means that the development node that the incorrect storage version. This makes testing future storage migrations rather annoying. I don't see the reason for this." CreationDate="2022-06-10T09:52:47.073" UserId="3" />
  <row Id="2983" PostId="3169" Score="0" Text="Also, I've edited the question. It seems like specified storage version _does_ get put into on-chain storage at genesis." CreationDate="2022-06-10T09:53:06.703" UserId="3" />
  <row Id="2984" PostId="3175" Score="0" Text="Congrats :) - would you mind sharing more concretely how this was done for those looking here to see the an example of what worked? No huge pressure of course." CreationDate="2022-06-10T10:44:35.017" UserId="34" />
  <row Id="2985" PostId="3166" Score="1" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-06-10T10:44:57.240" UserId="-1" />
  <row Id="2986" PostId="3182" Score="0" Text="Thanks for the reply. I did not know this implication of `--dev` yet ☺️ &#xA;&#xA;However, the remainder of your statement cant be true for 0.9.23 or below as in the example above, I ran the Polkadot binary with `--dev` and still received the desired output. Or did I misunderstand you?" CreationDate="2022-06-10T12:01:50.707" UserId="2713" />
  <row Id="2987" PostId="3182" Score="0" Text="Moreover, I started a node of my runtime for a live network (so non-dev) and it did not print the startup message :(" CreationDate="2022-06-10T12:20:33.520" UserId="2713" />
  <row Id="2988" PostId="3147" Score="0" Text="I cannot reproduce this with the latest polkadot releas binary from [here](https://github.com/paritytech/polkadot/releases/tag/v0.9.23).  &#xA;What did you modify? If you use the provided binary, you should see the old message." CreationDate="2022-06-10T12:41:38.697" UserId="94" />
  <row Id="2989" PostId="3187" Score="0" Text="Are you running two nodes or why is the second port different?  &#xA;How did you start the nodes?" CreationDate="2022-06-10T15:30:05.337" UserId="94" />
  <row Id="2990" PostId="3190" Score="0" Text="Could be double scale encoded?" CreationDate="2022-06-10T16:00:58.000" UserId="85" />
  <row Id="2991" PostId="3164" Score="0" Text="I've had the same idea and managed to make it work somehow. Maybe it can help.&#xA;https://github.com/buraktabn/relay-chain" CreationDate="2022-06-10T18:02:49.057" UserId="245" />
  <row Id="2992" PostId="2933" Score="0" Text="`author_submitExtrinsic` is what I was looking for! Thanks to Dan I can see exact steps you mentioned in subxt https://github.com/paritytech/subxt/blob/master/subxt/src/client.rs#L316" CreationDate="2022-06-10T18:25:13.510" UserId="245" />
  <row Id="2993" PostId="2932" Score="1" Text="Unfortunately, there's a lack of Substrate libraries for the dart-lang. I'm planning to fill that void. Taking a look at `subxt` helped a lot." CreationDate="2022-06-10T18:27:40.447" UserId="245" />
  <row Id="2994" PostId="3164" Score="0" Text="Thanks! That's exactly what I was looking for!" CreationDate="2022-06-10T21:54:17.073" UserId="2714" />
  <row Id="2995" PostId="3164" Score="0" Text="When compiling it, it looks like there are some errors from [these lines](https://github.com/buraktabn/relay-chain/blob/main/node/service/src/lib.rs#L664-L666)&#xA;&#xA;It looks a bit incomplete here. What were you going for in these lines?" CreationDate="2022-06-10T22:10:33.283" UserId="2714" />
  <row Id="2996" PostId="3199" Score="1" Text="Hi, thank you very much for your answer. It's a bit late here now but I will try it tomorrow. Much appreciated mate." CreationDate="2022-06-10T23:42:27.263" UserId="570" />
  <row Id="2997" PostId="3164" Score="0" Text="Ah, I must have forgotten those in there. I had an idea if I could have another block production service running alongside it (only to have a consensus over RPC calls so clients would have easy access). Ditched the idea for now :) Remove those lines and it'll compile. `./target/release/polkadot --chain kusama-dev --tmp --alice` to run." CreationDate="2022-06-10T23:57:27.970" UserId="245" />
  <row Id="2998" PostId="3147" Score="0" Text="For the Polkadot, Substrate and Cumulus repositories, everything is fine. However in my own repository which holds a parachain and relay runtime each, both clients don't print." CreationDate="2022-06-11T07:02:50.163" UserId="2713" />
  <row Id="3001" PostId="3197" Score="0" Text="Please add more details and a snippet of this test. [how to ask a good question](https://substrate.stackexchange.com/help/how-to-ask) is something to review too ;) As is, this isn't a good question" CreationDate="2022-06-11T17:52:55.483" UserId="34" />
  <row Id="3002" PostId="3202" Score="0" Text="Can you check your configuration inside chain_spec.rs i think, And also you can try to search for that method can_author_with" CreationDate="2022-06-11T17:53:20.217" UserId="351" />
  <row Id="3005" PostId="3197" Score="0" Text="I've added some code and details. Pls, take a look." CreationDate="2022-06-11T20:00:48.360" UserId="2408" />
  <row Id="3006" PostId="3205" Score="0" Text="I think max_block only refers to weights of non-reserve extrinsics and base_block refers to the base weight. And I think the closeness of the names is confusing. Probably the max_block should be named max_extrinsics_weight. So I think you are right base_weight is not included." CreationDate="2022-06-11T20:47:18.550" UserId="298" />
  <row Id="3007" PostId="3207" Score="0" Text="https://paritytech.github.io/substrate/monthly-2021-09+1/frame_system/limits/struct.BlockWeights.html&#xA;&#xA;I’m assuming I can squeeze as low as the base_block weight. I wonder how fast that is. Can I do more than 1 block per second?" CreationDate="2022-06-11T20:51:19.757" UserId="298" />
  <row Id="3008" PostId="3206" Score="1" Text="this is a really nice video from Shawn Tabrizi, check 16:30 https://youtu.be/kKKOL20FdII" CreationDate="2022-06-11T21:03:57.353" UserId="298" />
  <row Id="3009" PostId="3206" Score="1" Text="Its 0(log n) to read, where n is nodes in the trie, so a large struct to access a u8 will be more to read, but it’s useful if you need to access and/or update the other data in the struct at the same time. But if you only need to read and update the one value better to store by itself. Less nodes to read (… i think)" CreationDate="2022-06-11T21:28:16.700" UserId="298" />
  <row Id="3010" PostId="3206" Score="1" Text="I will probably write an answer here as well, but in the meantime you can have a look at this analysis https://substrate.stackexchange.com/questions/525/how-expensive-is-it-to-access-storage-items" CreationDate="2022-06-12T00:06:56.527" UserId="94" />
  <row Id="3012" PostId="3202" Score="0" Text="@MrishoLukamba i checked chain_spec.rs and also can_author_with method but was not able to diagnose anything" CreationDate="2022-06-12T02:26:41.467" UserId="354" />
  <row Id="3013" PostId="3175" Score="0" Text="@DanShields gladly - what do you think would be helpful, specifically?" CreationDate="2022-06-12T10:58:29.380" UserId="2264" />
  <row Id="3014" PostId="3216" Score="2" Text="Seems to be all ok now - the nextFreeId is 4,000 now. (Checked by querying the state)" CreationDate="2022-06-12T11:26:22.593" UserId="627" />
  <row Id="3015" PostId="3214" Score="0" Text="Can you link the PRs that may change this in the future please ?" CreationDate="2022-06-12T14:20:42.900" UserId="2340" />
  <row Id="3016" PostId="3214" Score="0" Text="So I have a problem here ! How can I make so that `origin` pay for the call dispatched in it's name in a hook ?" CreationDate="2022-06-12T14:34:35.327" UserId="2340" />
  <row Id="3017" PostId="3214" Score="0" Text="Or in another signed transaction ?&#xA;Using the `pre_dispatch` function from the `SignedExtension` trait maybe ?" CreationDate="2022-06-12T14:54:47.313" UserId="2340" />
  <row Id="3018" PostId="3214" Score="0" Text="Seems like yes, by adding &#xA;`type OnChargeTransaction = CurrencyAdapter&lt;Balances, DealWithFees&lt;Runtime&gt;&gt;;` to my pallet config !" CreationDate="2022-06-12T15:13:20.853" UserId="2340" />
  <row Id="3019" PostId="3202" Score="0" Text="Okey can you maybe try to run your own private network using Alice and bob as predefined validators, follow the private network tutorial, and see if that problem still persists" CreationDate="2022-06-12T17:07:58.857" UserId="351" />
  <row Id="3020" PostId="3217" Score="0" Text="did you try installing OpenSSL as suggested by the compiler?" CreationDate="2022-06-12T18:15:38.237" UserId="1837" />
  <row Id="3021" PostId="3184" Score="2" Text="This would only help you to store the owner of the contract but not of the blob itself. Can I ask what you need this information for in a contract?" CreationDate="2022-06-12T19:46:59.527" UserId="16" />
  <row Id="3022" PostId="3164" Score="0" Text="Thanks again! I have a question regarding the spec files you included. It looks like you have a customSpec.json, and a kusama.json. &#xA;&#xA;Is kusama.json the spec that is used when you run ```./target/release/polkadot --chain kusama-dev --tmp --alice```? Where is are the raw specs stored?" CreationDate="2022-06-12T20:40:10.347" UserId="2714" />
  <row Id="3023" PostId="3164" Score="0" Text="How would I create a parachain to this relay chain? Following the [tutorial](https://docs.substrate.io/tutorials/v3/cumulus/connect-parachain), I'm up to the step:&#xA;&#xA;```./target/release/parachain-collator \&#xA;--alice \&#xA;--collator \..&#xA;-- \&#xA;--execution wasm \&#xA;--chain &lt;relay chain raw chain spec&gt; \&#xA;--port 30343 \&#xA;--ws-port 9977```&#xA;&#xA;What would I use for the relay chain raw chain spec? I tried kusama dev and got error ```Invalid input: `kusama-dev` only supported with `kusama-native` feature enabled.&quot;)```" CreationDate="2022-06-12T20:49:13.210" UserId="2714" />
  <row Id="3024" PostId="3111" Score="0" Text="Thanks Shawn for naming the Event.&#xA;&#xA;I found the documentation here:&#xA;https://polkadot.js.org/docs/substrate/events/#stakerselected&#xA;&#xA;And here is the code to listen for events:&#xA;https://polkadot.js.org/docs/api/examples/promise/system-events" CreationDate="2022-06-12T21:15:30.450" UserId="2344" />
  <row Id="3025" PostId="3212" Score="0" Text="I’m voting to close this question because the problem is now resolved" CreationDate="2022-06-12T22:46:25.590" UserId="34" />
  <row Id="3026" PostId="3164" Score="0" Text="I haven't exported any chain-spec, Those are from polkadot and substrate. You can find [here](https://github.com/buraktabn/relay-chain/blob/baefae02ef015383afabdc689aa635c3c53c4a5a/node/cli/src/command.rs#L87) for the configs. As for the parachains, I've never tried to run parachain on it. Maybe generate spec for `kusama-dev` and make sure the node running with the same chain spec as well. `./target/release/polkadot build-spec --disable-default-bootnode --chain kusama-dev &gt; customSpec.json`" CreationDate="2022-06-13T01:15:04.367" UserId="245" />
  <row Id="3027" PostId="3169" Score="1" Text="I think your assumption is not proper. You can check this test case: https://github.com/paritytech/substrate/blob/158cdfd1a43a122f8cfbf70473fcd54a3b418f3d/frame/support/test/tests/pallet_instance.rs#L591" CreationDate="2022-06-13T02:39:21.597" UserId="393" />
  <row Id="3028" PostId="3169" Score="0" Text="The test case tells us clearly, current_storage_version won't be put into storage when on_genesis." CreationDate="2022-06-13T02:40:10.193" UserId="393" />
  <row Id="3029" PostId="3187" Score="0" Text="I am running both nodes on same system, that is why i need to have different ports." CreationDate="2022-06-13T04:41:15.467" UserId="2662" />
  <row Id="3030" PostId="3202" Score="0" Text="@MrishoLukamba tried to run private network but still getting same issue" CreationDate="2022-06-13T04:48:39.967" UserId="354" />
  <row Id="3031" PostId="3207" Score="0" Text="To accurately answer this question, we need more context for your benchmark:&#xA;&#xA;- how many nodes in the network?&#xA;- what is the geographical situation of these nodes?&#xA;- what is the hardware?&#xA;- what is the initial config?&#xA;...&#xA;&#xA;I recommend you to read the answer of this question similar to yours:&#xA;&#xA;https://substrate.stackexchange.com/questions/3028/what-is-the-possible-minimum-block-time" CreationDate="2022-06-13T08:57:18.250" UserId="2025" />
  <row Id="3033" PostId="3202" Score="0" Text="I really dont have full context of the issue. Is it a new fresh template?" CreationDate="2022-06-13T09:51:52.693" UserId="351" />
  <row Id="3034" PostId="3187" Score="0" Text="And how did you start the nodes? Please provide the console commands, otherwise we cannot investigate this." CreationDate="2022-06-13T10:12:21.813" UserId="94" />
  <row Id="3036" PostId="3184" Score="0" Text="To impose the restriction that only the code owner can create instances of the contract without hardcoding account names" CreationDate="2022-06-13T11:14:45.287" UserId="477" />
  <row Id="3037" PostId="3214" Score="0" Text="For example: https://github.com/paritytech/substrate/pull/11524" CreationDate="2022-06-13T15:02:25.763" UserId="620" />
  <row Id="3038" PostId="3229" Score="0" Text="Thanks for the detailed question. Just one more thing: What are you doing? Creating a para-chain or just tinkering with Substrate?" CreationDate="2022-06-13T15:22:48.880" UserId="94" />
  <row Id="3039" PostId="3233" Score="0" Text="You can work with different representation of numbers. For example after getting an answer like 2.5 you do 2.5 * 10 and in the front end you can divide back." CreationDate="2022-06-13T18:05:26.333" UserId="351" />
  <row Id="3040" PostId="3217" Score="0" Text="@salman01z yes i did ." CreationDate="2022-06-13T18:08:41.147" UserId="2722" />
  <row Id="3041" PostId="1210" Score="0" Text="`subkey inspect` allows to get the public account in different formats" CreationDate="2022-06-13T18:30:18.567" UserId="484" />
  <row Id="3042" PostId="3197" Score="0" Text="Can you try using `cargo +nightly test` instead of `cargo +nightly contract test` and post the output here? The latter doesn't provide very helpful output (see https://github.com/paritytech/cargo-contract/issues/421)." CreationDate="2022-06-13T19:03:42.740" UserId="1824" />
  <row Id="3043" PostId="3152" Score="1" Text="Also a note on this, you can't use libraries like `rand` since they typically get entropy from the operating system, which is not accessible from the context of a smart contract running on a blockchain." CreationDate="2022-06-13T19:39:37.580" UserId="1824" />
  <row Id="3044" PostId="3233" Score="0" Text="In what context do you want to use this? What base specifically do you need? Perhaps `e` also know as natural? What accuracy do you need in the result and why?" CreationDate="2022-06-13T21:23:48.093" UserId="34" />
  <row Id="3045" PostId="3228" Score="0" Text="yes, the weights of all operations between each block must be accounted for so we can be confident to achieve the target block  time block time. This weights video give a great overview: https://www.youtube.com/watch?v=bb0JotmiGEM and another on benchmarking:  https://www.youtube.com/watch?v=i3zW4wGexAc" CreationDate="2022-06-13T21:31:51.387" UserId="34" />
  <row Id="3048" PostId="3244" Score="1" Text="`@polkadot/api-contracts` cannot interact with Ethereum-like contracts, only those using the Substrate contracts pallet. In this case it would seem, since you are trying on Moon*, it is an Ethereum-like contract. (To verify, sharing your ABI would be useful)" CreationDate="2022-06-14T05:00:28.817" UserId="627" />
  <row Id="3049" PostId="3244" Score="0" Text="Oh that would make sense, I just assumed that since moonriver was built on kusama that the polkadot api would be able to interact with it. Here is the abi I was using: https://pastebin.com/D5GnE8cE. Also if you have any tips for how to interact with this contract using javascript that would be super helpful:)" CreationDate="2022-06-14T06:06:24.137" UserId="2731" />
  <row Id="3050" PostId="3236" Score="1" Text="I don't believe having the same field names matters -&gt; exactly, only types are needed for contextual information (edited my message)" CreationDate="2022-06-14T07:35:35.843" UserId="567" />
  <row Id="3051" PostId="3237" Score="0" Text="Hey Oliver, first of all, thanks for this very detailed answer, a couple of things are way more clear to me now! Our project won't launch as a para chain, but as a standalone blockchain. I'm still a little confused... I see in a lot of other projects that they just pass an empty tuple or the weights from the FRAME pallets in their runtime. For e.x [here](https://github.com/AcalaNetwork/Acala/blob/master/runtime/acala/src/lib.rs). If i assume that this here is the production runtime, is it wrong or do I miss something?" CreationDate="2022-06-14T07:39:09.003" UserId="479" />
  <row Id="3053" PostId="653" Score="0" Text="is there any property in ex to get result of transfer ?" CreationDate="2022-06-14T09:35:07.113" UserId="2735" />
  <row Id="3054" PostId="3233" Score="0" Text="Was thinking of logarithmic inflation of tokens. 4 to 5 decimal accuracy would be fine." CreationDate="2022-06-14T09:57:54.887" UserId="213" />
  <row Id="3063" PostId="3258" Score="0" Text="I get result null when running your curl example with rpc node: https://rpc.polkadot.io/" CreationDate="2022-06-14T12:11:25.483" UserId="2734" />
  <row Id="3064" PostId="3252" Score="0" Text="What do you need `MyMapTmp` for? Why not directly insert into `crate::MyMap`?&#xA;Otherwise you insert into the same map that you drain." CreationDate="2022-06-14T12:44:38.967" UserId="94" />
  <row Id="3065" PostId="3252" Score="0" Text="Ah sorry, MyMapTmp is supposed to have the same keytype as MyMapNew. I thought the temporary map is required because else I would write into the same map I am draining: I thought that the in-memory old map does have the same hex prefix as the new one defined in the pallet since the only diff between both is the keytype. Is that assumption wrong?" CreationDate="2022-06-14T13:17:15.233" UserId="280" />
  <row Id="3066" PostId="3252" Score="0" Text="I updated the keytype of MyMapTmp to mirror MyMapNew." CreationDate="2022-06-14T13:18:40.643" UserId="280" />
  <row Id="3067" PostId="3258" Score="0" Text="@124141251 this is probably because `//Alice` does not 'exist` on polkadot.io. Try with some account that has some history / balances" CreationDate="2022-06-14T13:25:52.627" UserId="2736" />
  <row Id="3068" PostId="3258" Score="0" Text="I think its due to the Blake2 algorithm. I can't find an implementation for dart lang." CreationDate="2022-06-14T13:57:39.730" UserId="2734" />
  <row Id="3069" PostId="3197" Score="0" Text="Oh wow, it really gives a much more detailed output. I was using `cargo +nightly contract test` just because of [this line](https://github.com/paritytech/cargo-contract#:~:text=the%20target/%20directory.-,cargo%20contract%20test,-Runs%20test%20suites). But your advise solved the problem." CreationDate="2022-06-14T14:19:52.090" UserId="2408" />
  <row Id="3070" PostId="3146" Score="0" Text="Can you share your repo where you have these changes? I would like to replicate your issue." CreationDate="2022-06-14T15:21:44.820" UserId="29" />
  <row Id="3071" PostId="3146" Score="0" Text="@Bruno https://github.com/maltekliemann/substrate-node-template" CreationDate="2022-06-14T16:40:00.337" UserId="3" />
  <row Id="3072" PostId="3256" Score="0" Text="Thanks for reply.I am using event code." CreationDate="2022-06-14T17:37:08.437" UserId="2735" />
  <row Id="3073" PostId="3260" Score="0" Text="Thanks. cookbook example solved my problem." CreationDate="2022-06-14T17:38:01.267" UserId="2735" />
  <row Id="3076" PostId="3263" Score="1" Text="Try clearing cache and update Rust and the toolchain and then compile that fresh temmplate" CreationDate="2022-06-14T18:30:47.497" UserId="351" />
  <row Id="3077" PostId="3234" Score="0" Text="Does anything in specific happen when you try to use `ValidTransaction`?" CreationDate="2022-06-14T18:33:47.517" UserId="181" />
  <row Id="3078" PostId="3263" Score="1" Text="Please provide the full source code such that we can reproduce this.  Generally looks like an issue with std. This code is AFAIK only intended to work in a `no_std` environment." CreationDate="2022-06-14T19:52:59.087" UserId="94" />
  <row Id="3080" PostId="3234" Score="0" Text="@JustinFrevert The trait [SignedExtesion](https://paritytech.github.io/substrate/master/sp_runtime/traits/trait.SignedExtension.html#tymethod.pre_dispatch) pre-dispatch returns, [Pre](https://paritytech.github.io/substrate/master/sp_runtime/traits/trait.SignedExtension.html#associatedtype.Pre), which is a type that is passed to post-dispatch." CreationDate="2022-06-15T00:41:26.900" UserId="590" />
  <row Id="3081" PostId="3195" Score="0" Text="Excelent! Thanks very much Jaco! Really appreciate it." CreationDate="2022-06-15T02:18:33.670" UserId="2635" />
  <row Id="3082" PostId="3033" Score="0" Text="Thanks for response. Found a solution here https://substrate.stackexchange.com/questions/1103/problem-running-assert-last-event-in-tests-rs" CreationDate="2022-06-15T08:44:58.127" UserId="2689" />
  <row Id="3085" PostId="3271" Score="0" Text="Thanks! So even when I'm using a dev node, `on_genesis` is not called?" CreationDate="2022-06-15T14:22:25.113" UserId="3" />
  <row Id="3086" PostId="3054" Score="0" Text="As per my understanding, there is nothing that enables you to drop siblings arbitrarily from db atm, though siblings are pruned when ancestor blocks get finalized so ensuring a small finalization window should prevent these." CreationDate="2022-06-15T14:37:50.150" UserId="165" />
  <row Id="3087" PostId="3237" Score="1" Text="Well, best look at the [Polkadot repo](https://github.com/paritytech/polkadot/tree/master/runtime/polkadot/src/weights) where each pallet has its weight defined individually.  &#xA;I am not concerned what other projects do." CreationDate="2022-06-15T15:07:37.190" UserId="94" />
  <row Id="3088" PostId="3115" Score="0" Text="For rococo-local scenario, same versions than in your post ?" CreationDate="2022-06-15T16:52:39.277" UserId="165" />
  <row Id="3089" PostId="3271" Score="0" Text="On a dev node it is called. If you mean by dev node that you have run a node with `--dev`" CreationDate="2022-06-15T18:10:35.340" UserId="73" />
  <row Id="3090" PostId="3266" Score="0" Text="The source code is taken from substrate v3.0.0 tag (https://github.com/paritytech/substrate/blob/v3.0.0/frame/staking/src/offchain_election.rs). One followup, which Pallet should implement ValidateUnsigned? the same staking pallet or the transaction is processed in other place?&#xA;I understand that the offline worker is invoked Ok, but it generated a transaccion and submits it: &#xA;SubmitTransaction::&lt;T, Call&lt;T&gt;&gt;::submit_unsigned_transaction(call)&#xA;		.map_err(|_| OffchainElectionError::PoolSubmissionFailed)&#xA;but I could not follow where the tx is submitted (who receives it).&#xA;Thanks very much!" CreationDate="2022-06-15T18:29:31.360" UserId="2635" />
  <row Id="3092" PostId="3182" Score="0" Text="Btw, develop nodes still print the logs per default. However, you can provide a flag to omit them." CreationDate="2022-06-15T19:08:15.173" UserId="2713" />
  <row Id="3093" PostId="3178" Score="0" Text="Thanks, seems like there also was an upgrade of the Polkadot Apps which touched the illustration of the block contents. Works perfectly fine now. Seems like I was blind before." CreationDate="2022-06-15T19:09:51.097" UserId="2713" />
  <row Id="3095" PostId="3280" Score="0" Text="This is cool. I wonder if it could influence features that are in https://github.com/bkchr/diener/ - I _think_ (not having used this or your tool myself yet) they could be related, although diener is for modifications beyond linting, adding a linting option could make the tool more broadly useful?" CreationDate="2022-06-15T23:30:32.430" UserId="34" />
  <row Id="3096" PostId="3280" Score="0" Text="In any case - it should be on the awesome list: https://github.com/substrate-developer-hub/awesome-substrate/pull/82" CreationDate="2022-06-15T23:32:43.877" UserId="34" />
  <row Id="3097" PostId="3266" Score="0" Text="For Question1:&#xA;After checking the usage of validate_unsigned, it's mainly used by Applyable which is used to enact a piece of extrinsic information by marshalling and dispatching to a named function call. `So I believe the ValidatedUnsiged trait should be implemented in the pallet which will process that transaction.`" CreationDate="2022-06-16T02:52:55.473" UserId="393" />
  <row Id="3098" PostId="3266" Score="0" Text="For Question 2: submit_unsigned_transaction, track the call stack, you'll get  sp_runtime::offchain::TransactionPool submit_transaction which will `Submit transaction.The transaction will end up in the pool and be propagated to others.`. The doc link is here: https://paritytech.github.io/substrate/master/sp_runtime/offchain/trait.TransactionPool.html" CreationDate="2022-06-16T03:50:43.960" UserId="393" />
  <row Id="3099" PostId="2727" Score="0" Text="Add one more dependency in Cargo.toml&#xA;`ink_lang_codegen = { version = &quot;=3.0.1&quot;, default-features = false }`" CreationDate="2022-06-16T04:25:49.833" UserId="1722" />
  <row Id="3100" PostId="3267" Score="1" Text="Thanks a lot! Providing the pallet name via `PalletInfoAccess` instead of underscore `_` solved my issue. Do you have an answer two my second question by any chance?" CreationDate="2022-06-16T07:16:58.030" UserId="280" />
  <row Id="3101" PostId="3279" Score="1" Text="Hey Shawn, this definitely answers my question, thanks!" CreationDate="2022-06-16T07:56:19.667" UserId="479" />
  <row Id="3102" PostId="3267" Score="0" Text="On a note: The temporary storage is actually required because else we write into the same storage map from which we drain. In my case, the `drain` iteration accessed almost twice as many keys as existent. Writing to the temp storage and then moving this after the drain did not come with any weird side effects." CreationDate="2022-06-16T08:30:25.530" UserId="280" />
  <row Id="3103" PostId="3271" Score="0" Text="Yeah, that's what I meant. Got it, thanks!" CreationDate="2022-06-16T09:59:44.423" UserId="3" />
  <row Id="3104" PostId="3048" Score="1" Text="It will be a good feature add that changes everyone's balances in the hook" CreationDate="2022-06-16T10:26:30.037" UserId="213" />
  <row Id="3105" PostId="3267" Score="0" Text="answered the second question as well." CreationDate="2022-06-16T11:02:47.487" UserId="167" />
  <row Id="3106" PostId="3267" Score="1" Text="As for the temporary storage, I understand your caution and don't want to tell you that I am 100% sure, but I am still almost sure that you won't need it. Once you are draining, if you write the new value to the same key that is being drained right now, then it should be fine, because the internals of that iteration of drain was the last time that the old value was needed. Nonetheless, I suggest verifying this first. And, if two storage items works, then you should do that for extra safety." CreationDate="2022-06-16T11:04:56.740" UserId="167" />
  <row Id="3108" PostId="3286" Score="0" Text="I saw the encode string in the json file when created the address. Is it the private key?" CreationDate="2022-06-16T13:35:45.960" UserId="2519" />
  <row Id="3109" PostId="1933" Score="0" Text="Can you clarify what you mean by the &quot;Golang Substrate client&quot;? Substrate is the blockchain development framework that is used to build the reference implementations of Polkadot/Kusama and all of the parachains that I know of; Substrate is a Rust framework. There is a Golang implementation of the Polkadot Host called Gossamer that is in development. It seems like your question really relates to decoding something (possibly something that was SCALE-encoded), which shouldn't be dependent on the client you're using. Are you able to rephrase your question?" CreationDate="2022-06-16T13:39:40.093" UserId="12" />
  <row Id="3110" PostId="3296" Score="0" Text="Great answer. Thanks!" CreationDate="2022-06-16T15:28:22.353" UserId="2674" />
  <row Id="3111" PostId="3294" Score="0" Text="There are already validators. But the staking election is still failed :(. Can you check this, please? https://apps.bholdus.com/?rpc=wss%3A%2F%2Fapi.testnet.bho.network%2Fblockchain-wss#/staking. The log from the node still says 0 validators" CreationDate="2022-06-16T15:37:30.130" UserId="450" />
  <row Id="3112" PostId="3294" Score="0" Text="Do you have subscan or some explorer where I can see the details of the blocks in which the election has failed? It does seem like you have 3 validators, but no nominators, and you election process seems fine to me." CreationDate="2022-06-16T16:28:32.043" UserId="167" />
  <row Id="3113" PostId="3294" Score="0" Text="In whichever version of substrate you are, you should look into the `get_npos_voters` function and try and map that to your chain data to try and figure out what is going wrong. Also, it would help if you paste a link to your actual runtime configs." CreationDate="2022-06-16T16:30:06.327" UserId="167" />
  <row Id="3114" PostId="3286" Score="0" Text="It is the private key, encrypted with the password that you have provided. I don't exactly know the format of the encryption used." CreationDate="2022-06-16T16:31:35.373" UserId="167" />
  <row Id="3115" PostId="3295" Score="0" Text="Please include a bit more context. What tool were you using to construct the extrinsic?" CreationDate="2022-06-16T16:31:47.960" UserId="29" />
  <row Id="3116" PostId="3286" Score="0" Text="Based on [this](https://github.com/polkadot-js/common/issues/929#issuecomment-802631975), the encoded key seems to be written using the [`TweetNaCl.js`](https://www.npmjs.com/package/tweetnacl) library." CreationDate="2022-06-16T16:39:01.623" UserId="167" />
  <row Id="3117" PostId="3207" Score="0" Text="If you centralize the consensus or use specialized hardware, you could get very fast block times otherwise you will find a limit with low-level networking and power - but then you are giving up decentralization. What would be the advantage of faster block times? Maybe solve the problem elsewhere on the blockchain layer/stack? e.g. batching, intermediate caching layer" CreationDate="2022-06-16T16:45:34.533" UserId="29" />
  <row Id="3118" PostId="3306" Score="2" Text="You can also use `ValueQuery`, and then define what default value you want with [`OnEmpty`](https://crates.parity.io/frame_support/pallet_prelude/struct.StorageMap.html)." CreationDate="2022-06-16T17:40:49.750" UserId="28" />
  <row Id="3119" PostId="3306" Score="0" Text="This worked perfectly thank you!" CreationDate="2022-06-16T17:46:38.567" UserId="2698" />
  <row Id="3120" PostId="3295" Score="0" Text="I am using Polkadot UI to test the extrinsic. @Bruno" CreationDate="2022-06-16T19:45:29.347" UserId="1837" />
  <row Id="3121" PostId="3307" Score="0" Text="why do you need bytes crate specifically ? Can you provide additional details of what exactly are you trying to do ?" CreationDate="2022-06-16T20:00:37.567" UserId="1837" />
  <row Id="3122" PostId="2993" Score="0" Text="Can you describe the use case in which you see the need for the latest block hash?" CreationDate="2022-06-16T21:02:55.537" UserId="29" />
  <row Id="3123" PostId="3307" Score="0" Text="I want to be able to store UTF8 values there ." CreationDate="2022-06-16T21:41:45.427" UserId="2752" />
  <row Id="3124" PostId="3309" Score="0" Text="Sounds like you should return an error if the value is none instead of trying to implement default. In the case there is no account id, probably your logic is invalid, and should not be executed. Otherwise, please improve your code samples to be something which is complete, and can be edited to be correct. As is, you are leaving so many questions about other types and storage." CreationDate="2022-06-16T23:43:29.440" UserId="28" />
  <row Id="3128" PostId="3294" Score="0" Text="just check `get_npos_voters()` implementation. From on-chain state, there are 3 validators, but in the end of `get_npos_voters()`, `all_voters` is 0. @kianenigma" CreationDate="2022-06-17T03:49:02.583" UserId="450" />
  <row Id="3129" PostId="3294" Score="0" Text="It could be the `T::VoterList::count()` returns `0`. In the older version of substrate, `all_voters` is calculated from `Validators::count() and Nominators::count()`. I think this is the reason why the election always says that 0 validators in the new substrate version. @kianenigma" CreationDate="2022-06-17T06:28:46.770" UserId="450" />
  <row Id="3130" PostId="3294" Score="0" Text="Hi @kianenigma, I found a solution and I will update my answer. Tks a lot for the suggestion to entry for the implementation investigation." CreationDate="2022-06-17T07:26:22.383" UserId="450" />
  <row Id="3131" PostId="3307" Score="0" Text="You probably shouldn't store arbitrary length `utf8` for the same reasons [you shouldn't store arbitrary strings](https://substrate.stackexchange.com/a/1155/380). You should try to minimise your contract storage costs by using hashes instead and then decode on the client side." CreationDate="2022-06-17T10:23:27.597" UserId="380" />
  <row Id="3132" PostId="3307" Score="0" Text="I don't want them to be of arbitrary length. I want them to be exactly 32 bytes or one byte. I will look into the Hash type option though, thank you. I'd still like to go how to go about with crates like that and ink! though." CreationDate="2022-06-17T12:59:31.560" UserId="2752" />
  <row Id="3133" PostId="368" Score="0" Text="I have referenced your template version 3.0 but I tried the current substrate-node-template for it, so many modules conflict.&#xA;Could you show me latest version files, please?" CreationDate="2022-06-16T23:57:06.103" UserId="2729" />
  <row Id="3134" PostId="1933" Score="1" Text="It was pointed out to me that you're probably talking about this, which makes complete sense https://github.com/centrifuge/go-substrate-rpc-client" CreationDate="2022-06-17T16:35:11.680" UserId="12" />
  <row Id="3135" PostId="3315" Score="0" Text="I doubt I can give you a complete recipe, but I have learnt a lot reading the [`init_runtime`](https://github.com/polkascan/py-substrate-interface/blob/master/substrateinterface/base.py#L1063) method in the [`substrate-interface`](https://pypi.org/project/substrate-interface/) python package." CreationDate="2022-06-17T19:13:26.927" UserId="138" />
  <row Id="3137" PostId="3295" Score="0" Text="If you can create something reproducible that I can test that would be great." CreationDate="2022-06-18T02:24:35.903" UserId="29" />
  <row Id="3138" PostId="3319" Score="1" Text="Guess it depends what they are doing under the covers. Do you have an example transaction that you can point to that was created using this UI? I'm guessing they are doing a reserve asset transfer with the relay chain as the reserve and then minting a derivative ksm token on the karura parachain to represent your actual ksm holding that is in karura's sovereign parachain account on the relay chain." CreationDate="2022-06-18T07:18:45.800" UserId="85" />
  <row Id="3140" PostId="3329" Score="0" Text="Thank you for your answer! In the second step, how to let parachain B notify me of the execution result? Does this require the cooperation of parachain B? Or the existing XCM executor can do this?" CreationDate="2022-06-18T07:23:53.380" UserId="1959" />
  <row Id="3141" PostId="3320" Score="0" Text="Thanks it's helpful" CreationDate="2022-06-18T12:03:46.403" UserId="2717" />
  <row Id="3142" PostId="3332" Score="1" Text="Great, the transaction was successful after I add the call flag. But the message field of contract A was not set, namely `message` is still 0." CreationDate="2022-06-18T13:21:54.240" UserId="2551" />
  <row Id="3143" PostId="3329" Score="2" Text="It requires cooperation and custom logic. XCM does not have the primitives of &quot;rollback&quot; inside it. But it can send messages, and of course, with those messages, you can hack your own custom rollback mechanism between two chains... but it would generally be very expensive and probably not very useful in this way." CreationDate="2022-06-18T19:30:21.173" UserId="28" />
  <row Id="3144" PostId="3333" Score="0" Text="If you are more specific on the ones you want, i may be able to find and share some of them, but there is no public place where they all currently exist." CreationDate="2022-06-18T19:31:09.023" UserId="28" />
  <row Id="3145" PostId="3333" Score="0" Text="I would love to get access to [&quot;What the Hack is Substrate&quot;](https://www.youtube.com/watch?v=MCJBPAZIAdQ&amp;list=PLp0_ueXY_enUZk1RuEAU9ly5h0wy5FuLs&amp;index=2) and [&quot;Anatomy of a Substrate Node&quot;](https://www.youtube.com/watch?v=-LlhH1CsNg4&amp;list=PLp0_ueXY_enUZk1RuEAU9ly5h0wy5FuLs&amp;index=3)&#xA;If you find them, could you please share them here with links to a cloud drive for other people to use or send them via email: creestl.job@yandex.ru" CreationDate="2022-06-18T19:51:48.890" UserId="2408" />
  <row Id="3146" PostId="3333" Score="0" Text="I couldn't find &quot;What the heck is substrate&quot; slides, but happy to look for others if you specify more." CreationDate="2022-06-19T00:18:35.050" UserId="28" />
  <row Id="3147" PostId="3332" Score="0" Text="I met the same problem, and I found maybe the reason is related to the `call_flags(CallFlags::default().set_allow_reentry(true))`. I will express some details in the following." CreationDate="2022-06-19T09:40:48.353" UserId="2417" />
  <row Id="3148" PostId="3337" Score="1" Text="please share your code" CreationDate="2022-06-19T12:28:49.827" UserId="83" />
  <row Id="3149" PostId="3297" Score="0" Text="I have also transfer some money from one account to another for getting some fees which can be our reward." CreationDate="2022-06-19T13:28:11.497" UserId="555" />
  <row Id="3150" PostId="3340" Score="0" Text="I have set defaultBlocksPerRound : 16, rewardPaymentDelay : 2. For topDelegations I have attached the image in question. But I don't get any reward after 2 round" CreationDate="2022-06-19T19:46:19.413" UserId="555" />
  <row Id="3151" PostId="1933" Score="0" Text="@DanForbes thanks - that's indeed the client I meant. In the meantime we've solved it so I'll post the answer below." CreationDate="2022-06-19T20:57:50.890" UserId="2118" />
  <row Id="3152" PostId="3342" Score="0" Text="Have you tried looking at those missing impls in the upstream source? I guess you copied code from a different version of substrate. AFAIK all light client related things in substrate have been removed." CreationDate="2022-06-20T02:45:31.513" UserId="34" />
  <row Id="3153" PostId="3342" Score="0" Text="Please do not include screenshots. You have the text above, just pit it in markdown code blocks please " CreationDate="2022-06-20T02:46:15.267" UserId="34" />
  <row Id="3154" PostId="3319" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-06-20T02:48:30.440" UserId="-1" />
  <row Id="3155" PostId="3303" Score="0" Text="Thanks for the response! Although FYI it is always best practice to link out and provide directly a snippet here for reference. Both for keeping people from having to jump out of the site, but more importantly because those resources may disappear latter on or change" CreationDate="2022-06-20T02:52:41.620" UserId="34" />
  <row Id="3156" PostId="3303" Score="0" Text="So I need the following task for my substrate-node-template:&#xA;1. Import pallet_session&#xA;2. Import pallet_authorship&#xA;3. Implement both pallets in the /runtime/lib.rs&#xA;4. Implement OnUnbalanced event for Author struct&#xA;5. Implement OnUnbalanced event for DealtWithFees struct" CreationDate="2022-06-20T05:09:13.967" UserId="2565" />
  <row Id="3157" PostId="3339" Score="0" Text="impl pallet_scheduler::Config for Runtime {&#xA;      |      ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `frame_system::pallet::Config` is not implemented for `Runtime`" CreationDate="2022-06-20T07:12:51.123" UserId="2319" />
  <row Id="3158" PostId="3339" Score="0" Text="pub trait Config: frame_system::Config {&#xA;      |                       ^^^^^^^^^^^^^^^^^^^^ required by this bound in `pallet_scheduler::Config`" CreationDate="2022-06-20T07:13:06.827" UserId="2319" />
  <row Id="3159" PostId="3339" Score="0" Text="This Error comes After doing above solution" CreationDate="2022-06-20T07:13:41.387" UserId="2319" />
  <row Id="3160" PostId="3346" Score="0" Text="I am just using Aura for the time being.  I want to pay the block authors/validators of the existing PoA." CreationDate="2022-06-20T08:36:37.367" UserId="2565" />
  <row Id="3161" PostId="275" Score="0" Text="Nice answer! I have a question related to the `An extrinsic in Substrate will not revert or error when it uses more Weight than specified.` What if I have some extrinsic with hardcode weight values lower than the truly benchmarked weight values in the production chains, what will happened?" CreationDate="2022-06-20T08:44:13.677" UserId="125" />
  <row Id="3163" PostId="3348" Score="0" Text="[node cargo.toml](https://github.com/listenofficial/listen-parachain/blob/main/node/tisten/Cargo.toml)" CreationDate="2022-06-20T09:18:17.117" UserId="2758" />
  <row Id="3164" PostId="3348" Score="0" Text="``` cargo run --features try-runtime try-runtime \&#xA;    --execution native-else-wasm \&#xA;    --chain test \&#xA;    on-runtime-upgrade \&#xA;    live \&#xA;    --uri ws://47.108.199.133:9947```" CreationDate="2022-06-20T09:28:58.233" UserId="2758" />
  <row Id="3165" PostId="3340" Score="1" Text="Thanks for the additional context. In one of the images, I see that the `points` value is actually 0. Could you check that for the previous round? You can also check if `awardedPts` for the previous round and collator are actually non-zero. It might just be that the collator never produced a block." CreationDate="2022-06-20T10:35:22.967" UserId="2759" />
  <row Id="3166" PostId="3348" Score="0" Text="[https://github.com/listenofficial/listen-parachain/blob/main/runtime/tisten/src/lib.rs#L1449](https://github.com/listenofficial/listen-parachain/blob/main/runtime/tisten/src/lib.rs#L1449)" CreationDate="2022-06-20T10:43:56.990" UserId="2758" />
  <row Id="3167" PostId="3353" Score="0" Text="Thank you for the reply, but that endpoint only shows pending transactions not ones stored on the future queue. I did a simple experiment of sending a `remark` transaction with a higher sender nonce and none of those showed me the `future queue transaction` while i can see short lived pending transactions." CreationDate="2022-06-20T11:26:08.800" UserId="285" />
  <row Id="3168" PostId="3340" Score="3" Text="I have checked **points** and **awardedPts** for previous round as well but it shows 0. How I can check that collator is produced block or not ?" CreationDate="2022-06-20T12:24:40.203" UserId="555" />
  <row Id="3169" PostId="3342" Score="0" Text="Thanks very much.&#xA;Sure, I have looked at missing impls in the upstream source and I knew light client related things has been removed.&#xA;&#xA;So then, what should I do now?&#xA;Could you give me any project I can reference to convert consensus engine of current substrate-node-template(v4.0.0) project from PoA to PoS, please?&#xA;&#xA;Now I am referencing this project, https://github1s.com/kaichaosun/tao/blob/HEAD/node/src/service.rs#L31.&#xA;As you know, that's version is 2.0.0.&#xA;So I need to change many modules and funtions.&#xA;&#xA;Please help me.&#xA;Best Regards." CreationDate="2022-06-20T12:26:39.733" UserId="2729" />
  <row Id="3170" PostId="3353" Score="0" Text="I can also see that after 64 blocks (mortality), these future transactions are removed, but I can't seem to find a way to &quot;see&quot; them in the meantime." CreationDate="2022-06-20T13:09:59.083" UserId="285" />
  <row Id="3171" PostId="3340" Score="1" Text="The only way to check that would be to see the authors of previous blocks. The information is also visible on polkadotjs Explorer home page, where recent blocks are listed. On their right is the collator that produced the block. If the collator is listed but the points for them for the current round is 0, then something is indeed wrong." CreationDate="2022-06-20T13:58:17.870" UserId="2759" />
  <row Id="3172" PostId="3340" Score="1" Text="Additionally, the `note_author` handler must be invoked from the consensus (we use [nimbus](https://github.com/PureStake/nimbus/blob/main/pallets/author-inherent/src/lib.rs#L115)), that informs the staking pallet of the authorship and allows it to assign points to the author." CreationDate="2022-06-20T14:32:19.410" UserId="2759" />
  <row Id="3174" PostId="3352" Score="1" Text="Green, instead of the raw `CallBuilder` what do you recommend?" CreationDate="2022-06-20T14:58:56.680" UserId="1824" />
  <row Id="3175" PostId="3359" Score="1" Text="I figure for straight up bugs like this seems to be, filling an issue might be best? I suspect the template is out of date from master, it may be that you cleared the lock file? https://github.com/paritytech/substrate/commit/6001b59f9f64a133d55fc13a495acc76eb4b532f is the latest commit at this time, and frontier assuredly is not up to date with this." CreationDate="2022-06-20T15:13:17.800" UserId="34" />
  <row Id="3176" PostId="3354" Score="0" Text="seems like other people can access storage maps locally with some StorageInstance magic" CreationDate="2022-06-20T16:45:49.247" UserId="560" />
  <row Id="3177" PostId="3340" Score="1" Text="Now I joined charlie as a collator but Blocks are still produced by alice(added photo above).  for note_author, I import the whole parachain-staking and moonbeam-orbiter in our project. I have also added some more photos of code above please take a look." CreationDate="2022-06-20T17:25:55.603" UserId="555" />
  <row Id="3178" PostId="3365" Score="0" Text="This error was mentioned from other users as well in this issue https://github.com/paritytech/devops/issues/1588 In one of the comments, they verify that all bootnodes have the peer ID as defined in the chainspec. Maybe it is a good place to start." CreationDate="2022-06-20T18:26:26.477" UserId="234" />
  <row Id="3179" PostId="3340" Score="1" Text="If this is in `--dev` mode then only **Alice** is supported as the block author." CreationDate="2022-06-20T18:44:10.017" UserId="2759" />
  <row Id="3182" PostId="3359" Score="1" Text="@DanShields So I did: https://github.com/paritytech/frontier/issues/737" CreationDate="2022-06-20T19:53:03.413" UserId="2673" />
  <row Id="3183" PostId="3368" Score="2" Text="I didn’t make rococo relay with node template but I made one by forking rococo and creating new chain spec, etc https://github.com/kabocha-network/relay-chain/tree/v0.9.18" CreationDate="2022-06-20T20:41:41.070" UserId="298" />
  <row Id="3184" PostId="3367" Score="0" Text="Thanks. Indeed balances are still filtered, parachain doesn’t produce blocks until next week. Thanks, will batch the transfers. Will see how much I can conservatively fit in each block on test net." CreationDate="2022-06-20T20:45:39.190" UserId="298" />
  <row Id="3185" PostId="3367" Score="0" Text="If you still have the Sudo pallet on your chain, you can use the Root origin to do some of these distributions before you remove the balance filter, but yeah, would still need to batch a bunch of transfers in the end." CreationDate="2022-06-20T20:51:52.700" UserId="28" />
  <row Id="3187" PostId="3348" Score="1" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-06-21T00:44:17.450" UserId="-1" />
  <row Id="3188" PostId="3371" Score="3" Text="Perhaps mismatched versions of substrate used? Try from scratch, ensure your lock file has only one commit used for substrate deps" CreationDate="2022-06-21T00:57:04.153" UserId="34" />
  <row Id="3190" PostId="3348" Score="1" Text="I mean, according to this [document](https://docs.substrate.io/v3/tools/try-runtime/), the try-Runtime code written does not run" CreationDate="2022-06-21T02:14:18.470" UserId="2758" />
  <row Id="3191" PostId="3365" Score="0" Text="@dominique I can not access https://github.com/paritytech/devops/issues/1588" CreationDate="2022-06-21T03:48:53.627" UserId="140" />
  <row Id="3192" PostId="3370" Score="0" Text="I agree when it comes to traditional on-chain computation smart contracts, but Phala's architecture utilizes off-chain secure enclave workers to deploy our Fat Contracts to allow for more computationally intensive tasks. This enables us to have a relaxed contract size, lower gas fees &amp; when we execute HTTPS requests, we recommend to use queries opposed to commands, so devs do not need to worry about the data size. The example I show above is executed via a query." CreationDate="2022-06-21T04:05:27.697" UserId="549" />
  <row Id="3193" PostId="3352" Score="0" Text="Thanks a lot, it really works. But I solved this problem by copying the `Flush traits` related code into my own project. I met some trouble(compile errors) when using [OpenBrush](https://github.com/Supercolony-net/openbrush-contracts/tree/v2.0.0) as a dependency in my project. Errors are something like this `extern location for openbrush_lang does not exist: /home/dante/dev/rust/polkadot/openbrush-contracts/example/callee/target/rls/debug/deps/libopenbrush_lang-4a96801b3dad8df2.rmeta`" CreationDate="2022-06-21T06:46:15.820" UserId="2417" />
  <row Id="3194" PostId="3340" Score="1" Text="using these commands ./target/release/polkadot \                                                     &#xA;--alice \&#xA;--validator \&#xA;--base-path /tmp/relay/alice \&#xA;--chain rococo-raw.json \&#xA;--port 30333 \&#xA;--ws-port 9944                                                                                                               **2.  ./target/release/polkadot \                                                     &#xA;--bob \  &#xA;--validator \&#xA;--base-path /tmp/relay-bob \  &#xA;--chain rococo-raw.json \&#xA;--bootnodes /ip4/127.0.0.1/tcp/30333/p2p/ALICE KEY \&#xA;--port 30334 \&#xA;--ws-port 9945**" CreationDate="2022-06-21T08:25:57.650" UserId="555" />
  <row Id="3195" PostId="3340" Score="1" Text="Using this command to start parachain: ./target/release/hero --alice \                                                 &#xA;--collator \&#xA;--force-authoring \&#xA;--chain rococo-local-parachain-2000-raw.json \&#xA;--base-path /tmp/parachain/alice \&#xA;--port 40333 \&#xA;--ws-port 8844 \&#xA;--rpc-port 6969 \&#xA;--rpc-cors all \&#xA;-- \&#xA;--execution wasm \&#xA;--chain rococo-custom-2-raw.json \&#xA;--port 30343 \&#xA;--ws-port 9977" CreationDate="2022-06-21T08:27:13.017" UserId="555" />
  <row Id="3196" PostId="3352" Score="1" Text="@HCastano better to use `ContractRef` auto-generated or [wrappers](https://github.com/Supercolony-net/openbrush-contracts#wrapper-around-traits) from OpenBrush=)" CreationDate="2022-06-21T09:28:56.107" UserId="599" />
  <row Id="3197" PostId="3352" Score="0" Text="@ShawnZ Could you post the code of your repo with the branch where you get that error? Or maybe you can write into the element channel with an example of your code and `Cargo.toml`. I want to find the root cause of that issue=)" CreationDate="2022-06-21T09:30:39.413" UserId="599" />
  <row Id="3198" PostId="3302" Score="0" Text="How are you measuring the block weight usage? I have just run my tool https://github.com/paritytech/smart-bench against the substrate standalone node and managed to &quot;max out&quot; the limit for normal transactions at ~75%:&#xA;&#xA;0005: PoV Size=0854KiB(033%) Weight=0001469ms(073%) Witness=0675KiB Block=0179KiB NumExtrinsics=1196" CreationDate="2022-06-21T09:49:30.260" UserId="451" />
  <row Id="3199" PostId="3378" Score="0" Text="checkout how to send a signed transaction, there are youtube videos and you can check polkadot js or subsquid docs" CreationDate="2022-06-21T13:45:54.800" UserId="351" />
  <row Id="3200" PostId="2261" Score="0" Text="So in order to get all the crowdloan participants i need to iterate through every block from beginning of crowdloan to end of crowdloan." CreationDate="2022-06-21T14:58:31.417" UserId="298" />
  <row Id="3201" PostId="3352" Score="0" Text="Hey @GreenBaneling, I have solved my problem with the help of [official docs](https://docs.openbrush.io/) . Thank you all the same!" CreationDate="2022-06-21T15:00:29.697" UserId="2417" />
  <row Id="3202" PostId="2261" Score="0" Text="No. There is a merkle trie which is in storage that contains all of the existing crowdloan contributions and you can ready one time to get all of the final contributions. This question was asking about getting such updates live, which would require the use of events and stuff like that." CreationDate="2022-06-21T15:30:27.507" UserId="28" />
  <row Id="3204" PostId="3386" Score="0" Text="Ok, these are useful! For my test, I'm also hoping to read the inner data from the event. Is that possible to use `Self::events().last().expect(&quot;events expected&quot;).event.0` to get the `Thing`?" CreationDate="2022-06-21T15:34:17.253" UserId="2019" />
  <row Id="3205" PostId="3386" Score="1" Text="It is technically possible, but not that ergonomic since there is a lot of type wrapping happening here, and you cannot just reach into an object without concrete type stuff. Best to assume what the value would be, and insert that into the test which verifies that the inner value matches what is expected." CreationDate="2022-06-21T15:46:30.403" UserId="28" />
  <row Id="3206" PostId="3386" Score="1" Text="If you want an example of the complex matching, you can open a new question :)" CreationDate="2022-06-21T15:46:54.767" UserId="28" />
  <row Id="3207" PostId="3371" Score="1" Text="Did a fresh clone of node template, ensured all are on branch `polkadot-v0.9.24`, added contracts and contracts-rpc-runtime-api to std, and using `cargo check` to validate. Still seeing those errors only when adding `pallet-contracts-rpc`. I've update the Cargo.toml above" CreationDate="2022-06-21T15:51:41.753" UserId="2019" />
  <row Id="3209" PostId="3387" Score="0" Text="Ah, I bet this will look similar to how it's handle in `hooks` https://substrate.stackexchange.com/a/972/2019" CreationDate="2022-06-21T16:42:26.207" UserId="2019" />
  <row Id="3210" PostId="3355" Score="0" Text="i Am already set this" CreationDate="2022-06-21T17:11:34.840" UserId="2319" />
  <row Id="3211" PostId="3355" Score="0" Text="giving below error" CreationDate="2022-06-21T17:11:59.143" UserId="2319" />
  <row Id="3212" PostId="3355" Score="0" Text="pub struct UncheckedExtrinsic&lt;Address, Call, Signature, Extra&gt;&#xA;      |                                        ^^^^ required by this bound in `sp_runtime::generic::UncheckedExtrinsic`&#xA;      = note: this error originates in the macro `frame_support::construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)" CreationDate="2022-06-21T17:12:33.897" UserId="2319" />
  <row Id="3214" PostId="3390" Score="0" Text="This is fantastic. Thank you " CreationDate="2022-06-21T20:39:23.547" UserId="2019" />
  <row Id="3215" PostId="3378" Score="0" Text="but error is reported before the signature is executed, and I refer to [txwrapper-orml](https://github.com/paritytech/txwrapper-core/blob/main/packages/txwrapper-orml/src/methods/currencies/transfer.spec.ts) for the usage of transfer." CreationDate="2022-06-22T01:57:08.023" UserId="2767" />
  <row Id="3216" PostId="3382" Score="0" Text="txwrapper-core only support balances.transfer function which can transfer native toknen  but not support other token on the blockchain.&#xA;I have referenced the examples in [txwrapper-orml](https://github.com/paritytech/txwrapper-core/blob/main/packages/txwrapper-orml/src/methods/currencies/transfer.spec.ts) to create a transaction for currencies transfer." CreationDate="2022-06-22T02:11:57.127" UserId="2767" />
  <row Id="3218" PostId="3317" Score="0" Text="chainbridge-substrate's example-pallet is outdated. Use Centrifuge's repo. Thanks" CreationDate="2022-06-22T04:02:04.587" UserId="1789" />
  <row Id="3219" PostId="3331" Score="0" Text="Here is the further analysis https://substrate.stackexchange.com/questions/3336/i-found-set-allow-reentry-may-have-some-problems" CreationDate="2022-06-22T08:39:16.883" UserId="2551" />
  <row Id="3220" PostId="3398" Score="1" Text="since `Default` is remove from impl of AccountId, make it return `Option&lt;AccountId&gt;`" CreationDate="2022-06-22T09:50:30.987" UserId="523" />
  <row Id="3221" PostId="3400" Score="0" Text="Thanks, I tried using the faucet in matrix and received a note saying that 100 ROC had been transferred to my account. However, these didn't show up in polkadot-js/apps. The extrinsic hash is `0xcd35029f8072110f1c612bf379dac32f7561d66cbe58b74c4aabb6f0df4aaf7c`. Do I need to issue the drip command with the parachain ID `9230`?" CreationDate="2022-06-22T10:20:42.300" UserId="380" />
  <row Id="3222" PostId="3400" Score="1" Text="It is explained in the document I linked: `!drip YOUR_SS_58_ADDRESS:1002`. The id is `1002` and not `9320`." CreationDate="2022-06-22T10:31:56.693" UserId="16" />
  <row Id="3223" PostId="3400" Score="0" Text="Great, thanks. Not sure how I missed that!" CreationDate="2022-06-22T11:52:12.157" UserId="380" />
  <row Id="3224" PostId="2261" Score="0" Text="How do you access this merkle tree ? I couldn't find it, i'm itterating through every blocks with `api_at.events.crowdloan.Contributed.is()` api, it's taking a very long time" CreationDate="2022-06-22T13:34:38.720" UserId="2355" />
  <row Id="3225" PostId="2834" Score="0" Text="For me all arguments are encoded correctly, but I need to skip the first few bytes. The number of bytes I need to skip is different depending on arguments, and I can't figure out what the first few bytes are for." CreationDate="2022-06-22T13:54:13.247" UserId="1904" />
  <row Id="3226" PostId="2834" Score="0" Text="Try adding the chain-extension tag. I want an answer to this also." CreationDate="2022-06-22T14:02:26.060" UserId="1904" />
  <row Id="3227" PostId="2261" Score="1" Text="Please take a look at existing answers like: https://stackoverflow.com/questions/69130031/how-do-i-get-crowdloan-info-using-polkadot-js-apis and https://substrate.stackexchange.com/questions/1693/how-to-get-my-own-crowdloan-contribution-to-a-parachain-which-is-already-onboard" CreationDate="2022-06-22T15:06:30.353" UserId="28" />
  <row Id="3228" PostId="3405" Score="0" Text="Just a quick test, can you compile the [substrate-node-template](https://github.com/substrate-developer-hub/substrate-node-template)?" CreationDate="2022-06-22T15:26:41.673" UserId="29" />
  <row Id="3229" PostId="2834" Score="0" Text="I found the answer by digging through the source code. :D" CreationDate="2022-06-22T16:05:43.680" UserId="1904" />
  <row Id="3230" PostId="3403" Score="0" Text="This may be of value: https://substrate.stackexchange.com/questions/889/whats-a-good-value-for-ws-max-connections" CreationDate="2022-06-22T16:26:04.367" UserId="29" />
  <row Id="3231" PostId="3397" Score="0" Text="Looks like it is a `Timeout` error. Are you connected to the internet, on vpn, or anything that could be impeding your from communicating with the outside world e.g. https://telemetry.polkadot.io" CreationDate="2022-06-22T16:29:55.690" UserId="29" />
  <row Id="3232" PostId="3396" Score="0" Text="Good question. Here is some supporting info for this question: [Transaction Payment pallet docs](https://paritytech.github.io/substrate/latest/pallet_transaction_payment/index.html) and [Transaction Payment pallet code](https://github.com/paritytech/substrate/blob/master/frame/transaction-payment/src/lib.rs)." CreationDate="2022-06-22T16:42:58.067" UserId="29" />
  <row Id="3233" PostId="3405" Score="0" Text="@bruno No, I get the same error as the one I mentioned in the post" CreationDate="2022-06-22T16:46:14.887" UserId="2065" />
  <row Id="3234" PostId="3405" Score="0" Text="I am assuming you have already ran `sudo apt update`, `sudo apt install --assume-yes git clang curl libssl-dev llvm libudev-dev make protobuf-compiler`, `cargo clean`, `cargo build`.&#xA;&#xA;Also, worth noting that there is a [newer version](https://crates.io/crates/tikv-jemalloc-sys) of `tikv-jemalloc-sys`. You could try manually updating and see if that works." CreationDate="2022-06-22T17:09:23.570" UserId="29" />
  <row Id="3235" PostId="3405" Score="0" Text="Yes, I am using the latest available version of all of my system libraries + the mentioned ones are installed too. I will try to manual update ` tikv-jemalloc-sys ` @bruno , thanks for the  suggestion" CreationDate="2022-06-22T18:31:20.060" UserId="2065" />
  <row Id="3236" PostId="3420" Score="0" Text="Okay let me try to be more specific:&#xA;I want to design a blockchain (without any parachains) with 10m total tokens. How do i define % of ideal staking, inflation etc. If i look at substrate's guide, they recommend 75% staking (which is practically impossible for a new chain to achieve) and they also stated that if staking fall below 50% it can risk the security of chain.. but they did not mention what risk it will pose to the security of chain?" CreationDate="2022-06-23T12:05:09.270" UserId="2770" />
  <row Id="3237" PostId="3409" Score="1" Text="Thanks - This worked! I also noted that I was using the official Rust extension and not the official rust-analyzer extension. The Rust extension has been deprecated in favor of the rust-analyzer extension and asked me to migrate to rust-analyzer." CreationDate="2022-06-23T13:43:51.043" UserId="29" />
  <row Id="3238" PostId="3340" Score="1" Text="I added an edit to the answer on how the staking pallet is informed of block authorship via  pallet_author_inherent from nimbus." CreationDate="2022-06-23T14:03:32.640" UserId="2759" />
  <row Id="3239" PostId="3418" Score="0" Text="Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." CreationDate="2022-06-23T17:21:01.193" UserId="-1" />
  <row Id="3242" PostId="3410" Score="0" Text="&quot;Can you file an issue in substrate/polkadot how to reproduce this?&quot; - @nikalas please use comments on questions/answers to make requests / ask for clarifications. I agree with the sentiment!" CreationDate="2022-06-23T17:25:25.193" UserId="34" />
  <row Id="3244" PostId="3420" Score="2" Text="this depends very much on the use case of your chain and particularly, the real value of the staking token (ex. 75% of 0 is still 0).&#xA;&#xA;When they mention that &quot;if staking falls below 50% it can risk the security of chain&quot;, it implies than an attacker will find easier to attack the network (stopping the block production, for example) since the amount of tokens to perform the attack is low enough. But again, this depends on many other factors (token distribution) and this is basically a good rule of thumb for NPoS chains like Polkadot." CreationDate="2022-06-23T18:42:48.587" UserId="2025" />
  <row Id="3247" PostId="3427" Score="0" Text="I’m voting to close this question because it's now fixed!" CreationDate="2022-06-23T21:19:22.263" UserId="34" />
  <row Id="3248" PostId="3414" Score="0" Text="Updated to https://docs.substrate.io/tutorials/get-started/trusted-network/ - have you tried with instructions here?" CreationDate="2022-06-23T21:22:28.750" UserId="34" />
  <row Id="3251" PostId="3414" Score="0" Text="I tried over ten times but same issue." CreationDate="2022-06-24T00:48:04.727" UserId="2777" />
  <row Id="3252" PostId="3396" Score="0" Text="Yes Mr. Burno, I went through the documents and can only convert the weights to the corresponding fees, these might do for now.  But I need the percentage of balance transferred to be be working for my use cases." CreationDate="2022-06-24T01:17:06.863" UserId="2565" />
  <row Id="3253" PostId="3430" Score="0" Text="why are you calling `child::kill_storage`?" CreationDate="2022-06-24T02:59:04.110" UserId="28" />
  <row Id="3258" PostId="3410" Score="0" Text="Can you file an issue in substrate/polkadot how to reproduce this? Would be good with logs from the polkadot node/wireshark and similar." CreationDate="2022-06-24T06:59:15.883" UserId="1780" />
  <row Id="3260" PostId="3424" Score="0" Text="I still have the same error using your code, your version and your endpoint... What env are you using ? How do you install/start the script ?" CreationDate="2022-06-24T08:58:05.603" UserId="2355" />
  <row Id="3261" PostId="3049" Score="0" Text="Apologize for the late reply. I solved the problem by using the `translate()` method provided by the substrate storage map. And definitely no matter what approach we still need to define an old type to make sure the storage decoding before migration is done can succeed. Here is the [details](https://github.com/Phala-Network/khala-parachain/blob/33d3c391bc04b803b2d3de6775567d7da18f0ff9/pallets/assets-registry/src/migration.rs)." CreationDate="2022-06-24T09:48:14.593" UserId="2246" />
  <row Id="3262" PostId="3424" Score="0" Text="install the packages and run the script*" CreationDate="2022-06-24T13:16:09.183" UserId="2355" />
  <row Id="3264" PostId="3424" Score="0" Text="or maybe its a yarn version thing" CreationDate="2022-06-24T14:52:46.177" UserId="298" />
  <row Id="3268" PostId="3424" Score="0" Text="Bruno what versions are you using? I am getting same problem as erudyx, maybe because i am adding fetchCrowdloan() to call the function, perhaps i need to await or i am calling it incorrectly?" CreationDate="2022-06-24T15:38:51.507" UserId="298" />
  <row Id="3269" PostId="556" Score="0" Text="Both subsquid and subql are open-source tools that you can run yourself to create your own index, they are only centralized if you want to use someone else's already indexed data. Substrate does not even require that blockchains have a timestamp so creating an RPC call for this would be breaking this abstraction. While I do agree that timestamp is probably a very common and useful dimension to query I still believe that this is a job for other tools (and thankfully those tools already exist)." CreationDate="2022-06-24T16:32:45.943" UserId="452" />
  <row Id="3270" PostId="3440" Score="1" Text="That answer confirms my thinking. Thanks." CreationDate="2022-06-24T18:58:54.040" UserId="181" />
  <row Id="3271" PostId="3437" Score="0" Text="It would help to add reference to the docs for this for people to learn :)" CreationDate="2022-06-25T03:16:02.857" UserId="34" />
  <row Id="3272" PostId="3445" Score="1" Text="Can you add a bit more info on your machine specs? e.g. what's your CPU, how many gigs memory you have, is it a virtual machine, laptop? Thanks!" CreationDate="2022-06-25T14:06:54.473" UserId="29" />
  <row Id="3275" PostId="3445" Score="0" Text="i use laptop but this project is work on win10 wsl  for ubuntu 20.04 subsystem;  cpu:Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz   2.80 GHz ，machine arm:16.0 GB and operate system version is  21H2" CreationDate="2022-06-25T16:38:44.647" UserId="2784" />
  <row Id="3276" PostId="3445" Score="1" Text="Are you running WSL 2? What is the output of this: `wsl -l -v`? Most likely this is a WSL issue." CreationDate="2022-06-25T19:33:06.157" UserId="29" />
  <row Id="3277" PostId="3450" Score="0" Text="https://stackoverflow.com/questions/72756583/polkadot-js-api-not-reflecting-changes-on-explorer-or-chain-in-local-development as I asked here - provide more details, else this will be closed as too little info provided" CreationDate="2022-06-25T22:49:35.400" UserId="34" />
  <row Id="3278" PostId="3450" Score="0" Text="https://substrate.stackexchange.com/help/how-to-ask" CreationDate="2022-06-25T22:50:22.953" UserId="34" />
  <row Id="3279" PostId="3450" Score="0" Text="what's an example of a default function that you tried to call that's not from a default pallet? did you try refreshing your browser after restarting your node?" CreationDate="2022-06-26T00:22:29.503" UserId="83" />
  <row Id="3280" PostId="3445" Score="1" Text="thanks,when i update wsl to wsl2 it's work well" CreationDate="2022-06-26T02:59:53.110" UserId="2784" />
  <row Id="3281" PostId="335" Score="0" Text="&gt; With the Get trait you have the possibility to &quot;cheat&quot; in tests by implementing it for a thread local type.&#xA;&#xA;Can you elaborate this a bit more please" CreationDate="2022-06-26T08:05:51.773" UserId="2384" />
  <row Id="3283" PostId="3450" Score="0" Text="Please share the entire JS code you have - the problem may be how your app is subscribing to state (e.g ‘UseState’)" CreationDate="2022-06-26T18:51:26.930" UserId="172" />
  <row Id="3284" PostId="3340" Score="1" Text="Do I need to delete the inbuilt authorship after adding pallet_author_inherent ? Because If I didn't delete this error is shown: **Block import error: State Database error: Too many sibling blocks inserted**" CreationDate="2022-06-26T19:01:33.643" UserId="555" />
  <row Id="3285" PostId="3302" Score="0" Text="Hi @AndrewJones, Here is the code that I'm using to benchmark https://github.com/BHONetwork/bho-common-ink-contracts/blob/main/scripts/psp22_stress_test.ts. It's just a redspot script that using polkadotjs to make transactions. The thing is I see the transactions are already submitted to the transaction pool (in pending extrinsics UI tab), but somehow they are not included in the block and leave the block sparse. Let me try your benchmark." CreationDate="2022-06-27T02:39:04.753" UserId="450" />
  <row Id="3286" PostId="3455" Score="0" Text="We actually face the same issue https://github.com/ComposableFi/composable/pull/1203/files#r906009860" CreationDate="2022-06-27T08:23:11.797" UserId="611" />
  <row Id="3287" PostId="3340" Score="0" Text="Yeah at a given time only a single authorship pallet must be enabled and it should be able to callback Staking for rewards to be distributed" CreationDate="2022-06-27T08:57:09.267" UserId="2759" />
  <row Id="3288" PostId="3446" Score="0" Text="Yep, i ended up asking on github, i'm glad they solved it so fast !" CreationDate="2022-06-27T09:06:12.777" UserId="2355" />
  <row Id="3289" PostId="3340" Score="0" Text="do we have any sample in which anyone have added the parachain-staking in the cumulus-node-template?" CreationDate="2022-06-27T12:27:23.050" UserId="555" />
  <row Id="3290" PostId="3461" Score="0" Text="Maybe checking its `assets.asset(u32): Option&lt;PalletAssetsAssetDetails&gt;`?" CreationDate="2022-06-27T12:52:30.747" UserId="14" />
  <row Id="3291" PostId="3469" Score="0" Text="That's a good one. For some reason `maybe_total_supply` is not mentioned in [the docs](https://paritytech.github.io/substrate/master/pallet_assets/pallet/struct.Pallet.html)." CreationDate="2022-06-27T14:48:04.933" UserId="2673" />
  <row Id="3292" PostId="3465" Score="0" Text="This assumes I have an account `myaccount` with non-zero balance of the asset, which is not quite my case." CreationDate="2022-06-27T14:50:08.033" UserId="2673" />
  <row Id="3293" PostId="3461" Score="0" Text="@ArturGontijo Where is that? Can you paste a link to the docs or code?" CreationDate="2022-06-27T14:55:08.613" UserId="2673" />
  <row Id="3294" PostId="3340" Score="1" Text="I'm not aware of any such example that might exist." CreationDate="2022-06-27T14:59:16.980" UserId="2759" />
  <row Id="3295" PostId="3461" Score="0" Text="Like a `get` on https://github.com/paritytech/substrate/blob/master/frame/assets/src/lib.rs#L249 ?" CreationDate="2022-06-27T15:15:23.607" UserId="14" />
  <row Id="3296" PostId="3471" Score="0" Text="Public RPC nodes are usually archive nodes." CreationDate="2022-06-27T15:38:01.640" UserId="16" />
  <row Id="3297" PostId="3472" Score="1" Text="May be worthwhile to look at PSP22, specifically: https://docs.openbrush.io/smart-contracts/PSP22/Extensions/mintable and examples: https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp22_extensions" CreationDate="2022-06-27T16:29:13.067" UserId="29" />
  <row Id="3298" PostId="2834" Score="0" Text="I also noticed that I can just skip the first two bytes and the rest is the data I'm looking for without having to call decode(). But I didn't notice that it depends on the arguments. I would also be curious as to why this is the case." CreationDate="2022-06-28T07:52:43.527" UserId="2607" />
  <row Id="3299" PostId="3407" Score="0" Text="Thanks a lot for sharing that example. Happy to see another project using and testing with chain extensions. You can find the code I used for solving it [here](https://github.com/pendulum-chain/pendulum-amm/blob/master/smart_contract/src/lib.rs#L981)." CreationDate="2022-06-28T07:54:05.360" UserId="2607" />
  <row Id="3300" PostId="3462" Score="0" Text="It's not really what I'm looking for, let me quote some of the content `This is an overview, not a proper how-to guide presently!`" CreationDate="2022-06-28T08:58:11.073" UserId="2102" />
  <row Id="3301" PostId="3461" Score="0" Text="@ArturGontijo That's what I tried at first, but the type is private so the compiler says 'no-no'." CreationDate="2022-06-28T09:40:51.607" UserId="2673" />
  <row Id="3302" PostId="3462" Score="1" Text="@andresvsm Oh, sorry than. :( But at least you know it's possible. :)" CreationDate="2022-06-28T09:42:27.823" UserId="2673" />
  <row Id="3303" PostId="3462" Score="1" Text="@andresvsm I think you should check out these answers:&#xA;https://substrate.stackexchange.com/a/2911/2673&#xA;https://substrate.stackexchange.com/a/2334/2673" CreationDate="2022-06-28T09:46:23.190" UserId="2673" />
  <row Id="3304" PostId="3461" Score="0" Text="I remember doing something like that following this approach https://substrate.stackexchange.com/questions/21/how-do-i-use-storage-and-functions-from-one-custom-pallet-in-another but maybe things have changed." CreationDate="2022-06-28T10:31:39.637" UserId="14" />
  <row Id="3305" PostId="3462" Score="0" Text="that answer was definitely helpful, now I have a better vision on what It's possible and what not at the moment, thx!" CreationDate="2022-06-28T10:31:57.483" UserId="2102" />
  <row Id="3306" PostId="3461" Score="0" Text="@ArturGontijo Perhaps it works if the pallet re-exports the storage type alias as pub." CreationDate="2022-06-28T12:06:27.960" UserId="2673" />
  <row Id="3308" PostId="3493" Score="0" Text="For context, why? My impression is usually these should be defined by the node in metadata as opposed to manually crafted . but I admit, in don't use the js libs much " CreationDate="2022-06-28T15:31:00.263" UserId="34" />
  <row Id="3309" PostId="3494" Score="1" Text="If https://substrate.stackexchange.com/questions/3399/are-there-any-publicly-available-test-nets-that-run-pallet-contracts is not sufficient please comment there " CreationDate="2022-06-28T15:35:56.603" UserId="34" />
  <row Id="3310" PostId="3499" Score="0" Text="Much cleaner! Thank you!" CreationDate="2022-06-28T18:05:03.880" UserId="560" />
  <row Id="3311" PostId="3498" Score="0" Text="What specifically are you trying to verify? What does your upgrade do? Did you write custom `try_runtime` migration checks?" CreationDate="2022-06-28T20:02:16.727" UserId="28" />
  <row Id="3312" PostId="3440" Score="0" Text="Would this advice still apply if the extrinsic data that we want submitted *is specific* to each node?" CreationDate="2022-06-28T23:38:30.160" UserId="181" />
  <row Id="3313" PostId="3486" Score="0" Text="Can you describe what you want to do a bit more concretely and why?" CreationDate="2022-06-29T04:53:48.483" UserId="34" />
  <row Id="3314" PostId="3499" Score="0" Text="Would you consider option 2 to be unsafe in that it is quite possible to go around explicitly constructed guards to such storage?" CreationDate="2022-06-29T05:01:08.133" UserId="34" />
  <row Id="3315" PostId="3498" Score="0" Text="@ShawnTabrizi I just updated the Polkadot version. There are no major code changes except runtime versions, which I mentioned above. I am doing this for a live parachain. &#xA;&#xA;So before doing upgrade on live parachain, I just want to verify on local whether there is any issue with upgrade or not.&#xA;How would I verify spec version after upgrade through try-runtime? Could you please refer some examples?" CreationDate="2022-06-29T05:31:09.373" UserId="140" />
  <row Id="3316" PostId="3468" Score="1" Text="Thank you for trying to answer. Sorry for being picky, but this doesn't really answer my question. An answer would be &quot;without epochs, x would happen (which was shown there in that source, y), and hence a possible solution is epochs, which does z to ensure that x problem doesn't happen." CreationDate="2022-06-29T06:14:41.953" UserId="169" />
  <row Id="3317" PostId="2705" Score="0" Text="I think this is the best option, I was running into some issues with the block production rate and it was because of the way I was inserting new values to a vector. Using append made the block production constant. thx!" CreationDate="2022-06-29T07:12:27.157" UserId="2102" />
  <row Id="3318" PostId="3437" Score="0" Text="I run 3 nodes, still same errors" CreationDate="2022-06-29T08:00:26.960" UserId="2777" />
  <row Id="3320" PostId="3444" Score="0" Text="I try to purge then use RPC Calls/Authors/Insert Keys.&#xA;-Keytype:Text = aura&#xA;-suri: Text = glory icon taste syrup such guard correct occur coyote frequent thing water&#xA;-publicKey = 0x0adf0e0405dbc259257c2eb6700d00849a94edf496872dbea5547d236a9aff00&#xA;(publicKey is publicKey hex, right?)&#xA;&#xA;-Keytype:Text = gran&#xA;-suri: Text = glory icon taste syrup such guard correct occur coyote frequent thing water&#xA;-publicKey = 0x8e34ea1bd11bd532427f82daae6aa3a855fdc948136753905a74796a5b7146c8&#xA;&#xA;still same issue." CreationDate="2022-06-29T08:09:45.407" UserId="2777" />
  <row Id="3321" PostId="3444" Score="0" Text="When I restart node-1 then have new error.&#xA;&#xA;GRANDPA voter error: could not sign outgoing message: Failed to sign GRANDPA vote for round 1 targetting 0x9b4ee454930c1cf0f52d592136a35c8c20ee15caa177b06f8e8502423fe5d004    &#xA;2022-06-29 14:47:02 Essential task `grandpa-voter` failed. Shutting down service.    &#xA;Error: Service(Other(&quot;Essential task failed.&quot;))" CreationDate="2022-06-29T08:11:24.983" UserId="2777" />
  <row Id="3322" PostId="3502" Score="0" Text="i'll need every transaction to works, but they are destructive (setBalance), so if one doesnt work, i'll make them all again, and previous values will be erased.&#xA;&#xA;If i &quot;spam&quot; transaction, will they be queued until they can be processed ? or if there is too many, they will be ignored ?" CreationDate="2022-06-29T08:33:10.583" UserId="2355" />
  <row Id="3323" PostId="3468" Score="0" Text="I have updated my answer, I'm not an expert on Peercoin but I think this is the main distinction between both systems and why epochs are needed in our setup." CreationDate="2022-06-29T11:46:11.523" UserId="452" />
  <row Id="3324" PostId="3440" Score="0" Text="It's a bit hard to give specific advice as it really depends on your use case, but I think the main point you need to consider is: do you need consensus on this data? I.e. even if the data is specific to each node, do other nodes care about it and need access to it? If yes, then it should be posted on-chain through extrinsics (assuming it's not too much data), if not then it should just be stored locally on each node (maybe using an offchain worker?)." CreationDate="2022-06-29T11:57:15.737" UserId="452" />
  <row Id="3325" PostId="3468" Score="1" Text="Thank you for explaining further. If you don't mind, why would an adversary be waiting for a staker to be eligible for block production instead of being there all the time with full control? Is this about DDoS attacks? If yes, if multiple people are competing to produce blocks, doesn't that mean that by definition only one will win and that every other secret will be revealed even though the corresponding blocks didn't win because they were broadcast? Doesn't that open the door for any attacker again since all the secrets are on the table after failing to produce main-chain blocks?" CreationDate="2022-06-29T12:20:58.640" UserId="169" />
  <row Id="3326" PostId="3008" Score="0" Text="This answer worked for me, Thank you for your help." CreationDate="2022-06-29T12:49:16.993" UserId="2033" />
  <row Id="3327" PostId="3340" Score="0" Text="How to integrate nimbus in our node(service.rs, chain_spec, rpc.rs) on version v0.9.24 ?" CreationDate="2022-06-29T12:52:56.123" UserId="555" />
  <row Id="3328" PostId="3518" Score="0" Text="See this issue for more formal specs to be re-added to some docs soon https://github.com/paritytech/ss58-registry/issues/112" CreationDate="2022-06-29T14:00:50.177" UserId="34" />
  <row Id="3329" PostId="3515" Score="0" Text="Are you monitoring networking? Perhaps poor connectivity is a cause." CreationDate="2022-06-29T14:01:47.643" UserId="34" />
  <row Id="3330" PostId="3499" Score="0" Text="Not sure. But I guess it fulfills everything to be regarded unsafe." CreationDate="2022-06-29T14:11:21.230" UserId="2790" />
  <row Id="3331" PostId="3518" Score="0" Text="As i said in my question, i'll need a solution from polkadotjs package. I imagine that ``u8aToHex`` comes from polkadotjs, if yes, it was exactly the function i was searching for. But from which package ? api ? util-crypto ?" CreationDate="2022-06-29T14:15:11.843" UserId="2355" />
  <row Id="3332" PostId="3502" Score="0" Text="At least from my experience, they were lost. But this might be due to how polkadod-js api is handling rejections from rpc calls. &#xA;&#xA;Are you the only one who is allowed to submit transactions during this time? Otherwise, one might move funds and get another setBalance plus." CreationDate="2022-06-29T14:15:25.093" UserId="2790" />
  <row Id="3333" PostId="3499" Score="0" Text="Thought about it a bit more. I guess reading is safe. Writing is unsafe. Omitting the problems that might result from unnoticed type changes, naming changes." CreationDate="2022-06-29T14:16:32.353" UserId="2790" />
  <row Id="3334" PostId="3502" Score="0" Text="Anyone can, but they will be signed by the only sudo account. If it really gonna block, maybe i can manually push it on different blocks, but i hope this isn't the only solution..." CreationDate="2022-06-29T14:18:41.760" UserId="2355" />
  <row Id="3335" PostId="3515" Score="0" Text="@DanShields I am looking at the telemetry data and I see nothing out of order for those nodes. The block time and block propagation time are fine, only the peer amount is quite low ( &lt;25) compared to other nodes (other nodes have &gt;25 peers)." CreationDate="2022-06-29T14:51:17.967" UserId="553" />
  <row Id="3336" PostId="3520" Score="0" Text="Thanks a lot !&#xA;And by curiosity, did you find this on documentation ?" CreationDate="2022-06-29T14:53:16.273" UserId="2355" />
  <row Id="3337" PostId="3520" Score="1" Text="For the first option - all Codec objects have `.toHex()` and `.eq()` on them that will convert and compare, so that is standard to all API-returned objects. For the second option, it is just a variation of https://polkadot.js.org/docs/util-crypto/examples/validate-address" CreationDate="2022-06-29T14:55:46.973" UserId="2129" />
  <row Id="3338" PostId="3444" Score="0" Text="A. 1. You must have two nodes to be able to run aura-gran consensus, 2. generate aura: subkey generate --scheme sr25519, generate gran: subkey inspect --scheme ed25519 &lt;use-same-mnemonics-in-aura&gt;, 3. Make sure that when you encode the keys you use the correct public hex for aura and gran" CreationDate="2022-06-29T15:00:56.913" UserId="2565" />
  <row Id="3339" PostId="3444" Score="0" Text="B. 1. For the second node, make sure to connect to the second node before your provide the aura and gran keys, 2. Follow the process of letter A." CreationDate="2022-06-29T15:02:03.757" UserId="2565" />
  <row Id="3340" PostId="3444" Score="0" Text="You can check /tmp/node01/local_testnet/keystore for node01, after you put the keys." CreationDate="2022-06-29T15:03:01.297" UserId="2565" />
  <row Id="3341" PostId="3444" Score="0" Text="You can check /tmp/node02/local_testnet/keystore, after you put the keys of the second node.  There should only be 2 keys in there, one for aura and one for gran" CreationDate="2022-06-29T15:03:55.667" UserId="2565" />
  <row Id="3342" PostId="3520" Score="0" Text="ooooh ok, thanks again !" CreationDate="2022-06-29T15:33:26.363" UserId="2355" />
  <row Id="3343" PostId="3444" Score="0" Text="By the way, I forgot, make sure you authorized these validator addresses in your customSpecRaw.json file." CreationDate="2022-06-29T15:43:54.917" UserId="2565" />
  <row Id="3344" PostId="3502" Score="0" Text="I am probably too paranoid, but  in this case I would set a Call-filter for the period the system might be in an inconsistent state (i.e. if one set balance fails and you are rerunning everything again)." CreationDate="2022-06-29T16:06:22.077" UserId="2790" />
  <row Id="3345" PostId="3468" Score="0" Text="Indeed the attack I can think of is censoring a certain validator by DoSing it and preventing it from authoring blocks (AFAIK this specific attack already happened on Solana). With BABE it is possible that more than one validator are eligible to author a block at a certain height, in that case you get a temporary fork just like in PoW. I didn't fully understand what you meant after, but the computation for eligibility is done locally by each validator, if you're not eligible to author a block at a given height then you don't publish anything (i.e. no secrets are leaked)." CreationDate="2022-06-29T16:51:35.357" UserId="452" />
  <row Id="3346" PostId="3468" Score="0" Text="In very high-level terms the eligibility computation is something like `can_author = RNG(seed, private_key, block_number) &lt; 1/N_VALIDATORS`. So the process is still stochastic and there's no upper bound on how many concurrent winners we can have. The &quot;magic&quot; here is that the RNG is a VRF and therefore anyone can check its result by using the public-key of the given validator. The only way to know beforehand whether a given validator will win a slot at a given height is by having access to its private-key." CreationDate="2022-06-29T16:56:50.247" UserId="452" />
  <row Id="3347" PostId="3515" Score="0" Text="@DanShields Also how can poor connectivity cause a node to produce more blocks?" CreationDate="2022-06-29T17:44:02.393" UserId="553" />
  <row Id="3348" PostId="3468" Score="1" Text="I see. This is very valuable, thank you. So basically no one has to reveal the private key at any stage after publishing the block, yet it's possible to verify that every output of that RNG/VRF function came specifically from that private key by using the public key. Am I getting this right?" CreationDate="2022-06-29T18:20:08.923" UserId="169" />
  <row Id="3350" PostId="3529" Score="0" Text="You should split the answer here into an answer, not embedding it into your question :)" CreationDate="2022-06-30T02:35:34.883" UserId="34" />
  <row Id="3351" PostId="3444" Score="0" Text="I check step by step A, B, keystore node01, node02. It's fine" CreationDate="2022-06-30T03:46:25.087" UserId="2777" />
  <row Id="3352" PostId="3444" Score="0" Text="About authorized these validator addresses. How to authorized? I tried 2 way: 1- use the command &quot;ls /tmp/node01/chains/local_testnet/keystore&quot; 2-use the RPC/sudo/sudo access/nodeAuthorization/addWellKnownNode. How to find PeerId node (hex) and Owner: AccountId32 of current node?" CreationDate="2022-06-30T03:51:23.527" UserId="2777" />
  <row Id="3353" PostId="3486" Score="0" Text="@DanShields I think he wants to have a file (not lib.rs) where he can put all the `#[pallet::storage]` definitions. I think its not possible, or at least I was not able to do so, but sometimes you can have a lot of `storage` items, so it would be nice to move everything that is not an extrinsic outside of the lib.rs" CreationDate="2022-06-30T05:58:22.613" UserId="2102" />
  <row Id="3354" PostId="3444" Score="0" Text="Could I connect to you via IM message? To easy check my step by step, maybe there is mistake when I do." CreationDate="2022-06-30T06:41:49.527" UserId="2777" />
  <row Id="3355" PostId="3486" Score="2" Text="Exactly what @andresvsm wrote. Basically have more flexibility in terms of how you want to structure your code base." CreationDate="2022-06-30T07:31:03.620" UserId="2794" />
  <row Id="3356" PostId="3340" Score="1" Text="The template here https://github.com/PureStake/nimbus/tree/main/parachain-template and the README file should describe the requisities." CreationDate="2022-06-30T07:58:30.157" UserId="2759" />
  <row Id="3357" PostId="3527" Score="0" Text="Thank you for your answer, that's what I kinda guessed too, I'll simply follow your suggestion." CreationDate="2022-06-30T08:16:35.310" UserId="2135" />
  <row Id="3358" PostId="3525" Score="0" Text="Yeah, the problem comes when the user want to do so many transactions, that it cannot be included in a sigle `batchAll` call." CreationDate="2022-06-30T08:17:38.337" UserId="2135" />
  <row Id="3359" PostId="3538" Score="4" Text="Duplicate of https://substrate.stackexchange.com/questions/2760/get-transaction-by-hash &amp; https://substrate.stackexchange.com/questions/1495/get-account-transactions-using-substrate-api" CreationDate="2022-06-30T09:41:43.717" UserId="627" />
  <row Id="3360" PostId="3444" Score="0" Text="Sure you can, just let me know when." CreationDate="2022-06-30T10:22:09.433" UserId="2565" />
  <row Id="3361" PostId="3486" Score="1" Text="@ppoliani Although my lib.rs file is quite big, I have moved out auxiliar functions (the ones that are not under `#[pallet::call]`), custom data structures, custom enums and of course, tests, mocks and benchmarks. But I'm not sure you can remove things that are declared within the `pub mod pallet {...}` scope" CreationDate="2022-06-30T10:34:24.657" UserId="2102" />
  <row Id="3362" PostId="3468" Score="0" Text="Yes, that is correct!" CreationDate="2022-06-30T10:58:46.720" UserId="452" />
  <row Id="3363" PostId="3468" Score="1" Text="Thank you very much. I'll mark this question as answered and ask any follow up questions in another one." CreationDate="2022-06-30T11:04:12.913" UserId="169" />
  <row Id="3364" PostId="2761" Score="0" Text="How can I index transactions from block? I tried ```api.query.transactionStorage.transactions(blockNumber)```, I am getting error. It seems transactionStorage is undefined" CreationDate="2022-06-30T15:02:16.003" UserId="2581" />
  <row Id="3365" PostId="3538" Score="0" Text="It doesn't give answer for my question. I commented in above question, how can I get transactions from block? Or is there any other solution?" CreationDate="2022-06-30T15:04:48.413" UserId="2581" />
  <row Id="3366" PostId="3449" Score="0" Text="I see if the default behavior is not to add a prefix. This would mean that if we are using an external tool to sign a message that is not polkadot-js. It will follow the same pattern and not add a prefix as well. That means this tool could be signing a valid transaction since it will not add a prefix. I guess we will have to add some kind of validation to check if what was sent to sign is not a transaction. Would we have to decode the whole data and try to fit it into the transaction metadata to see if it is a valid transaction or not?" CreationDate="2022-06-30T15:10:45.887" UserId="1996" />
  <row Id="3367" PostId="3479" Score="0" Text="Please include your Github repo link here. Also, it looks like the releases are maintained by tags: https://github.com/paritytech/substrate-contracts-node/tags" CreationDate="2022-06-30T16:44:56.073" UserId="29" />
  <row Id="3368" PostId="3486" Score="1" Text="@andresvsm that's cool. I did the same exact thing as well" CreationDate="2022-06-30T18:40:05.567" UserId="2794" />
  <row Id="3369" PostId="3543" Score="0" Text="you need to match the specific commit of all upstream dependencies, usually this is done via tag or branch, check what frontier is using and match - the crate version is not enough. Master changes over time, and thus is not suggested to use in production." CreationDate="2022-07-01T01:36:20.300" UserId="34" />
  <row Id="3371" PostId="3528" Score="0" Text="What explorer? Please add more details here " CreationDate="2022-07-01T06:07:50.470" UserId="34" />
  <row Id="3372" PostId="3543" Score="0" Text="@DanShields thanks for comment. i added pallet-staking with matching its branch to other branches because frontier was using master for all other dependencies." CreationDate="2022-07-01T06:23:10.290" UserId="2802" />
  <row Id="3373" PostId="3538" Score="0" Text="I believe both links by @Jaco are answering your question: &#xA;&#xA;The node itself doesn't index all transactions, it just stores blocks and states. You should fetch all blocks yourself and index transactions.&#xA;If you want to fetch transactions from a block you can use API Sidecar to do this: Have a look at https://wiki.polkadot.network/docs/build-node-interaction#fetching-a-block for more details" CreationDate="2022-07-01T07:40:08.227" UserId="2025" />
  <row Id="3374" PostId="3542" Score="0" Text="Thank you for the answer." CreationDate="2022-07-01T09:39:57.097" UserId="1893" />
  <row Id="3375" PostId="3548" Score="0" Text="Thank you for the answer. Two follow-ups, if you don't mind: 1. Can you please point me to the part in Ouroboros Praos paper that shows that this attack is only dangerous if many do it, and 2. What does SSLE mean?" CreationDate="2022-07-01T10:37:32.967" UserId="169" />
  <row Id="3376" PostId="3547" Score="0" Text="Thanks for the interesting question! I just have a quick clarification: Why would a primary leader want to withhold their block? in other words, what do you concretely mean by &quot;If I like to outcome&quot; in the enumeration above? In my understanding, losing the reward + fees should disincentive this behaviour in practical terms." CreationDate="2022-07-01T11:40:48.963" UserId="2025" />
  <row Id="3377" PostId="3548" Score="0" Text="It's the whole paper that defines the problem and proves this, but most action happens in section 4, which culminates with Theorem 8.  There exist other papers which do this analysis in a perhaps nicer ways, like using martingales or markov processes." CreationDate="2022-07-01T12:24:25.303" UserId="1810" />
  <row Id="3378" PostId="3548" Score="0" Text="SSLE = Secret Single Leader Election" CreationDate="2022-07-01T12:25:03.857" UserId="1810" />
  <row Id="3379" PostId="3543" Score="0" Text="i cloned and then checked out to branch &#xA;polkadot-v0.9.22&#xA;then I again added staking dependencies and tried building the project and it was successfully built.&#xA;@DanShields please verify if this approach is correct so I can close this question." CreationDate="2022-07-01T12:52:15.323" UserId="2802" />
  <row Id="3380" PostId="3547" Score="1" Text="@Iker It all depends on the gain they'd be getting out of that move. For example, if they are seeking some random value generated through the block. Or if someone is doing a trade on-chain basing their gain on MEV (miner extracted value) for that transaction is higher than the block reward. Basically, the idea is that the miner should only have one shot at getting a block, and any additional ones should incur high cost. We cannot imagine all incentives, but we cannot deny their presence. On bitcoin, the cost of this move is mining another block on top of the original block." CreationDate="2022-07-01T12:56:17.877" UserId="169" />
  <row Id="3381" PostId="3547" Score="0" Text="I see your point,I thanks for the comment." CreationDate="2022-07-01T13:27:59.173" UserId="2025" />
  <row Id="3382" PostId="3548" Score="0" Text="From the paper, theorem 8, I honestly don't understand how `alpha-dominated`, alpha being the stake fraction, means that it's secure. It just means that the most damage a staker can do is bounded by an alpha fraction of slots of the blockchain, which can be really significant. If I understand correctly, it just means that this is a trade-off that's accepted anyway. The trade-off is: &quot;as long as the staker can't corrupt a fraction of the blockchain that isn't longer than his stake, we're good&quot;. Am I getting this right?" CreationDate="2022-07-01T13:52:36.137" UserId="169" />
  <row Id="3383" PostId="3554" Score="0" Text="Thanks for your answer. I was able to run your code. However, it doesn't give transaction information. Like transaction amount, type, fee etc. How can I get it?" CreationDate="2022-07-01T15:41:08.720" UserId="2581" />
  <row Id="3384" PostId="3480" Score="0" Text="Try going through the [quickstart](https://university.subquery.network/quickstart/quickstart.html) using npm instead of yarn." CreationDate="2022-07-01T15:42:18.633" UserId="29" />
  <row Id="3385" PostId="3502" Score="0" Text="Actually it worked ! i dispatched ~40k transactions, they all queued until they could all pass !" CreationDate="2022-07-01T16:45:59.247" UserId="2355" />
  <row Id="3386" PostId="3444" Score="0" Text="My telegram: https://t.me/oscardollars" CreationDate="2022-07-02T08:30:51.883" UserId="2777" />
  <row Id="3387" PostId="3565" Score="1" Text="Note I've also covered some of the Substrate tutorials prior to the one about starting my own relay chain (and connecting parachains to it) https://docs.substrate.io/tutorials/connect-other-chains/local-relay/" CreationDate="2022-07-02T13:46:02.640" UserId="266" />
  <row Id="3388" PostId="3565" Score="0" Text="I also updated my rust toolchain to the latest version at time of writing and still no luck - 1.62.0 for stable and 1.64.0-nightly for nightly." CreationDate="2022-07-02T13:55:09.757" UserId="266" />
  <row Id="3389" PostId="3565" Score="2" Text="Hi, can you try install cmake (e.g brew install cmake) and then should works." CreationDate="2022-07-02T14:43:01.333" UserId="279" />
  <row Id="3390" PostId="3565" Score="0" Text="Hi @pepoviola thank you for the suggestion! Do you have an idea why that changed in `prost-build v0.10.4`? I'm currently building the `substrate-node-template` without any issue and it successfully compiles `prost-build v0.9.0`. So I try to understand before installing additional tools" CreationDate="2022-07-02T14:53:28.040" UserId="266" />
  <row Id="3391" PostId="3565" Score="0" Text="To answer my own question - probably this commit in `prost-build` started requiring `cmake` - &quot;build: Remove bundled protoc and build from source&quot; https://github.com/tokio-rs/prost/commit/fc9fbd9823f93774004975f7794dac112a2ff4ef" CreationDate="2022-07-02T15:00:22.967" UserId="266" />
  <row Id="3392" PostId="3565" Score="0" Text="@pepoviola thank you for the comment! It encouraged me to dig deeper and I found that I can download a pre-built `protoc` instead of having to build it each time with `cmake`" CreationDate="2022-07-02T15:28:48.563" UserId="266" />
  <row Id="3394" PostId="3564" Score="0" Text="Possible duplicate of:. https://substrate.stackexchange.com/questions/3493/how-to-create-a-tuple-type-using-polkadot-js-api" CreationDate="2022-07-02T15:56:40.620" UserId="88" />
  <row Id="3395" PostId="3563" Score="0" Text="Thank you for looking into this. I'm showing the xcm trace from the sender parachain. As I understand,  `hrmpInitOpenChannel` and `hrmpAcceptOpenChannel` requests are encoded on the relay chain and then instantiated on each respective parachain via sudo polkadotXcm.send. Let me provide more context in the post." CreationDate="2022-07-02T16:17:37.590" UserId="2011" />
  <row Id="3397" PostId="3554" Score="0" Text="Those are all part of the arguments - x.args in the naming above." CreationDate="2022-07-03T06:40:34.527" UserId="1866" />
  <row Id="3398" PostId="3562" Score="0" Text="You seem to need static/augmented types in your editor. These are not available - I'm guessing that like for the normal API augmentation it would need a specific augmentation import to make available (there is no tool atm for that takes an ABI and converts to TypeScript definitions for editors to use). As per your screenshot, the ABI is injected at runtime." CreationDate="2022-07-03T06:45:20.680" UserId="1866" />
  <row Id="3399" PostId="3244" Score="1" Text="For ETH-contracts you can use the normal web3.js/ethers.js toolsets." CreationDate="2022-07-03T06:52:28.957" UserId="1866" />
  <row Id="3401" PostId="3519" Score="0" Text="*Yet indeed only the root nodes are allowed to be smaller than 32bytes.*&#xA;&#xA;&#xA;I don't think only root nodes are allowed to be smaller than 32 bytes? From my understanding, root nodes encoding can be any size, but their Merkle value is always the blake2b 32 bytes hash digest of their encoding, whereas other non-root nodes can have their Merkle value as the digest of their encoding or as their encoding if this last one is smaller or equal to 32 bytes." CreationDate="2022-07-03T17:37:49.560" UserId="219" />
  <row Id="3402" PostId="3187" Score="2" Text="You'll definitely get this error if you happen to **not** have a substrate node running at all." CreationDate="2022-07-03T02:46:32.420" UserId="2836" />
  <row Id="3403" PostId="3560" Score="0" Text="This is not quite a simple &quot;do 1...2...3....&quot; Solution. Please add more details about what you are updating specifically? Links to source help. Generically you must update you cargo.toml deps and account for any breaking changes that were introduced. Not that these are not semver compliant version bumps." CreationDate="2022-07-03T17:50:40.943" UserId="34" />
  <row Id="3404" PostId="3563" Score="0" Text="OK I see, updated response." CreationDate="2022-07-03T19:51:45.383" UserId="620" />
  <row Id="3405" PostId="3568" Score="0" Text="can you hare your source?" CreationDate="2022-07-04T00:56:17.143" UserId="34" />
  <row Id="3406" PostId="3568" Score="0" Text="for reference, this is the common good minimal contracts parachain https://github.com/paritytech/cumulus/tree/master/parachains/runtimes/contracts/contracts-rococo" CreationDate="2022-07-04T01:01:11.267" UserId="34" />
  <row Id="3407" PostId="3563" Score="1" Text="That was it, the output below. Beside the &quot;Unimplemented&quot; error, what actually confused me is `hrmp.AcceptedChannelRequestCount(2000)` returns 0. &#xA;&#xA;hrmp.hrmpChannels: Option&lt;PolkadotRuntimeParachainsHrmpHrmpChannel&gt;&#xA;&#xA;{&#xA;  maxCapacity: 8&#xA;  maxTotalSize: 8,192&#xA;  maxMessageSize: 1,048,576&#xA;  msgCount: 0&#xA;  totalSize: 0&#xA;  mqcHead: null&#xA;  senderDeposit: 0&#xA;  recipientDeposit: 0&#xA;}" CreationDate="2022-07-04T07:31:11.717" UserId="2011" />
  <row Id="3408" PostId="3584" Score="0" Text="I see the tutorial has: `--chain rococo-local-parachain-2000-raw.json` in earlier steps. Can you add that to the `purge-chain` instruction and see if it gets rid of the error?" CreationDate="2022-07-04T10:19:16.857" UserId="28" />
  <row Id="3410" PostId="3584" Score="0" Text="Thank you @ShawnTabrizi but sadly the error is still there. I tried removing `--base-path` and using just `--chain` and I also tried with both at the same time - the error is the same." CreationDate="2022-07-04T13:20:07.383" UserId="266" />
  <row Id="3411" PostId="2781" Score="0" Text="Have you made add some custom logic around eras ? Something that we cannot know how it could be affecting the system without checking the code ?&#xA;Is it possible for you to share some description on how your system is architected ? I feel that something like that should not happen without modifications to certain parts of the codebase." CreationDate="2022-07-04T14:44:38.087" UserId="165" />
  <row Id="3412" PostId="3572" Score="0" Text="Oh dear. I was hoping those tags would migrate to becoming emojis so they were still there but only took up 1 char." CreationDate="2022-07-04T16:05:11.713" UserId="85" />
  <row Id="3413" PostId="2781" Score="0" Text="This may be the issue: https://github.com/polkadot-js/apps/issues/7607#issuecomment-1129752912" CreationDate="2022-07-04T18:28:41.773" UserId="29" />
  <row Id="3414" PostId="3584" Score="0" Text="can you provide a minimal number of commands to reproduce?" CreationDate="2022-07-04T20:14:18.053" UserId="28" />
  <row Id="3415" PostId="3593" Score="1" Text="Just an idea, but you could probably hook up your vesting pallet to the relay chain block number, which is quite consistent, rather than your local block number. This would also be a 1:1 mapping with your parachain slot period, which is defined by relay chain blocks." CreationDate="2022-07-04T21:00:00.583" UserId="28" />
  <row Id="3416" PostId="3594" Score="2" Text="check if you have implemented it in your ./runtime/src/lib.rs like: https://github.com/paritytech/substrate/blob/master/bin/node/runtime/src/lib.rs#L888 and https://github.com/paritytech/substrate/blob/master/bin/node/runtime/src/lib.rs#L1595, so then you can import it into your ./node/src/chain_spec.rs like: https://github.com/paritytech/substrate/blob/master/bin/node/cli/src/chain_spec.rs#L25 and https://github.com/paritytech/substrate/blob/master/bin/node/cli/src/chain_spec.rs#L325" CreationDate="2022-07-05T03:58:13.780" UserId="83" />
  <row Id="3417" PostId="2781" Score="0" Text="@AlejandroMartínez we haven't done any changes around eras but we did some changes in fee structure, i think that would not be a problem, we just increased the validator count from 10 -&gt; 12 using sudo." CreationDate="2022-07-05T04:54:01.147" UserId="406" />
  <row Id="3418" PostId="3599" Score="0" Text="Two questions to try to narrow down the issue:&#xA;- What is the balance of the origin of the extrinsic? Have you tried to increase it?&#xA;- Have you tried to increase the gas limit parameter? For example 10x and so on?" CreationDate="2022-07-05T08:09:48.773" UserId="2025" />
  <row Id="3419" PostId="3599" Score="0" Text="@Iker i have tried both and still getting the same error." CreationDate="2022-07-05T09:04:57.403" UserId="2281" />
  <row Id="3420" PostId="3584" Score="0" Text="I added the command used to start the node. So, it's basically 1. start the node 2. stop the node 3. purge the chain" CreationDate="2022-07-05T09:21:07.577" UserId="266" />
  <row Id="3421" PostId="3584" Score="0" Text="It may be in the way I created the rococo-local chain configs for both parachain and relay chain but I don't recall doing anything different from the tutorial..." CreationDate="2022-07-05T09:25:11.067" UserId="266" />
  <row Id="3422" PostId="3519" Score="0" Text="Yes you are correct any node can be less than 32 byte, but just the root node will need its merkle hash calculated (others node will be encoded directly in their parent node)." CreationDate="2022-07-05T11:16:57.057" UserId="225" />
  <row Id="3423" PostId="3579" Score="1" Text="Encoded node smaller or equal to 32 bytes (except if state root or a child trie state root) should not be part of the proof as individual encoded node. They should only be included in their parent encoded node.&#xA;But yes to get the root you need to hash some nodes.&#xA;If ordering is needed (for instance to avoid hashing all), compact proof are really more adequate. Only drawback with compact proof is that they don't support multiple consecutive state (in substrate there is an implementation for child state), but the use case does not really exists." CreationDate="2022-07-05T11:22:59.243" UserId="225" />
  <row Id="3424" PostId="3603" Score="0" Text="when i try to await the api call. it return a Codec type. not the UnsubscribePromise type" CreationDate="2022-07-05T11:34:46.957" UserId="2846" />
  <row Id="3425" PostId="3603" Score="0" Text="I just edit my answer with a little snippet you can run in https://polkadot.js.org/apps/#/js" CreationDate="2022-07-05T11:51:30.490" UserId="279" />
  <row Id="3426" PostId="3603" Score="0" Text="hmm.. thanks a lot ...&#xA;I use this tool for the first time.   the polkadot console show this message/&#xA;&#xA;&#xA;&#xA;```&#xA;14752/X3&lt;/I&lt;/&lt;@https://polkadot.js.org/apps/main.cd1ae65a.js:19:530635&#xA;14752/X3&lt;/I&lt;/&lt;@https://polkadot.js.org/apps/main.cd1ae65a.js:19:530635&#xA;```&#xA;&#xA;is it correct?" CreationDate="2022-07-05T12:00:38.153" UserId="2846" />
  <row Id="3427" PostId="3584" Score="1" Text="I had the same issue, how I solved I don't know, it was just a matter of trying a couple of times. For dev purposed I use the `--tmp` flag instead of `--base-path` so I don't have to purge chain content on each run." CreationDate="2022-07-05T12:40:53.397" UserId="2102" />
  <row Id="3428" PostId="2906" Score="1" Text="The node under pressure is not using more than 2 cpus at the time, which is nice. The rust-analyzer uses all the cpus so I had to disable it." CreationDate="2022-07-05T12:49:01.813" UserId="2102" />
  <row Id="3429" PostId="3582" Score="0" Text="-r works as shorthand for --release? nice... did not know that." CreationDate="2022-07-05T13:42:48.097" UserId="85" />
  <row Id="3430" PostId="3584" Score="0" Text="@andresvsm thank you for the input! I'm also not really concerned with the issue since I'm still learning and I'm doing the tutorials but decided to share it in case it would help the community somehow." CreationDate="2022-07-05T13:52:58.640" UserId="266" />
  <row Id="3431" PostId="3605" Score="1" Text="nice findings. swap remove is a speedy way of removing from a vec btw if you don't need to preserve ordering." CreationDate="2022-07-05T13:56:23.047" UserId="85" />
  <row Id="3432" PostId="3329" Score="0" Text="Agreed it would not be cheap but for certain high value transactions the costs may be worth it. (Once true HRMP lands and the messages are not going via the relay chain then xcm will be a bit cheaper too). It's all about experimenting at the moment and seeing what patterns work for the different use cases." CreationDate="2022-07-05T14:09:11.047" UserId="85" />
  <row Id="3433" PostId="3591" Score="0" Text="I am aware of how events are stored. The problem, however, is that the listener gives me an event, but doesn't tell me in which block it was included. In general, the block number doesn't need to be part of the event, but it should be in the message received by the listener. To get around this, I query the events of every block, checking if its included. Bad design, but I dont see how to do it differently." CreationDate="2022-07-05T14:42:59.370" UserId="1816" />
  <row Id="3434" PostId="3572" Score="0" Text="What argument flags are you using to boot up this node?" CreationDate="2022-07-05T14:54:58.717" UserId="29" />
  <row Id="3435" PostId="3582" Score="0" Text="`git status` most likely something locally is corrupt or changed." CreationDate="2022-07-05T15:21:47.363" UserId="29" />
  <row Id="3436" PostId="3603" Score="0" Text="i worte a demo code on this issue" CreationDate="2022-07-05T15:36:01.317" UserId="2846" />
  <row Id="3437" PostId="3528" Score="0" Text="Sorry! I was using this https://polkadot.js.org/apps/#/explorer" CreationDate="2022-07-05T18:12:19.847" UserId="2801" />
  <row Id="3438" PostId="3592" Score="1" Text="The chain upgrades are not scheduled based on the sessions - they are scheduled based on the voting periods." CreationDate="2022-07-05T18:26:56.490" UserId="2132" />
  <row Id="3439" PostId="3599" Score="0" Text="I would recommend following one of their tutorials first: https://docs.astar.network/wasm-smart-contracts/smart-contract-development/tutorials/polkadotjs-ui and make sure that works. You can see their fee calculation here: https://github.com/AstarNetwork/Astar/blob/7fc8fe70cfa7b97ffd02a1ddde913d7f30a0bb3b/runtime/astar/src/lib.rs#L580" CreationDate="2022-07-05T19:10:29.287" UserId="29" />
  <row Id="3440" PostId="3478" Score="0" Text="Can you describe what you're trying to do?&#xA;&#xA;There's no natural mapping between a hash (or a series on bytes) an integer, so how you get from one to the other depends on what your goal is." CreationDate="2022-07-05T19:19:02.157" UserId="1824" />
  <row Id="3441" PostId="3472" Score="0" Text="You can also look at the OpenZepplin interface for the functions: https://docs.openzeppelin.com/contracts/4.x/api/token/erc20#ERC20-_mint-address-uint256-" CreationDate="2022-07-05T19:22:00.667" UserId="1824" />
  <row Id="3442" PostId="3580" Score="0" Text="Can you elaborate on why/how this solved your issue?" CreationDate="2022-07-05T19:26:22.797" UserId="1824" />
  <row Id="3443" PostId="3620" Score="1" Text="I was able to replicate this issue as well." CreationDate="2022-07-05T19:56:55.787" UserId="29" />
  <row Id="3444" PostId="3622" Score="0" Text="same result ^^^" CreationDate="2022-07-05T20:24:22.650" UserId="34" />
  <row Id="3445" PostId="3528" Score="1" Text="no worries - but this isn't a https://stackoverflow.com/help/minimal-reproducible-example so its very hard to help" CreationDate="2022-07-05T20:25:36.670" UserId="34" />
  <row Id="3446" PostId="3618" Score="0" Text="i applied explicitly but pnpm build also failed" CreationDate="2022-07-06T00:02:50.983" UserId="2846" />
  <row Id="3447" PostId="3612" Score="0" Text="Great. Thank you" CreationDate="2022-07-06T00:33:31.447" UserId="2777" />
  <row Id="3448" PostId="3615" Score="1" Text="What parachain specifically? Can you provide enough info to make a https://stackoverflow.com/help/minimal-reproducible-example so the community can assist here?" CreationDate="2022-07-06T04:01:07.490" UserId="34" />
  <row Id="3449" PostId="3592" Score="0" Text="Interesting. How is a chain code actually deployed? I presume it requires a node restart?" CreationDate="2022-07-06T04:47:44.893" UserId="2264" />
  <row Id="3451" PostId="3586" Score="1" Text="What happens if the only boot node goes offline? Is block production moving on and when the boot node reconnects it catches up with the rest of them?" CreationDate="2022-07-06T06:11:08.157" UserId="2102" />
  <row Id="3452" PostId="3607" Score="0" Text="I have tired all these solutions but still the problem persists, I don't have governance_fallback function in my code, so don't know if it will work or not, I tried set_emergency_election_result function it didn't worked.&#xA;Is there any other way to solve this?" CreationDate="2022-07-06T06:20:56.107" UserId="406" />
  <row Id="3453" PostId="3623" Score="0" Text="Then this extrinsic should not ask for AccountIndex as a parameter right? https://github.com/polkadot-js/apps/issues/7832#issuecomment-1175874615" CreationDate="2022-07-06T07:29:06.170" UserId="32" />
  <row Id="3454" PostId="3599" Score="0" Text="@Bruno i am not deploying wasm smart contract i am trying to deploy EVM contract ." CreationDate="2022-07-06T07:36:36.827" UserId="2281" />
  <row Id="3456" PostId="3586" Score="2" Text="Yes. The bootnode is only used to connect new computers to the overall network. Once your other machines have paired, you could remove the bootnode and nothing would change for the computers on the existing network." CreationDate="2022-07-06T08:50:39.043" UserId="28" />
  <row Id="3463" PostId="3628" Score="0" Text="You must have given different version of the dependencies, just the versions and delete cargo.lock file and then build it." CreationDate="2022-07-06T09:39:25.433" UserId="354" />
  <row Id="3465" PostId="3593" Score="0" Text="Thanks @Shawn. Looks like we need to fork the scheduler pallet and add relay block number to the public method. Does that sound the best way? Are you aware of any other parachains who (must) have done this. I checked Acala, but can’t quite understand the orml_vesting pallet." CreationDate="2022-07-06T10:31:16.403" UserId="298" />
  <row Id="3467" PostId="3628" Score="0" Text="I tried to delete cargo.lock but didn't work. I don't know I see wasmtime version 0.38.0 on creates.io" CreationDate="2022-07-06T10:50:03.480" UserId="2663" />
  <row Id="3468" PostId="3628" Score="0" Text="And cargo find it if I search with `cargo search wasmtime` first result `wasmtime = &quot;0.38.1 # High-level API to expose the Wasmtime runtime`" CreationDate="2022-07-06T10:59:11.213" UserId="2663" />
  <row Id="3469" PostId="3628" Score="0" Text="You need to match all the dependencies version, it should be same. Your cargo is finding `wasmtime = 0.38.1` but it needs a lower version of wasmtime." CreationDate="2022-07-06T11:27:13.660" UserId="354" />
  <row Id="3470" PostId="3594" Score="0" Text="I though that was what I was doing but following this exact receipe did the trick.&#xA;I was using:&#xA;democracy: Some(DemocracyConfig::default()) &#xA;and &#xA;Democracy: pallet_democracy::{Pallet, Call, Event&lt;T&gt;}&#xA;Thanks!" CreationDate="2022-07-06T13:26:19.283" UserId="2787" />
  <row Id="3471" PostId="3636" Score="1" Text="Great. I will take my time to go through the article and come back here :)" CreationDate="2022-07-06T14:21:09.337" UserId="2384" />
  <row Id="3472" PostId="3633" Score="0" Text="Curious. Why is this check done at the extrinsic level instead of the transaction pool with a Signed Extensions? It seems that we were concern with memory limits we would want to do this check before propagating the transaction to the network" CreationDate="2022-07-06T17:29:13.013" UserId="590" />
  <row Id="3473" PostId="3618" Score="0" Text="This is the correct answer for TS augmentation." CreationDate="2022-07-06T17:36:34.433" UserId="627" />
  <row Id="3474" PostId="3633" Score="0" Text="Could be done either way, but adding a signed extension is non-trivial since it needs to be explicitly included in each node. So building the check into the extrinsic is safer when updating a pallet used by all the chains." CreationDate="2022-07-06T17:55:35.967" UserId="28" />
  <row Id="3475" PostId="3599" Score="0" Text="Ok, you can see that the EVM logic that throws that error is here: https://github.com/paritytech/frontier/blob/fed5e0a9577c10bea021721e8c2c5c378e16bf66/primitives/evm/src/validation.rs#L138 `who.balance &lt; total_payment` so make sure `who.balance` is above `total_payment` and make sure `total_payment` is valid. You may want to see how Astar configured EVM: https://github.com/AstarNetwork/Astar/blob/master/runtime/astar/src/lib.rs#L704-L720" CreationDate="2022-07-06T18:03:23.063" UserId="29" />
  <row Id="3476" PostId="3633" Score="0" Text="I can see that it is more practical to add it to the extrinsic. It definitely makes it easier to maintain. Are those call functions held in memory? If we manage to exceed it I would expect it to throw an error before reaching that validation. Similar to an overflow?" CreationDate="2022-07-06T19:30:42.047" UserId="590" />
  <row Id="3477" PostId="3622" Score="2" Text="This is because we reverted evm node before the PR. Bug is being discussed on frontier repo https://github.com/paritytech/frontier/issues/761" CreationDate="2022-07-07T01:04:16.927" UserId="2478" />
  <row Id="3479" PostId="3618" Score="0" Text="But the result of my implementation according to the document here is still wrong @jaco.&#xA;the code is https://github.com/kulame/api-test-4450/blob/master/index.ts&#xA;and it raise errror  index.ts:22:2 - error TS2349: This expression is not callable.&#xA;  Type 'Codec' has no call signatures." CreationDate="2022-07-07T02:28:47.047" UserId="2846" />
  <row Id="3480" PostId="3618" Score="0" Text="Added an example to my post above (small adaptation of my test code with comments as to what is in the editor visible and in the runtime - all due to the augmentation being applied first)" CreationDate="2022-07-07T07:41:01.560" UserId="2132" />
  <row Id="3481" PostId="3607" Score="0" Text="Have you generated the appropriate `supports` using [`staking-miner`](https://github.com/paritytech/polkadot/tree/master/utils/staking-miner) ?" CreationDate="2022-07-07T07:44:37.967" UserId="165" />
  <row Id="3482" PostId="3628" Score="0" Text="Yes I know, in the `Cargo.toml` I have `wasmtime = 0.38.0` but form the output of my terminal it seems cargo can't select this version.&#xA;&#xA;Is it correct? sorry I'm new with Rust" CreationDate="2022-07-07T08:52:01.440" UserId="2663" />
  <row Id="3484" PostId="3642" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-07-07T09:16:04.407" UserId="-1" />
  <row Id="3485" PostId="3643" Score="0" Text="'add function' return a BN type.  Is there a simpler way to convert BN type to Balance?" CreationDate="2022-07-07T09:19:09.487" UserId="2846" />
  <row Id="3487" PostId="3634" Score="1" Text="Would also be good to have multiple for each and also list archive nodes for if you're going back far in time. Would it be too recursive for us to store this data on chain somewhere? but who would own / update the info?" CreationDate="2022-07-07T09:39:43.897" UserId="85" />
  <row Id="3488" PostId="3643" Score="1" Text="Why does you need a specific balance type? You don't need this type to it pass anywhere for usage in the API - I guess I tried to convey [this info from the docs](https://polkadot.js.org/docs/api/start/types.create) above. If you need to create your own, see the last line in the example that does exactly that, BN -&gt; Balance, and then uses the toHuman formatter on the value. Balance is just a BN - it just has some convenience Codec methods." CreationDate="2022-07-07T09:54:05.437" UserId="1970" />
  <row Id="3489" PostId="3607" Score="0" Text="@AlejandroMartínez it is same as provided by the substrate, we didn't change anything in it." CreationDate="2022-07-07T10:07:07.470" UserId="406" />
  <row Id="3491" PostId="3648" Score="1" Text="You would need to be connected to the relevant parachain to send its native token. For example, you'd need to be connected to an Acala node to send ACA. Then it's just a case of using the `transfer` function." CreationDate="2022-07-07T10:57:06.020" UserId="380" />
  <row Id="3492" PostId="3648" Score="0" Text="@forgetso Oh i see. But what if I would issue my own token on say on Acala or Kusama? How do I specify that token?" CreationDate="2022-07-07T11:08:11.340" UserId="2788" />
  <row Id="3493" PostId="3648" Score="0" Text="You'd need to issue the token as part of an [ERC20 contract](https://github.com/paritytech/ink/blob/master/examples/erc20/lib.rs) or similar, and then deploy that contract to Acala. I don't think Kusama has smart contracts so you can't deploy it there." CreationDate="2022-07-07T11:14:18.823" UserId="380" />
  <row Id="3494" PostId="3651" Score="0" Text="Thank you. What if I wish to transfer aUSD? I believe this token is on ACA. How does it differentiate between ACA and aUSD?" CreationDate="2022-07-07T12:49:39.847" UserId="2788" />
  <row Id="3495" PostId="3651" Score="0" Text="AFAIK, aUSD is a &quot;primitive currency&quot; in the Acala parachain, this basically means it is a precompiled ERC20 token. Hence you will need to check Acala docs to know how to interact with this kind of tokens. [This reference](https://wiki.acala.network/build/development-guide/smart-contracts/advanced/use-native-tokens) is a good starting point." CreationDate="2022-07-07T13:23:34.817" UserId="2025" />
  <row Id="3496" PostId="3618" Score="0" Text="I understand what you mean. My confusion now is that it cannot compile through tsc.&#xA;my demo code also append  &quot;import &quot;@polkadot/api-augment&quot;&quot;  before any usage" CreationDate="2022-07-07T13:52:03.907" UserId="2846" />
  <row Id="3497" PostId="3643" Score="0" Text="hm. thankyou . i just need a type to indicate balance type" CreationDate="2022-07-07T13:53:18.017" UserId="2846" />
  <row Id="3498" PostId="3371" Score="0" Text="Were you able to solve this? &#xA;I'm having the exact same error" CreationDate="2022-07-07T14:20:07.483" UserId="2340" />
  <row Id="3499" PostId="3628" Score="0" Text="please include the result of `rustup show` and ideally your repo." CreationDate="2022-07-07T14:58:40.573" UserId="29" />
  <row Id="3500" PostId="1742" Score="0" Text="can you share the link to this migration pallet?" CreationDate="2022-07-07T16:10:06.980" UserId="560" />
  <row Id="3501" PostId="3628" Score="0" Text="I add the `rustup show`, for the repo I just clone this one https://github.com/paritytech/substrate.git" CreationDate="2022-07-07T17:05:27.303" UserId="2663" />
  <row Id="3502" PostId="3659" Score="0" Text="This is awesome. Its exactly what I needed. Do you have a video recording of the demo as well somewhere?" CreationDate="2022-07-07T19:04:14.550" UserId="80" />
  <row Id="3503" PostId="3665" Score="0" Text="Ah, could have sworn I added the dependency in to my lib.rs and still wasn't compiling.. seems fine now! Thanks" CreationDate="2022-07-07T21:32:14.557" UserId="2842" />
  <row Id="3504" PostId="3659" Score="0" Text="Yeah I have a recording. It'll be uploaded to YouTube in the next few days :)" CreationDate="2022-07-07T21:58:34.937" UserId="1824" />
  <row Id="3506" PostId="3579" Score="0" Text="Very good point, thank you! Indeed, all encoded proof nodes are either root node, or a child root node, or a node with an encoding larger than 32 bytes. In all cases, their Merkle value is their encoding root hash. &#xA;&#xA;Hence in our implementation, each encoded proof node has to be hashed (to find the root and to store them in a map from hash to encoding), so the order of proof encoded nodes does not matter at all.&#xA;&#xA;By 'compact proof', do you mean proofs containing both encoded nodes and node subvalues?" CreationDate="2022-07-08T20:40:30.603" UserId="219" />
  <row Id="3507" PostId="3478" Score="0" Text="Solidity has the datatype uint256 and bytes32. Since uint256 has the same size as bytes32, a cast between the two does not seem complicated (and is also possible). I want to do a similar thing in rust. I want to write a smart contract using ink! which uses the Keccak2456 hash which returns [u8; 32]. I want to cast those in an integer value, however only a uint256 would be big enough." CreationDate="2022-07-09T03:56:13.130" UserId="2752" />
  <row Id="3508" PostId="3661" Score="0" Text="Nothing Happen!, Same issue will occur even doing with setCode(WithoutChecks)" CreationDate="2022-07-09T10:57:44.430" UserId="555" />
  <row Id="3509" PostId="3690" Score="0" Text="The configuration you are showing above is adjusting the fee of a transaction, but does not affect the Gas (or Weight) consumed by a transaction. It would be better for you to clarify what you are trying to achieve, since you seem to be confusing different things together." CreationDate="2022-07-10T13:05:44.740" UserId="28" />
  <row Id="3510" PostId="3656" Score="0" Text="What is the command you are running to run into this error?" CreationDate="2022-07-10T13:06:45.623" UserId="28" />
  <row Id="3511" PostId="3656" Score="0" Text="@ShawnTabrizi `cargo build --release`" CreationDate="2022-07-10T15:15:19.690" UserId="2379" />
  <row Id="3512" PostId="3676" Score="0" Text="If both fn foo and fn try_set_value_in_pallet_a are annotated with transactional, will it behaves as cascade mode ?" CreationDate="2022-07-11T03:48:07.653" UserId="393" />
  <row Id="3513" PostId="3689" Score="0" Text="It works, thank you!" CreationDate="2022-07-11T07:44:37.063" UserId="2663" />
  <row Id="3514" PostId="3676" Score="0" Text="Each `#[transactional]` will wrap the logic inside of that function in its own transactional layer. I don't know if cascade is the right term, but sounds like yes." CreationDate="2022-07-11T07:51:21.247" UserId="28" />
  <row Id="3515" PostId="2358" Score="0" Text="What I dont understand is that we declare instantiate  with `pub fn new( 		info: SystemInfo, 		send_back: TracingUnboundedSender&lt;Request&lt;B&gt;&gt;, 		deny_unsafe: DenyUnsafe, 	) -&gt; Self { 		System { info, send_back, deny_unsafe } 	}  ` and we pass `client.clone()` for info in `FullSystem::new(client.clone()`" CreationDate="2022-07-11T08:25:50.373" UserId="632" />
  <row Id="3516" PostId="3676" Score="0" Text="In traditional transactional architecture, there is parent-children relation between transactions. So if children transaction rolls back, so do the parents. Does substrate's transactional behave in the same way ?" CreationDate="2022-07-11T08:26:25.853" UserId="393" />
  <row Id="3517" PostId="2358" Score="0" Text="What is the question? Do you want to open a new question?" CreationDate="2022-07-11T09:13:42.233" UserId="28" />
  <row Id="3518" PostId="3676" Score="0" Text="The `#[transactional]` macro rolls back whenever an error is returned by the function, so as long as you are propagating the error up, yes, each layer will revert. However, you CAN swallow the error, and if you do and return `Ok`, then that layer will not revert. [Check the code](https://github.com/paritytech/substrate/blob/master/frame/support/src/storage/transactional.rs), it's pretty simple." CreationDate="2022-07-11T09:15:58.953" UserId="28" />
  <row Id="3519" PostId="3676" Score="0" Text="Thank you, Shawn~" CreationDate="2022-07-11T09:28:38.780" UserId="393" />
  <row Id="3520" PostId="3701" Score="0" Text="Yep, I also read about BABE, but I'm not considering staking at the moment, so Aura should work fine. Thx for the docs, it really helped!" CreationDate="2022-07-11T11:28:27.387" UserId="2102" />
  <row Id="3521" PostId="2358" Score="0" Text="I opened a new one" CreationDate="2022-07-11T13:11:01.177" UserId="632" />
  <row Id="3524" PostId="3695" Score="0" Text="I had already tried using Config but then I am getting more errors like error[E0437]: type `RentPayment` is not a member of trait `pallet_contracts::Config`&#xA;&#xA;error[E0437]: type `SignedClaimHandicap` is not a member of trait `pallet_contracts::Config`&#xA;  &#xA;`&#xA;&#xA;error[E0437]: type `TombstoneDeposit` is not a member of trait `pallet_contracts::Config`&#xA;&#xA;and many more ." CreationDate="2022-07-11T14:21:29.373" UserId="2748" />
  <row Id="3525" PostId="3695" Score="0" Text="Could you share a link to your github repo or pastebin with the code?" CreationDate="2022-07-11T16:19:56.327" UserId="2408" />
  <row Id="3526" PostId="3688" Score="0" Text="May be helpful: https://substrate.stackexchange.com/questions/3445/cannot-create-a-memfd-error-with-ubuntu-20-04-on-windows10-wsl1" CreationDate="2022-07-11T16:25:29.450" UserId="29" />
  <row Id="3527" PostId="3699" Score="0" Text="More detailed explanation of upgrading the Polkadot shell parachain to statemint can be found here: https://polkadot.polkassembly.io/referendum/46" CreationDate="2022-07-11T16:35:28.027" UserId="29" />
  <row Id="3528" PostId="3709" Score="3" Text="Looks like you're exhausting the block limit. You can use `sudo_unchecked_weight` with value 0 - &quot;This setting allows for a block to take an indefinite time to compute to ensure that the runtime upgrade does not fail&quot;. Take a look at this tutorial: https://docs.substrate.io/tutorials/get-started/forkless-upgrade/#schedule-an-upgrade" CreationDate="2022-07-11T19:41:12.010" UserId="29" />
  <row Id="3529" PostId="3631" Score="0" Text="Could you please check what I'm doing wrong. After event it is calling api which returns random values and I can see that for each node numbers is different. It looks like 2 calls was made. [link] (https://github.com/Leo777/substrate-node/blob/OCW/pallets/template/src/lib.rs)" CreationDate="2022-07-11T20:17:14.087" UserId="2845" />
  <row Id="3531" PostId="3687" Score="0" Text="For the Substrate chain, you can set the token decimals property in `chain_spec.rs` with `let token_decimals = json!(18);` and `properties.insert(&quot;tokenDecimals&quot;.to_string(), token_decimals);` then setting `Some(properties)` in the `from_genesis` call." CreationDate="2022-07-11T23:58:21.277" UserId="2019" />
  <row Id="3532" PostId="3631" Score="0" Text="By saying &quot;It looks like 2 calls was made&quot;, are these two call in the same block, or in different block ?&#xA;If in different block, then you need add some logic to guard, if the 'task' has been processed in one block, then no other block can get it again.&#xA;For eg, add a proccess_block storage for it, only process it when this field is not assigned." CreationDate="2022-07-12T03:45:30.267" UserId="393" />
  <row Id="3533" PostId="3631" Score="0" Text="Correction:&#xA;For eg, add a created_at_block storage field for it, only process it when created_at_block == current_block." CreationDate="2022-07-12T03:51:10.780" UserId="393" />
  <row Id="3534" PostId="3631" Score="0" Text="@LeuBarycheuski add correction to my answer" CreationDate="2022-07-12T05:17:50.470" UserId="393" />
  <row Id="3535" PostId="3631" Score="0" Text="Thank you for your response! It is two calls in the same block. Sorry for being annoying but maybe you have some examples for that case?" CreationDate="2022-07-12T06:27:55.460" UserId="2845" />
  <row Id="3536" PostId="3631" Score="0" Text="@LeuBarycheuski It's simple, i'll give you an example" CreationDate="2022-07-12T06:30:59.680" UserId="393" />
  <row Id="3537" PostId="3695" Score="0" Text="This is the link to my runtime/lib.rs file                  &#xA; https://github.com/vitthalagarwal/Pallet-Contracts/blob/main/runtime/lib.rs" CreationDate="2022-07-12T07:04:53.683" UserId="2748" />
  <row Id="3538" PostId="3720" Score="2" Text="You can start with having a look to [aUSD stable coin](https://docs.acaladollar.app/) on Acala parachain." CreationDate="2022-07-12T07:39:58.127" UserId="2025" />
  <row Id="3539" PostId="2358" Score="0" Text="this one : https://substrate.stackexchange.com/questions/3698/get-system-info-in-custom-rpc-call" CreationDate="2022-07-12T09:18:47.793" UserId="632" />
  <row Id="3540" PostId="3720" Score="0" Text="@Iker thanks for the link but i don't want to add stable coin in my blockchain code as done in acala for now, is there a way to that via smart contract or assets pallet." CreationDate="2022-07-12T09:49:30.610" UserId="354" />
  <row Id="3541" PostId="3720" Score="2" Text="This is definitely not a trivial question, I would suggest that you take some time to check how different projects have been implementing their peg system. There are a lot of meat under the hood of such a project." CreationDate="2022-07-12T10:01:22.060" UserId="165" />
  <row Id="3542" PostId="3115" Score="0" Text="I'm really, sorry. The reason was chain-spec raw.json file had some wrong data. After recreating spec json, it started to produce blocks." CreationDate="2022-07-12T16:06:09.277" UserId="275" />
  <row Id="3543" PostId="3715" Score="0" Text="I Faced this Error :  `zsh: command not found: polkadot`" CreationDate="2022-07-12T16:31:41.323" UserId="2722" />
  <row Id="3544" PostId="3661" Score="0" Text="no, use the setCodeWithoutChecks function" CreationDate="2022-07-12T16:43:09.207" UserId="560" />
  <row Id="3545" PostId="3051" Score="0" Text="So if I have new host function I can not fix this with a runtime upgrade?" CreationDate="2022-07-12T16:45:51.990" UserId="560" />
  <row Id="3546" PostId="3715" Score="0" Text="You need to first complete this tutorial (https://docs.substrate.io/tutorials/connect-other-chains/local-relay/), where you clone and build `polkadot`." CreationDate="2022-07-12T16:49:40.983" UserId="279" />
  <row Id="3547" PostId="3725" Score="2" Text="Thats why I had an additional byte ! So the call seems to be ok (no FailedToDecode error), but now a BadOrigin appeared... Anyhow you solved the thread question thanks !" CreationDate="2022-07-12T18:32:09.757" UserId="501" />
  <row Id="3548" PostId="2110" Score="0" Text="Are you talking about interactions from a user point of view, or a developer point of view? E.g, are you interested in learning how to use the Polkadot JS Apps UI (or another UI/tool), or the API?" CreationDate="2022-07-12T18:42:44.907" UserId="1824" />
  <row Id="3549" PostId="2699" Score="0" Text="Actually, after posting my answer I realized that your code should've compiled in the first place (and it does if you define both struct in the same contract). Can you expand (so share more code) on the how you're importing `TestData` into your second contract?" CreationDate="2022-07-12T19:14:48.707" UserId="1824" />
  <row Id="3550" PostId="3708" Score="0" Text="Provide your chain spec file? It likely is a simple error that could not parse. Perhaps try an ide with error detection for json formatting." CreationDate="2022-07-13T05:11:38.750" UserId="34" />
  <row Id="3551" PostId="3671" Score="0" Text="There seems to be a derive for the next js api release that will return all headers, i.e. filling in the gaps from the RPC subscription, https://github.com/polkadot-js/api/pull/5063" CreationDate="2022-07-13T06:34:46.197" UserId="2132" />
  <row Id="3552" PostId="3693" Score="1" Text="In chains where there are multiple balance instances, the `tokenDecimals` and `tokenSymbol` can be arrays of values as well." CreationDate="2022-07-13T07:05:20.370" UserId="1949" />
  <row Id="3553" PostId="2761" Score="0" Text="If it is undefined, it means it is not exposed in the runtime, i.e. there is no pallet for this. The [getBlock RPC](https://polkadot.js.org/docs/substrate/rpc#getblockhash-blockhash-signedblock) returns the full block, based on hash (with the extrinsics included)" CreationDate="2022-07-13T07:24:55.597" UserId="1949" />
  <row Id="3554" PostId="275" Score="0" Text="The benchmarking generally aims at slightly over-estimating the weight. This ensures that the chain never runs out of resources when validating a block. If you annotate a lower weight for your extrinsic than what the benchmarking reports, you risk running out of resources when validating a block. This could potentially even stall the chain, depending on the discrepancy." CreationDate="2022-07-13T07:28:06.603" UserId="94" />
  <row Id="3555" PostId="3683" Score="0" Text="I am clearing the state before making calls by setting setStatus(&quot;Sending..&quot;), still I get the problem." CreationDate="2022-07-13T07:48:35.277" UserId="213" />
  <row Id="3556" PostId="3698" Score="0" Text="What have you tried? What errors are you running into? Please review: https://substrate.stackexchange.com/help/how-to-ask" CreationDate="2022-07-13T08:00:13.267" UserId="28" />
  <row Id="3557" PostId="3051" Score="0" Text="You would need to coordinate a client upgrade with your community along with a runtime upgrade. Furthermore, new host functions would make your chain incompatible with Polkadot, unless Polkadot also accepted these host functions into it's client." CreationDate="2022-07-13T08:01:25.543" UserId="28" />
  <row Id="3558" PostId="3631" Score="0" Text="@LeuBarycheuski answer upgrade: give example code in the answer." CreationDate="2022-07-13T08:29:30.917" UserId="393" />
  <row Id="3561" PostId="3684" Score="0" Text="**etc. E.g. ARC used by Swift can work just well as of now.**&#xA;&#xA;What about AssemblyScript, it is mentioned in the docs that it has garbage collector implemented?" CreationDate="2022-07-13T08:43:18.277" UserId="2862" />
  <row Id="3562" PostId="3723" Score="0" Text="Thanks. So if I'm instantiating a simple ink! contract, I can leave the data field empty?" CreationDate="2022-07-13T08:50:42.290" UserId="2136" />
  <row Id="3563" PostId="3684" Score="0" Text="I am no assemblyscript expert, but AFAIK, their GC implementation does not rely on the wasm GC collection feature but it polyfills it." CreationDate="2022-07-13T13:03:39.613" UserId="45" />
  <row Id="3564" PostId="3716" Score="0" Text="I would recommend cloning https://github.com/substrate-developer-hub/substrate-node-template and running `cargo build --release` again and see if it works." CreationDate="2022-07-13T13:25:35.430" UserId="29" />
  <row Id="3566" PostId="3709" Score="2" Text="Use `compact.compressed` WASM." CreationDate="2022-07-13T14:15:42.267" UserId="29" />
  <row Id="3567" PostId="3728" Score="0" Text="Something amiss with your setup...? https://github.com/substrate-developer-hub/substrate-node-template/runs/7203511144?check_suite_focus=true for sure this built with the template for this version" CreationDate="2022-07-13T15:14:39.047" UserId="34" />
  <row Id="3568" PostId="3728" Score="0" Text="My setup has not changed - only the Substrate version changed and the build started failing. You can actually check out the set-up yourself by looking at the workflow configuration. I noticed that your build was passing, but I also noticed that it looks like that build is skipping Wasm compilation, which seems to be the root of my problem." CreationDate="2022-07-13T15:35:04.880" UserId="12" />
  <row Id="3569" PostId="3730" Score="0" Text="Before you do a transaction (`tx`) [perform a `query`](https://substrate.stackexchange.com/a/2359/380) to get errors and debug messages from the substrate contracts node." CreationDate="2022-07-13T15:58:00.213" UserId="380" />
  <row Id="3570" PostId="3730" Score="0" Text="Does this answer your question? [Ink! ink\_env::debug\_println! does not work if message is payable](https://substrate.stackexchange.com/questions/2342/ink-ink-envdebug-println-does-not-work-if-message-is-payable)" CreationDate="2022-07-13T15:58:59.870" UserId="380" />
  <row Id="3571" PostId="3709" Score="1" Text="@Bruno Yeah, Issue is solved by using compact.compressed wasm. Thanks!" CreationDate="2022-07-13T19:16:20.037" UserId="555" />
  <row Id="3572" PostId="3716" Score="0" Text="This is exactly what I am using, it builds without `nicks-pallet` but I can't build it with after I attempt to add it according to [this](https://docs.substrate.io/tutorials/work-with-pallets/add-a-pallet/)." CreationDate="2022-07-13T20:05:09.963" UserId="2805" />
  <row Id="3573" PostId="1933" Score="0" Text="Could you please share the code how you generate the keys? Otherwise you can ask in the GSRPC repo how to query a map." CreationDate="2022-07-14T10:19:48.987" UserId="94" />
  <row Id="3574" PostId="3744" Score="0" Text="Sorry for lacking background here, I was trying to build for nodejs, if I exclude these dependencies, they will not be bundled into the result file." CreationDate="2022-07-14T12:10:14.157" UserId="2880" />
  <row Id="3575" PostId="3728" Score="0" Text="You probably dont want to build the runtime in the CI anyway? Then you can skip it with an env flag like for example [here](https://github.com/perun-network/perun-polkadot-node/blob/f0a29200bed5d2e4ec6fcb0ce8ae121f9124ff5a/.github/workflows/rust.yml#L10)." CreationDate="2022-07-14T12:16:00.207" UserId="94" />
  <row Id="3576" PostId="3742" Score="0" Text="I think in an ideal world non-substrate data structure support would be best and aligns with the philosophy of the substrate framework in terms of providing developers maximum flexibility.  However I wonder how complex it will be to design a solution of generic interfaces that allow for the declaration of arbitrary storage structures?  Has there been many requests for similar solutions?  only substrate data structure support seems like a reasonable middle ground.  Allow teams to contribute custom data structures to the core substrate framework.  Thanks for the references I will take a look!" CreationDate="2022-07-14T12:42:06.707" UserId="2451" />
  <row Id="3577" PostId="3752" Score="0" Text="This is the base currency if you have not otherwise added other assets. Have you added a pallet? Or created another instance of one outside balances?" CreationDate="2022-07-14T12:56:20.440" UserId="34" />
  <row Id="3578" PostId="3723" Score="0" Text="It can never be empty. You need at least the selector to select the correct constructor. Even if there is only one you need it AFAIK." CreationDate="2022-07-14T12:56:33.797" UserId="16" />
  <row Id="3579" PostId="3752" Score="0" Text="so say i've created a new fungible asset(BAT token) using pallet_assets, i want to be able to pay the transactions fees for this node using the created BAT token if user has the balance" CreationDate="2022-07-14T12:59:52.183" UserId="2855" />
  <row Id="3581" PostId="3752" Score="0" Text="also there is pallet_asset_tx_payment (https://github.com/paritytech/substrate/tree/polkadot-v0.9.19/frame/transaction-payment/asset-tx-payment). Should i be using this to solve this? ... If so, is there any examples that we can look at?" CreationDate="2022-07-14T13:10:47.510" UserId="2855" />
  <row Id="3582" PostId="3749" Score="0" Text="4 bytes sounds like a `Compact&lt;u32&gt;` at the start... if the len were really small it would take 1 byte. https://docs.rs/parity-scale-codec/3.1.5/src/parity_scale_codec/codec.rs.html#1044-1050" CreationDate="2022-07-14T13:13:14.847" UserId="85" />
  <row Id="3583" PostId="3758" Score="1" Text="On the polkadot-js front there's an issue raised to allow this to be specified on the front end: https://github.com/polkadot-js/apps/issues/7812" CreationDate="2022-07-14T13:59:27.927" UserId="85" />
  <row Id="3584" PostId="3728" Score="0" Text="I have the same problem when I build locally and I definitely need the runtime ;-)" CreationDate="2022-07-14T14:59:51.577" UserId="12" />
  <row Id="3585" PostId="3694" Score="0" Text="yes. I tried `sp_core::Pair`, but not work. fix it by add `use sp_std::{convert::TryFrom};` to `pub mod crypto`" CreationDate="2022-07-14T15:40:31.520" UserId="2379" />
  <row Id="3586" PostId="3742" Score="0" Text="Whats the best way to advance this discussion?  I would be happy to take a stab at the development work but think it be best to align with core developers to ensure we align in terms of design to improve changes of PR acceptance." CreationDate="2022-07-14T15:50:42.640" UserId="2451" />
  <row Id="3587" PostId="3761" Score="0" Text="I would recommend posting this in Substrate Meta: https://substrate.meta.stackexchange.com/questions" CreationDate="2022-07-14T15:53:15.817" UserId="29" />
  <row Id="3588" PostId="3698" Score="0" Text="Hello @ShawnTabrizi, I searched how to add info property in the implement function `io.extend_with(ApiServer::to_delegate(Api::new(&#xA;    client.clone(),&#xA;    pool.clone(),&#xA;    graph,&#xA;    Some(aureum_node_runtime::TransactionConverter),&#xA;    network.clone(),&#xA;    signers,&#xA;    overrides.clone(),&#xA;    backend.clone(),&#xA;    is_authority,&#xA;    block_data_cache.clone(),&#xA;)));` I cant find a way how to access `info` in my Api methods. thank you." CreationDate="2022-07-15T05:54:51.537" UserId="632" />
  <row Id="3589" PostId="3761" Score="0" Text="Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." CreationDate="2022-07-15T07:01:24.973" UserId="-1" />
  <row Id="3590" PostId="3730" Score="0" Text="Thanks for your answer @forgesto. I tried to query the contract to get errors but the `debugMessage` is empty while it should contains the message from the `require` of my solidity smart contract. Do you think this issue came from the solang compiler ?" CreationDate="2022-07-15T08:53:43.177" UserId="177" />
  <row Id="3591" PostId="3768" Score="1" Text="`cargo tree -i frame_system` will tell you why you are pulling in a crate. Ideally you should only be pulling in one version of the crate." CreationDate="2022-07-15T10:15:28.743" UserId="85" />
  <row Id="3592" PostId="3690" Score="0" Text="We would like to fix the fee of the substrate and EVM transaction, and fix the Decimals the balances pallet considers our token to have." CreationDate="2022-07-15T11:08:26.940" UserId="2809" />
  <row Id="3593" PostId="3716" Score="0" Text="Hi, can you try using the same `branch` as the others crates to pull the `pallet-nicks`. Something like this &#xA;&#xA;pallet-nicks = { version = &quot;4.0.0-dev&quot;, default-features = false, git = &quot;https://github.com/paritytech/substrate.git&quot;, branch = &quot;polkadot-v0.9.25&quot; }" CreationDate="2022-07-15T13:32:16.183" UserId="279" />
  <row Id="3597" PostId="3767" Score="1" Text="thank you so much @Jaco. You have been a really supportive member of the community. I really appreciate your efforts :)" CreationDate="2022-07-15T15:01:52.053" UserId="2089" />
  <row Id="3598" PostId="3481" Score="1" Text="same problem here. Using the following branch of the substrate node for the runtime: polkadot-v0.9.23." CreationDate="2022-07-15T16:46:36.423" UserId="309" />
  <row Id="3599" PostId="3744" Score="0" Text="The above answer doesn't mean to exclude anything - rather it seems to focus on the actual rollup versions. From my reading, specifically the x-* packages, which is confirmed by the source, needs to be includes, but it requires new node resolution in rollup." CreationDate="2022-07-15T19:03:57.933" UserId="2132" />
  <row Id="3600" PostId="406" Score="0" Text="How do these map onto CLI though?:&#xA;&#xA;        --sync &lt;SYNC_MODE&gt;&#xA;            Blockchain syncing mode.&#xA;            &#xA;            - `full`: Download and validate full blockchain history.&#xA;            - `fast`: Download blocks and the latest state only.&#xA;            - `fast-unsafe`: Same as `fast`, but skip downloading state proofs.&#xA;            - `warp`: Download the latest state and proof.&#xA;            &#xA;            [default: full]&#xA;            [possible values: full, fast, fast-unsafe, warp]" CreationDate="2022-07-15T19:04:17.880" UserId="25" />
  <row Id="3601" PostId="3742" Score="1" Text="Probably create an issue at substrate repo. Describe your idea and get feedback from Cheme and bkchr." CreationDate="2022-07-15T20:08:10.947" UserId="2790" />
  <row Id="3602" PostId="3717" Score="0" Text="If I understand you correctly, you want to know how to set a &quot;hard&quot; limit or cap on total issuance?" CreationDate="2022-07-15T20:37:35.037" UserId="29" />
  <row Id="3603" PostId="3779" Score="0" Text="Thank you Jaco for your answer! I know these functions and have been using them. The problem i am facing is that i receive objects that can be different in their fields. toHuman and toJSON work nicely, but toJSON puts all strings to hex, even though it used to depend on types specified for ApiPromise object. toHuman returns all fields correctly except numbers, it turns them to strings because these are BigInts. I need a way to parse object such that string fields are text as in toHuman but number fields are numbers as in toJSON. I can write my own parser but it seems custom types' purpose." CreationDate="2022-07-16T09:16:12.063" UserId="2485" />
  <row Id="3604" PostId="3717" Score="0" Text="yes, dou you have any ways to do it." CreationDate="2022-07-16T11:17:09.267" UserId="1942" />
  <row Id="3605" PostId="3773" Score="0" Text="Why do you want to configure a tracing subscriber in the runtime?" CreationDate="2022-07-16T11:18:01.370" UserId="73" />
  <row Id="3606" PostId="3775" Score="0" Text="Thanks for the answer. But how to call give_me in runtime pallet?" CreationDate="2022-07-16T13:09:19.770" UserId="213" />
  <row Id="3607" PostId="3784" Score="0" Text="Democracy pallet is not so simple to integrate as it depends on other pallets as well. You can start by looking how it is configured here: https://github.com/paritytech/substrate/blob/6f652840cc78629ac149bf36d23ab34345c65331/bin/node/runtime/src/lib.rs#L1597" CreationDate="2022-07-16T23:24:21.733" UserId="29" />
  <row Id="3608" PostId="3777" Score="0" Text="Please consider adding this as a separate question on SE." CreationDate="2022-07-16T23:27:20.160" UserId="29" />
  <row Id="3609" PostId="3777" Score="0" Text="Thank you for the suggestion! I posted a new question https://substrate.stackexchange.com/q/3791/275" CreationDate="2022-07-17T15:07:32.867" UserId="275" />
  <row Id="3610" PostId="3787" Score="0" Text="This is still happen when I add it cargo.toml, anything help to fix this?" CreationDate="2022-07-18T01:37:36.873" UserId="2882" />
  <row Id="3611" PostId="3776" Score="0" Text="This is still happen when I add it cargo.toml, anything help to fix this?" CreationDate="2022-07-18T01:37:48.777" UserId="2882" />
  <row Id="3612" PostId="3768" Score="0" Text="my cargo.toml only one fram-system lib" CreationDate="2022-07-18T04:08:05.377" UserId="2668" />
  <row Id="3613" PostId="3698" Score="0" Text="@ShawnTabrizi an idea? thank you" CreationDate="2022-07-18T07:49:50.830" UserId="632" />
  <row Id="3614" PostId="3770" Score="0" Text="Ok thanks ! Cheaper XCMP could be nice !" CreationDate="2022-07-18T08:13:43.107" UserId="501" />
  <row Id="3617" PostId="3787" Score="0" Text="You need to provide more details then. For example concrete, minimal steps to reproduce the issue." CreationDate="2022-07-18T08:49:22.467" UserId="28" />
  <row Id="3618" PostId="3698" Score="0" Text="No not really. It is not clear to me what you want to do. I cannot even read the code you have copied into your comment. You need to please review how to ask a proper question here on the forum." CreationDate="2022-07-18T08:50:00.647" UserId="28" />
  <row Id="3620" PostId="3788" Score="1" Text="Polkadot is currently on release 0.9.26. Have you checked that later releases do still have this issue? Otherwise, it may already be resolved." CreationDate="2022-07-18T08:52:15.877" UserId="28" />
  <row Id="3621" PostId="3799" Score="0" Text="Is there any manual describing that?" CreationDate="2022-07-18T11:18:39.877" UserId="2540" />
  <row Id="3622" PostId="3804" Score="0" Text="Please file an issue for ... Issues on the docs " CreationDate="2022-07-18T11:22:10.473" UserId="34" />
  <row Id="3623" PostId="3698" Score="0" Text="@ShawnTabrizi I just want to use this method `Ok(self.info.impl_name.clone())` in my custom rpc code" CreationDate="2022-07-18T11:53:21.367" UserId="632" />
  <row Id="3624" PostId="3546" Score="1" Text="already answered here: https://substrate.stackexchange.com/questions/3752/how-to-pay-transaction-fees-using-the-custom-token-created-by-using-pallet-asset" CreationDate="2022-07-18T13:36:52.450" UserId="494" />
  <row Id="3625" PostId="3747" Score="0" Text="Hi Oli, thanks for the reply. I've seen that I can subscribe to `EventSystemExtrinsicFailed` events. However, I don't see a way how to identify which transaction / extrinsic they belong to." CreationDate="2022-07-18T14:24:23.383" UserId="2869" />
  <row Id="3626" PostId="3785" Score="0" Text="I am following above link but after adding pallet-democracy in the runtime i get above error" CreationDate="2022-07-18T16:55:52.840" UserId="2319" />
  <row Id="3627" PostId="3730" Score="0" Text="I'm not sure. Are you doing a cross contract call and can you share contract code? [This](https://stackoverflow.com/a/67769831/1178971) is what the `index` and `error` relate to." CreationDate="2022-07-18T18:19:51.263" UserId="380" />
  <row Id="3628" PostId="3730" Score="0" Text="To get the error in a meaningful format, do something like [this](https://github.com/patractlabs/redspot/blob/b2755736f0583d8f634a71ffe1e442a03b109549/packages/redspot-patract/src/buildTx.ts#L46-L63)" CreationDate="2022-07-18T18:29:21.337" UserId="380" />
  <row Id="3629" PostId="3717" Score="2" Text="If you want a Substrate chain to set a max total supply then see how Nodle has done it in their allocations pallet here https://github.com/NodleCode/chain/blob/7e038437f5d31cdc567ff78712d3a9a7d7946437/pallets/allocations/src/lib.rs#L152 and then if you are using a parachain then either use their custom staking pallet or integrate it into Moonbeam's parachain-staking pallet https://github.com/PureStake/moonbeam/tree/master/pallets/parachain-staking that is already working in production" CreationDate="2022-07-18T22:36:37.240" UserId="83" />
  <row Id="3630" PostId="3788" Score="0" Text="Hi @ShawnTabrizi, &#xA;&#xA;No we haven't started the upgrading to 0.9.26 yet. &#xA;&#xA;I am just wondering if there is any known issue with the 0.9.22 or common issues that other parachain team experienced so we can isolate if it's from our node implementation or from the release itself. &#xA;&#xA;As you mention, I think it's a good time for us to upgrade to 0.9.26 for our node client." CreationDate="2022-07-18T22:58:04.727" UserId="70" />
  <row Id="3631" PostId="3811" Score="0" Text="have you tried adding `use sp_std::prelude::*;`  to the top of the pallet to import the vector type? see docs: https://paritytech.github.io/substrate/master/sp_std/prelude/index.html" CreationDate="2022-07-18T23:13:39.737" UserId="83" />
  <row Id="3632" PostId="3806" Score="0" Text="Makes sense, does PolkadotJS connect to boot-nodes in order to discover nodes available for RPC calls (I assume they peer with any node and do some stuff to later on submit the extrinsic) or does it connect to a different service to find these non-validator nodes? Thanks for your response!" CreationDate="2022-07-19T06:25:03.100" UserId="2102" />
  <row Id="3633" PostId="3813" Score="1" Text="I'm pretty sure that you can run a forkless upgrade with this pallet, but you won't be able to set your authorized nodes. The node-authorization pallet uses the genesis config to insert authorized nodes, so if the genesis config is missing, in case the upgrade works, you will have 0 authorized nodes, therefore breaking the chain." CreationDate="2022-07-19T06:46:51.367" UserId="2102" />
  <row Id="3634" PostId="3615" Score="0" Text="Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." CreationDate="2022-07-19T10:16:18.160" UserId="-1" />
  <row Id="3635" PostId="3708" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-07-19T10:17:21.863" UserId="-1" />
  <row Id="3636" PostId="3808" Score="0" Text="As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-07-19T10:20:34.260" UserId="2025" />
  <row Id="3638" PostId="3795" Score="0" Text="Are you using Cumulus or substrate-parachain-template? And what version of Polkadot and/or release are you using? `polkadot-v0.9.25`? Do you have a repo you can link to?" CreationDate="2022-07-19T11:49:40.277" UserId="29" />
  <row Id="3639" PostId="3818" Score="0" Text="Depending on how your pallet is configured, `T::Hash::len_bytes()` should work." CreationDate="2022-07-19T12:09:17.900" UserId="94" />
  <row Id="3641" PostId="3795" Score="0" Text="Hi @Bruno, Thanks for replying. I am using `substrate-parachain-template` and we are trying to connect with polkadot live.&#xA;&#xA;we have used &#xA;`git clone --depth 1 --branch polkadot-v0.9.24 https://github.com/substrate-developer-hub/substrate-parachain-template`&#xA;For start.&#xA;&#xA;We modified the `substrate-parachain-template` as per our need and trying to run the collator." CreationDate="2022-07-19T12:58:48.837" UserId="2890" />
  <row Id="3642" PostId="3818" Score="0" Text="Can you make it clearer? I'm very new on this @OliverTale-Yazdi" CreationDate="2022-07-19T12:59:10.113" UserId="2803" />
  <row Id="3643" PostId="3806" Score="1" Text="the endpoints are defined here: https://github.com/polkadot-js/apps/blob/3ffe266e728962b4f484754be11d5857a6a1235f/packages/apps-config/src/endpoints/productionRelayPolkadot.ts" CreationDate="2022-07-19T13:52:45.580" UserId="494" />
  <row Id="3644" PostId="2485" Score="0" Text="Is sc-light deprecated/end of life?&#xA;As it's not in the latest polkadot-vX releases of substrate" CreationDate="2022-07-19T14:25:36.403" UserId="560" />
  <row Id="3645" PostId="3784" Score="0" Text="As suggested [here](https://github.com/paritytech/subport/issues/415#issuecomment-1188093567), try running `cargo update -p syn:1.0.95`" CreationDate="2022-07-19T14:55:13.087" UserId="165" />
  <row Id="3646" PostId="3813" Score="0" Text="@andresvsm thanks for the answer. What would be the correct way to add more validators to a PoA chain after genesis? (since bootnodes are recorded in the chain-spec as well)" CreationDate="2022-07-19T14:57:33.697" UserId="244" />
  <row Id="3647" PostId="3795" Score="0" Text="If I understand you correctly, you want to run a customized collator to a parachain that is live on Polkadot? I would need to see your code and know which parachain you want to collate for in order to replicate this issue on my machine. Can you successfully run a collator using the parachain's code instead of the `substrate-node-template`?" CreationDate="2022-07-19T15:27:45.590" UserId="29" />
  <row Id="3648" PostId="3821" Score="0" Text="re question 1: consider that doing a `Mapping` with the entire struct means that you'll r/w every field whenever you want to w/r just a single field, which means wasteful storage io and expensive fees for simple contract calls." CreationDate="2022-07-19T20:40:36.670" UserId="494" />
  <row Id="3649" PostId="3818" Score="0" Text="please provide more context to your question... how is your `Hash` type configured? what are you trying to achieve?" CreationDate="2022-07-19T20:44:15.880" UserId="494" />
  <row Id="3650" PostId="3829" Score="0" Text="Opposed to polkadot.js, found out  the method name needs to be `Core_version`. Still, decoding the `RuntimeVersion` from the returned JSON string and encoding the call parameters and the blockhash still seems to be missing an example." CreationDate="2022-07-19T20:44:56.127" UserId="138" />
  <row Id="3651" PostId="3657" Score="0" Text="can you share the command your are using to run the collators ?" CreationDate="2022-07-19T15:13:54.617" UserId="2890" />
  <row Id="3652" PostId="3813" Score="0" Text="Great answers, make sure you test locally before you go live with this." CreationDate="2022-07-19T23:17:14.767" UserId="29" />
  <row Id="3653" PostId="3470" Score="0" Text="This may answer your question: https://substrate.stackexchange.com/questions/3646/from-a-parachain-how-to-get-the-current-relay-chain-block-number" CreationDate="2022-07-19T23:31:14.087" UserId="29" />
  <row Id="3654" PostId="3821" Score="0" Text="Hey, are you deriving the `SpreadAllocate` trait on your root storage struct and using `initialize_contract`? Both of these are necessary when working with `Mappings`.&#xA;&#xA;As for the `SpreadLayout` trait, you shouldn't need to implement it manually since you're working with primitive types - so if you do need to implement such traits (which I don't think you do in this case) you can simply derive them." CreationDate="2022-07-19T23:39:14.077" UserId="1824" />
  <row Id="3655" PostId="3816" Score="0" Text="Are you getting any `InvalidTransaction::ExhaustsResources`, or `InvalidTransaction::Stale` or similar in your logs?" CreationDate="2022-07-19T23:51:28.563" UserId="29" />
  <row Id="3656" PostId="3657" Score="0" Text="Something like: `./collator --collator --alice --ws-port _ --port _ --chain _ -- --execution wasm --chain _ `" CreationDate="2022-07-20T03:23:07.060" UserId="2384" />
  <row Id="3657" PostId="3813" Score="0" Text="@afm I had the same issue, I haven't tried Shawn Tabrizi's answer, but instead I used the `validator-set` pallet (https://github.com/gautamdhameja/substrate-validator-set), combined with the `im-online` and `session` pallet to remove automatically offline nodes. But to be honest, you can remove the `node-authorization` pallet and work only with the `validator-set`. Combining both allows you to control read-access (node-authorization) and write-access (validator-set)" CreationDate="2022-07-20T05:41:10.113" UserId="2102" />
  <row Id="3658" PostId="3821" Score="0" Text="@BernardoRodrigues Thanks for your answer. It is really helpful because I will write every field only on initialize an instance but after will read/write 1-3 fields. I misunderstood of that concept a little because my previous blockchain was Tezos where you create a lot of structures and add them to `Mapping` without any problem." CreationDate="2022-07-20T06:26:00.030" UserId="2878" />
  <row Id="3659" PostId="3821" Score="0" Text="@HCastano No, I am trying to derive `SpreadAllocate` for secondary storage and want to have a `Mapping` to `TokenInfo` structure in my root storage." CreationDate="2022-07-20T06:32:03.837" UserId="2878" />
  <row Id="3660" PostId="3816" Score="0" Text="Nope, I'm not getting those errors. It seems that those transactions undergo a normal process of revalidation - they are pruned from the block &amp; then reprocessed in the next block (one by one)." CreationDate="2022-07-20T07:35:50.677" UserId="1951" />
  <row Id="3661" PostId="3809" Score="0" Text="hey Alexander, do you think this question was properly answered already. I am also interested in the rationale behind this." CreationDate="2022-07-20T08:27:51.660" UserId="2025" />
  <row Id="3662" PostId="3821" Score="0" Text="Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." CreationDate="2022-07-20T09:05:06.237" UserId="-1" />
  <row Id="3663" PostId="3828" Score="0" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-07-20T09:05:39.287" UserId="-1" />
  <row Id="3664" PostId="3842" Score="0" Text="A slight inconvenience seems to be that neither `sp-api` nor `sp-version` is kept up-to-date on `crates.io`, neither `subxt` reexports it like is does with `sp-runtime` or `sp-core`. I guess the thinking was you depend on the client code of a single chain anyways, and that could reexport the correct versions of these crates?" CreationDate="2022-07-20T09:38:58.280" UserId="138" />
  <row Id="3665" PostId="3817" Score="1" Text="Awesome. Thanks @Shawn. I believe it caused the issue. Already updated our blockchain client to the latest, and it solved the problem." CreationDate="2022-07-20T10:25:59.337" UserId="70" />
  <row Id="3666" PostId="3832" Score="1" Text="We already have our own node with latest pallet unique and all new methods available. The issue is specifically regarding typescript type generation, I can only successfully generate/decorate half of it (rpc, query, tx calls, but not return interfaces themselves)" CreationDate="2022-07-20T11:03:52.580" UserId="507" />
  <row Id="3667" PostId="3758" Score="0" Text="Have you ever done this ??&#xA;It also requires to edit ```UncheckedExtrinsic``` type inside the ```command_helper.rs``` file under node. There we have to call the ```from``` function with two arguments, balance and ```Option&lt;AssetId&gt;``` which you have skipped. Please provide some examples of the ```command_helper.rs``` file as well.&#xA;Also can you tell how to encode ```SignedExtra``` on client side?" CreationDate="2022-07-20T11:40:21.433" UserId="2103" />
  <row Id="3668" PostId="3771" Score="0" Text="Try adding use sp_std::prelude::*;" CreationDate="2022-07-20T14:21:57.263" UserId="213" />
  <row Id="3670" PostId="3813" Score="0" Text="@andresvsm but in the end you managed to do it without adding the pallets at genesis first? Or you had to re-start?" CreationDate="2022-07-20T17:36:54.730" UserId="244" />
  <row Id="3671" PostId="3797" Score="0" Text="There are A LOT of checks. Question is if you actually want to run those on your PC instead of utilizing the CI." CreationDate="2022-07-21T07:48:24.607" UserId="94" />
  <row Id="3673" PostId="3832" Score="0" Text="Sorry, I am not sure I know how to solve that." CreationDate="2022-07-21T08:05:45.540" UserId="28" />
  <row Id="3674" PostId="3797" Score="0" Text="There should be a button for this in the GitHub UI: https://stackoverflow.com/a/67201761" CreationDate="2022-07-21T08:12:59.420" UserId="2673" />
  <row Id="3675" PostId="3856" Score="0" Text="DQ: But does the deployer account have enough balance?" CreationDate="2022-07-21T08:13:09.100" UserId="94" />
  <row Id="3676" PostId="3855" Score="0" Text="Could you share the code via GitHub? Then its easier to help.  &#xA;The documentation about the `generate_storage_info` is outdated, you can replace it with the beginner-friendly `without_storage_info`." CreationDate="2022-07-21T08:15:54.540" UserId="94" />
  <row Id="3677" PostId="3813" Score="0" Text="I do have a couple of accounts set in the genesis config, otherwise nodes won't be able to peer. In the tutorial you'll see that you can add new peers but they won't validate blocks, and that is because your genesis config also defines who can author/finalize blocks. Using the `validator-set` pallet, you can add validators without the genesis config. End of the day, once your chain is running with Alice and Bob as well-known nodes, you can add new well-known nodes and using the `validator-set` pallet you can allow these new well-known nodes to author/finalize blocks also" CreationDate="2022-07-21T08:20:41.817" UserId="2102" />
  <row Id="3678" PostId="3813" Score="0" Text="but if you want to add the `node-authorization` pallet on a running chain, you need to follow Shawn's answer" CreationDate="2022-07-21T08:22:08.173" UserId="2102" />
  <row Id="3679" PostId="3855" Score="0" Text="Thank you for answering, I just edit the question with link to the forked repo files.&#xA;&#xA;Ok I will try to change in this `without_storage_info`" CreationDate="2022-07-21T08:54:13.977" UserId="2663" />
  <row Id="3680" PostId="3855" Score="1" Text="You can actually just delete `generate_storage_info` and not add `without_storage_info`. This would be better." CreationDate="2022-07-21T09:55:36.707" UserId="28" />
  <row Id="3681" PostId="3830" Score="0" Text="but I tried several parachains (Shiden, Zeitgeist, Robonomics, Polkadex, Moonriver) and it did not work for them except Moonriver. with all the others I'm getting this error:&#xA;```error: Found argument 'machine' which wasn't expected, or isn't valid in this context&#xA;&#xA;USAGE:&#xA;    polkadot benchmark &lt;SUBCOMMAND&gt;```" CreationDate="2022-07-21T09:57:18.493" UserId="585" />
  <row Id="3683" PostId="3855" Score="0" Text="can you share the cargo.toml file? there is probably a mistake in there" CreationDate="2022-07-21T10:15:57.753" UserId="28" />
  <row Id="3684" PostId="3855" Score="1" Text="It is in the initial question but here the [link](https://github.com/viac92/substrate-node-template/blob/tutorialMacro/pallets/template/Cargo.toml)" CreationDate="2022-07-21T10:17:43.540" UserId="2663" />
  <row Id="3685" PostId="3862" Score="0" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-07-21T10:29:33.707" UserId="-1" />
  <row Id="3686" PostId="3818" Score="0" Text="shot in the dark: try dereferencing dna: `(*dna).len_bytes()`" CreationDate="2022-07-21T10:30:47.907" UserId="85" />
  <row Id="3687" PostId="3859" Score="1" Text="Thank you, that what I was looking for. I was on 8.12.1 and I assumed you only update interfaces when runtime is released and not from master. But if you get them from master then this is perfect." CreationDate="2022-07-21T10:32:26.610" UserId="507" />
  <row Id="3688" PostId="3805" Score="1" Text="This has been implemented https://github.com/substrate-developer-hub/substrate-docs/pull/1264" CreationDate="2022-07-21T10:33:15.780" UserId="34" />
  <row Id="3689" PostId="3804" Score="0" Text="I’m voting to close this question because its no linger an issue" CreationDate="2022-07-21T10:33:43.680" UserId="34" />
  <row Id="3690" PostId="3260" Score="0" Text="@Jaco so if I send out two transactions for the same module/call at the same time, there's no way to differentiate between them?" CreationDate="2022-07-21T14:51:12.403" UserId="2264" />
  <row Id="3691" PostId="3654" Score="0" Text="Do you assume that 'grouping in small groups' will avoid block finalisation issues?&#xA;Is it the case that updated client is backward compatible and will finalise blocks with the rest of the not updated network?" CreationDate="2022-07-21T15:23:08.553" UserId="2747" />
  <row Id="3692" PostId="2538" Score="0" Text="So if the extrinsic hash is the same for the same method/section/parameters, how can you distinguish between two events in the same block?" CreationDate="2022-07-21T15:23:35.583" UserId="2264" />
  <row Id="3693" PostId="3809" Score="0" Text="I was asking around internally at Parity but probably didn't asked the right people, yet. I have a vague idea but I don't want to speculate here. We just leave it open for now until somebody answers with confidence." CreationDate="2022-07-21T18:01:51.633" UserId="16" />
  <row Id="3695" PostId="3813" Score="0" Text="@andresvsm I don't have preference for `node-authorization` or any other specific pallet, I just need to add more validators (which are not on genesis) in a running chain and I don't have those pallets. If I can add `validator-set` with a runtime upgrade and then use it to add more validators, it's enough for me. My question should have been broader: can I add validators to a running chain without those pallets installed pre-genesis?" CreationDate="2022-07-21T18:36:13.267" UserId="244" />
  <row Id="3696" PostId="3654" Score="0" Text="Yes, I think that would be the assumption here." CreationDate="2022-07-21T20:05:36.750" UserId="165" />
  <row Id="3697" PostId="3848" Score="0" Text="Thank you. How about reserving a ParaID? I serched on that Polkadot-launch repo and found nothing about that." CreationDate="2022-07-22T04:11:56.670" UserId="1789" />
  <row Id="3698" PostId="3848" Score="1" Text="reserving paraId should be done in relay chain side and not parachain. Procedure should be similar only you have to figure out which call to make from which section and which origin. Perhaps  ask a new question, someone else might have actual answer?" CreationDate="2022-07-22T04:41:38.083" UserId="2384" />
  <row Id="3699" PostId="3848" Score="0" Text="Hi Sudip, could you please have a look https://substrate.stackexchange.com/questions/3869/how-to-use-command-line-to-reserve-paraid-locally" CreationDate="2022-07-22T05:00:55.823" UserId="1789" />
  <row Id="3700" PostId="3813" Score="0" Text="I'm pretty sure it's possible, but I've run everything from the start. the `validator-set` does remove Aura/Grandpa allowed accounts to set them with its own implementation, so you might have to do some changes on the validator-set pallet configuration. But yeah, I think validator-set pallet is what you need in order to add new validators on a PoA chain." CreationDate="2022-07-22T05:52:10.700" UserId="2102" />
  <row Id="3701" PostId="3880" Score="0" Text="Would you mind sharing the code? Then I can try it as well.  &#xA;The values are expected to fluctuate, but not that much," CreationDate="2022-07-22T14:08:15.703" UserId="94" />
  <row Id="3702" PostId="3880" Score="0" Text="PS: The benchmarks need to always run on the same hardware. Its best to use the reference hardware https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-kusama#hardware" CreationDate="2022-07-22T16:23:55.750" UserId="94" />
  <row Id="3703" PostId="3850" Score="1" Text="I dont think there is a good solution. Will ask internally and then answer here, thanks." CreationDate="2022-07-22T17:03:19.397" UserId="94" />
  <row Id="3704" PostId="3879" Score="0" Text="I meant this sentence of Shawn: &#xA;`However, this account will be able to perform another operation like reserve taking its free balance below 100 units.`" CreationDate="2022-07-22T19:43:46.260" UserId="2484" />
  <row Id="3705" PostId="3884" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-07-22T20:13:06.960" UserId="-1" />
  <row Id="3707" PostId="2030" Score="0" Text="are spec_version numbers for runtime upgrades sequential? &#xA;&#xA;For example, Acala's genesis spec_version was 2000, the latest one is 2083. Who decides the spec_version number? A human? Or is it runtime logic that says the next spec_version number after a runtime upgrade is equal to the previous runtime spec_version number + 1? &#xA;&#xA;Context: trying to calculate number of runtime upgrades for a substrate chain. Trying to see whether I can take the difference between latest block spec_version and genesis block spec_version? Or if I need to query spec_version at each block of the chain" CreationDate="2022-07-22T23:32:23.943" UserId="246" />
  <row Id="3708" PostId="3891" Score="0" Text="Maybe your shell interpolates the `--extrinsic &quot;*&quot;` to something else. Try leaving it empty by `'--extrinsic='`, or try a specific extrinsic for testing.  &#xA;If that does not help, please share the code so I can try it as well." CreationDate="2022-07-23T09:56:57.527" UserId="94" />
  <row Id="3709" PostId="3891" Score="0" Text="It only does it with a particular pallet (nft pallet). the code is here: https://github.com/Fair-Squares/fair-squares/blob/96-pallet-onboarding/pallets/nft/src/benchmarking.rs" CreationDate="2022-07-23T10:11:27.637" UserId="309" />
  <row Id="3710" PostId="3894" Score="1" Text="Thank you!! It totally makes sense!! and thank you for the additional advices!!!" CreationDate="2022-07-23T11:52:12.367" UserId="309" />
  <row Id="3711" PostId="2185" Score="0" Text="hey @FarazAhmad, were you able to change the runtime params as I said in my reply? Please consider accepting it as the correct answer if it worked for you." CreationDate="2022-07-23T16:51:41.980" UserId="244" />
  <row Id="3712" PostId="2030" Score="0" Text="spec version is a human decision. To calculate the number of runtime upgrades, you need to look at the chain history, and query for events or the spec version change." CreationDate="2022-07-23T17:37:47.053" UserId="28" />
  <row Id="3713" PostId="3895" Score="0" Text="I've tried using `cargo update -p tracing-core --precise 0.1.26` but I'm getting this error:&#xA;&#xA;`error: failed to select a version for the requirement \`tracing-core = &quot;^0.1.27&quot;\`&#xA;candidate versions found which didn't match: 0.1.26`&#xA;Any idea why or how to fix it?" CreationDate="2022-07-23T23:39:03.337" UserId="2916" />
  <row Id="3714" PostId="3895" Score="0" Text="Also, I'm not exactly sure what &quot;pinning&quot; a crate to a version is or how to do it." CreationDate="2022-07-23T23:40:40.523" UserId="2916" />
  <row Id="3715" PostId="3895" Score="0" Text="Point your substrate dependencies to a commit after these ones: https://github.com/paritytech/substrate/pull/11854/files and it should work for you. By the way, &quot;pinning&quot; means forcing cargo to use a specific version of a crate." CreationDate="2022-07-24T01:20:28.977" UserId="244" />
  <row Id="3716" PostId="3895" Score="0" Text="And I'd do that by changing the Cargo.toml in `/release`, is that right? I can't seem to find a &quot;tracing-core&quot; dependency there." CreationDate="2022-07-24T05:14:29.067" UserId="2916" />
  <row Id="3717" PostId="3899" Score="0" Text="Why does Nicks pallet not have RPC methods but the Contracts one does have RPC methods?" CreationDate="2022-07-24T13:12:07.497" UserId="2916" />
  <row Id="3718" PostId="3907" Score="0" Text="Could be, it should assert when we run `cargo test` but not break the runtime" CreationDate="2022-07-25T00:15:48.683" UserId="116" />
  <row Id="3720" PostId="3895" Score="1" Text="You have to change the Cargo.toml of all dependencies. Change all them, the substrate ones." CreationDate="2022-07-25T05:35:49.193" UserId="244" />
  <row Id="3722" PostId="3922" Score="0" Text="Btw: I used the template hendlebars as explained in this issue: https://github.com/paritytech/substrate/pull/7390" CreationDate="2022-07-25T13:14:42.850" UserId="501" />
  <row Id="3723" PostId="3922" Score="0" Text="Sounds good so far. You added `--template=.maintain/frame-weight-template.hbs` to the benchmark command?  &#xA;If you could share the code, that would be very helpful, thanks." CreationDate="2022-07-25T13:21:44.850" UserId="94" />
  <row Id="3724" PostId="3922" Score="0" Text="Yes exactly, I've used the master branch file : https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs" CreationDate="2022-07-25T13:22:43.770" UserId="501" />
  <row Id="3725" PostId="3922" Score="1" Text="@OliverTale-Yazdi I've just created a git repo with the code: https://github.com/lucgerrits/pallet-error-for-stackexchange , the pallet is sim_renault" CreationDate="2022-07-25T13:28:53.023" UserId="501" />
  <row Id="3726" PostId="3913" Score="0" Text="Looks like result is undefined, maybe check if result is not empty ?" CreationDate="2022-07-25T13:45:09.833" UserId="501" />
  <row Id="3728" PostId="3923" Score="0" Text="use super::*; did the trick ! Thanks !" CreationDate="2022-07-25T13:52:24.703" UserId="501" />
  <row Id="3729" PostId="3923" Score="1" Text="Indeed WeightInfo trait was missing, but I did the benchmark again with use super::*;, now its all good :)" CreationDate="2022-07-25T13:54:00.603" UserId="501" />
  <row Id="3730" PostId="3659" Score="1" Text="@TheDuck here is the video: https://youtu.be/yykPQF0tkqk" CreationDate="2022-07-25T16:31:11.727" UserId="1824" />
  <row Id="3731" PostId="2380" Score="0" Text="Try using wsl2 instead of wsl" CreationDate="2022-07-25T16:46:46.153" UserId="29" />
  <row Id="3733" PostId="3913" Score="0" Text="I've posted what my result looks like in the original question." CreationDate="2022-07-25T22:08:19.477" UserId="2916" />
  <row Id="3734" PostId="3792" Score="0" Text="I see. Thank you for sharing!" CreationDate="2022-07-26T01:44:29.007" UserId="275" />
  <row Id="3735" PostId="3937" Score="1" Text="What node are you running? Where did you get the runtime config from?  &#xA;Maybe the name is too long or too short." CreationDate="2022-07-26T08:21:36.010" UserId="94" />
  <row Id="3736" PostId="3880" Score="0" Text="@OliverTale-Yazdi, &#xA; Here is code for benchmarking:&#xA;https://github.com/asmita-mf/substrate-test/blob/main/pallets/usd-rate/src/benchmarking.rs" CreationDate="2022-07-26T08:42:43.613" UserId="2033" />
  <row Id="3737" PostId="3936" Score="0" Text="because the code will be less readable and the programmers will forget." CreationDate="2022-07-26T08:57:36.947" UserId="116" />
  <row Id="3738" PostId="3935" Score="0" Text="So what specifically is your question? What is the difference here if any? Or when to use one over the other?or...?" CreationDate="2022-07-26T10:53:43.867" UserId="34" />
  <row Id="3739" PostId="3934" Score="0" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-07-26T10:55:49.510" UserId="-1" />
  <row Id="3740" PostId="3936" Score="0" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-07-26T10:56:02.977" UserId="-1" />
  <row Id="3741" PostId="3942" Score="3" Text="Is the local node still running?  &#xA;It mentions `./target/release/node-template --dev` futher up." CreationDate="2022-07-26T12:35:17.350" UserId="94" />
  <row Id="3742" PostId="3918" Score="0" Text="update: calling forceNewEraAlways() also works since this will make 1 era = 1 epoch. what i don't understand is why elections will fail if there are multiple epochs for each era." CreationDate="2022-07-26T14:03:17.577" UserId="1808" />
  <row Id="3744" PostId="3937" Score="2" Text="You have to look up the index and error in your runtime to see what it is. To understand how to interpret errors, take a look here: https://wiki.polkadot.network/docs/maintain-errors" CreationDate="2022-07-26T17:22:47.500" UserId="29" />
  <row Id="3745" PostId="3942" Score="0" Text="That was it.  Thank you!!!" CreationDate="2022-07-26T18:37:56.130" UserId="2936" />
  <row Id="3746" PostId="3122" Score="0" Text="As you found out here https://substrate.stackexchange.com/a/3153/1824 it is possible to use `Vec&lt;AccountId` in your storage struct, provided it is an `ink_prelude::vec::Vec`" CreationDate="2022-07-26T19:42:20.453" UserId="1824" />
  <row Id="3749" PostId="3684" Score="0" Text="Just theoretically, if we assume the GC proposal is ready, what would be the process of migrating to it? How are these changes going to work with the Polkadot spec and the existing implementations of it?" CreationDate="2022-07-27T07:17:03.083" UserId="2862" />
  <row Id="3750" PostId="3952" Score="0" Text="Thanks, did not see it!" CreationDate="2022-07-27T08:05:04.997" UserId="94" />
  <row Id="3751" PostId="3959" Score="0" Text="Thank you very much! : )&#xA;Later will try your test, look in the sources and fire up an ink issue on GitHub." CreationDate="2022-07-27T12:14:54.560" UserId="2937" />
  <row Id="3752" PostId="3631" Score="0" Text="One more question how I can get block author?" CreationDate="2022-07-27T13:08:13.760" UserId="2845" />
  <row Id="3753" PostId="3684" Score="0" Text="@user2862 it is not yet clear if Polkadot will be able to leverage the GC proposal. Potential problems include determinism (is there anything in GC that causes ND? Can it be tamed efficiently?) and safety (Is it possible for a host to limit the resource consumption reliably and deterministically?). Assuming that it all works out, then there is no migration needed. It is just enabling feature, not every runtime would want to use it (Rust-based ones likely won't). So it's just: implement, test, and deploy." CreationDate="2022-07-27T13:25:06.213" UserId="45" />
  <row Id="3754" PostId="3954" Score="0" Text="You may want to link your repo here to expedite debugging." CreationDate="2022-07-27T13:48:05.883" UserId="29" />
  <row Id="3755" PostId="3954" Score="0" Text="Aura is PoA, not PoS, are you sure this is what you want instead of BABE?" CreationDate="2022-07-27T13:57:10.433" UserId="494" />
  <row Id="3757" PostId="3954" Score="0" Text="Yes, i chose Aura over Babe so didnt have to move the node to Babe as well." CreationDate="2022-07-27T15:18:50.317" UserId="2809" />
  <row Id="3759" PostId="3244" Score="0" Text="Also, you are saying that you connect to the Moonriver network but the RPC endpoint you are using is `kusama-rpc.polkadot.io`. This Kusama and **not** Moonriver. Parachains have their own endpoint. You do not connect through their relay chain." CreationDate="2022-07-27T22:08:28.383" UserId="16" />
  <row Id="3760" PostId="3954" Score="0" Text="@BernardoRodrigues&#xA;I've seen that Aura can be used for NPoS, and that triggering a sesison to end and election to start is pallet_session's job. I have configured all those together, im not sure where the issue is." CreationDate="2022-07-28T06:30:08.073" UserId="2809" />
  <row Id="3761" PostId="3436" Score="0" Text="Hi @Andre, Thank you for pointing this out. This has helped." CreationDate="2022-07-28T07:33:03.213" UserId="2586" />
  <row Id="3762" PostId="3940" Score="0" Text="Thank you for you confirmation @OliverTale-Yazdi&#xA;I'll re-analyze the benchmarking before going for release on a vm." CreationDate="2022-07-28T07:58:07.360" UserId="2033" />
  <row Id="3763" PostId="3890" Score="0" Text="I can go to Polkadot.js &gt; Developer &gt; Sudo &gt; SudoUncheckedWeight(call, weight) ... then there are so many different options for function names. What should I do?" CreationDate="2022-07-28T09:01:56.733" UserId="1789" />
  <row Id="3764" PostId="3631" Score="0" Text="@LeuBarycheuski If you have import the pallet_authorship, this pallet provide a function called &quot;author()&quot;." CreationDate="2022-07-28T12:28:05.677" UserId="393" />
  <row Id="3765" PostId="3911" Score="0" Text="yeah we, started using the local instance of the substrate-contract-node." CreationDate="2022-07-28T12:32:10.953" UserId="1837" />
  <row Id="3766" PostId="3980" Score="0" Text="can you try with a non-root account? Bob or charlie. You can also check doc here&#xA;https://docs.rs/pallet-scheduler/3.0.0/src/pallet_scheduler/lib.rs.html#31-34" CreationDate="2022-07-28T14:20:54.387" UserId="1837" />
  <row Id="3768" PostId="3980" Score="0" Text="What does your config look like? What do you have set as the `ScheduleOrigin`: https://docs.rs/pallet-scheduler/latest/pallet_scheduler/trait.Config.html#associatedtype.ScheduleOrigin" CreationDate="2022-07-28T14:52:29.200" UserId="29" />
  <row Id="3769" PostId="3975" Score="0" Text="That was it. Thank you!" CreationDate="2022-07-28T17:29:23.490" UserId="566" />
  <row Id="3770" PostId="3986" Score="1" Text="When you say: &quot;..less troublesome than reading block data directly on the node side&quot;, by less troublesome do you mean that it's more costly in terms of latency to gossip this data to nodes rather than write it to storage?" CreationDate="2022-07-28T20:44:18.143" UserId="172" />
  <row Id="3771" PostId="3971" Score="0" Text="This is a great article, thank you tor sharing. It doesn’t state explicitly the implementation details for why storage is used in the way it is with the ‘paraInherent’ pallet though." CreationDate="2022-07-28T21:38:08.197" UserId="172" />
  <row Id="3772" PostId="3989" Score="0" Text="How did you add it?&#xA;Please add more details." CreationDate="2022-07-29T04:14:06.050" UserId="251" />
  <row Id="3773" PostId="3981" Score="0" Text="Thats what i thought but when i changed and built it, there was no change at all in inflation." CreationDate="2022-07-29T04:53:47.647" UserId="354" />
  <row Id="3774" PostId="3981" Score="0" Text="Did you clean the DB or make a runtime upgrade? What chain are you using? Or you should re `build-sepc`." CreationDate="2022-07-29T07:04:03.833" UserId="251" />
  <row Id="3775" PostId="3981" Score="1" Text="Just build a new substrate chain and run it in development mode with inflation changes but it is not reflecting." CreationDate="2022-07-29T07:39:13.110" UserId="354" />
  <row Id="3776" PostId="3981" Score="0" Text="May I have your code?" CreationDate="2022-07-29T08:05:26.293" UserId="251" />
  <row Id="3777" PostId="3989" Score="0" Text="Pallet multisig in developers/extrinsic on polkadosjs client appears now but the button is still unavailable. I do the same as in the substrate document, adding pallet nicks." CreationDate="2022-07-29T08:42:33.263" UserId="2307" />
  <row Id="3778" PostId="3981" Score="0" Text="It is a substrate clone just changed the value of min_inflation and max_inflation" CreationDate="2022-07-29T09:07:29.570" UserId="354" />
  <row Id="3779" PostId="3985" Score="2" Text="Just to point out, a big subxt refactor will land soon hopefully (https://github.com/paritytech/subxt/pull/593). This will separate the building of tx's from submitting them, so it should make it possible to lean on subxt to build, store and later submit things as you wish!" CreationDate="2022-07-29T10:36:15.370" UserId="474" />
  <row Id="3781" PostId="3989" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-07-29T12:21:58.403" UserId="-1" />
  <row Id="3782" PostId="3093" Score="0" Text="After adding `std = [... &quot;my-pallet/std&quot;, ...]` in Cargo.toml it worked for me as well" CreationDate="2022-07-29T16:15:56.823" UserId="529" />
  <row Id="3783" PostId="3985" Score="0" Text="that will be awesome." CreationDate="2022-07-29T17:23:18.490" UserId="1837" />
  <row Id="3784" PostId="4002" Score="0" Text="Thank you for pointing out the options. Goal is not to change the uniques pallet but to come-up with how to best complement the uniques pallet. If I get your last sentence right for a pure pallet implementation your proposing that the NFT created should be collatoral and the assets-pallet should hand out the shares. How would you go about he owner/issuer accountId ? Would that be a virtual account in the runtime that is entitled to do these operations ? Is that even possible ?" CreationDate="2022-07-29T19:57:41.917" UserId="235" />
  <row Id="3786" PostId="4003" Score="0" Text="Appreciate it.&#xA;&#xA;I am asking more specifically what the logic of this particular scheme is, lots of parachains use it." CreationDate="2022-07-30T07:17:42.497" UserId="362" />
  <row Id="3787" PostId="4006" Score="0" Text="Can you try adding `.into()`?" CreationDate="2022-07-30T11:14:33.633" UserId="28" />
  <row Id="3790" PostId="4009" Score="0" Text="Yeah I got your point. Then if it is (), TotalIssuance would be decreased, and if it is configured to Treasury, TotalIssuance would be increased? Another question is how Treasury pallet handle its slashed balance, since I can only see the default feature of on_unbalanced of OnUnbalanced trait, which is just drop. Does it automatically go to pot()?&#xA;&#xA;Thank you." CreationDate="2022-07-30T16:36:05.213" UserId="2140" />
  <row Id="3791" PostId="4009" Score="0" Text="Total issuance wouldn't be &quot;increased&quot;; it would stay the same. Yes, treasury has code to put the tokens into the treasury account: https://github.com/paritytech/substrate/blob/master/frame/treasury/src/lib.rs#L590" CreationDate="2022-07-30T17:43:57.503" UserId="28" />
  <row Id="3792" PostId="3567" Score="1" Text="Updated docs for troubleshooting here: https://docs.substrate.io/main-docs/install/troubleshooting/#installing-cmake-or-protobuf-for-m1-macos-users" CreationDate="2022-07-31T01:59:21.460" UserId="172" />
  <row Id="3793" PostId="4009" Score="0" Text="Ah, yes. Now I understand how Substrate handle its NegativeImbalance in terms of Slashing. One more last question is, in case of burn() in Balance Pallet, TotalIssuance is decreased with amount of burn and it returns PositiveImbalance. When it is dropped, TotalIssuance is increased, where does PositiveImbalance go? Does it go to Treasury Pallet?" CreationDate="2022-07-31T04:22:10.777" UserId="2140" />
  <row Id="3794" PostId="3949" Score="0" Text="Thanks so much, you are a godsent." CreationDate="2022-07-31T04:36:27.460" UserId="2565" />
  <row Id="3797" PostId="4009" Score="0" Text="The behavior of `PositiveImbalance` and `NegativeImbalance`, when dropped, is to adjust the total issuance. So if you don't do anything with the imbalance, everything is automatically adjusted." CreationDate="2022-07-31T23:42:53.710" UserId="28" />
  <row Id="3799" PostId="4023" Score="0" Text="Thank you!&#xA;&#xA;I went with Aura as I was unable to change my node to Babe in frontier. Can you share any example or a repository which I can follow to accomplish Having NPoS and EVM compatibility? One that may be closer to polkadot-v0.9.22 release?" CreationDate="2022-08-01T05:10:42.217" UserId="2809" />
  <row Id="3801" PostId="4022" Score="1" Text="Thank you ! For the specific implementation, I have it working with: ```type AccountStore = StorageMapShim&lt;pallet_balances::pallet::Account&lt;Test, DerivativeToken&gt;, frame_system::Provider&lt;Test&gt;, Self::AccountId, pallet_balances::AccountData&lt;BalanceImpl&gt;&gt;; ```" CreationDate="2022-08-01T10:25:42.650" UserId="2956" />
  <row Id="3802" PostId="4030" Score="0" Text="Thanks, I tried to pin this version in the runtime but that didn't compile. When I pin it in the node it works." CreationDate="2022-08-01T13:13:12.737" UserId="379" />
  <row Id="3803" PostId="4004" Score="0" Text="AFAIK, `code` here means the contract code from your `.wasm` file." CreationDate="2022-08-01T13:22:49.130" UserId="1951" />
  <row Id="3804" PostId="4030" Score="0" Text="Yeah, the node is the one that is responsible for printing. So, pinning it there is the correct way :)" CreationDate="2022-08-01T13:24:32.933" UserId="73" />
  <row Id="3805" PostId="4038" Score="0" Text="thanks much clearer" CreationDate="2022-08-01T16:26:05.270" UserId="2960" />
  <row Id="3806" PostId="3405" Score="0" Text="Is this still an issue? Were you able to resolve it? If so, please share your answer." CreationDate="2022-08-01T17:35:29.340" UserId="29" />
  <row Id="3808" PostId="4005" Score="0" Text="This may be helpful: https://github.com/paritytech/EIP-712 and https://github.com/SamWilsn/eip712#rust" CreationDate="2022-08-01T19:32:16.210" UserId="29" />
  <row Id="3809" PostId="3949" Score="0" Text="@hgminerva do you mind marking this as answered :D?" CreationDate="2022-08-01T22:42:45.623" UserId="1824" />
  <row Id="3810" PostId="4046" Score="0" Text="OK - so in other words, like any other extrinsic in a finalized block would do, it just gets put in the `Vec&lt;Extrinsic&gt;` in [`Block`](https://paritytech.github.io/substrate/master/sp_runtime/generic/struct.Block.html). But how would I extract the `Vec&lt;u8&gt;` that pertains to the users input just from the opaque extrinsic?" CreationDate="2022-08-02T00:00:23.303" UserId="172" />
  <row Id="3811" PostId="3949" Score="0" Text="sorry I forgot, Done!" CreationDate="2022-08-02T00:48:17.577" UserId="2565" />
  <row Id="3812" PostId="4049" Score="3" Text="Thank you so much! Your client saves my days!!!" CreationDate="2022-08-02T04:16:24.503" UserId="2307" />
  <row Id="3813" PostId="546" Score="0" Text="I am rewriting my code with `BoundedVec` in structs that are used for storage. While I got an error complaining the trait `Clone` is not implemented for the constant that represents the max length of my `BoundedVec`. It's a runtime config constant of `Get&lt;u32&gt;`, and we may consider expanding the S in `BoundedVec&lt;T, S&gt;` to make it more flexible in this situation." CreationDate="2022-08-02T07:33:21.273" UserId="2962" />
  <row Id="3815" PostId="4046" Score="1" Text="The extrinsic is not &quot;opaque&quot; if you know the format. The data is just right in the extrinsic: https://kusama.subscan.io/extrinsic/13828271-5&#xA;&#xA;Also nothing to do with finalization. Any block, even unfinalized ones or forks, will have extrinsics." CreationDate="2022-08-02T09:02:17.657" UserId="28" />
  <row Id="3816" PostId="2657" Score="0" Text="Thanks for your help. My solution was based on your answer" CreationDate="2022-08-02T12:27:21.040" UserId="1760" />
  <row Id="3822" PostId="4054" Score="0" Text="You can also build a testnet pretty quickly using https://github.com/paritytech/zombienet" CreationDate="2022-08-02T18:53:11.710" UserId="29" />
  <row Id="3823" PostId="4067" Score="1" Text="The following should help: https://docs.porta.network/developer-guide/smart-contracts/install-wasm-opt-version-101 and https://github.com/paritytech/cargo-contract/issues/272 and https://stackoverflow.com/questions/72905893/error-your-wasm-opt-version-is-91-but-we-require-a-version-99" CreationDate="2022-08-02T19:12:12.507" UserId="29" />
  <row Id="3824" PostId="4049" Score="0" Text="Great! If you don't mind, would you please mark your question as answered so people can easily find what worked?  Thanks :)" CreationDate="2022-08-02T20:09:56.987" UserId="2060" />
  <row Id="3825" PostId="4072" Score="0" Text="Are you running this in tty terminal or are you piping the output?" CreationDate="2022-08-03T07:17:38.453" UserId="2384" />
  <row Id="3826" PostId="4072" Score="0" Text="@SudipGhimire yes, I tried in IntelliJ IDEA 's terminal and Xshell terminate" CreationDate="2022-08-03T08:06:54.680" UserId="2973" />
  <row Id="3827" PostId="4074" Score="0" Text="What's your try-runtime args?" CreationDate="2022-08-03T08:07:58.763" UserId="251" />
  <row Id="3828" PostId="4072" Score="0" Text="Maybe you can once try to run it in dedicated terminal app like gnome-terminal or something. It looks like some unexpected behaviour to io" CreationDate="2022-08-03T08:15:30.383" UserId="2384" />
  <row Id="3829" PostId="4058" Score="0" Text="How do I clean the DB?" CreationDate="2022-08-03T08:18:28.350" UserId="2916" />
  <row Id="3830" PostId="4074" Score="0" Text="`RUST_LOG=runtime=trace,try-runtime::cli=trace,executor=trace ./try-runtime try-runtime --chain /tmp/chainspec.json follow-chain --uri ws://localhost:9944`, where `./try-runtime` is my compiled binary" CreationDate="2022-08-03T11:24:17.153" UserId="2736" />
  <row Id="3832" PostId="4069" Score="2" Text="Does your signature verify on [PolkadotJS](https://polkadot.js.org/apps/#/signing/verify)? The signature creation in the [Docs](https://polkadot.js.org/docs/keyring/start/sign-verify/#using-known-pairs) looks like its using the data and not the hash. Anyway, please consider sharing the code which makes it much easier to help." CreationDate="2022-08-03T20:35:55.117" UserId="94" />
  <row Id="3833" PostId="4058" Score="1" Text="Just remove the data dir. If you specify the `--base-dir` or `-d` then there it is. If not, on Linux it will be `~/.local/share/&lt;chain name&gt;`, on Mac it will be `~/Library/Application Support/&lt;chain name&gt;`." CreationDate="2022-08-04T00:52:26.893" UserId="251" />
  <row Id="3837" PostId="4085" Score="0" Text="Sounds like you're using an older version of substrate? It's in master and I would think it's in the june / july 2022 monthly tags." CreationDate="2022-08-04T05:46:00.093" UserId="85" />
  <row Id="3838" PostId="4058" Score="0" Text="or run with `--dev` which will implicitly use `--tmp` flag to use a fresh db each time." CreationDate="2022-08-04T05:55:02.303" UserId="85" />
  <row Id="3839" PostId="4058" Score="0" Text="IMHO `--dev` is not a good choice, as he is on relaychain env. `--dev` will build a brand new genesis state. Which may cause some syncing issues. But if `--chain` could override the `--dev`'s default chain, that's fine." CreationDate="2022-08-04T05:58:52.357" UserId="251" />
  <row Id="3840" PostId="4063" Score="0" Text="The tutorial has been updated: https://docs.substrate.io/tutorials/work-with-pallets/use-macros-in-a-custom-pallet/" CreationDate="2022-08-04T08:54:57.630" UserId="28" />
  <row Id="3841" PostId="3288" Score="0" Text="As the chain state goes larger and larger, it gets hard to export/fetch the chain state. Are there any other tools aside from fork-off-substrate and try-runtime for performing a runtime migration? runtime" CreationDate="2022-08-03T18:29:46.310" UserId="2979" />
  <row Id="3842" PostId="4091" Score="0" Text="What if I use `move_prefix` (move a large pallet to a new prefix)?&#xA;Is that an O(1) operation?" CreationDate="2022-08-04T09:06:30.373" UserId="251" />
  <row Id="3843" PostId="4087" Score="0" Text="Not quite correct - as explained in my comment `.entries()` (with optional params if map is more that 2 keys) would return all entries. What is correct in this comment is the underlying implementation that `.keys()` and `.entries()` use, aka via the paged interfaces." CreationDate="2022-08-04T09:07:38.090" UserId="627" />
  <row Id="3844" PostId="4091" Score="1" Text="No. None of these operations would be `O(1)`. You need to remove or move all items in the database under this prefix, which will be `O(n * log(n))`. It is VERY expensive." CreationDate="2022-08-04T09:08:57.593" UserId="28" />
  <row Id="3845" PostId="4097" Score="0" Text="`Balance=BalanceOf&lt;T&gt;` to `Balance=BalanceOf&lt;Self&gt;`" CreationDate="2022-08-04T10:40:39.803" UserId="251" />
  <row Id="3846" PostId="4086" Score="0" Text="You can check it manually with the [PolkadotJS website](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.parallel.fi#/chainstate). Or do you really need to figure this out dynamically?" CreationDate="2022-08-04T10:45:30.053" UserId="94" />
  <row Id="3847" PostId="3863" Score="1" Text="Thank you, I just started from the beginning and now it works.&#xA;Also the new versione of the tutorial is a lot better." CreationDate="2022-08-04T11:16:14.140" UserId="2663" />
  <row Id="3848" PostId="4070" Score="0" Text="Hi @stken99, welcome to the community! You may get a better response limiting your post to one question. If you have multiple questions, consider creating multiple posts." CreationDate="2022-08-04T11:21:19.893" UserId="29" />
  <row Id="3849" PostId="4072" Score="0" Text="I recommend you make sure you covered all steps here: https://docs.substrate.io/main-docs/install/linux" CreationDate="2022-08-04T11:38:04.677" UserId="29" />
  <row Id="3851" PostId="4080" Score="0" Text="Hey Oliver, thanks for your answer, and no need to apologize! So we don't use Babe we use Aura instead, not sure if this changes anything . But from my understanding, it should be possible to write a benchmark in a separate crate and implement it in our runtime for Grandpa, or? The only tricky part seems to be setting up the state of the chain in the benchmark. Are there any other options right now? In reference to your question about the session pallet: We don't use the frame staking pallet (we have our own) but the benchmark in the session pallet has a peer dependency to pallet_staking." CreationDate="2022-08-04T11:42:41.923" UserId="479" />
  <row Id="3853" PostId="4095" Score="0" Text="Can you provide more detail on what the failure mode is and what debug logs are? https://docs.substrate.io/main-docs/test/debug/" CreationDate="2022-08-04T13:49:05.013" UserId="34" />
  <row Id="3854" PostId="4095" Score="0" Text="Im not sure how you mean. Are there particular details i should share? Im new to substrate still" CreationDate="2022-08-04T13:50:15.807" UserId="2809" />
  <row Id="3855" PostId="4095" Score="0" Text="Updated comment. Please provide verbose logs to diagnose what he failure mode is" CreationDate="2022-08-04T13:51:31.203" UserId="34" />
  <row Id="3856" PostId="4095" Score="0" Text="I'm not writing any logic at the moment, so not sure where to place the log statements. I'm just trying to add the pallet_evm to my runtime but it just breaks the election." CreationDate="2022-08-04T13:53:58.250" UserId="2809" />
  <row Id="3857" PostId="4095" Score="0" Text="Are you using `pallet-ethereum` preset in [frontier](https://github.com/paritytech/frontier/tree/master/frame) ? That pallet seems to require primitives and depend other pallets that I don't know if you might have not included. Worth the check." CreationDate="2022-08-04T14:06:05.033" UserId="165" />
  <row Id="3858" PostId="4095" Score="0" Text="No only adding pallet-evm from frontier for now and integrating it in the runtime" CreationDate="2022-08-04T14:07:20.697" UserId="2809" />
  <row Id="3859" PostId="4095" Score="0" Text="I have updated the question with link to the repo/branch being used @DanShields" CreationDate="2022-08-04T14:35:36.050" UserId="2809" />
  <row Id="3860" PostId="4103" Score="0" Text="```the trait bound `T: scale_info::TypeInfo` is not satisfied``` I am getting this after adding the above TypeInfo" CreationDate="2022-08-04T18:39:44.643" UserId="2952" />
  <row Id="3861" PostId="4102" Score="0" Text="Did you import https://github.com/paritytech/scale-info in your cargo? And have a use statement for it? And derive it for the struct that is complaining it needs it? Here is the canonical example pallet to reference https://github.com/paritytech/substrate/blob/master/frame/examples/basic/src/lib.rs#L282" CreationDate="2022-08-04T19:23:10.460" UserId="34" />
  <row Id="3862" PostId="4086" Score="0" Text="Can i check the required parameters there? I would like the code to be dynamic to pull the query on its own, but i do not need to check the parameters dynamically." CreationDate="2022-08-04T20:59:58.760" UserId="2980" />
  <row Id="3864" PostId="4108" Score="0" Text="so does this mean I can generate one or not?" CreationDate="2022-08-05T03:55:10.613" UserId="2959" />
  <row Id="3865" PostId="546" Score="0" Text="Solved my issue with `frame_support::traits::ConstU32`. Reference: https://github.com/paritytech/substrate/blob/bc310fdd1040af8a3d2901b5d6f4cf8d5250aeb7/frame/alliance/src/types.rs#L32" CreationDate="2022-08-05T08:56:13.890" UserId="2962" />
  <row Id="3866" PostId="4086" Score="0" Text="Did you check the link? You can select `Amm::pools` there and see the signature of `(u32, u32) -&gt; Option&lt;PalletTraitsPool&gt;`." CreationDate="2022-08-05T10:07:54.820" UserId="94" />
  <row Id="3870" PostId="4122" Score="0" Text="More specifically I am listening to events fired by a chain bridge. I would like to notify the users of the block hash when their assets are arrived at the polkadot side of bridge." CreationDate="2022-08-05T10:16:51.733" UserId="2986" />
  <row Id="3871" PostId="4119" Score="0" Text="Would you mind sharing the source code? That make it much easier to help, thanks." CreationDate="2022-08-05T10:20:18.323" UserId="94" />
  <row Id="3873" PostId="4123" Score="0" Text="Thanks! The thing with the deterministic concurrent execution was another point I was thinking might be problematic to implement, so thanks for the confirmation." CreationDate="2022-08-05T10:22:32.247" UserId="2862" />
  <row Id="3874" PostId="4115" Score="0" Text="Thank you. I was also patching dependencies and use other project's Cargo.lock... After removing target folder and Cargo.lock for file regeneration, it works" CreationDate="2022-08-05T10:26:28.693" UserId="1789" />
  <row Id="3876" PostId="4119" Score="0" Text="sure, here: https://github.com/Polkadex-Substrate/Polkadex/tree/iv-ocex-benchmarks" CreationDate="2022-08-05T10:37:05.557" UserId="157" />
  <row Id="3877" PostId="1948" Score="0" Text="Really looking forward to that! very cool" CreationDate="2022-08-05T11:23:55.520" UserId="362" />
  <row Id="3878" PostId="4128" Score="0" Text="Yes, after removing the patched dependency URL and use the real ones instead, it is working now. Thank you!" CreationDate="2022-08-05T13:47:21.010" UserId="1789" />
  <row Id="3880" PostId="4108" Score="0" Text="I am not really sure what you mean by generate one or not? what do you want to generate?" CreationDate="2022-08-05T15:09:31.383" UserId="258" />
  <row Id="3881" PostId="4072" Score="0" Text="thank you all, I have resolved this by compiling and installing GCC, LLVM from source." CreationDate="2022-08-06T01:38:59.257" UserId="2973" />
  <row Id="3882" PostId="4096" Score="0" Text="Is there a debug/log level that should be enabled for the above log to show up?" CreationDate="2022-08-06T06:53:59.463" UserId="318" />
  <row Id="3884" PostId="4027" Score="0" Text="Can this be in smart contract code. I mean It is obvious that UI supports that, but where is the code to generate that like solidity?" CreationDate="2022-08-05T03:54:38.767" UserId="2959" />
  <row Id="3886" PostId="4140" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-08-06T07:54:23.167" UserId="-1" />
  <row Id="3887" PostId="4096" Score="1" Text="No. You can go to the [Release page](https://github.com/paritytech/polkadot/releases) and download a binary to try it out. Does it not work? Then please open an issue in [Substrate](https://github.com/paritytech/substrate). Please note that Substrate only *officially* supports Linux, so I never tested in on Windows. The docker image prints it as well." CreationDate="2022-08-06T09:35:21.133" UserId="94" />
  <row Id="3888" PostId="2785" Score="0" Text="Is `Percent::from_percent(10) * value;` safe? I would expect `checked_mul` or `saturating_mul` in a production environment." CreationDate="2022-08-06T09:43:32.613" UserId="2484" />
  <row Id="3889" PostId="4150" Score="0" Text="what are the ips of the other peers. you seem like having an ip issue on one of your interfaces" CreationDate="2022-08-06T14:50:42.153" UserId="2471" />
  <row Id="3890" PostId="4150" Score="0" Text="I don't have any other peers" CreationDate="2022-08-06T15:04:12.627" UserId="2981" />
  <row Id="3891" PostId="4150" Score="0" Text="What's your boot command?" CreationDate="2022-08-06T15:57:52.953" UserId="251" />
  <row Id="3893" PostId="4149" Score="0" Text="And this https://substrate.stackexchange.com/questions/4105/the-substrate-node-template-of-version-0-9-26-does-not-display-node-identity-inf" CreationDate="2022-08-06T16:01:24.240" UserId="251" />
  <row Id="3894" PostId="4147" Score="0" Text="Check out Substate Contract Node. It only produces blocks on incoming txs." CreationDate="2022-08-06T16:24:24.950" UserId="2408" />
  <row Id="3895" PostId="4150" Score="0" Text="Just ./node-template. I forgot about --dev flag, thanks for the tip!" CreationDate="2022-08-07T09:37:28.853" UserId="2981" />
  <row Id="3896" PostId="4096" Score="0" Text="I’m testing it on Nodle parachain binary which is based on substrate branch: polkadot 0.9.26 and same cumulus branch version. I also ran “benchmark machine”. It took a while to execute meaning it was doing something but returned no logs." CreationDate="2022-08-07T10:35:10.947" UserId="318" />
  <row Id="3897" PostId="4096" Score="1" Text="Then that is an issue of the Nodle node, not Substrate in general. Could be that the command is not properly exposed or that something with the log level is wrong. You can probably open an issue in the Nodle repo and mention me (@ggwpez). Should look like [this](https://github.com/paritytech/polkadot/blob/670d33c516044d4c25edeb00971b4501409256b6/cli/src/command.rs#L601)." CreationDate="2022-08-07T13:24:32.890" UserId="94" />
  <row Id="3898" PostId="3818" Score="0" Text="You dont even need an instance of the type. The length of the hash output is fixed in the type, as written above `T::Hash::len_bytes()` returns it." CreationDate="2022-08-07T13:26:50.830" UserId="94" />
  <row Id="3899" PostId="4150" Score="0" Text="I’m voting to close this question because  its misleading, the solution is a simple mistake" CreationDate="2022-08-07T13:55:46.770" UserId="34" />
  <row Id="3902" PostId="4061" Score="0" Text="No thank you. I need smart contract code example." CreationDate="2022-08-08T05:28:56.297" UserId="2959" />
  <row Id="3903" PostId="4146" Score="0" Text="Thank you. This explains everything. Looking forward to see in openbrush example." CreationDate="2022-08-08T05:31:45.123" UserId="2959" />
  <row Id="3904" PostId="4108" Score="0" Text="No thank you. there is already a guy who answered." CreationDate="2022-08-08T05:36:01.077" UserId="2959" />
  <row Id="3905" PostId="1709" Score="1" Text="after some changes,&#xA;`env.ext().caller()` is the original caller of the contract.&#xA;`env.ext().address()` is the contract address which calls chain extension.&#xA;&#xA;https://github.com/paritytech/substrate/issues/11987" CreationDate="2022-08-08T08:39:56.503" UserId="275" />
  <row Id="3906" PostId="4128" Score="0" Text="Remember the &quot;default-features = false&quot; https://substrate.stackexchange.com/questions/4133/cannot-find-macro-vec-in-this-scope/4164#4164" CreationDate="2022-08-08T09:13:34.980" UserId="1789" />
  <row Id="3907" PostId="4164" Score="2" Text="Node is client side. Runtime is runtime side." CreationDate="2022-08-08T09:57:16.337" UserId="251" />
  <row Id="3908" PostId="4119" Score="0" Text="Something seems to messed up with the WASM, this also errors `polkadex-node --dev`. No idea what this means but maybe updating to a newer version will fix it." CreationDate="2022-08-08T10:34:58.523" UserId="94" />
  <row Id="3909" PostId="4034" Score="0" Text="Thank you for answer! &#xA;&#xA;But set `api` is what I don't know. How do you set `api` for this? &#xA;&#xA;```let api = OnlineClient::&lt;PolkadotConfig&gt;::new().await?;```&#xA;&#xA;This doesn't have api.tx().contracts(). &#xA;&#xA;Thank you!" CreationDate="2022-08-08T13:23:52.010" UserId="2883" />
  <row Id="3911" PostId="4153" Score="0" Text="Is there one for extrinsics?" CreationDate="2022-08-08T13:53:22.083" UserId="2320" />
  <row Id="3912" PostId="4153" Score="1" Text="Updated in the answer." CreationDate="2022-08-08T14:12:16.673" UserId="251" />
  <row Id="3913" PostId="4170" Score="0" Text="This asnwer is on point.&#xA;&#xA;Every time I have seen this happening is because some message has been pushed to the `dmq_head` and later on time the state of the parachain has been reset.&#xA;&#xA;Resulting in the mismatch between the state kept on the relay side and what is expected.&#xA;&#xA;One could hack around this and get rid of the error by setting the &quot;right&quot; value on the `dmq_head` storage item on the relay side." CreationDate="2022-08-08T14:53:05.913" UserId="165" />
  <row Id="3915" PostId="4119" Score="0" Text="upgrading to `polkadot-v0.9.27` didn't change much. got different error if running with `sudo` thought..." CreationDate="2022-08-08T15:31:24.933" UserId="157" />
  <row Id="3916" PostId="4119" Score="0" Text="upgraded code in this branch: https://github.com/Polkadex-Substrate/Polkadex/tree/iv-ocex-benchmarks-27" CreationDate="2022-08-08T15:37:30.867" UserId="157" />
  <row Id="3917" PostId="4127" Score="1" Text="Thank you for reply.&#xA;&#xA;There is a big distinction between saying they have existed and that it's wise to put them in runtime storage despite the state not being used in validation.&#xA;&#xA;Transactions also exist `at`  specific blocks, that does not mean they should be in storage each block. Same apples to cross-chain inclusion proofs, they work fine for transactions without this. &#xA;&#xA;The problem is the state root has been overloaded in this use case (see Ethreum receipts trie commitment in headers), and a price is being paid." CreationDate="2022-08-08T16:41:17.947" UserId="362" />
  <row Id="3918" PostId="4132" Score="1" Text="This was a very useful reply, thank you.&#xA;&#xA;Is there any reason there just wasn't some logging commitment added to headers, separate from state root, similar to Ethereum receipts trie commitment, that solves the same problem while sidestepping all of this." CreationDate="2022-08-08T16:41:29.710" UserId="362" />
  <row Id="3919" PostId="4166" Score="0" Text="I successfully loaded the contract. Thank you for your answer.&#xA;However, when trying to interact with the smart contract I always encounter this error.&#xA;&quot;Uncaught TypeError: contract.query.balanceOf is not a function&quot;.&#xA;Do you have an idea what could be the reason for this?" CreationDate="2022-08-08T16:58:53.717" UserId="2752" />
  <row Id="3920" PostId="4147" Score="0" Text="Take a look here: https://stackoverflow.com/a/61559807" CreationDate="2022-08-08T22:14:43.447" UserId="29" />
  <row Id="3921" PostId="4181" Score="1" Text="What Substrate version are you using?" CreationDate="2022-08-09T02:28:09.733" UserId="251" />
  <row Id="3922" PostId="4176" Score="0" Text="In docs for Relay Chain Locally, we are having a rococo_local_relay_chain_spec.json,&#xA;when we are having a parathread upgraded to parachain, &#xA;what is process of step by step i would like to know&#xA;eg:-  how to start a relay chain for my parachain?(how to configure .json file)" CreationDate="2022-08-09T04:02:38.277" UserId="2985" />
  <row Id="3923" PostId="3972" Score="0" Text="good question bro" CreationDate="2022-08-09T07:21:30.433" UserId="406" />
  <row Id="3924" PostId="4166" Score="0" Text="If your smart contract does not have that function implemented, then it will throw that error. You can execute `queries` over your items defined under the macro`#[ink(storage)]`, but I'm not sure at all." CreationDate="2022-08-09T07:58:44.663" UserId="2102" />
  <row Id="3925" PostId="4193" Score="0" Text="Thx! ink metadata format has no spec, so it's so hard to align the impl details." CreationDate="2022-08-09T08:37:40.087" UserId="2999" />
  <row Id="3926" PostId="4193" Score="3" Text="Also took a peek after seeing this comment... in this case the path is not strictly needed but rather used to detect special types. With this in mind, adjusted things a bit so that the JS API does handle these without failing in https://github.com/polkadot-js/api/pull/5143" CreationDate="2022-08-09T09:31:59.923" UserId="627" />
  <row Id="3927" PostId="4195" Score="0" Text="Adding `DynamicFee: pallet_dynamic_fee,` solves it. Thank you :)" CreationDate="2022-08-09T09:55:38.297" UserId="1789" />
  <row Id="3928" PostId="4132" Score="0" Text="I guess the current solution was picked because it was really simple and fit into the initial vision of the light-client friendliness. That vision was changed over time though, and I think it would be pertinent to revisit this. It's also not 2017 anymore; we have way more experience, and the new tech was also discovered, and that would allow us to come up with a better solution." CreationDate="2022-08-09T10:12:44.857" UserId="45" />
  <row Id="3929" PostId="4132" Score="0" Text="Lastly, the note about the receipts trie. The hypothetical transient trie Substrate feature I described above would allow replicating the same approach as the receipts trie." CreationDate="2022-08-09T10:13:57.653" UserId="45" />
  <row Id="3931" PostId="4166" Score="1" Text="That was partially correct. I am implementing a PSP34 contract and it looks like you cannot query the methods implemented in the original PSP34 contract, but only the ones you defined yourself using #[ink(message)]" CreationDate="2022-08-09T12:14:36.890" UserId="2752" />
  <row Id="3932" PostId="4034" Score="0" Text="Yes, you're right, I missed the updated versions. You should instead use `polkadot::tx().contracts().call(data)`." CreationDate="2022-08-09T14:03:35.863" UserId="1951" />
  <row Id="3934" PostId="4202" Score="0" Text="Thanks! Does polkadotjs api support us to convert between int and decimal like ethereum?" CreationDate="2022-08-09T15:12:50.070" UserId="2307" />
  <row Id="3935" PostId="4176" Score="0" Text="The commands are the same as in the tutorial, just make sure you use the Rococo chain spec: https://github.com/paritytech/polkadot/blob/master/node/service/chain-specs/rococo.json and modify your parachain's chain spec for production. You can look at other parachain team's chain spec for examples." CreationDate="2022-08-09T15:52:54.727" UserId="29" />
  <row Id="3936" PostId="4034" Score="0" Text="Sorry for the repeated question. But I'm still stuck in there. When I use an updated subxt, [&quot;no method named contracts found for struct polkadot::TransactionApi in the current scope&quot;] Below is my code.&#xA;&#xA;`let call_tx = polkadot::tx().contracts().call(AccountId32::from_string(contract).into(), 0, 20_000_000_000, None, call_data, );`&#xA;where `pub mod polkadot{} is from artifacts/polakdot_metadata.scale`" CreationDate="2022-08-09T16:12:59.480" UserId="2883" />
  <row Id="3937" PostId="4147" Score="0" Text="thanks @bruno this link is helpfull" CreationDate="2022-08-09T16:31:31.373" UserId="2471" />
  <row Id="3940" PostId="4209" Score="0" Text="What is the problem then?" CreationDate="2022-08-10T02:23:30.653" UserId="2384" />
  <row Id="3941" PostId="4209" Score="0" Text="I got false from &quot;sig.verify(&amp;data[..], &amp;from.into_account());&quot; So the verification is failed. But I can verify the signature by polkadot.js UI." CreationDate="2022-08-10T02:37:39.500" UserId="3009" />
  <row Id="3942" PostId="4212" Score="0" Text="I've tried your solution but it return &quot;RangeError: date value is not finite in DateTimeFormat format()&quot;. I've tried some solutions on Stackoverflow but nothing change" CreationDate="2022-08-10T04:39:34.980" UserId="2307" />
  <row Id="3944" PostId="4212" Score="0" Text="`const timestamp = 1607110465663`&#xA;&#xA;`const date = new Date(timestamp);`&#xA;&#xA;Maybe your timestamp should be `u64` not `string`&#xA;And replace `&lt;your query timestamp&gt;` by `date`" CreationDate="2022-08-10T06:03:55.330" UserId="445" />
  <row Id="3945" PostId="4212" Score="0" Text="You can try this: `&lt;your query timestamp&gt;` is `number` not `string`. It's working" CreationDate="2022-08-10T06:24:30.170" UserId="445" />
  <row Id="3947" PostId="4185" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-08-10T07:21:04.083" UserId="-1" />
  <row Id="3948" PostId="4181" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-08-10T07:21:25.673" UserId="-1" />
  <row Id="3949" PostId="4190" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-08-10T07:23:18.350" UserId="-1" />
  <row Id="3950" PostId="4215" Score="2" Text="Are M2 chips different in compatibility to M1? I think not, since they are both ARM based, so it should work just fine. I use an M1 macbook to do daily development." CreationDate="2022-08-10T08:29:33.417" UserId="28" />
  <row Id="3951" PostId="4207" Score="0" Text="Can you please add some code as context to your question? There is no storage item related to `RawOrigin::Root`, so currently it does not make sense to me what you are asking." CreationDate="2022-08-10T08:30:49.287" UserId="28" />
  <row Id="3952" PostId="4202" Score="0" Text="Yep, there's a function for that within the `@polkadot/util` package called `formatBalance`. This post might be helpful https://stackoverflow.com/questions/64210673/how-do-you-format-balances-with-the-polkadot-js-api" CreationDate="2022-08-10T08:40:50.127" UserId="2102" />
  <row Id="3953" PostId="4221" Score="0" Text="Could you provide the tutorial link?" CreationDate="2022-08-10T09:09:25.180" UserId="251" />
  <row Id="3954" PostId="4221" Score="0" Text="updated the message with the link, for convenience case I'm pasting it here https://docs.substrate.io/tutorials/get-started/trusted-network/#create-a-custom-chain-specification" CreationDate="2022-08-10T09:25:00.750" UserId="473" />
  <row Id="3955" PostId="4218" Score="1" Text="See https://substrate.stackexchange.com/questions/3765/contract-storage-needs-nested-orderbooks-best-practice-way-to-structure-dapp/3993#3993." CreationDate="2022-08-10T10:09:43.693" UserId="1951" />
  <row Id="3958" PostId="4132" Score="0" Text="Thank you for the clarification." CreationDate="2022-08-10T11:22:39.563" UserId="362" />
  <row Id="3959" PostId="4223" Score="0" Text="Thank you @Iker but I would like to do that in rust inside my custom RPC :-)" CreationDate="2022-08-10T12:28:35.607" UserId="632" />
  <row Id="3960" PostId="4226" Score="1" Text="Ah!! it seemed to have worked after some time. My guess is that a runtime upgrade takes time to propagate through the parachain validation function, and therefore there was some lag, which takes a bit longer than a testnet." CreationDate="2022-08-10T14:14:37.233" UserId="298" />
  <row Id="3962" PostId="4214" Score="0" Text="with yarn update, working.... but now i have another errore :(" CreationDate="2022-08-10T14:41:44.687" UserId="644" />
  <row Id="3963" PostId="4214" Score="0" Text="./node_modules/@polkadot/api-derive/type/HeaderExtended.js Module not found: Can't resolve '.........../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js' in '.....\node_modules\@polkadot\api-derive\type'" CreationDate="2022-08-10T14:41:48.113" UserId="644" />
  <row Id="3964" PostId="4034" Score="0" Text="Are you running a `substrate-contracts-node`? Make sure you run it and not `node-template`." CreationDate="2022-08-10T15:34:50.220" UserId="1951" />
  <row Id="3965" PostId="4207" Score="0" Text="I've rephrased the description - the whole concept of whitelisting is unclear to me." CreationDate="2022-08-10T16:16:52.390" UserId="1803" />
  <row Id="3966" PostId="4230" Score="2" Text="It is explained here in this [blog post](https://polkadot.network/blog/gov2-polkadots-next-generation-of-decentralised-governance/), it is currently not yet deployed but is coming up [on Kusama](https://github.com/paritytech/polkadot/pull/5205)." CreationDate="2022-08-10T18:03:05.710" UserId="94" />
  <row Id="3967" PostId="4034" Score="1" Text="Yes, I'm running that. Hmm. I think I need to look into it more. Anyway, your answer helped me so much! Thank you:)" CreationDate="2022-08-11T01:30:57.117" UserId="2883" />
  <row Id="3968" PostId="3405" Score="0" Text="@bruno yes it is still an issue. I have tried reinstalling substrate from scratch on a new WSL distro for both polkadot 0.9.22 and 0.9.24 and the issue still exists. I have also tried manually updating **tikv-jemalloc-sys**  on 0.9.22 but other dependencies required the version that causes build errors." CreationDate="2022-08-11T04:42:59.097" UserId="2065" />
  <row Id="3969" PostId="4222" Score="0" Text="Could you explain a little bit what your RPC call would do? or what is the expected input/output" CreationDate="2022-08-11T09:06:46.243" UserId="2102" />
  <row Id="3970" PostId="4222" Score="0" Text="Yes, sur in a custom rpc method, I am getting the extrinsics of a block, and I need to decode those extrinsics, but to do that I need to use Metadata. :-)" CreationDate="2022-08-11T11:11:33.293" UserId="632" />
  <row Id="3971" PostId="4238" Score="0" Text="How did you do the upgrade? Are you testing on a live chain? Please provide more detail." CreationDate="2022-08-11T11:21:25.393" UserId="251" />
  <row Id="3972" PostId="4238" Score="0" Text="@AurevoirXavier I am testing on the local chain : https://gist.github.com/ascjones/0d81a4c44e84cacd9f714cd34a6de823 -&gt; sounds good on our side ! maybe we need to update something else ?" CreationDate="2022-08-11T11:54:59.290" UserId="632" />
  <row Id="3973" PostId="4238" Score="0" Text="Do you do the runtime upgrade for your local chain? If you are using the dev chain. I think it should work. What's your Substrate version? IIUC, If you don't make types derive from `TypeInfo` then the pallet can not be compiled. If you could compile then it should work." CreationDate="2022-08-11T11:56:53.497" UserId="251" />
  <row Id="3974" PostId="4238" Score="0" Text="This is how polkadot do the upgrade. https://github.com/paritytech/polkadot/pull/3336/files" CreationDate="2022-08-11T12:00:49.040" UserId="251" />
  <row Id="3975" PostId="4238" Score="0" Text="yes, thank you, just our version  of scale-info is  `scale-info = { version = &quot;2.0.1&quot;, default-features = false, features = [&quot;derive&quot;] }`" CreationDate="2022-08-11T12:07:56.877" UserId="632" />
  <row Id="3976" PostId="4234" Score="1" Text="What are you trying to archive? Why do you think another root origin will help?" CreationDate="2022-08-11T12:09:24.873" UserId="94" />
  <row Id="3977" PostId="2887" Score="0" Text="How are slots swapped via XCM? https://twitter.com/Polkadot/status/1546508812122734593" CreationDate="2022-08-11T12:15:56.907" UserId="32" />
  <row Id="3978" PostId="4238" Score="0" Text="@AurevoirXavier do you know how to get current metadata inside a customer rpc call ? (ok for V14 that's good !)" CreationDate="2022-08-11T12:35:44.227" UserId="632" />
  <row Id="3979" PostId="4235" Score="0" Text="Why did you replace the `T::BountyDepositPayoutDelay::get() + 1u32.into()` with `T::BountyDepositPayoutDelay::get()`? IIUC it should throw a `Premature` error like you are getting." CreationDate="2022-08-11T12:50:18.100" UserId="94" />
  <row Id="3980" PostId="4235" Score="0" Text="I didn't modify anything. Just use the paritytech/substrate as my dep directly. Why I got different result?" CreationDate="2022-08-11T13:21:04.397" UserId="251" />
  <row Id="3981" PostId="4238" Score="0" Text="curl -H &quot;Content-Type:application/json&quot; -d '{&quot;id&quot;:1,&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;method&quot;:&quot;state_metadata&quot;}' http://127.0.0.1:9933" CreationDate="2022-08-11T13:22:11.293" UserId="251" />
  <row Id="3982" PostId="4238" Score="0" Text="@AurevoirXavier yes with curl, but inside the substrate code?" CreationDate="2022-08-11T13:27:55.620" UserId="632" />
  <row Id="3983" PostId="4235" Score="0" Text="Maybe it was a bug-fix in between, but you can see that [this](https://github.com/paritytech/substrate/blob/6cd7ac7bd1e9da914adb7c8066d759f0a2d3849f/frame/bounties/src/benchmarking.rs#L159) line is now missing the +1 [here](https://github.com/darwinia-network/substrate/blob/bde1feac9c491f3ffc3c74f8a3f7de97ef8acd3e/frame/bounties/src/benchmarking.rs#L165)." CreationDate="2022-08-11T13:30:00.377" UserId="94" />
  <row Id="3984" PostId="4238" Score="0" Text="Maybe you could check your `Cargo.locks`. If the `frame-metadata` version is 14.0 or 15.0." CreationDate="2022-08-11T13:35:42.227" UserId="251" />
  <row Id="3985" PostId="4214" Score="0" Text="The above comment points to your specific babel config, i.e. babel-preset-react-app applies the helpers. Ensure that, when passing &quot;loose&quot;, you pass it everywhere. So above you pass it to private methods, it is most probably required for class properties as well." CreationDate="2022-08-11T13:38:42.383" UserId="2881" />
  <row Id="3986" PostId="4238" Score="0" Text="Also this one https://github.com/paritytech/polkadot/pull/3336/files#diff-e5e76e02c0d16e79c70b024cbe3c6ea56f3249382a0f987ba203c34fcb40ed66R1284" CreationDate="2022-08-11T13:38:48.323" UserId="251" />
  <row Id="3987" PostId="4235" Score="0" Text="I add one now but still got this error. But the question is why it doesn't reset the DB. Even +100 to it, LOL." CreationDate="2022-08-11T13:43:47.360" UserId="251" />
  <row Id="3988" PostId="4238" Score="0" Text="yes version is ok now I have v14 but now I need to  get metadata inside my rpc call to be able to use that : https://github.com/paritytech/parity-signer/blob/02a7b00789698c3ab3ed65b83bc1a77f18b88071/rust/parser/src/lib.rs#L28 and decode extrinsics :-)" CreationDate="2022-08-11T14:27:09.537" UserId="632" />
  <row Id="3989" PostId="576" Score="0" Text="Is the same true for mutating the StorageItem? I.e. `set`, or `insert`?" CreationDate="2022-08-11T16:02:15.203" UserId="181" />
  <row Id="3990" PostId="4235" Score="0" Text="Huh, there is actually an issue with resetting the State in case the Extrinsic errors. I am currently fixing it but for that to work you would have to update your Substrate." CreationDate="2022-08-11T16:30:33.107" UserId="94" />
  <row Id="3991" PostId="4235" Score="0" Text="My code base is at the same commit as polkadot-0.9.13. But it looks like everything works well on polkadot." CreationDate="2022-08-11T16:48:44.177" UserId="251" />
  <row Id="3992" PostId="4245" Score="1" Text="Commenting here as I'm not an expert...Blake2 is cryptographic and Twox is not. I'd say that's a matter of security x speed." CreationDate="2022-08-11T17:21:49.767" UserId="14" />
  <row Id="3993" PostId="4243" Score="1" Text="Uh, interesting... I will have to look into this in-depth to see what's possible. DQ but could you add another inherent that executes before and inserts this pre-digest? Not ideal though. Do you have the code available?" CreationDate="2022-08-11T18:16:17.007" UserId="94" />
  <row Id="3994" PostId="4243" Score="1" Text="That could be a viable workaround. Currently I hacked up a version of nimbus to get around the panic, but that's obviously less than ideal.&#xA;&#xA;Code can be found in this PR (without my cargo overrides, etc.): https://github.com/PureStake/moonbeam/pull/1490" CreationDate="2022-08-11T18:26:14.410" UserId="2441" />
  <row Id="3995" PostId="4229" Score="0" Text="what is the type `ReceiptV0`? and why it is only once mentioned in the whole repository? Please correct me, but it looks super weird, can you share the link on a declaration of this type?" CreationDate="2022-08-11T19:41:04.443" UserId="3011" />
  <row Id="3996" PostId="4246" Score="1" Text="What's  your custom runtime? If there is code that would be much easier to debug." CreationDate="2022-08-12T01:55:41.470" UserId="251" />
  <row Id="3998" PostId="4222" Score="0" Text="I see, it's interesting, but I would keep decoding processes outside of the custom RPC calls. It will affect the node performance under heavy loads of requests, as it will have to decode each time an RPC call is made. As Iker mentioned, you can perform this decoding process off chain, but that's just a suggestion. I look forward to see if anyone can help here!" CreationDate="2022-08-12T06:41:32.683" UserId="2102" />
  <row Id="3999" PostId="576" Score="0" Text="The docs explicitly mention &quot;adding&quot;. So, yes insert is also problematic. However, setting should be fine." CreationDate="2022-08-12T09:43:03.443" UserId="73" />
  <row Id="4000" PostId="4119" Score="0" Text="@OliverTale-Yazdi I've trimmed all our pallets, and most (non-essential) FRAME pallets - same error. do you have any other ways to troubleshoot? need to get to the root of this..." CreationDate="2022-08-12T09:58:39.257" UserId="157" />
  <row Id="4001" PostId="4233" Score="0" Text="ya this seems to be the only way to get the errors for now only downside being contract will always return ok" CreationDate="2022-08-12T10:04:06.723" UserId="1947" />
  <row Id="4003" PostId="4249" Score="0" Text="Could you please share the code or some snippets of it? Maybe the benchmarking code that does not work? There is a sig-verify example [here](https://github.com/paritytech/substrate/blob/6b8553511112afd5ae7e8e6877dc2f467850f155/frame/benchmarking/src/baseline.rs#L95)." CreationDate="2022-08-12T11:11:23.100" UserId="94" />
  <row Id="4004" PostId="4257" Score="1" Text="Ok, I see it now. So `GyBph4GJZsiMNJv53mACcujkWcm8NvWF7o2s2pf6PU1efh1` is a member of `46`... and so on.&#xA;&#xA;We just need to iterate the entries and filter for the pool ID.&#xA;&#xA;Thanks!" CreationDate="2022-08-12T12:35:51.023" UserId="2344" />
  <row Id="4005" PostId="4247" Score="1" Text="First do a dry-run to get the result and if Ok(()) send as tx.&#xA;Check this answer:&#xA;https://substrate.stackexchange.com/a/4233/567" CreationDate="2022-08-12T12:40:12.413" UserId="567" />
  <row Id="4006" PostId="4254" Score="1" Text="Can you point to an example? I am not sure what you are talking about. Do you mean v3 vs v4? Thanks!" CreationDate="2022-08-12T14:08:38.613" UserId="29" />
  <row Id="4007" PostId="4253" Score="0" Text="In addition to that, I had to install `wasm32-unknown-unknown`: `rustup target add wasm32-unknown-unknown`. After that it worked, thanks!" CreationDate="2022-08-12T14:47:36.053" UserId="1870" />
  <row Id="4008" PostId="4247" Score="0" Text="Yes, that works." CreationDate="2022-08-12T15:11:49.587" UserId="2752" />
  <row Id="4009" PostId="3749" Score="0" Text="Please post the complete error from the node console." CreationDate="2022-08-12T16:30:32.483" UserId="16" />
  <row Id="4010" PostId="4080" Score="0" Text="Yea the setup is what makes it difficult, since the pallets are very interlinked.  &#xA;I don't see any obvious workaround, this is how the `default_weights.rs` came about, which also exist longer than they should...  &#xA;I guess *someone* would have to just fix it once and for all." CreationDate="2022-08-12T16:57:26.823" UserId="94" />
  <row Id="4011" PostId="4246" Score="0" Text="Wish I could share it... this isn't public code yet." CreationDate="2022-08-12T17:26:27.070" UserId="3005" />
  <row Id="4012" PostId="4175" Score="1" Text="It turns out that I had a dependency spelt incorrectly. I had looked through the entire tree searching for the problem and couldn't find it. If anyone is coming across a similar problem make sure that the dependancies are correctly implemented." CreationDate="2022-08-12T20:34:22.937" UserId="2698" />
  <row Id="4014" PostId="4263" Score="1" Text="This sounds like a reasonble idea, and should be doable in a backwards compatible way. Open an issue on Substrate, and if you are up for it, perhaps you can also implement it!" CreationDate="2022-08-14T18:45:22.327" UserId="28" />
  <row Id="4015" PostId="4271" Score="0" Text="What error did you encounter?" CreationDate="2022-08-15T01:55:53.113" UserId="251" />
  <row Id="4017" PostId="4254" Score="1" Text="Yes basically :)" CreationDate="2022-08-15T08:25:41.170" UserId="362" />
  <row Id="4018" PostId="4260" Score="0" Text="Appreciate the answer ;)" CreationDate="2022-08-15T08:26:09.113" UserId="362" />
  <row Id="4019" PostId="4258" Score="0" Text="Thank you.&#xA;&#xA;Are you saying that in Substrate, `on_finalize` can even exceed the block weight limit?" CreationDate="2022-08-15T08:29:32.090" UserId="362" />
  <row Id="4020" PostId="4258" Score="0" Text="@BedehoMender yes `on_initialize` and `on_finalize` can exceed the block weight and the block will still be valid." CreationDate="2022-08-15T10:06:18.617" UserId="45" />
  <row Id="4021" PostId="4271" Score="0" Text="@AurevoirXavier this one https://github.com/paritytech/frontier/issues/737#issuecomment-1214426976" CreationDate="2022-08-15T10:54:04.153" UserId="2471" />
  <row Id="4022" PostId="4176" Score="0" Text="Iam having a confusion on after getting a parachain approved by polkadot team&#xA;What should i exactly need to do &quot;to start produce blocks, add pallets to my parachain&quot;&#xA;How should i should set up the chain spec file on relaychain template?&#xA;Should we need to generate new trusted nodes for my parachain?&#xA;How should i able to see that blocks are generating on polkadot apps UI website?&#xA;Pls help me with relevant steps &#xA;Thank You." CreationDate="2022-08-15T11:10:14.247" UserId="2985" />
  <row Id="4023" PostId="3779" Score="0" Text="toPrimitive() may yield what you are after?" CreationDate="2022-08-15T14:16:12.480" UserId="2129" />
  <row Id="4024" PostId="4282" Score="0" Text="The problem about batch_all is that i cannot batch 16000 calls in one shot, that's why i use batch.&#xA;Why would a simple call like this fail ? Does batchInterrupted event contains the errors ?" CreationDate="2022-08-15T14:39:30.480" UserId="2355" />
  <row Id="4025" PostId="4282" Score="1" Text="Yes `BatchInterrupted { index: u32, error: DispatchError }` contains the index at which call it failed and the error. There are many reasons why this can fail, I cannot tell you without code." CreationDate="2022-08-15T14:58:01.460" UserId="94" />
  <row Id="4026" PostId="4271" Score="0" Text="I believe this is still relevant: https://substrate.stackexchange.com/a/3760/29" CreationDate="2022-08-15T15:01:36.793" UserId="29" />
  <row Id="4027" PostId="4272" Score="0" Text="I tried to follow your advice, but still get the 'not a function' error. I also tried to implement the method in 'impl PSP34 for Contract' but same problem. Neither in camelCase nor in label format." CreationDate="2022-08-15T19:29:55.350" UserId="2752" />
  <row Id="4028" PostId="4284" Score="0" Text="Have you considered [Zombienet](https://github.com/paritytech/zombienet)?" CreationDate="2022-08-15T19:48:30.287" UserId="29" />
  <row Id="4029" PostId="4286" Score="0" Text="I tried that before. But the problem is, that it takes some time to fetch the events, and the rest of my program does not wait for the contract call to finish. I would need to wait for the contract.tx to run through..." CreationDate="2022-08-15T20:30:50.003" UserId="2752" />
  <row Id="4030" PostId="4041" Score="0" Text="Great one, will check it out" CreationDate="2022-08-15T20:37:38.343" UserId="560" />
  <row Id="4031" PostId="1320" Score="0" Text="FYI that existing rustdoc link I updated to https://paritytech.github.io/substrate/master/sc_rpc_api/offchain/index.html - there is a different API exposed than before, please do check there for the new stuff, and update your question as needed?" CreationDate="2022-08-15T22:53:43.567" UserId="34" />
  <row Id="4032" PostId="1320" Score="0" Text="Also all `https://core.tetcoin.org/` links are unmaintained by a 3rd party that should not be referenced." CreationDate="2022-08-15T22:54:18.257" UserId="34" />
  <row Id="4033" PostId="4286" Score="0" Text="Updated my answer. Maybe @Jaco can shed some light on this." CreationDate="2022-08-16T03:54:35.160" UserId="29" />
  <row Id="4034" PostId="4118" Score="0" Text="Is it the same when you use a docker?" CreationDate="2022-08-16T04:13:30.497" UserId="352" />
  <row Id="4035" PostId="4234" Score="0" Text="Well I was exploring stuffs and I came to realise that it can be used to have authorization checks inside priviledged functions and custom access logic." CreationDate="2022-08-16T08:39:09.860" UserId="552" />
  <row Id="4036" PostId="4237" Score="0" Text="Thanks a lot this might help with that" CreationDate="2022-08-16T08:40:14.997" UserId="552" />
  <row Id="4037" PostId="4118" Score="0" Text="This only has to do with the version of yamux being used, not with how the nodes are being deployed. So, it will pop up independently of the way nodes are being deployed while the yamux version being used is the one not patched." CreationDate="2022-08-16T09:56:46.900" UserId="165" />
  <row Id="4038" PostId="4288" Score="0" Text="Thanks! And in case of plain values, is there also a lookup defined somewhere?" CreationDate="2022-08-16T10:53:59.127" UserId="2759" />
  <row Id="4039" PostId="4282" Score="0" Text="I added the code to the question, i'll write something to fetch all the events" CreationDate="2022-08-16T10:58:00.553" UserId="2355" />
  <row Id="4040" PostId="4292" Score="0" Text="You cannot create an on-chain secret key, as it would not remain secret. What are you trying to actually do?" CreationDate="2022-08-16T11:04:53.347" UserId="94" />
  <row Id="4041" PostId="4284" Score="0" Text="Not yet, does that facilitate automated tests of scenarios where two or more pallets are involved?" CreationDate="2022-08-16T11:12:10.630" UserId="587" />
  <row Id="4042" PostId="4292" Score="0" Text="I will  use key pair in Information disclosure logic, so I must generate key pair first. I also want to figure our if there is a way to keep secret infomation on chain or in offchain work. Is offchain storage an alternative way?@Oliver Tale-Yazdi" CreationDate="2022-08-16T11:40:33.187" UserId="3009" />
  <row Id="4044" PostId="3882" Score="0" Text="See some solutions here: https://substrate.stackexchange.com/questions/4227/how-to-add-frontier-code-as-a-dependency-to-substrate-parachain-template-based-p/4295" CreationDate="2022-08-16T13:01:29.817" UserId="1789" />
  <row Id="4045" PostId="4272" Score="0" Text="You are right=D It was changed again... Right now it is `psp22::balanceOf`. I've updated the comment. Also, I added more documentation to [typechain-polkadot](https://github.com/Supercolony-net/typechain-polkadot), so it should be easy to use right now=)" CreationDate="2022-08-16T14:49:13.290" UserId="599" />
  <row Id="4046" PostId="4118" Score="0" Text="However, yamux and cargo were not found in the docker image. Can you give me a guide to update yamux simply for Docker users?" CreationDate="2022-08-16T14:52:59.843" UserId="352" />
  <row Id="4047" PostId="4294" Score="1" Text="I believe this was the PR: https://github.com/paritytech/polkadot/pull/1437" CreationDate="2022-08-16T17:12:19.700" UserId="29" />
  <row Id="4048" PostId="4301" Score="0" Text="What Polkadot version of Cumulus are you using? Make sure you're using latest - which at time of writing this is `polkadot-v0.9.27`." CreationDate="2022-08-16T17:26:36.587" UserId="29" />
  <row Id="4049" PostId="4301" Score="0" Text="Has your collator completed syncing? Please include your collator logs in your post." CreationDate="2022-08-16T17:27:25.317" UserId="29" />
  <row Id="4050" PostId="4301" Score="1" Text="@Bruno I have added logs picture in post, kindly have a look" CreationDate="2022-08-16T17:31:51.937" UserId="2985" />
  <row Id="4051" PostId="4301" Score="0" Text="You probably want to change your `tokeySymbol` in your chain spec to something other than ROC if you're parachain has it's own native currency. You also want to change `name`, `id`, `protocolId`, and you're missing `&quot;relay_chain&quot;: &quot;rococo&quot;`. Take a look at this example chain spec [here](https://raw.githubusercontent.com/paritytech/cumulus/master/parachains/chain-specs/contracts-rococo.json)" CreationDate="2022-08-16T17:32:42.340" UserId="29" />
  <row Id="4052" PostId="4301" Score="0" Text="Pavan, looks like it is still syncing." CreationDate="2022-08-16T17:33:39.110" UserId="29" />
  <row Id="4053" PostId="4301" Score="0" Text="@Bruno&#xA;May i know why its only showing syncing and how much time it takes to reach next steps" CreationDate="2022-08-16T17:35:35.460" UserId="2985" />
  <row Id="4054" PostId="4302" Score="0" Text="Oh I got now, thanks&#xA;Iam curious now when this relay chain logs will change" CreationDate="2022-08-16T18:03:38.163" UserId="2985" />
  <row Id="4055" PostId="4294" Score="0" Text="it's so helpful. Thank you" CreationDate="2022-08-17T02:35:24.677" UserId="445" />
  <row Id="4056" PostId="4297" Score="0" Text="Thanks you. It's nice information!" CreationDate="2022-08-17T02:36:31.287" UserId="445" />
  <row Id="4057" PostId="4225" Score="0" Text="Thank you very much! I got a correct verification result with your help. Thank you! @Oliver Tale-Yazdi" CreationDate="2022-08-17T03:21:01.023" UserId="3009" />
  <row Id="4058" PostId="4292" Score="0" Text="@kugool It's not proper to keep private key on chain. &#xA;&#xA;If you want to do some private key relative stuff, why not just do it in an oracle node?" CreationDate="2022-08-17T03:59:48.717" UserId="393" />
  <row Id="4060" PostId="4312" Score="0" Text="`error: failed to select a version for the requirement `syn = &quot;^1.0.98&quot;``" CreationDate="2022-08-17T08:00:42.333" UserId="2855" />
  <row Id="4061" PostId="4312" Score="0" Text="looks like we need version above or equal to syn = &quot;^1.0.98&quot;; which has the same error message of being private" CreationDate="2022-08-17T08:03:05.827" UserId="2855" />
  <row Id="4062" PostId="4292" Score="0" Text="@ironman_ch_parami Take a step back, can I generate a random item(number or string or bytes) on chain or offchain work?" CreationDate="2022-08-17T08:27:22.013" UserId="3009" />
  <row Id="4063" PostId="4312" Score="1" Text="You need to downgrade other dep first. I guess it is `cargo update -p ctor --precise 0.1.22`." CreationDate="2022-08-17T08:30:30.587" UserId="251" />
  <row Id="4064" PostId="4292" Score="0" Text="@kugool you can generate random item on chain, but can generate random item offchain, but you need extra consensus on that random item." CreationDate="2022-08-17T09:45:05.933" UserId="393" />
  <row Id="4065" PostId="4292" Score="0" Text="@ironman_ch_parami  I guess you mean that I can generate random offchain, but not on chain. How to generate random offchain ? Can you show me some example?" CreationDate="2022-08-17T10:36:34.677" UserId="3009" />
  <row Id="4066" PostId="4314" Score="0" Text="Thank you. But, I'm building a Go client and am currently working on extending this https://github.com/torusresearch/go-substrate-rpc-client for contracts." CreationDate="2022-08-17T11:10:15.770" UserId="566" />
  <row Id="4067" PostId="4246" Score="0" Text="Did you bump the spec version? Did you change anything other than the runtime? if so you might need to compile your validators RPC nodes to the newest release." CreationDate="2022-08-17T11:21:46.597" UserId="298" />
  <row Id="4068" PostId="4319" Score="0" Text="&quot; It is possible but it is just not happening right now.&quot; So basically in both case 1 &amp; 2, 2 wasm blob are loaded from storage + delivered to network ?&#xA;It was sure for 2. as a call to 300 flipper with same code hash increase the PoV size a lot but was not sure for 1. case" CreationDate="2022-08-17T13:01:55.013" UserId="567" />
  <row Id="4069" PostId="4319" Score="1" Text="No. In case 1: Loaded from cache. In case 2: Only included once in the PoV. However, we don't track this and hence the costs are still incurred even though the work does not occur." CreationDate="2022-08-17T13:31:42.197" UserId="16" />
  <row Id="4071" PostId="4313" Score="0" Text="Read transaction lifecycle, it will help you on your first question and second question, Source code refer to parity/substrate repo" CreationDate="2022-08-17T17:27:29.740" UserId="351" />
  <row Id="4072" PostId="4246" Score="0" Text="We definitely bumped the spec version. And if we didn't we would expect to get an error, but the UI is saying it's successful. I'm not sure if we are compiling our validators RPC nodes... we are only changing the runtime for now though. Trying to do this incrementally." CreationDate="2022-08-17T17:33:51.627" UserId="3005" />
  <row Id="4073" PostId="793" Score="0" Text="In acala they provide a mapping pallete https://wiki.acala.network/build/development-guide/smart-contracts/get-started-evm/evm-account" CreationDate="2022-08-17T17:34:52.233" UserId="2471" />
  <row Id="4074" PostId="4325" Score="0" Text="Thank you! Default::default(); worked like a charm" CreationDate="2022-08-17T17:50:01.430" UserId="2698" />
  <row Id="4075" PostId="4276" Score="3" Text="you don't create a wallet inside a pallet, that is a misconception... you should read more on the substrate architecture" CreationDate="2022-08-17T23:22:39.070" UserId="494" />
  <row Id="4076" PostId="4165" Score="0" Text="what is your ultimate goal? just to have an EVM chain, or is there anything specific about Acala? check Frontier" CreationDate="2022-08-17T23:51:34.560" UserId="494" />
  <row Id="4077" PostId="4329" Score="1" Text="Please include the output of `rustup show` and `rustup +nightly show` in your post." CreationDate="2022-08-18T00:24:56.467" UserId="29" />
  <row Id="4078" PostId="4310" Score="0" Text="Can I use this tool for a custom Substrate chain?" CreationDate="2022-08-18T00:41:55.820" UserId="29" />
  <row Id="4079" PostId="4310" Score="0" Text="Sure. It use the same algorithm as substrate. —network just change the ss58 prefix. public key is the same." CreationDate="2022-08-18T03:15:16.130" UserId="251" />
  <row Id="4080" PostId="4313" Score="0" Text="Okay! Thanks a lot Mrisho!" CreationDate="2022-08-18T03:16:33.107" UserId="3021" />
  <row Id="4081" PostId="4320" Score="0" Text="Is there any sample code snippet from which I can learn how to do exactly？" CreationDate="2022-08-18T05:45:37.917" UserId="3009" />
  <row Id="4082" PostId="4320" Score="0" Text="@kugool https://github.com/paritytech/substrate/blob/master/frame/babe/src/randomness.rs you can refer this implementation." CreationDate="2022-08-18T07:23:54.550" UserId="393" />
  <row Id="4083" PostId="4229" Score="0" Text="I guess you was wrong, this bag was changed [here](https://github.com/polkadot-js/api/commit/69afe1a2033e935436992942704770657a397a04#diff-95f44eb483d8831f1bcf06c2ac3c6971617525edb91b423ada233dc0876c6453R183)" CreationDate="2022-08-18T09:13:24.890" UserId="3011" />
  <row Id="4084" PostId="4165" Score="0" Text="I want to have EVM + account mapping. Acala is just an option that i found. It seems there are also moobeam, astar etc. Does frontier allow account mapping such that if I send tokens to substrate account they will show up in the corresponding H160 account?" CreationDate="2022-08-18T09:39:46.390" UserId="2471" />
  <row Id="4086" PostId="4307" Score="1" Text="See also: https://substrate.stackexchange.com/questions/536/how-do-treasury-accounts-compare-to-end-user-accounts-in-frame/541#541" CreationDate="2022-08-18T11:48:01.387" UserId="28" />
  <row Id="4087" PostId="4329" Score="0" Text="You shouldn't need to do anything fancy anymore regarding installing for M1. I would clean up all the various rust installs you have, and start from scratch, simply following these instructions: https://docs.substrate.io/install/macos/" CreationDate="2022-08-18T11:50:40.380" UserId="28" />
  <row Id="4088" PostId="4330" Score="0" Text="Yes, but I guess what I'm asking is how to have multiple mocked runtimes in my test directory, so that I can have tests with mocked dependencies (which have some auxiliary calls not present in real pallets) and tests with 'real' dependencies" CreationDate="2022-08-18T11:54:21.090" UserId="587" />
  <row Id="4090" PostId="4338" Score="0" Text="Yeah, I am aware of that, I am interested in setting up the environment for testing. Currently, if I call the `active_era` function like this I will get `None` as the result. I need to have some active era and also, define some stakers and potentially nominators like it is done in the `staking` pallet. I should have been more specific in my question." CreationDate="2022-08-18T12:00:23.290" UserId="2163" />
  <row Id="4091" PostId="4332" Score="0" Text="Can you be more specific about where the query is happening? For example, are you trying to write code for your parachain which has it understand which relay chain it is connected to?" CreationDate="2022-08-18T12:00:30.533" UserId="28" />
  <row Id="4092" PostId="4338" Score="1" Text="It seems you will need to also add the Session pallet. Take a look at the tests here: https://github.com/paritytech/substrate/blob/master/frame/staking/src/tests.rs#L761" CreationDate="2022-08-18T12:06:15.817" UserId="28" />
  <row Id="4093" PostId="4338" Score="1" Text="I think I have found a solution actually, I just need to configure the `GenesisConfig` of the staking pallet if I am not mistaken(for configuring stakers). Edit: For the active era I will look into the tests you have sent me :)" CreationDate="2022-08-18T12:06:59.867" UserId="2163" />
  <row Id="4094" PostId="4341" Score="0" Text="So public APIs (extrinsics) should prefer lookups, but internally `T::AccountId` is fine or what is the general rule to apply here?" CreationDate="2022-08-18T13:15:37.657" UserId="25" />
  <row Id="4095" PostId="4341" Score="0" Text="When a user should provide some `T::AccountId`, you can instead ask them for `&lt;T::Lookup as StaticLookup&gt;::Source`, which allows the caller to be more flexible in what data is sent to the chain. In the end, you will need to do `let who = T::Lookup::lookup(who)?;` in your code to find the underlying account." CreationDate="2022-08-18T13:26:22.693" UserId="28" />
  <row Id="4096" PostId="4314" Score="0" Text="I also tried to use `Contracts` as the module, it doesn't have the storage for `Events`" CreationDate="2022-08-18T13:41:41.103" UserId="566" />
  <row Id="4098" PostId="4329" Score="0" Text="I updated my question to include the updates for the 'show' commands...&#xA;And i already uninstalled an reinstalled everything following the instructions for the second time, I'm not sure what could be the problem...&#xA;Thank you very much for your responses!!" CreationDate="2022-08-18T19:33:46.760" UserId="3039" />
  <row Id="4099" PostId="4337" Score="0" Text="Thanks for your question I am not asking about theoretical information but about how to practically do it" CreationDate="2022-08-18T20:47:23.197" UserId="2471" />
  <row Id="4100" PostId="4329" Score="0" Text="Try using the toolchain that is listed in the [docs](https://docs.substrate.io/install/macos/#install-required-packages-and-rust) Shawn referenced: `stable-aarch64-apple-darwin` and `nightly-x86_64-apple-darwin`." CreationDate="2022-08-18T20:55:04.397" UserId="29" />
  <row Id="4104" PostId="4348" Score="1" Text="You need to provide some MVP code example. What do you mean by NPoS? `pallet-staking`?" CreationDate="2022-08-19T06:58:03.730" UserId="167" />
  <row Id="4105" PostId="4352" Score="0" Text="Thanky you for explain this to me. But the substrate official website says “A secure, local entropy source for random number generation” in offchain worker. So how can I use this feature to generate randoms or even generate key pair?" CreationDate="2022-08-19T08:01:17.077" UserId="3009" />
  <row Id="4106" PostId="4357" Score="0" Text="Sorry , I am a green hand and I don't have much experience. Can you tell me which crate should I import into my code?" CreationDate="2022-08-19T09:01:28.273" UserId="3009" />
  <row Id="4107" PostId="4328" Score="0" Text="Thank you Bernardo for the tips! I will dig into it." CreationDate="2022-08-19T09:06:36.923" UserId="2663" />
  <row Id="4108" PostId="4355" Score="0" Text="Thanks for these info. I am looking to run a network (unconnected to relaychain like in shibuya) not a single dev node." CreationDate="2022-08-19T10:17:04.457" UserId="2471" />
  <row Id="4109" PostId="4357" Score="1" Text="You could use [`ChaCha20Rng`](https://rust-random.github.io/rand/rand_chacha/struct.ChaCha20Rng.html).&#xA;&#xA;`ChaCha20Rng::from_seed(sp_io::offchain::random_seed()).next_u32()`." CreationDate="2022-08-19T11:11:34.073" UserId="73" />
  <row Id="4110" PostId="3830" Score="0" Text="Then they are not using a recent Substrate version or they do not expose that command. This is not a Substrate but a parachain problem." CreationDate="2022-08-19T11:24:49.120" UserId="94" />
  <row Id="4111" PostId="4355" Score="0" Text="But Shibuya is connected to a (test) relay chain. You want to run your own standalone test-net ?" CreationDate="2022-08-19T13:12:41.137" UserId="567" />
  <row Id="4113" PostId="4355" Score="0" Text="If yes then you should follow the answer by Abdulbee" CreationDate="2022-08-19T13:47:48.343" UserId="567" />
  <row Id="4114" PostId="4348" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-08-19T13:53:31.840" UserId="-1" />
  <row Id="4115" PostId="4355" Score="0" Text="I guess you are both right. I thought Shibuya was a standalone network (that was mentioned in an old documentary) but it seems it has its own relay chain" CreationDate="2022-08-19T18:52:09.197" UserId="2471" />
  <row Id="4116" PostId="4366" Score="1" Text="Are you measuring RocksDB or ParityDB? In general when accessing data from a disk, you have a lot of different layers or properties which can affect the speed, from hardware all the way to software. This is obviously why we take an average value, and try to eliminate outliers. I am not sure what kind of answer you are expecting to get here." CreationDate="2022-08-20T01:53:18.097" UserId="28" />
  <row Id="4117" PostId="4332" Score="0" Text="@ShawnTabrizi Not a parachain, I want to query use polkadot.js" CreationDate="2022-08-20T03:50:53.907" UserId="3040" />
  <row Id="4118" PostId="4348" Score="0" Text="Sure, NPoS means Nomimated Proof of Stake with pallet-babe and pallet-staking" CreationDate="2022-08-20T06:08:36.097" UserId="2940" />
  <row Id="4119" PostId="4367" Score="2" Text="you should add another validator" CreationDate="2022-08-20T13:50:55.533" UserId="351" />
  <row Id="4120" PostId="2785" Score="0" Text="It's safe, because a portion of a value is always a resulting smaller value. So it's either zero or lower than the value after the multiplication. That's why there can't be an overflow with this operation." CreationDate="2022-08-21T12:10:22.520" UserId="2484" />
  <row Id="4121" PostId="4372" Score="1" Text="Could you please try to run the benchmarking tests of your pallet?&#xA;`cargo t -p pallet-nft --features runtime-benchmarks`" CreationDate="2022-08-21T12:38:14.823" UserId="94" />
  <row Id="4122" PostId="4376" Score="1" Text="hey, I can't see a link to edg_state.json. &#xA;&#xA;Is Alice the only registered validator in the chain spec? If not then you need Alice and Bob, etc, before the chain starts producing blocks. It also makes a difference if the chain is Live or Development. I'd bet its not Development, and its waiting for the validators in edg_state before it starts making blocks." CreationDate="2022-08-21T19:43:34.783" UserId="298" />
  <row Id="4123" PostId="4375" Score="0" Text="Of course balances that are zero will be reaped, if the chain has reaping set up." CreationDate="2022-08-21T19:45:00.340" UserId="298" />
  <row Id="4124" PostId="4375" Score="0" Text="What are you doing exactly? What errors do you get? This is not enough info to really help you. The cleanest solution is a storage migration since its atomic and cannot be interfered with. Otherwise a batch call could work, but maybe not with 20k at once." CreationDate="2022-08-22T10:19:04.493" UserId="94" />
  <row Id="4125" PostId="4352" Score="0" Text="You can try again by asking what you are actually trying to archive. Creating a Pair seems like the solution that you came up with, but its not possible on-chain. Off-chain is something different." CreationDate="2022-08-22T10:21:54.690" UserId="94" />
  <row Id="4126" PostId="4383" Score="0" Text="Around this error in your log you should also see the actual panic that is printed into the log as well. What does it say?" CreationDate="2022-08-22T14:41:20.263" UserId="73" />
  <row Id="4127" PostId="4367" Score="0" Text="Oh, it seems that I had misundertood the tutorial XD. I thought the tutorial goal is connecting two nodes on separate computers. Anyway thank you so much!" CreationDate="2022-08-22T14:43:41.370" UserId="3055" />
  <row Id="4128" PostId="4378" Score="0" Text="This post may help: https://substrate.stackexchange.com/questions/4256/using-polkadot-js-api-how-can-we-list-the-members-of-a-kusama-nomination-pool" CreationDate="2022-08-22T14:58:16.597" UserId="29" />
  <row Id="4129" PostId="4375" Score="0" Text="batch call wont do it, were uploading balances to an already launched chain, we created a custom scheduler to upload 20k balance distribution, which unvests at a relayblocknumber which can be changed by root. &#xA;&#xA;Just checking if theres ever been weird behaviour that setBalance didnt overwrite. But i think its all good. thanks" CreationDate="2022-08-22T15:31:16.563" UserId="298" />
  <row Id="4131" PostId="4394" Score="0" Text="That was a silly mistake, ^^. Thanks for the answer" CreationDate="2022-08-22T19:38:52.617" UserId="245" />
  <row Id="4132" PostId="4366" Score="0" Text="Yes, this is measured using RocksDB. I was curious if you might have more insight into these numbers and if these numbers are real or some side effect of the way benchmarks are done." CreationDate="2022-08-22T19:41:28.083" UserId="3053" />
  <row Id="4133" PostId="4373" Score="0" Text="I think this is done on HDD. Another thing that I've noticed is that the more keys are inside the storage the more std deviation grows." CreationDate="2022-08-22T19:42:58.607" UserId="3053" />
  <row Id="4134" PostId="4392" Score="0" Text="Pretty in depth tutorial. that is awesome. One question. Does the metadata.json provide types for Typescript for the objects that the smart contract uses in its messages? thanks." CreationDate="2022-08-22T20:25:42.080" UserId="3070" />
  <row Id="4135" PostId="4372" Score="1" Text="Thank you! the problem was indeed a failing test in the benchmarking!!!" CreationDate="2022-08-22T23:02:16.957" UserId="309" />
  <row Id="4136" PostId="4383" Score="0" Text="@bkchr the full message : `2022-08-23 10:28:36        RPC-CORE: sendRawTransaction(extrinsic: Bytes): U256:: -32603: submit transaction to pool failed: RuntimeApi(&quot;Execution failed: Execution aborted due to trap: wasm trap: wasm ``unreachable`` instruction executed\nWASM backtrace:\n\n    0: 0x113908 - &lt;unknown&gt;!rust_begin_unwind\n&quot;)&#xA;RpcError: -32603: submit transaction to pool failed: RuntimeApi(&quot;Execution failed: Execution aborted due to trap: wasm trap: wasm ``unreachable`` instruction executed\nWASM backtrace:\n\n    0: 0x113908 - &lt;unknown&gt;!rust_begin_unwind\n&quot;)`" CreationDate="2022-08-23T08:29:04.813" UserId="632" />
  <row Id="4137" PostId="3884" Score="0" Text="If you're are really in a bind on disk space then you can set SKIP_WASM_BUILD=true . If you need a new disk the 7000mb/s SSDs work really well." CreationDate="2022-08-23T08:38:14.193" UserId="85" />
  <row Id="4139" PostId="4372" Score="0" Text="Okay good. I will copy it into an answer so we can close this question and other people will find it." CreationDate="2022-08-23T09:24:33.373" UserId="94" />
  <row Id="4140" PostId="3263" Score="0" Text="Had the same error when someone added a pallet to the Cargo.toml of a runtime but not added it to the `std` feature. (Shawn's tool didn't pick this up but maybe because I was running it against cumulus)" CreationDate="2022-08-23T09:26:18.573" UserId="85" />
  <row Id="4141" PostId="4383" Score="0" Text="It should be somewhere before this message in the log." CreationDate="2022-08-23T09:35:23.760" UserId="73" />
  <row Id="4142" PostId="1783" Score="0" Text="Any updates on this? Did you find a custom instant seal like consensus?" CreationDate="2022-08-23T09:51:44.973" UserId="139" />
  <row Id="4143" PostId="4398" Score="3" Text="What you mean by RRSC?" CreationDate="2022-08-23T10:01:15.467" UserId="73" />
  <row Id="4144" PostId="4405" Score="0" Text="I think he is asking querying from a parachain, to know which relay chain it is connected to, not from the relay chain itself." CreationDate="2022-08-23T10:43:02.337" UserId="28" />
  <row Id="4145" PostId="4401" Score="3" Text="True! You can also get this info through sidecar's endpoint `/paras` which lists all registered paras (parathreads &amp; parachains) of the relay chain you are connected to. Example from the public sidecar https://kusama-public-sidecar.parity-chains.parity.io/paras/" CreationDate="2022-08-23T12:06:40.533" UserId="234" />
  <row Id="4146" PostId="4389" Score="0" Text="Thanks for you answer, however I believe what you propose assumes you can detect if a transaction is valid at the transaction pool level. As I explained, in my case it is only possible to know if a transaction is valid *after* the block has been built and propagated." CreationDate="2022-08-23T12:14:21.093" UserId="3067" />
  <row Id="4149" PostId="4389" Score="0" Text="could you give an example? what transaction will be invaild after the propagated?" CreationDate="2022-08-23T13:56:28.143" UserId="251" />
  <row Id="4151" PostId="4404" Score="0" Text="Thanks for the explanation on `hashbrown` and elaboriating on another solution! `on_idle` is perfect." CreationDate="2022-08-23T15:22:36.170" UserId="512" />
  <row Id="4152" PostId="4411" Score="0" Text="I understand the the spec config will need to be different for multiple reasons." CreationDate="2022-08-23T18:28:05.477" UserId="590" />
  <row Id="4153" PostId="4390" Score="0" Text="Thank you! I was quite lost. Do you know of a list of archive nodes I can connect to?" CreationDate="2022-08-23T19:35:34.150" UserId="3064" />
  <row Id="4154" PostId="1766" Score="0" Text="Any news about when will be parathreads fully functional?" CreationDate="2022-08-23T20:16:29.783" UserId="1773" />
  <row Id="4155" PostId="4399" Score="0" Text="That works well for `ValueQuery` but since I use `OptionQuery`, `listing` is an `Option`. How could I use this in my case?" CreationDate="2022-08-23T23:27:24.333" UserId="245" />
  <row Id="4156" PostId="4414" Score="1" Text="Would love to know the answer to this one too. https://app.subsquid.io/aquarium/archives is an alternative where you can graphql to query data." CreationDate="2022-08-24T09:50:53.893" UserId="85" />
  <row Id="4157" PostId="4421" Score="1" Text="it would be useful if you add in the post the `curl` command you are using" CreationDate="2022-08-24T10:34:03.473" UserId="165" />
  <row Id="4158" PostId="4417" Score="1" Text="This is a brilliant resource to understand `weights` https://www.youtube.com/watch?v=bb0JotmiGEM&amp;t=5s" CreationDate="2022-08-24T12:56:42.983" UserId="2484" />
  <row Id="4159" PostId="4426" Score="0" Text="There is an example here: https://github.com/paritytech/substrate/tree/master/frame/examples/offchain-worker&#xA;- this is just an example, not for production." CreationDate="2022-08-24T14:20:33.737" UserId="29" />
  <row Id="4160" PostId="4413" Score="0" Text="How are you running the benchmarks? Do the tests work `cargo t -p your-pallet --features runtime-benchmarks`? There is a difference between executing the benchmarks and the testing that `impl_benchmark_test_suite` does. Would you mind sharing the code? You can probably even put a panic in there and it will not execute." CreationDate="2022-08-24T14:46:36.833" UserId="94" />
  <row Id="4161" PostId="4423" Score="1" Text="I guess my question is why are teams using separate runtimes?" CreationDate="2022-08-24T15:05:30.723" UserId="590" />
  <row Id="4162" PostId="4376" Score="0" Text="Can you try again with additionally `--force-authoring` and if that does not work also `--tmp`?" CreationDate="2022-08-24T15:06:09.570" UserId="94" />
  <row Id="4163" PostId="4365" Score="0" Text="Thanks, that did it, I had suspected as much but wasn't sure." CreationDate="2022-08-24T16:17:51.367" UserId="2060" />
  <row Id="4164" PostId="4398" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-08-24T17:07:17.017" UserId="-1" />
  <row Id="4165" PostId="4407" Score="0" Text="https://github.com/substrate-developer-hub/awesome-substrate is a great place to surface things like this :)" CreationDate="2022-08-24T17:10:34.003" UserId="34" />
  <row Id="4166" PostId="4406" Score="0" Text="Thanks for explanation." CreationDate="2022-08-24T21:34:54.133" UserId="3053" />
  <row Id="4167" PostId="2133" Score="0" Text="Does this `SignedExtension` need to be added after the transaction-payment extension so that it overrides the priority that is set by transaction-payment-pallet?" CreationDate="2022-08-25T00:40:16.460" UserId="590" />
  <row Id="4170" PostId="4425" Score="0" Text="Could you share the result of the rpc query `system.chainType` ?" CreationDate="2022-08-25T09:52:57.113" UserId="165" />
  <row Id="4171" PostId="4441" Score="1" Text="Thank you for your answer!" CreationDate="2022-08-25T10:56:18.027" UserId="3009" />
  <row Id="4174" PostId="4389" Score="0" Text="With in mind optimistic execution, one could think of the example where transactions in the block are executed *as if* they are valid, and once the block has been propagated, a validator can flag a fraudulent transaction that was included in the block. In this case, nodes have to revert to the state given by the execution of the last valid transaction in the block." CreationDate="2022-08-25T12:38:08.370" UserId="3067" />
  <row Id="4175" PostId="4451" Score="0" Text="I tried modifying the salt and was successful. I was about to share it. Thank you!" CreationDate="2022-08-25T13:58:38.803" UserId="2645" />
  <row Id="4176" PostId="4450" Score="1" Text="&quot;to improve developers’ experience working with ink! smartcontracts&quot; - this is not an ink! question." CreationDate="2022-08-25T14:46:41.863" UserId="2881" />
  <row Id="4177" PostId="4430" Score="0" Text="Are the storage weights also benchmarked in a snapshot for a parachain? So do I need as parachain developer need to think about the weight of a child tree access for example? According to this https://github.com/paritytech/polkadot/issues/5928" CreationDate="2022-08-25T15:10:05.617" UserId="2484" />
  <row Id="4178" PostId="4376" Score="0" Text="Is there a simpler way or a better tool to use to replace/change the sudo key?" CreationDate="2022-08-25T15:23:15.270" UserId="560" />
  <row Id="4179" PostId="4430" Score="0" Text="Parachains should benchmark their own storage weights instead of using the Polkadot defaults, yet. The procedure is not nicely explained yet, but most is covered [here](https://github.com/paritytech/substrate/blob/master/utils/frame/benchmarking-cli/src/storage/README.md). Related issue: [#12081](https://github.com/paritytech/substrate/issues/12081). The weights are defined [here](https://github.com/paritytech/polkadot/blob/157a123d05bb3548c042f91430f65de5a6e51d7e/runtime/polkadot/constants/src/weights/rocksdb_weights.rs#L59)." CreationDate="2022-08-25T15:24:04.687" UserId="94" />
  <row Id="4180" PostId="4447" Score="1" Text="And dont forget to add the crate to std features" CreationDate="2022-08-25T18:06:55.910" UserId="351" />
  <row Id="4181" PostId="2837" Score="0" Text="https://doc.rust-lang.org/cargo/commands/cargo-update.html#examples can be used if you still experience issues even after updating all cargo files. On occasion, destroying the lock file and trying to build from a clean state can resolve these as well." CreationDate="2022-08-26T03:13:13.330" UserId="34" />
  <row Id="4182" PostId="4456" Score="0" Text="I got it,thank you very much！" CreationDate="2022-08-26T05:08:44.870" UserId="3009" />
  <row Id="4183" PostId="4422" Score="0" Text="Thanks! Let me clarify my understanding and please correct me if I misunderstand anything.&#xA;1. New polkadot host should be campatiable with the old wasm. The consensus part would not be break.&#xA;2. I can use the `try-runtime` tool to check the storage migration." CreationDate="2022-08-26T06:44:39.437" UserId="2711" />
  <row Id="4184" PostId="4433" Score="2" Text="Thanks, this was super useful" CreationDate="2022-08-26T07:24:59.007" UserId="298" />
  <row Id="4185" PostId="451" Score="0" Text="Can we get the `AccountId` of the sender that sent the unsigned transaction ?" CreationDate="2022-08-26T07:56:55.047" UserId="2103" />
  <row Id="4186" PostId="3396" Score="0" Text="i am interested in this as well" CreationDate="2022-08-26T09:48:21.743" UserId="298" />
  <row Id="4187" PostId="451" Score="2" Text="no, it is not signed. there is no associated account id by definition." CreationDate="2022-08-26T09:50:38.297" UserId="28" />
  <row Id="4188" PostId="451" Score="0" Text="I see, so is there a way that I can use to keep track of the user that has made the unsigned transaction ?? &#xA;For example - I want to prevent spamming or DDOS attacks so I am thinking of adding a 'waiting time' for that user to call the extrinsic again. Is there a way through which I can achieve it ?" CreationDate="2022-08-26T10:08:44.240" UserId="2103" />
  <row Id="4189" PostId="4452" Score="0" Text="Thank you very much for this reply :)&#xA;&#xA;- I had indeed forgotten about the overlay :D&#xA;- I would be interested in seeing how this special append function works, seems strange that it can work, as Vec::append presumably is ignorant of underlying data storage. Where should I look to learn more?&#xA;- I did not understand how the cleverness of append is relevant to this not being a problem though, it seems the overlay is already fully solving the db io problem, where you just pointing that out to correct my mistaken assumption" CreationDate="2022-08-26T10:15:07.917" UserId="362" />
  <row Id="4190" PostId="4455" Score="0" Text="Thank you for a reply.&#xA;&#xA;- The reason it is in an event is for easier off-chain indexing, as it gets hard to index extrinsics properly for other technical reasons: basically handling meta invocations from sudo, batch,...&#xA;- Seems though that prior answer claims there is no penalty?" CreationDate="2022-08-26T10:17:25.753" UserId="362" />
  <row Id="4191" PostId="451" Score="0" Text="it is **unsigned**... what you are asking for are the features of **signed** transactions" CreationDate="2022-08-26T10:41:13.173" UserId="28" />
  <row Id="4192" PostId="4464" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-08-26T15:06:48.513" UserId="-1" />
  <row Id="4193" PostId="4467" Score="0" Text="Can you describe what you are trying to do? Some crates in Substrate are probably usable (like Primitives), but some are probably not (like FRAME or Core)." CreationDate="2022-08-26T17:09:25.330" UserId="28" />
  <row Id="4194" PostId="4467" Score="0" Text="I would like to make it work as describe in the lib.rs test.&#xA;I put the code here: [https://github.com/vinamogit/rust-horizon-client](https://github.com/vinamogit/rust-horizon-client)" CreationDate="2022-08-26T17:26:19.957" UserId="3086" />
  <row Id="4195" PostId="3170" Score="0" Text="Thanks for the suggestion, however, this was already being done; that was not the issue." CreationDate="2022-08-26T18:25:58.137" UserId="2060" />
  <row Id="4196" PostId="4469" Score="0" Text="Can you provide a minimal test that shows this behavior?  I was able to get this to work using a very simple unit test" CreationDate="2022-08-26T18:35:23.737" UserId="2060" />
  <row Id="4198" PostId="4469" Score="1" Text="@ShannonWells, I updated the OP post with reproduction steps." CreationDate="2022-08-26T21:38:18.873" UserId="2403" />
  <row Id="4199" PostId="4471" Score="0" Text="No, I'm trying to use it in pallet. I updated the OP post with reproduction steps." CreationDate="2022-08-26T21:39:45.420" UserId="2403" />
  <row Id="4200" PostId="4471" Score="1" Text="You will notice that `sp_core` has a dev dependency of the `rand` crate." CreationDate="2022-08-26T21:55:52.050" UserId="29" />
  <row Id="4201" PostId="4472" Score="1" Text="Which file/line is this error occurring? What version are you upgrading from? How can I replicate this? More info would be appreciated for debugging purposes." CreationDate="2022-08-26T22:35:43.740" UserId="29" />
  <row Id="4202" PostId="4471" Score="1" Text="I think the problem is that I'm trying to use random in runtime (which is wasm compiled). This article helps me to do proper (but weak) random in runtime https://docs.substrate.io/reference/how-to-guides/pallet-design/incorporate-randomness/" CreationDate="2022-08-26T23:02:58.373" UserId="2403" />
  <row Id="4203" PostId="4465" Score="0" Text="Let's assume I saved block number #25. How can I find in block #100 if my expiration date has expired or not?" CreationDate="2022-08-26T23:35:19.030" UserId="2548" />
  <row Id="4204" PostId="4467" Score="0" Text="Why not use an std http library directly?&#xA;https://lib.rs/search?q=http+client" CreationDate="2022-08-27T02:59:39.783" UserId="251" />
  <row Id="4205" PostId="4467" Score="0" Text="Sure, I'm doing that now. I forked the crate and removed the substrate dependencies. I would have preferred to extend that dependency instead of duplicating it." CreationDate="2022-08-27T06:13:50.247" UserId="3086" />
  <row Id="4206" PostId="4465" Score="0" Text="The point is that you make your expiration a # of blocks, not a date. You should generally be able to assume the block time of your chain is constant, for example on Polkadot it is 6 seconds. So if I want to make an expiration of 10 min, I would set the expiration blocks to 100 blocks. See [this](https://github.com/paritytech/polkadot/blob/master/runtime/polkadot/constants/src/lib.rs#L48)" CreationDate="2022-08-27T15:31:36.103" UserId="28" />
  <row Id="4207" PostId="1933" Score="0" Text="This is the related code that includes the query for all validators with a custom created storage key: https://github.com/momentum-xyz/harvester/blob/cf5f67ce6fff9928f3d2b911235ae793628e8bf0/pkg/substrate/validators.go#L278" CreationDate="2022-08-27T16:16:11.383" UserId="2118" />
  <row Id="4208" PostId="4452" Score="1" Text="`append` can work because the encoding of any `Vec&lt;T&gt;` is `Compact&lt;u32&gt;` followed by all elements encoded. Where the `Compact&lt;u32&gt;` is the number of elements in the vector. `append` takes the encoded value, adds one to the length at the beginning of the encoded vector and appends the encoded value to the encoded vector representation. It is really simple. Nothing special." CreationDate="2022-08-27T22:09:21.500" UserId="73" />
  <row Id="4209" PostId="4314" Score="0" Text="I'd use centrifuge rather than that fork as it looks like more dev is on centrifuge's original though I can't see ink support commits - maybe ask that question in that projects github issue asking for support?" CreationDate="2022-08-28T08:39:39.807" UserId="85" />
  <row Id="4210" PostId="4478" Score="0" Text="Can you give an example when this is not the case?" CreationDate="2022-08-28T11:52:55.337" UserId="28" />
  <row Id="4211" PostId="4481" Score="0" Text="What do you mean delete the blocks? Remove the unused data or prune the data?" CreationDate="2022-08-28T12:10:00.043" UserId="251" />
  <row Id="4212" PostId="2557" Score="0" Text="Is this still active? I will take a look at the code." CreationDate="2022-08-29T01:46:43.787" UserId="251" />
  <row Id="4213" PostId="2828" Score="0" Text="I’m voting to close this question because no more active." CreationDate="2022-08-29T01:49:43.877" UserId="251" />
  <row Id="4214" PostId="4489" Score="0" Text="Thank you! Is there any way or function api I can use to get these information from on-chain logic or pallet code?" CreationDate="2022-08-29T06:25:24.317" UserId="3009" />
  <row Id="4215" PostId="4489" Score="1" Text="You can import the `DEV_PHRASE` as `use sp_core::crypto::DEV_PHRASE`." CreationDate="2022-08-29T06:42:19.980" UserId="167" />
  <row Id="4216" PostId="4481" Score="0" Text="Yeah How should I delete unused data" CreationDate="2022-08-29T08:06:05.173" UserId="3090" />
  <row Id="4217" PostId="4482" Score="0" Text="Yeah, may be due to nodes, my storage is getting full. Where nodes are getting stored?" CreationDate="2022-08-29T08:08:19.130" UserId="3090" />
  <row Id="4218" PostId="4455" Score="0" Text="There is no penalty for full nodes, but archive nodes need to store all events forever. Storage requirements would grow too fast if Polkadot would put everything in events, that is not what they were designed for." CreationDate="2022-08-29T09:13:22.537" UserId="94" />
  <row Id="4219" PostId="4482" Score="0" Text="It can also depend. If you are running `cargo build release` then the node is stored within the `/target/release/`. If you run `cargo build`, then it is being stored in the `/target/debug` directory. But once the node is compiled, it won't generate another executable with that size unless you are compiling it on different directories." CreationDate="2022-08-29T09:46:26.460" UserId="2102" />
  <row Id="4220" PostId="4482" Score="0" Text="@TusharGoplani you can also run the following command to see if the node weights too much or not `du -sh ./*/`. My `/target/release` directory is about 8.6GB" CreationDate="2022-08-29T09:49:39.497" UserId="2102" />
  <row Id="4221" PostId="4246" Score="0" Text="Could you try updating to a newer substrate version? 3.0.0 was released 1.5 years ago and lots of things has changed since then." CreationDate="2022-08-29T09:53:34.087" UserId="2673" />
  <row Id="4222" PostId="4482" Score="0" Text="Mine is 7.1GB ... But I have two drives in my laptop C and T. In C drive windows 11, applications and ubuntu desktop application installed. And Substrate node template, parachain template are in T drive. But at the time of running nodes..  storage is getting increased of C drive........ Almost 70-80 GB storage is getting covered of C drive" CreationDate="2022-08-29T10:14:01.977" UserId="3090" />
  <row Id="4224" PostId="4490" Score="0" Text="this is the palletversion, the storageVersion was the one i was looking for" CreationDate="2022-08-29T11:14:32.850" UserId="560" />
  <row Id="4226" PostId="4246" Score="0" Text="Which version do you recommend? 3.0.0 is the last &quot;stable&quot; version, at least according to the GitHub. I assume it's still supported. I guess crates.io says 6.0.0 for a lot of them." CreationDate="2022-08-29T16:49:07.377" UserId="3005" />
  <row Id="4227" PostId="4480" Score="0" Text="I don't think that's correct. If you check subscan it will show you that many of those targets are no longer supported by the nominator; some of them aren't even validators anymore. I think that this is a list of all validators the nominator has nominated for." CreationDate="2022-08-30T01:30:08.890" UserId="3064" />
  <row Id="4228" PostId="4478" Score="0" Text="@ShawnTabrizi Is this a list of all validators a nominator has staked with in the past (not adjusted for unbonding)? I was confused because many of the targets are not validators when you check subscan, but I think that's because they are simply no longer validators." CreationDate="2022-08-30T01:45:04.477" UserId="3064" />
  <row Id="4229" PostId="4480" Score="1" Text="The nominators set those targets. That's a list they want to nominate. We could say they are nominating those validators from some point of view because the nominator selects them and clicks the nominate button.&#xA;&#xA;And what you said is the result of the election." CreationDate="2022-08-30T01:57:41.340" UserId="251" />
  <row Id="4230" PostId="4498" Score="1" Text="What do you mean by parachain environment? And what kind of issues? Can you be please more precise on what is your problem, otherwise no one will be able to help you." CreationDate="2022-08-30T07:58:27.240" UserId="73" />
  <row Id="4231" PostId="4490" Score="0" Text="what do you exactly mean by storageVersion? is it something standard that all pallets have?" CreationDate="2022-08-30T07:59:32.230" UserId="167" />
  <row Id="4232" PostId="4425" Score="1" Text="Hey, thanks for commenting, the chain type is Live (I've updated my post). Anyway We managed to make them peer but we are not really sure how. I will try to elaborate an answer to close the question." CreationDate="2022-08-30T11:12:59.177" UserId="110" />
  <row Id="4234" PostId="4513" Score="1" Text="Thank you for the explanation! Now it works fine :)" CreationDate="2022-08-30T12:55:19.463" UserId="2663" />
  <row Id="4235" PostId="4478" Score="1" Text="It is not constantly updated. If a user nominates some people a long time ago, never updates their nominations, and the validators drop out, then the storage will be in a stale state." CreationDate="2022-08-30T22:04:53.797" UserId="28" />
  <row Id="4237" PostId="4516" Score="0" Text="Thank you for your explanation！" CreationDate="2022-08-31T06:38:05.793" UserId="3009" />
  <row Id="4238" PostId="4522" Score="0" Text="Does &quot;compromising the gatekeeper&quot; mean compromising the gatekeepers SGX or would physical access to the unprotected memory of the gatekeeper be enough?" CreationDate="2022-08-31T06:40:40.633" UserId="1956" />
  <row Id="4239" PostId="4522" Score="0" Text="Compromising the SGX (and our runtime in it). Gatekeepers are in the SGX so there is no meaning to access the unprotected memory." CreationDate="2022-08-31T06:42:26.060" UserId="2765" />
  <row Id="4240" PostId="4521" Score="0" Text="Thank you! But what is the goal of disturbing especially `0x3a7472616e73616374696f6e5f6c6576656c3a`?" CreationDate="2022-08-31T07:15:54.123" UserId="3088" />
  <row Id="4242" PostId="4521" Score="0" Text="I added some context about the key." CreationDate="2022-08-31T11:00:06.607" UserId="94" />
  <row Id="4243" PostId="4170" Score="0" Text="I resolved it by disabling incremental compilation on the cargo.toml file. Don't ask me why that worked haha" CreationDate="2022-08-31T11:45:29.053" UserId="2884" />
  <row Id="4245" PostId="4523" Score="1" Text="I've just checked out the linked repo and it compiled without giving any errors. Have you tried running `rustup update`?" CreationDate="2022-08-31T13:20:53.217" UserId="2673" />
  <row Id="4247" PostId="4532" Score="0" Text="Thank you. The first port works! now. How can I insert the RPC port I want so it is not random?" CreationDate="2022-08-31T14:21:41.973" UserId="1789" />
  <row Id="4248" PostId="4535" Score="0" Text="Thank you  :) would it be possible to keep the block production unstoppable even when such a thing happens? I believe one of the biggest concerns is the chain gets stuck after an inappropriate runtime-upgrade or migration.&#xA;&#xA;E.g. divide the runtime-upgrade into 2 parts and only apply the new wasm when the migration succeeds. Is that feasible? Or like perform try-runtime as an on-chain check beforehand and refuses to upgrade when something unexpected happens" CreationDate="2022-08-31T15:14:15.300" UserId="183" />
  <row Id="4249" PostId="4532" Score="1" Text="If you don't specify `--rpc-port` then it is random." CreationDate="2022-08-31T15:39:49.563" UserId="251" />
  <row Id="4250" PostId="219" Score="0" Text="This is not working for me. I have a tiny, single-file PoC to just get account information and I'm getting a huge pile of typescript errors (840), even with the above import as the top line. Can anyone give me a push? This is with `@polkadot/api` version `9.2.4`." CreationDate="2022-08-31T16:13:50.077" UserId="3105" />
  <row Id="4251" PostId="1941" Score="0" Text="What do you mean by &quot;It does work if I submit an extrinsic instead&quot;? Instead of what? What is the other way that you are trying to set the owner?" CreationDate="2022-08-31T18:01:02.517" UserId="29" />
  <row Id="4253" PostId="4543" Score="0" Text="I'm assuming you meant `import &quot;@polkadot/api-augment/polkadot&quot;;` with the `@` sign? Adding that line ups the error count from 127 to 767.... I must be doing something wrong here." CreationDate="2022-08-31T19:55:42.570" UserId="3105" />
  <row Id="4254" PostId="4543" Score="0" Text="Just as a gut check, if you create a small repo with the above file in and run `tsc`, does it compile properly for you? If so, I would greatly appreciate if you'd publish it so I can see what the difference is." CreationDate="2022-08-31T20:45:58.867" UserId="3105" />
  <row Id="4257" PostId="4523" Score="0" Text="yes I have tried rustup update... still not worked." CreationDate="2022-09-01T05:44:05.873" UserId="3096" />
  <row Id="4258" PostId="4523" Score="0" Text="Sorry, I uploaded the wrong the files. I've changed the files please check it now." CreationDate="2022-09-01T06:34:51.837" UserId="3096" />
  <row Id="4262" PostId="4552" Score="0" Text="I want to create a wallet on polkadot" CreationDate="2022-09-01T08:49:17.887" UserId="3097" />
  <row Id="4263" PostId="4412" Score="0" Text="Would it be possible to fetch this information through codebase? I mean from any pallet?" CreationDate="2022-09-01T09:10:07.303" UserId="140" />
  <row Id="4264" PostId="4552" Score="1" Text="Polkadot uses SR25519. So, https://github.com/polkascan/py-sr25519-bindings is the Python library for creating a wallet on Polkadot." CreationDate="2022-09-01T09:10:07.310" UserId="251" />
  <row Id="4265" PostId="4552" Score="0" Text="can you further elaborate it how could I create a wallet by using this library if possible it will be very helpful for me." CreationDate="2022-09-01T09:14:54.253" UserId="3097" />
  <row Id="4266" PostId="4552" Score="0" Text="Ah, sorry. I made a mistake here. Let me update my answer." CreationDate="2022-09-01T09:16:50.077" UserId="251" />
  <row Id="4267" PostId="4552" Score="0" Text="Alright I'm waiting" CreationDate="2022-09-01T09:18:25.683" UserId="3097" />
  <row Id="4268" PostId="4528" Score="0" Text="Perfect, worked like a charm" CreationDate="2022-09-01T09:20:41.810" UserId="201" />
  <row Id="4269" PostId="4546" Score="0" Text="It still does not work :/" CreationDate="2022-09-01T09:21:16.613" UserId="2548" />
  <row Id="4270" PostId="4552" Score="0" Text="Updated. Please take a look." CreationDate="2022-09-01T09:34:16.390" UserId="251" />
  <row Id="4271" PostId="4552" Score="0" Text="when I've posted the public key: c20c0de890c5a809a9837b439e1e7c86bb23e31932e367b66d14a82d5f429c6e on polkascan and westendscan it's not showing" CreationDate="2022-09-01T11:00:40.343" UserId="3097" />
  <row Id="4272" PostId="4552" Score="0" Text="You don't have DOT. So the account won't be created. But it's a valid address. You just need to transfer some token to it, then it will appear on Polkascan." CreationDate="2022-09-01T11:08:57.113" UserId="251" />
  <row Id="4273" PostId="4552" Score="0" Text="do we need to create a different address for westend?" CreationDate="2022-09-01T11:18:02.270" UserId="3097" />
  <row Id="4274" PostId="4552" Score="0" Text="I've seen a address on polkascan &quot;15XDJ467QETozXzSa5isHUmBAUNoiy8bCkqDKVkZ77wFdyux&quot; it has 0 DOTS but still I can see it on polkascan" CreationDate="2022-09-01T11:31:44.190" UserId="3097" />
  <row Id="4275" PostId="4561" Score="1" Text="Excellent! Yes, the chain spec in dev mode has two validators in it. I just removed Bob and it is now 6 seconds. Thank you so much ! I need to study more in depth this part." CreationDate="2022-09-01T12:36:51.533" UserId="2873" />
  <row Id="4276" PostId="4561" Score="0" Text="Just for reference to other people who may have this same question, I searched and found that Drew's answer is also explained in the OpenEthereum documentation about Aura: https://openethereum.github.io/Validator-Set-Tutorial-4#title-visualize-misbehaviors ." CreationDate="2022-09-01T12:59:49.123" UserId="2873" />
  <row Id="4277" PostId="4546" Score="0" Text="Create a reproducible example, push it up to Github, and share it on here - otherwise there isn't much I can do without guessing what it could be." CreationDate="2022-09-01T13:13:24.743" UserId="29" />
  <row Id="4278" PostId="4246" Score="1" Text="The last 'stable' version would be the `polkadot-v0.9.28` tag from GitHub. Substrate release have not been properly published (i.e. GitHub or crates.io releases) since quite some time." CreationDate="2022-09-01T13:49:49.100" UserId="2673" />
  <row Id="4279" PostId="4564" Score="1" Text="Hi @Russo, that error is from the wasm execution and is not related to zombienet. Are you using k8s? Does the image have the same binary that you run locally?" CreationDate="2022-09-01T13:52:52.197" UserId="279" />
  <row Id="4280" PostId="4552" Score="0" Text="If you want more safety, use a different key. In technical, Westend uses SR25519 too.&#xA;For the second question, I won't answer you here. This comment is too long (also, off-topic). You could create an account on PolkadotApps (the official wallet) and see if it appears on the Polkascan." CreationDate="2022-09-01T14:02:17.543" UserId="251" />
  <row Id="4281" PostId="4564" Score="0" Text="Hi @pepoviola, I am using native binaries. I think wasm cannot handle too many deployment..." CreationDate="2022-09-01T14:22:57.133" UserId="1789" />
  <row Id="4282" PostId="4566" Score="0" Text="if we copy /network/secret_ed25519 from a peer to another one would it make the second peer boot with the first peer's id?" CreationDate="2022-09-01T18:10:44.643" UserId="2471" />
  <row Id="4283" PostId="4566" Score="0" Text="Yes. If you don't specify the `--node-key-file` or `--node-key`." CreationDate="2022-09-01T18:12:17.447" UserId="251" />
  <row Id="4284" PostId="4546" Score="0" Text="Here is the link: https://github.com/herou/recipes/tree/only-escrow Thank you for your help." CreationDate="2022-09-01T19:46:05.093" UserId="2548" />
  <row Id="4285" PostId="4546" Score="0" Text="Is there a reason you're not building this pallet on [substrate-node-template](https://github.com/substrate-developer-hub/substrate-node-template)? [Substrate Recipes](https://github.com/JoshOrndorff/recipes) is quite out-dated. It is fine for studying but I would recommend building your pallet on [substrate-node-template](https://github.com/substrate-developer-hub/substrate-node-template)" CreationDate="2022-09-01T20:39:02.417" UserId="29" />
  <row Id="4286" PostId="4535" Score="1" Text="No you can not run try-runtime on chain. There is also not really anything that you can do to bring back the block production. For standalone blockchains there is some issue on what could be done: https://github.com/paritytech/substrate/issues/7558" CreationDate="2022-09-01T21:11:43.040" UserId="73" />
  <row Id="4287" PostId="4576" Score="0" Text="I don't know if `TUNIT` is smaller than `Unit`?" CreationDate="2022-09-02T01:08:27.400" UserId="251" />
  <row Id="4288" PostId="4538" Score="0" Text="Thank you for your answer! Does it mean I have to do some &quot;Deep customization&quot; to substrate except only coding for a pallet?" CreationDate="2022-09-02T01:50:37.903" UserId="3009" />
  <row Id="4290" PostId="4576" Score="0" Text="TUNIT &gt; UNIT : Tera UNIT = 10^12 UNIT" CreationDate="2022-09-02T04:48:27.097" UserId="445" />
  <row Id="4291" PostId="4532" Score="0" Text="Specify it by `rpc_port = 6969` in the parachain in the network file" CreationDate="2022-09-02T05:31:19.237" UserId="1789" />
  <row Id="4292" PostId="4555" Score="0" Text="No I am doing this on my own. Basically, I am trying to build a simple network marketing pallet in which you can add different people. Its just a start." CreationDate="2022-09-02T05:35:34.443" UserId="3096" />
  <row Id="4293" PostId="4555" Score="0" Text="It is giving error after this also in the runtime. Now instead of 9 its giving just 1 runtime error." CreationDate="2022-09-02T05:45:32.050" UserId="3096" />
  <row Id="4294" PostId="4555" Score="0" Text="I've have uploaded the new error, kindly look into it." CreationDate="2022-09-02T05:55:55.313" UserId="3096" />
  <row Id="4295" PostId="4568" Score="0" Text="I believe there is a concept misconception in this scenario. Transactions with  different tx nonces are by definition different transactions. If a user wants to replace a queued transaction in the transaction pool, they should re-use the same nonce." CreationDate="2022-09-02T06:11:26.637" UserId="2025" />
  <row Id="4296" PostId="4568" Score="0" Text="I might have phrased it poorly: In my scenario, a user just wants to send a single transaction. But that user is impatient and after not seeing it finalized after a while, they think somethings wrong and just do the same transaction again." CreationDate="2022-09-02T07:37:31.583" UserId="2713" />
  <row Id="4297" PostId="4578" Score="0" Text="Can you share the address or screenshots? It can be helpful to see why subscan.polkadot throws the error" CreationDate="2022-09-02T07:38:24.550" UserId="2762" />
  <row Id="4298" PostId="4555" Score="0" Text="please open a new question, and do not put screenshots, but share the error as text." CreationDate="2022-09-02T08:49:11.477" UserId="28" />
  <row Id="4299" PostId="4573" Score="0" Text="1) Thanks for clarifying.&#xA;2) Changing metadata would actually be fine, I am worried it breaks something else, and you are saying that inside the node or otherwise you can't think of any serious problem?" CreationDate="2022-09-02T08:54:54.593" UserId="362" />
  <row Id="4300" PostId="4573" Score="0" Text="But actually, why does `frame_support::parameter_types` support mutable parameters if I _should_ keep everything constant?" CreationDate="2022-09-02T08:55:59.327" UserId="362" />
  <row Id="4301" PostId="4555" Score="0" Text="I have uploaded the new code to the github link. I'll upload the errors." CreationDate="2022-09-02T09:18:50.437" UserId="3096" />
  <row Id="4302" PostId="4568" Score="0" Text="Indeed, if the user is impatient and wants to submit the SAME transaction again, they should use the SAME tx nonce. &#xA;&#xA;From the protocol standpoint, transactions with different nonces are essentially different transactions, so your scenario above is expected." CreationDate="2022-09-02T09:37:20.663" UserId="2025" />
  <row Id="4304" PostId="4555" Score="0" Text="Link to new question - https://substrate.stackexchange.com/questions/4584/getting-conflicts-in-implementation-error-while-adding-custom-pallet" CreationDate="2022-09-02T10:33:27.323" UserId="3096" />
  <row Id="4305" PostId="4582" Score="1" Text="Try to clean the DB, and start a dev chain. If you are developing a new chain." CreationDate="2022-09-02T11:05:53.127" UserId="251" />
  <row Id="4306" PostId="4582" Score="0" Text="Indeed I've changed create_runtime_str in lib.rs. Should I keep it as it was or there is a way around to change it too?" CreationDate="2022-09-02T12:00:40.753" UserId="2471" />
  <row Id="4307" PostId="4519" Score="0" Text="Thanks for pointing this out, but the question was about swapping `paraID` when swapping slots. Option 2 is risky, because it is not guaranteed that the slot is attained." CreationDate="2022-09-02T12:18:40.883" UserId="49" />
  <row Id="4308" PostId="4585" Score="0" Text="I will check it, thank you!" CreationDate="2022-09-02T12:37:26.117" UserId="3078" />
  <row Id="4309" PostId="4576" Score="0" Text="How did you setup the node? Did you change the code?" CreationDate="2022-09-02T13:45:43.970" UserId="94" />
  <row Id="4310" PostId="4546" Score="0" Text="Thank you for your suggestion, I really appreciate it.&#xA;Trying to build the substrate-node-template I get this issue:&#xA;https://substrate.stackexchange.com/questions/4591/mac-m1-substrate-node-template-cant-be-build&#xA;Can you please help me?" CreationDate="2022-09-02T13:48:46.063" UserId="2548" />
  <row Id="4311" PostId="4592" Score="0" Text="Yes, 'cmake' is installed" CreationDate="2022-09-02T14:15:12.080" UserId="2548" />
  <row Id="4312" PostId="4573" Score="1" Text="All pallet constants are MEANT to be constant. You should not make them non-constant. The fact that you can is just a Rust thing. Dont do it." CreationDate="2022-09-02T14:35:04.037" UserId="28" />
  <row Id="4314" PostId="4596" Score="0" Text="I followed the steps above.&#xA;&#xA;elioprifti@pc-193-62 ~ % cmake --version&#xA;cmake version 3.24.1&#xA;&#xA;CMake suite maintained and supported by Kitware (kitware.com/cmake).&#xA;elioprifti@pc-193-62 ~ %" CreationDate="2022-09-02T15:07:53.633" UserId="2548" />
  <row Id="4315" PostId="4596" Score="1" Text="I am running the same version on an M1 and [substrate-node-template](https://github.com/substrate-developer-hub/substrate-node-template/releases/tag/polkadot-v0.9.28) builds fine." CreationDate="2022-09-02T15:54:24.560" UserId="29" />
  <row Id="4316" PostId="4596" Score="3" Text="I had to restart my pc to fix it. Thank you!" CreationDate="2022-09-02T15:58:08.257" UserId="2548" />
  <row Id="4317" PostId="4595" Score="0" Text="Okay s but how  can we build light client same to smoldot" CreationDate="2022-09-02T16:53:05.147" UserId="3109" />
  <row Id="4318" PostId="4602" Score="1" Text="Does this answer your question https://substrate.stackexchange.com/questions/4378/polkadot-js-how-do-i-fetch-all-rewards-paid-to-a-specific-nominator-that-result/4390 ?" CreationDate="2022-09-02T17:36:10.677" UserId="94" />
  <row Id="4319" PostId="4602" Score="0" Text="It is much helpful. One question is, how can I access archived node to get all past events?" CreationDate="2022-09-02T17:58:14.657" UserId="2581" />
  <row Id="4320" PostId="4602" Score="0" Text="Maybe this post is helpful https://substrate.stackexchange.com/a/4432/234 and the wiki page https://wiki.polkadot.network/docs/build-node-management#basic-node-operations ?" CreationDate="2022-09-02T18:55:14.373" UserId="234" />
  <row Id="4321" PostId="4519" Score="0" Text="Updated my answer to better reflect your question." CreationDate="2022-09-02T19:35:48.780" UserId="29" />
  <row Id="4322" PostId="4576" Score="0" Text="I only run in development mode. I don't change anything." CreationDate="2022-09-03T05:39:20.843" UserId="445" />
  <row Id="4323" PostId="4582" Score="0" Text="If you want to continue working with the previous one, revert that changes. Otherwise, you could keep the changes and start a new chain." CreationDate="2022-09-03T08:50:01.840" UserId="251" />
  <row Id="4324" PostId="4574" Score="0" Text="Thanks for the great answer @Shawn!" CreationDate="2022-09-03T11:15:06.827" UserId="74" />
  <row Id="4325" PostId="4585" Score="0" Text="As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-09-03T13:31:59.637" UserId="-1" />
  <row Id="4326" PostId="4570" Score="0" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-09-03T13:33:30.310" UserId="-1" />
  <row Id="4327" PostId="4590" Score="0" Text="Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." CreationDate="2022-09-03T13:36:21.903" UserId="-1" />
  <row Id="4328" PostId="4579" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-09-03T13:37:36.747" UserId="-1" />
  <row Id="4329" PostId="4598" Score="0" Text="What about the transaction fees do you want to test, and what is your mock configuration of this pallet? Have you looked at and played around with the tests found in the transaction payment pallet? https://github.com/paritytech/substrate/blob/master/frame/transaction-payment/src/lib.rs#L801" CreationDate="2022-09-03T16:50:53.183" UserId="28" />
  <row Id="4330" PostId="4582" Score="0" Text="I am facing the issue while starting a new chain" CreationDate="2022-09-03T20:38:17.683" UserId="2471" />
  <row Id="4331" PostId="4486" Score="0" Text="thank you very much,sir" CreationDate="2022-09-04T03:02:09.123" UserId="489" />
  <row Id="4332" PostId="4582" Score="0" Text="Could you provide more detail? Like, what's your boot command? What changes did you do?" CreationDate="2022-09-04T04:57:00.590" UserId="251" />
  <row Id="4333" PostId="4612" Score="0" Text="Thanks a lot, I think I partly understood now." CreationDate="2022-09-04T06:18:44.157" UserId="2034" />
  <row Id="4334" PostId="4612" Score="0" Text="If this solve your problem, please mark it as the answer." CreationDate="2022-09-04T06:48:25.503" UserId="251" />
  <row Id="4335" PostId="4612" Score="0" Text="oh, sorry, I didn't found the accept button before." CreationDate="2022-09-04T08:44:40.520" UserId="2034" />
  <row Id="4338" PostId="4618" Score="0" Text="your question is not clear, what exactly are you trying to do?" CreationDate="2022-09-05T04:41:09.813" UserId="354" />
  <row Id="4340" PostId="4620" Score="0" Text="It looks like your macOS version is too old? Which version are you using? https://github.com/google/snappy/commit/8dd58a519f79f0742d4c68fbccb2aed2ddb651e8" CreationDate="2022-09-05T05:32:08.020" UserId="251" />
  <row Id="4341" PostId="4604" Score="0" Text="Actually I've started my node with this commad&#xA;polkadot --chain=westend and in my code I've done this&#xA;&#xA;ry:&#xA;    substrate = SubstrateInterface(&#xA;               url=&quot;http://localhost:9933/&quot;,&#xA;        # url=&quot;http://127.0.0.1:9933/&quot;,&#xA;        type_registry_preset=&quot;substrate-node-template&quot;&#xA;    )&#xA;except ConnectionRefusedError:&#xA;    print(&quot;⚠️ No local Substrate node running, try running 'start_local_substrate_node.sh' first&quot;)&#xA;    exit()&#xA;&#xA;and after that I'm finding my account's balance  request it's showing 0 but my account's balance is'nt 0" CreationDate="2022-09-05T05:34:20.170" UserId="3097" />
  <row Id="4342" PostId="4620" Score="0" Text="I append the tool-chain version info. Is MacOS version 10.15.1 too old ?" CreationDate="2022-09-05T06:10:03.930" UserId="252" />
  <row Id="4343" PostId="4620" Score="0" Text="Yep. Recommend you to follow this issue https://github.com/paritytech/substrate/issues/11860." CreationDate="2022-09-05T06:19:51.213" UserId="251" />
  <row Id="4344" PostId="4538" Score="0" Text="I wouldn't say it's very 'deep customization'. Please have a look at [this code](https://github.com/PureStake/moonbeam/blob/master/primitives/account/src/lib.rs) in the Moonbeam repository. This is how the 'unified accounts' are implemented." CreationDate="2022-09-05T07:57:13.887" UserId="2673" />
  <row Id="4346" PostId="4404" Score="0" Text="From the docs for `clear_prefix`:&#xA;&#xA;*&quot;The maybe_cursor parameter should be None for the first call to initial removal. If the resultant maybe_cursor is Some, then another call is required to complete the removal operation. This value must be passed in as the subsequent call’s maybe_cursor parameter.&quot;*&#xA;&#xA;However I noticed this solution never passes the cursor back in - is this intentional? Can you explain? Thanks." CreationDate="2022-09-05T08:22:00.243" UserId="2192" />
  <row Id="4347" PostId="3590" Score="0" Text="Thank you for this excellent explanation. I just have some followup questions. 1. There doesn't seem to be a way in Rust to get the size of individual variants to help identify which variant needs to be re-worked to reduce its size. How were you able to identify them. 2. How large was the call size which caused the WASM executor to cause it to fail with memory allocation errors. Thanks again." CreationDate="2022-09-05T08:27:48.327" UserId="2834" />
  <row Id="4348" PostId="4404" Score="1" Text="I'm cheating a little bit, as I know how it works. Basically when you call this only once per block, it is fine to not pass the cursor." CreationDate="2022-09-05T14:17:36.100" UserId="73" />
  <row Id="4349" PostId="4634" Score="0" Text="I use `state_getStoragePaged` recursively fetch all data. And put them (`{ k: v }`) into a JSON file. How do I remove those keys? Is there a way to get the keys' value? Then I could index/locate them in the JSON." CreationDate="2022-09-05T14:20:33.030" UserId="251" />
  <row Id="4350" PostId="4634" Score="0" Text="These keys are not stored in regular state storage since they are not part of the runtime state. You'll need to write some code that uses the API I linked above to remove the data from the local storage database. Alternatively you could: dump the state as you're doing, and then import it into a blank/new database. This should make sure that no existing &quot;off-chain&quot; GRANDPA state exists on the local database." CreationDate="2022-09-05T14:36:07.383" UserId="452" />
  <row Id="4351" PostId="4634" Score="0" Text="But the interesting thing is I dumpped all the data (skip Babe/Grandpa/Session). And insert them into a brand new genesis `for (k, v) in dump { genesis[k] = v; }`. Then `./node --chain genesis.json`. Babe/Grandpa/Session is empty, that's good. But when I call `grandpa_roundState`. What?! The old validator set shows up." CreationDate="2022-09-05T14:49:45.057" UserId="251" />
  <row Id="4352" PostId="4634" Score="0" Text="Can you do the same thing using `./node --chain genesis.json --tmp` and check if the problem is still there? If it's not then the issue is that you are reusing a database which contains the old local GRANDPA data (i.e. not runtime state data)." CreationDate="2022-09-05T14:55:29.863" UserId="452" />
  <row Id="4353" PostId="4634" Score="0" Text="Ah, sorry. The `state_getStoragePaged` one is fine. The `./node export-state &gt; dump.json` one has this issue." CreationDate="2022-09-05T15:17:42.317" UserId="251" />
  <row Id="4354" PostId="4634" Score="0" Text="I have edited my original answer. Let me know if that solves it" CreationDate="2022-09-05T15:26:34.940" UserId="452" />
  <row Id="4355" PostId="4634" Score="0" Text="Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/138998/discussion-between-andre-and-aurevoirxavier)." CreationDate="2022-09-05T15:33:40.460" UserId="452" />
  <row Id="4356" PostId="335" Score="0" Text="In unit test, how to get the value of ConstU32 ?" CreationDate="2022-09-05T15:34:30.463" UserId="252" />
  <row Id="4357" PostId="4634" Score="0" Text="Yes! That's the point! The key `0x3a6772616e6470615f617574686f726974696573` is what I am look for! It takes me a lot of time. Skipping override that key makes my fork-off chain runnable." CreationDate="2022-09-05T15:40:41.827" UserId="251" />
  <row Id="4358" PostId="335" Score="0" Text="```your_const_vall::get()` should do it? Make sure to have the `Get` trait imported." CreationDate="2022-09-05T17:07:10.457" UserId="73" />
  <row Id="4360" PostId="4519" Score="2" Text="[Here](https://polkadot.subscan.io/extrinsic/11817168-4) is an example of a parachain that called swap 7 days ago on Polkadot. You can see that their lease is now 664 days (as of time of writing this)." CreationDate="2022-09-05T20:14:28.457" UserId="29" />
  <row Id="4361" PostId="4555" Score="0" Text="It's Solved. Thanks for support." CreationDate="2022-09-06T04:17:22.147" UserId="3096" />
  <row Id="4362" PostId="3949" Score="0" Text="How about the opposite way? Can I call methods in a pallet inside a smart contract?" CreationDate="2022-09-06T07:55:52.707" UserId="2307" />
  <row Id="4363" PostId="4640" Score="0" Text="Thank you so much for answering.  I am using openbrush/ink.  I want to access it using my custom pallet.  I am using bare_call to execute other messages." CreationDate="2022-09-06T08:05:51.537" UserId="2565" />
  <row Id="4364" PostId="301" Score="1" Text="@AsmitaDhungana Could you mark this this reply as the answer?" CreationDate="2022-09-06T13:10:36.480" UserId="251" />
  <row Id="4365" PostId="2487" Score="0" Text="@JohnHilkinson Could you mark this reply as the answer? For your other questions, you could open a new question on StackExchange." CreationDate="2022-09-06T13:20:34.683" UserId="251" />
  <row Id="4366" PostId="4643" Score="0" Text="Linux or macOS?" CreationDate="2022-09-06T14:22:35.223" UserId="29" />
  <row Id="4367" PostId="4643" Score="0" Text="It is mac......" CreationDate="2022-09-06T15:00:42.997" UserId="2548" />
  <row Id="4368" PostId="4649" Score="0" Text="Is it fixed by [this](https://substrate.stackexchange.com/a/4225/94)?" CreationDate="2022-09-06T15:09:31.750" UserId="94" />
  <row Id="4369" PostId="4649" Score="0" Text="@OliverTale-Yazdi OMG! why is this so hack. Wrapping the payload with Bytes tag, I was indeed able to verify that the signature is thus valid, but now the payload is different, and submitting the derived extrinsic and signature into the substrate node still gets rejected. Is there a way to use polkadot signature with the the Wrapping &lt;Bytes&gt;?" CreationDate="2022-09-06T16:46:20.563" UserId="190" />
  <row Id="4370" PostId="4225" Score="0" Text="The `&lt;Bytes&gt;` is a bit of a hack, but is there a way to tell the polkadot api to not use the `&lt;Bytes&gt;`, reason being that the payload is changed from the original and submitting the derived extrinsic gets rejected by the substrate-node." CreationDate="2022-09-06T17:03:02.273" UserId="190" />
  <row Id="4371" PostId="4225" Score="0" Text="Well, if you just get a PolkadotJS signature, there is no way to remove the `&lt;Bytes&gt;`.  &#xA;The `&lt;Bytes&gt;` was added to prevent someone using a Polkadot wallet as signing oracle; its a necessary security measurement. But particularly using `Bytes` instead of something like `Polkadot` is questionable indeed.  &#xA;Where is the extrinsic getting rejected by the substrate-node?" CreationDate="2022-09-06T18:24:35.210" UserId="94" />
  <row Id="4372" PostId="4649" Score="0" Text="Okay then I think we can close this as duplicate. I don't know if PolkadotJS can be used without `Bytes`, I don't hope so since that would be a security issue. Why can you not wrap the message in  `Bytes` before verifying?" CreationDate="2022-09-06T18:27:56.103" UserId="94" />
  <row Id="4373" PostId="4660" Score="0" Text="Can you provide an example?" CreationDate="2022-09-06T19:35:10.727" UserId="29" />
  <row Id="4374" PostId="4660" Score="0" Text="yes. as in the erc721 example. &#xA;operator_approvals: Mapping&lt;(AccountId, AccountId), ()&gt;" CreationDate="2022-09-06T21:24:26.903" UserId="3070" />
  <row Id="4375" PostId="4660" Score="0" Text="so for each account there are many operators accounts. how to iterate through the operators for each main account." CreationDate="2022-09-06T21:36:35.557" UserId="3070" />
  <row Id="4377" PostId="3949" Score="0" Text="@marethyu yes, you can with chain extensions. See here https://substrate.stackexchange.com/questions/1951/how-to-call-runtime-functions-from-a-contract/1954#1954" CreationDate="2022-09-06T23:40:54.443" UserId="1824" />
  <row Id="4378" PostId="4665" Score="0" Text="I think that is impossible. But, what is your use case? I think there are other ways to do that. Why do you want negative balances?" CreationDate="2022-09-07T03:03:41.707" UserId="251" />
  <row Id="4379" PostId="4666" Score="0" Text="thanks very much for this. I will take a closer look and come back if any questions." CreationDate="2022-09-07T03:20:46.213" UserId="3121" />
  <row Id="4380" PostId="4645" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-09-07T07:44:32.487" UserId="-1" />
  <row Id="4381" PostId="4671" Score="0" Text="The steps LGTM. How did you set the key? Is the key correct?" CreationDate="2022-09-07T07:45:13.383" UserId="251" />
  <row Id="4383" PostId="4657" Score="0" Text="Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." CreationDate="2022-09-07T07:45:51.610" UserId="-1" />
  <row Id="4384" PostId="4671" Score="0" Text="@AurevoirXavier thanks for the comment. I made `session.setKey` extrinsic using the collator account -&gt; then `author.insertKeys` rpc call to set the private key" CreationDate="2022-09-07T07:47:22.030" UserId="3130" />
  <row Id="4388" PostId="4661" Score="1" Text="I don't know how that script is supposed to be used, but maybe worth opening an issue and amending it." CreationDate="2022-09-07T12:53:52.353" UserId="94" />
  <row Id="4389" PostId="4645" Score="0" Text="I think tetcoin.org was someone forking substrate years ago but then not doing anything with it. Any info there is likely to be way out of date." CreationDate="2022-09-07T13:20:21.493" UserId="85" />
  <row Id="4390" PostId="4649" Score="0" Text="@OliverTale-Yazdi Wrapping the payload with &lt;Bytes&gt; to verify that the signature is fine in this case, since I have control on this part of the code. But submitting the actual signature as an extrinsic into the substrate node will be rejected with an Invalid Signature, since it has another verification step where I don't wish to change the code in that part." CreationDate="2022-09-07T15:27:00.507" UserId="190" />
  <row Id="4391" PostId="4682" Score="0" Text="but in substrate-parachain-template's chain_spec.rs, why is `id` 1000 for both `development_config()` and `local_testnet_config()` while the tutorial &quot;Connect other chains&quot; can use paraId 2000 ?" CreationDate="2022-09-07T16:46:20.330" UserId="1789" />
  <row Id="4392" PostId="4682" Score="0" Text="@Russo I am not sure why the default is 1000 in the template's chain_spec. The 2000, however, is used because the relay-chain has reserved &lt; 2000 IDs for system level &amp; common good chains. So, the first ID available to reserve will be 2000." CreationDate="2022-09-07T16:58:40.410" UserId="703" />
  <row Id="4393" PostId="4690" Score="0" Text="Thanks @bkchr. I'll check the next session then!" CreationDate="2022-09-08T01:21:36.427" UserId="3130" />
  <row Id="4395" PostId="4629" Score="2" Text="Unfortunately `FromStr` is `std` only. Given ink contracts are written in `no_std` environment, we should use an external crate like `hex` to parse the string to `&amp;[u8]`, and then convert it to `AccountId32` by `TryInto`." CreationDate="2022-09-08T04:43:16.897" UserId="544" />
  <row Id="4397" PostId="4347" Score="1" Text="Actually, I didn't use ` ::ink_env::chain_extension::ChainExtensionMethod` and its method `handle_error_code` at that time when I asked question. Then `ContractReverted` event itself wasn't emitted without using it.&#xA;&#xA;After using `handle_error_code` method properly, substrate emits `ContractReverted` event when returned RetVal from chain extension mapped to Err on contract side (by `from_status_code` impl).&#xA;&#xA;So, now, we can do both getting `ExtrinsicFailed ContractReverted` event + contract  receiving dispatch error reason from status code (RetVal)" CreationDate="2022-09-08T05:11:56.153" UserId="275" />
  <row Id="4398" PostId="4347" Score="1" Text="Thank you so much!" CreationDate="2022-09-08T05:14:23.680" UserId="275" />
  <row Id="4399" PostId="4673" Score="0" Text="`SKIP_WASM_BUILD= cargo run -- --chain ...` . Does this? I also tested this but it's not working with run native." CreationDate="2022-09-08T06:36:53.673" UserId="445" />
  <row Id="4400" PostId="4697" Score="0" Text="I think the best way to do this is to limit the process at system level." CreationDate="2022-09-08T06:51:46.447" UserId="251" />
  <row Id="4401" PostId="4700" Score="0" Text="it isn't there, could it be due to an incorrect abi?" CreationDate="2022-09-08T08:51:56.523" UserId="3106" />
  <row Id="4402" PostId="4676" Score="0" Text="Thanks it worked." CreationDate="2022-09-08T08:57:01.813" UserId="3096" />
  <row Id="4403" PostId="4700" Score="0" Text="Might be the case, but I'm not sure." CreationDate="2022-09-08T09:30:14.163" UserId="2673" />
  <row Id="4404" PostId="4695" Score="2" Text="Wouldn't using `OptionQuery` instead of `ValueQuery` solve the problem without the need to change the value type?" CreationDate="2022-09-08T09:35:07.950" UserId="2673" />
  <row Id="4405" PostId="4695" Score="0" Text="Sorry, I mean to change the type to `OptionQuery`. That's right! Because I don't have a computer nearby when I answer this question. I forgot the detail. I just want to tell you that you should use the option type here." CreationDate="2022-09-08T09:44:02.263" UserId="251" />
  <row Id="4407" PostId="4658" Score="0" Text="Yes I want to design similar to smoldot , can I build using substrate node or  to fork the smoldot repository and make changes to it" CreationDate="2022-09-08T10:20:31.320" UserId="3109" />
  <row Id="4408" PostId="301" Score="1" Text="@AurevoirXavier Sure!" CreationDate="2022-09-08T10:37:42.013" UserId="405" />
  <row Id="4409" PostId="4669" Score="0" Text="Amazing thank you Iker!" CreationDate="2022-09-08T11:39:10.640" UserId="2467" />
  <row Id="4410" PostId="4695" Score="0" Text="OK, so I'd suggest to edit the answer to avoid confusion." CreationDate="2022-09-08T11:53:26.253" UserId="2673" />
  <row Id="4411" PostId="4658" Score="0" Text="The Substrate node does much more than a light client. For example it can author blocks or provide historic information. A light client does just a fraction of that; mainly following consensus through verifying proofs. The scope of your question is to open-ended to be answered precisely. Sure you can fork Smoldot if you want something similar." CreationDate="2022-09-08T12:06:04.757" UserId="94" />
  <row Id="4412" PostId="3947" Score="0" Text="Just to clarify the situation on macOS. The support is limited. For example, we make sure that it compiles, but we don't run tests for it. It's only meant for developers, and it's discouraged to run production code on macOS. This may change in the future." CreationDate="2022-09-08T12:09:54.887" UserId="45" />
  <row Id="4413" PostId="4020" Score="1" Text="This looks more like an issue for github to me." CreationDate="2022-09-08T12:45:11.273" UserId="45" />
  <row Id="4414" PostId="4547" Score="0" Text="Could you select an answer if any one of them answers your question?" CreationDate="2022-09-08T13:42:22.627" UserId="251" />
  <row Id="4415" PostId="4550" Score="0" Text="Could you select an answer if any one of them answers your question?" CreationDate="2022-09-08T13:42:28.907" UserId="251" />
  <row Id="4416" PostId="4588" Score="0" Text="Could you select an answer if any one of them answers your question?" CreationDate="2022-09-08T13:42:41.600" UserId="251" />
  <row Id="4417" PostId="4578" Score="0" Text="Could you select an answer if any one of them answers your question?" CreationDate="2022-09-08T13:42:53.623" UserId="251" />
  <row Id="4418" PostId="4514" Score="0" Text="Could you select an answer if any one of them answers your question?" CreationDate="2022-09-08T13:43:03.173" UserId="251" />
  <row Id="4419" PostId="4658" Score="0" Text="Ok how to connect smoldot to substrate based blockchain ?" CreationDate="2022-09-08T17:37:05.487" UserId="3109" />
  <row Id="4420" PostId="4658" Score="0" Text="Exactly as written in the [README](https://github.com/paritytech/smoldot#wasm-light-node): `cd bin/wasm-node/javascript &amp;&amp; npm i &amp;&amp; npm start`." CreationDate="2022-09-08T18:04:17.763" UserId="94" />
  <row Id="4421" PostId="4709" Score="0" Text="I don't think its possible to subscribe on it, but you can use polling.  &#xA;What is your use-case?" CreationDate="2022-09-08T18:17:34.443" UserId="94" />
  <row Id="4422" PostId="628" Score="0" Text="Also you can add `Keypair.generate_mnemonic()` to the anwser above to generate a new address" CreationDate="2022-09-08T18:26:19.463" UserId="276" />
  <row Id="4423" PostId="4517" Score="0" Text="There is indeed as far as I know no index available to lookup extrinsic by its hash in the Substrate RPC. You will need a third-party indexer for that" CreationDate="2022-09-08T18:29:00.650" UserId="276" />
  <row Id="4425" PostId="3895" Score="0" Text="@afm Do we need to re-build the substrate-node-template after updating the dependencies? I found this package to update the dependencies. https://clearloop.github.io/sup/" CreationDate="2022-09-09T00:27:11.893" UserId="3099" />
  <row Id="4426" PostId="4690" Score="0" Text="Yep confirmed that (1) waiting for the next (second) session and (2) restarting node (in my case docker container) worked. Thank you so much!" CreationDate="2022-09-09T01:04:15.333" UserId="3130" />
  <row Id="4427" PostId="4621" Score="1" Text="IMHO, it's a bad idea by modifying the source code, which is stored in the `~/.cargo`. You might forget that later. And `cargo clean` can not touch that part. In the `Cargo.lock` other people will see you are still using that version. But in fact, you are using a different code. I still recommend you to upgrade the macOS/clang." CreationDate="2022-09-09T03:20:42.870" UserId="251" />
  <row Id="4428" PostId="4733" Score="0" Text="Does this answer your question? [error\[E0152\]: found duplicate lang item when building sp\_io](https://substrate.stackexchange.com/questions/4637/errore0152-found-duplicate-lang-item-when-building-sp-io)" CreationDate="2022-09-09T08:20:07.803" UserId="251" />
  <row Id="4429" PostId="4673" Score="0" Text="edited my answer." CreationDate="2022-09-09T08:20:53.130" UserId="167" />
  <row Id="4430" PostId="4733" Score="0" Text="not exactly because in contracts the sp_io is not directly imported, so i suppose there is a conflict when bringing the xcm with ink." CreationDate="2022-09-09T08:38:57.797" UserId="194" />
  <row Id="4431" PostId="4717" Score="0" Text="PS I just tried this command with a local node running with a `pallet-contracts`: `polkadot-js-api tx.contracts.uploadCode @test.wasm 1000000 --seed &quot;//Alice&quot; ` and it worked" CreationDate="2022-09-09T08:54:53.517" UserId="3127" />
  <row Id="4432" PostId="628" Score="0" Text="Thanks, I appreciate you answering the Python questions!" CreationDate="2022-09-09T10:48:55.293" UserId="94" />
  <row Id="4433" PostId="4734" Score="1" Text="Fix for scenario 2: https://github.com/paritytech/substrate/pull/12229" CreationDate="2022-09-09T13:20:55.740" UserId="73" />
  <row Id="4434" PostId="4734" Score="0" Text="Awesome, thanks!!" CreationDate="2022-09-09T14:02:00.320" UserId="165" />
  <row Id="4435" PostId="4640" Score="0" Text="As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-09-09T14:05:00.897" UserId="-1" />
  <row Id="4436" PostId="4725" Score="0" Text="Good catch! Something is def. wrong here. The `ExtrinsicBaseWeight` is missing as well in PolkadotJS." CreationDate="2022-09-09T14:05:25.680" UserId="94" />
  <row Id="4438" PostId="4736" Score="1" Text="Why doesn't doesn't every substrate pallet allow you to set a custom origin?" CreationDate="2022-09-09T16:06:05.260" UserId="590" />
  <row Id="4439" PostId="4725" Score="0" Text="Yea fees work, but look at how much weight PolkadotJS reports for a `System.Remark`. I can bring that down to zero, def. not enough." CreationDate="2022-09-09T16:06:08.277" UserId="94" />
  <row Id="4440" PostId="4739" Score="0" Text="Thanks, that was my hunch. I wrote a signed extension for this that works, and a call filter definitely won't work." CreationDate="2022-09-09T16:38:08.240" UserId="2060" />
  <row Id="4441" PostId="4736" Score="0" Text="&gt; Why doesn't every substrate pallet allow you to set a custom origin?&#xA;&#xA;I wondered that too.  It sure would have made our work easier." CreationDate="2022-09-09T16:39:44.167" UserId="2060" />
  <row Id="4442" PostId="4738" Score="0" Text="Maybe this post https://substrate.stackexchange.com/a/3506/234 is helpful" CreationDate="2022-09-09T17:12:38.670" UserId="234" />
  <row Id="4443" PostId="4746" Score="0" Text="The answer you provided set me on the right track to get the contract to compile. However I don't want to have the id_exists function public. I want it to be only callable by this contract. The only thing which needs to be changed is importing contracts::psp34::Internal and declaring T: PSP34 + Internal" CreationDate="2022-09-09T23:27:13.413" UserId="2752" />
  <row Id="4444" PostId="4746" Score="0" Text="For the Self::env().caller() it is also necessary to import trats::DefaultEnv" CreationDate="2022-09-09T23:29:31.140" UserId="2752" />
  <row Id="4446" PostId="4746" Score="0" Text="if you do not define the function as #[ink(message)] it will not be public, however using your approach you need to define that T is PSP34 in the id_exists fn, you can then call `instance.balance_of(T::env().caller())`, but if you want to use env access for T, it also needs to implement the Storage trait from openbrush" CreationDate="2022-09-10T00:01:16.097" UserId="170" />
  <row Id="4447" PostId="4746" Score="0" Text="Your correct about that. Thx." CreationDate="2022-09-10T00:07:33.237" UserId="2752" />
  <row Id="4448" PostId="4735" Score="1" Text="Worth noting the key difference: the `Config` trait is instantiated by the _user_ of the pallet (who implements the `Config` for their runtime) and the `extra_constants` are defined by the _author_ of the pallet - potentially totally independently of the main runtime configuration." CreationDate="2022-09-10T04:46:29.897" UserId="283" />
  <row Id="4449" PostId="4673" Score="0" Text="The reason for this, for those who are wondering, is because strings bloat the generated WebAssembly blob for the runtime and so it's better to leave them out." CreationDate="2022-09-10T05:08:21.287" UserId="283" />
  <row Id="4450" PostId="4706" Score="1" Text="This may be a bug in the runtime and it's being investigated" CreationDate="2022-09-10T17:01:45.670" UserId="283" />
  <row Id="4451" PostId="4736" Score="0" Text="What do you exactly mean by custom origin? There is a `pallet::origin` macro that allows you to define a new origin, but I am not sure if that is what you want. https://paritytech.github.io/substrate/master/frame_support/attr.pallet.html#origin-palletorigin-optional" CreationDate="2022-09-10T20:49:04.117" UserId="167" />
  <row Id="4452" PostId="4761" Score="1" Text="Check out the work we've done with [`Orchestra`](https://github.com/paritytech/polkadot/tree/master/node/orchestra) in Polkadot, and the network protocol and bridge crates [which use it](https://github.com/paritytech/polkadot/tree/master/node/network)." CreationDate="2022-09-11T01:58:49.663" UserId="283" />
  <row Id="4453" PostId="4761" Score="1" Text="It'd be nice to extract Orchestra to a separate repository or to Substrate for other projects to make use of." CreationDate="2022-09-11T01:59:08.527" UserId="283" />
  <row Id="4454" PostId="4751" Score="0" Text="Thanks for this insight! I am kinda surprised that an alternative UncheckedExtrinsic is preferred over implementing a SignedExtension. Do you know why we would avoid using a SignedExtension?" CreationDate="2022-09-11T04:33:44.130" UserId="590" />
  <row Id="4455" PostId="4745" Score="0" Text="Arjan you're almost right about the concept of pending transactions.My usecase is that if someone has deposited some amount of dots how would I come to know that from a particular account an amount of dots has deposited in my account?" CreationDate="2022-09-12T05:25:51.070" UserId="3097" />
  <row Id="4456" PostId="4709" Score="0" Text="My usecase is that if someone has deposited some amount of dots how would I come to know that from a particular account an amount of dots has deposited in my account?" CreationDate="2022-09-12T05:31:12.480" UserId="3097" />
  <row Id="4457" PostId="4738" Score="0" Text="Hi @dominique and @AurevoirXavier, I definitely have enough WND to to the transactions. I am able to use the Extrinsic tab with `asMulti`, and do a multisig balance transfer with a multisig account with threshold=2. &#xA;&#xA;I am not able to successfully use the `asMultiThrshold1` function. To me is unclear if I need a multisig with threshold=1, since I am not able to set up one using the UI." CreationDate="2022-09-12T08:10:12.627" UserId="2977" />
  <row Id="4458" PostId="4760" Score="0" Text="can you provide the code of contract you want to test? the new function (or ink constructor) should be inside the implementation of the contract storage struct" CreationDate="2022-09-12T09:12:12.247" UserId="170" />
  <row Id="4459" PostId="4709" Score="1" Text="By subscribing to events. This should **never** be done through pending transactions, since they can be invalid or removed by a re-org." CreationDate="2022-09-12T13:06:21.893" UserId="94" />
  <row Id="4460" PostId="4769" Score="0" Text="&quot;But I guess Validator always runs with pruning mode.&quot; Yes they are. What is your question now?" CreationDate="2022-09-12T13:09:24.050" UserId="94" />
  <row Id="4461" PostId="4769" Score="0" Text="why I am getting the above error? :)" CreationDate="2022-09-12T13:57:43.357" UserId="458" />
  <row Id="4462" PostId="4764" Score="0" Text="What do pallet indices in the title have to do with `AccountIndex` in the question?  &#xA;PS: For custom address lookup you can use the [Account lookup](https://substrate.stackexchange.com/questions/4339/tlookup-as-staticlookupsource-vs-taccountid)." CreationDate="2022-09-12T14:16:08.897" UserId="94" />
  <row Id="4463" PostId="4760" Score="0" Text="Sure, sry about that. I adjusted the error message and provided an example how I structured my code." CreationDate="2022-09-12T14:17:58.913" UserId="2752" />
  <row Id="4464" PostId="4764" Score="0" Text="Ah, you probably meant `pallet-indices` and not the plural of a pallet index. I see " CreationDate="2022-09-12T14:31:38.707" UserId="94" />
  <row Id="4465" PostId="1480" Score="0" Text="How would you transfer the native chain token from one account to another?&#xA;I can't find any example for that online, and the example you provided only shows how to transfer a native token from the contract to the caller." CreationDate="2022-09-12T16:10:40.093" UserId="2752" />
  <row Id="4466" PostId="4751" Score="1" Text="Actually, `SignedExtension` is possibly better. It uses the same mechanism but looks easier to plug in." CreationDate="2022-09-12T17:04:19.677" UserId="283" />
  <row Id="4467" PostId="4762" Score="0" Text="Why do you want to parse a String to an AccountId exactly?" CreationDate="2022-09-12T22:19:38.263" UserId="2752" />
  <row Id="4468" PostId="4772" Score="0" Text="Just one more question ... if validators are not running in archival mode. Then won't there be an issue of data availability? As there is no incentive to run the validator in archival mode?" CreationDate="2022-09-13T03:04:12.860" UserId="458" />
  <row Id="4469" PostId="4774" Score="0" Text="Could you point to a non trivial implementation of `Lookup` ?" CreationDate="2022-09-13T07:56:55.623" UserId="139" />
  <row Id="4470" PostId="4773" Score="0" Text="They are translating any address to an `AccountId` which I believe is the equivalent of the `AccountId` one would define in `runtime/src/lib.rs` yes?" CreationDate="2022-09-13T08:04:36.973" UserId="139" />
  <row Id="4471" PostId="4576" Score="1" Text="Could you send us more information about how to replicate your issue? Are you running PolkadotJS locally?" CreationDate="2022-09-13T10:20:47.327" UserId="2762" />
  <row Id="4472" PostId="4772" Score="1" Text="No there is no issue. There is no incentive to keep validators running in archive mode. It is not their job to keep the entire chain history. This isn't really needed." CreationDate="2022-09-13T10:53:09.203" UserId="73" />
  <row Id="4473" PostId="4773" Score="0" Text="Yes. (minimal comment length)" CreationDate="2022-09-13T11:22:51.277" UserId="94" />
  <row Id="4474" PostId="4786" Score="0" Text="Looks like that error comes from somewhere around https://android.googlesource.com/platform/external/jemalloc_new/+/aa77b3afdde56db228afb40a9b897bae4f17ebe4/include/jemalloc/internal/tsd_generic.h#104 TSD . stands for thread specific data." CreationDate="2022-09-13T13:51:08.353" UserId="85" />
  <row Id="4475" PostId="4774" Score="1" Text="Imaging converting an EVM address to a Substrate `AccountId` but you want to take the Ethereum-ChainId into account. Could be part of the context. But i don't have good example code." CreationDate="2022-09-13T14:39:15.057" UserId="94" />
  <row Id="4476" PostId="4768" Score="0" Text="I found this github repository. Looking at this, I recognized that my code was more or less correct.https://github.com/polkadot-js/ss58/blob/master/index.js" CreationDate="2022-09-13T22:32:10.787" UserId="3114" />
  <row Id="4477" PostId="4779" Score="0" Text="Could you maybe supply an example on how to instantiate the contract to be called upon? I am unclear on the syntax. The examples that I found seem to require me for some reason to call on the constructor like ExampleRef::new(). If I have a contract and want to call on another contract in there. How would the syntax for that look like?" CreationDate="2022-09-14T00:08:18.297" UserId="2752" />
  <row Id="4478" PostId="4726" Score="0" Text="What version of Polkadot are you using? The latest version of the [substrate-node-template](https://github.com/substrate-developer-hub/substrate-node-template/releases/tag/polkadot-v0.9.28) is using version 0.9.28 of Polkadot. You can look in the [Cargo.toml](https://github.com/substrate-developer-hub/substrate-node-template/blob/main/runtime/Cargo.toml) file to see what version you're using." CreationDate="2022-09-14T01:17:22.127" UserId="29" />
  <row Id="4479" PostId="4750" Score="0" Text="Please provide a [reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) otherwise it is very hard for us to debug." CreationDate="2022-09-14T01:38:02.690" UserId="29" />
  <row Id="4480" PostId="4348" Score="0" Text="hi @MuhammadZaryabRafique i am also trying to add EVM pallet in NPOS can you tell which branch of substrate you have used to add EVM pallet ??? i am facing dependency erros." CreationDate="2022-09-14T05:40:14.173" UserId="2281" />
  <row Id="4481" PostId="4797" Score="1" Text="Yeah you're right. I had to `docker system prune` to make sure new chain spec is used. Also asked for recommendation here: https://github.com/paritytech/subport/issues/466" CreationDate="2022-09-14T06:24:25.783" UserId="3130" />
  <row Id="4482" PostId="4787" Score="0" Text="Hi Dominique, thank for clarifying this. I was thinking I was using the function in a wrong way. I added a comment to the currently opened issue on this topic asking if it is possible to fix it or remove the functionality because the UI does not stop users from using non-working functions. This can lead to loss of real money if not using the testnet first." CreationDate="2022-09-14T07:43:14.473" UserId="2977" />
  <row Id="4485" PostId="4785" Score="0" Text="I just did git clone for ink repo and `cargo +nightly test` work just fine. What is your contract version? try `cargo contract -h`. mine is 1.3.0" CreationDate="2022-09-14T11:35:10.177" UserId="529" />
  <row Id="4486" PostId="4785" Score="0" Text="I have the same problem. Mine is 1.5.0" CreationDate="2022-09-14T11:53:13.627" UserId="2307" />
  <row Id="4487" PostId="4276" Score="1" Text="Please provide some context and an example of what exactly you are trying to do." CreationDate="2022-09-14T12:06:35.010" UserId="94" />
  <row Id="4488" PostId="4799" Score="0" Text="Have you tried to make `query` call for the extrinsic? I usually do that if I expect `tx` to fail." CreationDate="2022-09-14T12:15:50.817" UserId="529" />
  <row Id="4490" PostId="4095" Score="0" Text="@MuhammadTalhaDar i am also trying to add EVM_Pallet in my runtime can you tell me which version of rust you have used and which branch of substrate you have used i also want to integrate evm pallet in NPOS." CreationDate="2022-09-14T12:48:20.200" UserId="2281" />
  <row Id="4491" PostId="4095" Score="0" Text="polkadot v0.9.22 with nightly rust toolchain" CreationDate="2022-09-14T13:14:41.677" UserId="2809" />
  <row Id="4492" PostId="4798" Score="0" Text="Does this not work for you? https://substrate.stackexchange.com/a/4718/94" CreationDate="2022-09-14T14:08:10.507" UserId="94" />
  <row Id="4493" PostId="4801" Score="1" Text="There is also a good post here: https://substrate.stackexchange.com/questions/2148/transactions-lifecycle" CreationDate="2022-09-14T15:20:59.060" UserId="29" />
  <row Id="4495" PostId="4814" Score="1" Text="I was so close omg, i was just searching in the wrong direction ! Thanks a lot for helping me out !" CreationDate="2022-09-14T18:54:56.933" UserId="2355" />
  <row Id="4496" PostId="4785" Score="1" Text="While it does not fix your issue, you can use `cargo test` instead, it will work." CreationDate="2022-09-14T18:58:30.710" UserId="151" />
  <row Id="4497" PostId="3992" Score="0" Text="I'm hitting the same problem...did you manage to get a contract deployed &amp; instantiated using cargo contract?" CreationDate="2022-09-14T19:06:23.523" UserId="2423" />
  <row Id="4500" PostId="4785" Score="0" Text="@Maario mine is also 1.5.0" CreationDate="2022-09-15T00:07:37.233" UserId="3121" />
  <row Id="4501" PostId="4785" Score="0" Text="@Cromm you are right, the tests do run correctly without the nightly channel" CreationDate="2022-09-15T00:08:25.037" UserId="3121" />
  <row Id="4502" PostId="4785" Score="0" Text="What about building it? I got the same error but couldn't build without the nightly channel" CreationDate="2022-09-15T00:24:16.720" UserId="2307" />
  <row Id="4503" PostId="4785" Score="0" Text="@marethyu same, build did not work" CreationDate="2022-09-15T01:06:54.590" UserId="3121" />
  <row Id="4504" PostId="4779" Score="0" Text="I think this answer covers my question. I will open a new question, for the detail of the implementation. I have an idea thx to your answer, but smth is still not working correctly." CreationDate="2022-09-15T05:41:04.473" UserId="2752" />
  <row Id="4505" PostId="4820" Score="1" Text="If I'm not mistaken, bootnodes are only to allow peer discovering right?" CreationDate="2022-09-15T05:42:00.183" UserId="2102" />
  <row Id="4506" PostId="4820" Score="1" Text="It provides an endpoint, where you could access the whole network. Nodes will exchange their network list when they get connected." CreationDate="2022-09-15T05:48:52.593" UserId="251" />
  <row Id="4507" PostId="4823" Score="0" Text="By custom pallet, I assume you mean you created a custom RPC to call on a method. Is that correct?" CreationDate="2022-09-15T06:37:39.457" UserId="2752" />
  <row Id="4508" PostId="4785" Score="0" Text="I don't seem to have the same error. Working on version 1.4.0. Maybe try downgrading?" CreationDate="2022-09-15T06:49:49.750" UserId="2752" />
  <row Id="4509" PostId="4785" Score="0" Text="@rạohs I do cargo install cargo-contract@1.3.0 --force and 1.4.0 but both build fails. @@" CreationDate="2022-09-15T07:32:10.343" UserId="2307" />
  <row Id="4510" PostId="4404" Score="0" Text="Call this `clear_prefix` for one prefix once per block OR could I call it on multiple different prefixes once per block without passing the last cursor? So in example: `clear_prefix(prefix_1, half_limit, None)` AND `clear_prefix(prefix_2, half_limit, None)` once per block?" CreationDate="2022-09-15T09:57:42.403" UserId="2484" />
  <row Id="4511" PostId="4404" Score="0" Text="Maybe some documentation for this would be nice to use this simpler approach as an API user." CreationDate="2022-09-15T10:02:05.330" UserId="2484" />
  <row Id="4512" PostId="4826" Score="0" Text="Did you have a look at `on_idle`? It gets the remaining weight passed in." CreationDate="2022-09-15T10:14:48.603" UserId="94" />
  <row Id="4515" PostId="4830" Score="0" Text="Thanks. But to be sure. Should we open HRMP between our parachain and Rococo?" CreationDate="2022-09-15T12:23:26.860" UserId="3171" />
  <row Id="4516" PostId="4837" Score="1" Text="Where do you want to use this crate? In a pallet or just in a test?" CreationDate="2022-09-15T13:06:12.130" UserId="94" />
  <row Id="4517" PostId="4837" Score="0" Text="@OliverTale-Yazdi in my project/precompiles/utils/src/lib.rs, which is for running precompile codes, not a pallet nor a test" CreationDate="2022-09-15T13:17:58.107" UserId="1789" />
  <row Id="4521" PostId="4819" Score="0" Text="I want to batch and filter calls by arguments. The idea was to not modify the original pallets, so I can sync with dev branch. So, I want to change some «rules» of transactions, but I don't want to change their pallets code." CreationDate="2022-09-15T16:14:53.090" UserId="2403" />
  <row Id="4522" PostId="4830" Score="0" Text="There is no way to open HRMP between parachain and relaychain.&#xA;&#xA;HRMP is designed for `parachain &lt;&gt; parachain`." CreationDate="2022-09-15T16:27:51.867" UserId="251" />
  <row Id="4524" PostId="4847" Score="0" Text="Indeed this works, thanks! But that does not solve the issue, it shouldn't be needed to use the same specific release date ? Or does it ?" CreationDate="2022-09-15T19:01:50.293" UserId="151" />
  <row Id="4525" PostId="4851" Score="0" Text="Can you please describe more what you plan to do after you revert to that previous block?&#xA;&#xA;Pretty sure what you are describing could be done in the client by simply adding an `if` statement and do not allow the import of block `n + 1`, or something along those lines." CreationDate="2022-09-15T21:28:06.660" UserId="28" />
  <row Id="4526" PostId="4698" Score="0" Text="It's kinda like running a bittorrent client. When limiting the traffic, essentially it should limit the in and out traffic for each peer in a somehow &quot;fair&quot; way. Or even simpler, to limit the node to not offer any historical block download (even it's an archive node). By limiting the peers, there's still a high chance that the peers want to download the full block history." CreationDate="2022-09-16T02:38:34.227" UserId="544" />
  <row Id="4527" PostId="4855" Score="0" Text="Thanks alot for replying. I have observed mutiple projects which had defined types alias for primitive types. Did they all registered there type? For eg - Automata ContextFree project have defined BridgeChainId which are primitive underneath. But i do not see BridgeChainId in types file you shared. &#xA;&#xA;Also, i tested with tuple struct it didn't work for me but then i tied with normal struct it works but don't you think its not logical to use struct for only a single member? What do you think is the most efficient way to overcome this issue?" CreationDate="2022-09-16T02:56:34.670" UserId="3178" />
  <row Id="4528" PostId="4855" Score="0" Text="Could you provide the link?" CreationDate="2022-09-16T03:13:06.977" UserId="251" />
  <row Id="4529" PostId="4855" Score="0" Text="It looks like they also tweak the types. https://github.com/automata-network/automata" CreationDate="2022-09-16T03:23:05.140" UserId="251" />
  <row Id="4530" PostId="4855" Score="0" Text="How i can too tweak types for my pallet?" CreationDate="2022-09-16T03:41:15.343" UserId="3178" />
  <row Id="4531" PostId="4855" Score="1" Text="It looks like all these projects have added there types here. Automata also defined BridgeChainId [Here](https://github.com/polkadot-js/apps/blob/master/packages/apps-config/src/api/spec/automata.ts)" CreationDate="2022-09-16T03:48:59.317" UserId="3178" />
  <row Id="4532" PostId="4855" Score="0" Text="Correct. But their README is outdated (that only works with `metadata version &lt; v14`)." CreationDate="2022-09-16T03:53:15.817" UserId="251" />
  <row Id="4533" PostId="4858" Score="1" Text="Actually, I don't recommend you to use that for the log. Some log are pretty long, the output might be truncated if you force it to use color." CreationDate="2022-09-16T04:27:04.087" UserId="251" />
  <row Id="4534" PostId="4859" Score="0" Text="Wow. thank you :)" CreationDate="2022-09-16T04:42:36.713" UserId="1789" />
  <row Id="4535" PostId="4819" Score="1" Text="@broomrider I think the most simple way is to fork these pallets." CreationDate="2022-09-16T08:30:57.077" UserId="393" />
  <row Id="4536" PostId="1906" Score="0" Text="Would be nice if the sending chain emitted the message hash as an event (by default). That would allow message hash to be followable by external block explorers. Even if a topic is set, an external block explorer will not be able to follow the message unless the source chain emits an event with the sent topic in it." CreationDate="2022-09-16T08:59:01.247" UserId="85" />
  <row Id="4537" PostId="4823" Score="0" Text="No not created rpc just want to use it as other api.tx calls are being made" CreationDate="2022-09-16T09:48:03.673" UserId="354" />
  <row Id="4538" PostId="3187" Score="0" Text="I've been getting this error when I continuously create new `ApiPromise` objects in polkadot-js in React. ```await ApiPromise.create({provider: ...});``` Is this bad practice and should I instead be sharing the `ApiPromise` object between my classes?" CreationDate="2022-09-16T13:25:58.413" UserId="380" />
  <row Id="4542" PostId="4794" Score="0" Text="A `Call` does not contain the arguments, so you cannot filter by that." CreationDate="2022-09-16T15:15:54.013" UserId="94" />
  <row Id="4543" PostId="4698" Score="0" Text="So your node would only be a leecher in the network?" CreationDate="2022-09-16T19:58:03.890" UserId="73" />
  <row Id="4544" PostId="4871" Score="1" Text="Can you provide a bit more information? Which language, which context and which address?" CreationDate="2022-09-16T22:07:46.623" UserId="2752" />
  <row Id="4545" PostId="4872" Score="0" Text="Yeah I have these codes but it's just the same as tutorial I'm following so I didn't post it. I only modified ContractAccessWeight and DeletionWeightLimit type there because of some compile error. Do you think the error is from these type?" CreationDate="2022-09-17T01:01:45.980" UserId="2307" />
  <row Id="4546" PostId="4870" Score="0" Text="What types of contracts? I presume ink using the contracts pallet or evm &amp; frontier, but please update your question to be more explicit?" CreationDate="2022-09-17T02:31:26.543" UserId="34" />
  <row Id="4547" PostId="4871" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-09-17T02:34:10.927" UserId="-1" />
  <row Id="4548" PostId="3992" Score="1" Text="@csknk, it's been a while, but I think i was successful..  try this page i wrote up:  https://github.com/elicorrales/my-first-substrate-project-series-III-part-5" CreationDate="2022-09-17T02:41:58.460" UserId="2947" />
  <row Id="4549" PostId="4870" Score="0" Text="You're correct, they are ink contracts." CreationDate="2022-09-17T04:12:11.007" UserId="1858" />
  <row Id="4550" PostId="4794" Score="0" Text="But they should be stored somewhere. When I call an extrinsic, I pass all arguments." CreationDate="2022-09-17T15:31:16.583" UserId="2403" />
  <row Id="4551" PostId="4875" Score="2" Text="I think you need to better clarify your question. Practically speaking, a node does not have any &quot;managed&quot; accounts. What is exactly you are trying to do or do you want to know?" CreationDate="2022-09-17T21:16:56.970" UserId="28" />
  <row Id="4554" PostId="4875" Score="0" Text="@ShawnTabrizi so how it is possible that I can submit tx using those accounts without using private key (just specifying address)? That because node has knowledge about private key of that account - that is why I call it &quot;managed&quot;." CreationDate="2022-09-18T13:36:02.863" UserId="2760" />
  <row Id="4556" PostId="4881" Score="1" Text="you can see the implementation here: https://github.com/liberland/liberland_substrate/blob/main/frame/llm/src/lib.rs#L140, I put T::Assetid as ``` type AssetId: IsType&lt;&lt;Self as pallet_assets::Config&gt;::AssetId&gt;&#xA;			+ Parameter&#xA;			+ From&lt;u32&gt;&#xA;			+ Ord&#xA;			+ Copy;```" CreationDate="2022-09-18T16:53:48.860" UserId="560" />
  <row Id="4557" PostId="4882" Score="1" Text="I did an implementation and answered this here:&#xA;https://substrate.stackexchange.com/questions/2857/how-do-i-hardcode-asset-ids" CreationDate="2022-09-18T17:00:52.347" UserId="560" />
  <row Id="4558" PostId="4882" Score="0" Text="Wow thank you!! this was a tricky one!!" CreationDate="2022-09-19T00:49:51.283" UserId="309" />
  <row Id="4559" PostId="4698" Score="0" Text="I don't think not serving block history is equal to being a leecher. What if a team wants to a few boot nodes which are not supposed to support the block downloading, but just peer discovery and become a hub for latest transaction / block relaying?" CreationDate="2022-09-19T05:09:28.823" UserId="544" />
  <row Id="4560" PostId="4808" Score="0" Text="After applying this my chain is working fine. &#xA;Thanks for the support" CreationDate="2022-09-19T08:05:41.817" UserId="406" />
  <row Id="4561" PostId="3548" Score="0" Text="It only needs to be good enough so the epoch randomness winds up good enough to keep going, i.e. &quot;like the outcome&quot; means &quot;corrupt the randomness&quot; in Praos.  You might &quot;like the outcome&quot; for other reasons, but they all translate into using randomness (in)correctly.  At worst you need tools like https://github.com/kobigurk/aggregatable-dkg but sometimes you prove something simpler works." CreationDate="2022-09-19T08:28:26.763" UserId="1810" />
  <row Id="4562" PostId="4890" Score="0" Text="Thanks for your answer. It's very complicated for me at least, because you are on a different level, but you are saying, that `pallet_lottery` is safe for small lottery pots? My actual use case is the following: Generate a voting incentive with a lottery. So you can compare it with `pallet_democracy`. Only reward in `unlock_vote_lock`. When the voting period is over, find a random number and with that determine a lucky winner. So that the voters are incentivised to vote, but the lottery pot is relatively small." CreationDate="2022-09-19T09:09:09.433" UserId="2484" />
  <row Id="4563" PostId="4891" Score="5" Text="`apt install protobuf-compiler` on Debian." CreationDate="2022-09-19T09:23:24.560" UserId="94" />
  <row Id="4564" PostId="4894" Score="0" Text="Is there a new update? I don't need this before. We should put this on Substrate doc (maybe there is one but I didn't find it)." CreationDate="2022-09-19T09:24:08.377" UserId="251" />
  <row Id="4565" PostId="4894" Score="0" Text="Yeah, `prost-build` was updated: https://github.com/tokio-rs/prost/pull/657" CreationDate="2022-09-19T09:25:54.420" UserId="73" />
  <row Id="4566" PostId="4891" Score="1" Text="Thanks! I'm on Arch `pacman -S protobuf` works for me." CreationDate="2022-09-19T09:26:14.173" UserId="251" />
  <row Id="4567" PostId="4894" Score="1" Text="https://docs.substrate.io/install/linux/ it is also already mentioned here as required package." CreationDate="2022-09-19T09:27:02.640" UserId="73" />
  <row Id="4568" PostId="4893" Score="0" Text="I have tried to build using rust 1.63 but it still shows the error and i have added Evm_pallet std feature in  cargo.toml" CreationDate="2022-09-19T09:58:52.263" UserId="2281" />
  <row Id="4570" PostId="3992" Score="0" Text="The article you linked to is very useful - thanks" CreationDate="2022-09-19T10:28:31.693" UserId="2423" />
  <row Id="4571" PostId="4893" Score="0" Text="Rust version is not related to this. Do you have a link to your runtime?" CreationDate="2022-09-19T10:36:10.540" UserId="73" />
  <row Id="4572" PostId="4890" Score="0" Text="No.  I'm saying you need to understand how to delay the lottery after it closes until the chain can give you good randomness." CreationDate="2022-09-19T11:56:16.393" UserId="1810" />
  <row Id="4573" PostId="4901" Score="0" Text="You can remove aura from your code and use babe only ." CreationDate="2022-09-19T12:41:29.400" UserId="2281" />
  <row Id="4574" PostId="4751" Score="1" Text="@Yatusabes the answer is correct. If you want to modify the priority, create a new SignedExtension. Order matters" CreationDate="2022-09-19T13:30:16.163" UserId="527" />
  <row Id="4575" PostId="4880" Score="1" Text="Could you share your directory structure, and where you are building from? Also, double check if there is a parent directory with a Cargo.toml as outlined here: https://stackoverflow.com/questions/61134990/cargo-would-not-build-even-when-src-main-rs-is-available" CreationDate="2022-09-19T15:16:37.347" UserId="703" />
  <row Id="4576" PostId="4753" Score="0" Text="Thanks, @rob, but this was asking about `Normal` weight and a discrepancy seen in the accounting for it." CreationDate="2022-09-19T16:07:12.040" UserId="2441" />
  <row Id="4577" PostId="4725" Score="1" Text="Thanks, @OliverTale-Yazdi. The main issue turned out to be a bug in frontier where weight was not refunded in post-dispatch (link in my edit above), but it looks like your issue is also relevant. Thanks for digging in!" CreationDate="2022-09-19T16:09:36.603" UserId="2441" />
  <row Id="4579" PostId="4872" Score="0" Text="@marethyu Hmm, okay. You shouldn't need to modify ContractAccessWeight or DeletionWeightLimit from their defaults to get the node to build. Do you have a link to share to the code?" CreationDate="2022-09-19T19:53:04.777" UserId="703" />
  <row Id="4580" PostId="4872" Score="0" Text="If you are only wanting to test ink! smart contracts, you can use the preconfigured contracts node: https://github.com/paritytech/substrate-contracts-node. These tutorials walk through how to use it: https://docs.substrate.io/tutorials/smart-contracts/" CreationDate="2022-09-19T19:54:02.617" UserId="703" />
  <row Id="4581" PostId="4911" Score="0" Text="Why are storage lookups suboptimal? As long as they are done offchain there are no problems with storage lookups." CreationDate="2022-09-19T21:34:33.790" UserId="73" />
  <row Id="4582" PostId="4912" Score="0" Text="Thanks a lot! Really appreciate it. Ill test both options." CreationDate="2022-09-19T22:27:03.560" UserId="2635" />
  <row Id="4583" PostId="4880" Score="0" Text="@PeterWhite resolved. My contract was nested in a parent containing a separate `Cargo.toml` file. All I did was move the contract folder out. Thank you very much." CreationDate="2022-09-20T03:27:55.017" UserId="3121" />
  <row Id="4584" PostId="4859" Score="0" Text="this one is easy to use: https://github.com/rust-osdev/ansi_rgb" CreationDate="2022-09-20T03:36:38.763" UserId="1789" />
  <row Id="4586" PostId="4314" Score="0" Text="Sorry, I meant to include Centrifuge's repo there. That's our fork where we're working on extending it to support contracts.&#xA;&#xA;But, my question is more related towards the RPC support in substrate itself. I mean, if substrate has something for it, I could use it irrespective of the library." CreationDate="2022-09-20T07:08:38.080" UserId="566" />
  <row Id="4590" PostId="4916" Score="1" Text="It works. Thanks Alex." CreationDate="2022-09-20T11:21:03.097" UserId="3118" />
  <row Id="4591" PostId="4911" Score="0" Text="We use Subsquid, which only works with the chain while querying the storage." CreationDate="2022-09-20T13:06:19.497" UserId="1803" />
  <row Id="4592" PostId="4911" Score="0" Text="I don't get your answer." CreationDate="2022-09-20T14:02:27.557" UserId="73" />
  <row Id="4594" PostId="4880" Score="0" Text="Great, glad to hear it! :)" CreationDate="2022-09-20T14:43:19.277" UserId="703" />
  <row Id="4596" PostId="4875" Score="1" Text="The node does NOT have knowledge of the private key, so no. You will still need to submit a signed message which is signed externally to the blockchain." CreationDate="2022-09-20T17:48:53.693" UserId="28" />
  <row Id="4597" PostId="4912" Score="0" Text="I've been trying to compile this way, but I got the same error. Debugging the UI, it seems it check if the contract bundle has:&#xA;a metadataVestion string, which is missimg&#xA;a spec object at the root level, but the compiler generates a V3: { spec: ... }&#xA;&#xA;Maybe for substrate v3 (i mean the V3.0.0 tag in the repo) there is another way of writing smart contracts?&#xA;&#xA;Thanks very much" CreationDate="2022-09-20T18:01:03.707" UserId="2635" />
  <row Id="4599" PostId="4910" Score="0" Text="Ok so basically:&#xA;1. iniitializing (at genesis) the `pallet_staking` with `force_era: ForceNone` blocks all election eras (and so the validator set in the session pallet) to be updated, effectively ensuring PoA.&#xA;2. During a migration to NPoS should be then sufficient to call `pallet_staking::force_new_era(root_origin)` should re-enable normal election cycle hence enabling normal DPoS/NPoS.  &#xA;&#xA;Is all of this correct?" CreationDate="2022-09-20T19:20:31.143" UserId="2147" />
  <row Id="4600" PostId="3961" Score="0" Text="About `parachains-integration-tests`, just to mention that the tests `./examples` are expecting a modified Polkadot/Kusama runtimes with `pallet_sudo`. The reason for that is to bypass Governance when a `root` origin is required." CreationDate="2022-09-21T08:45:01.173" UserId="527" />
  <row Id="4601" PostId="942" Score="1" Text="the trait `From&lt;&lt;T as frame_system::Config&gt;::AccountId&gt;` is not implemented for `[u8; 32]`.  i got this error" CreationDate="2022-09-21T09:26:38.170" UserId="445" />
  <row Id="4602" PostId="4875" Score="0" Text="@ShawnTabrizi did you ever run dev node? I don't pass any private key to UI also it even don't ask me about private key. I just open polkadot.js.org (with local node set) and see account and can submit tx without any private key on front side." CreationDate="2022-09-21T09:43:07.490" UserId="2760" />
  <row Id="4603" PostId="4911" Score="0" Text="An off-chain storage lookups are not supported by Subsquid, which is our Indexer. For every storage lookup, it goes to the chain directly. That's why I think it's suboptimal.&#xA;Extending event also seems to be a bad choice.&#xA;I assume this discussion is more about Subsquid and its features and less about Substrate. I just wanted to elaborate on the downsides of having big Events." CreationDate="2022-09-21T09:49:50.900" UserId="1803" />
  <row Id="4604" PostId="4910" Score="0" Text="Yes, all correct." CreationDate="2022-09-21T10:08:28.097" UserId="167" />
  <row Id="4605" PostId="4911" Score="0" Text="What are you even trying to do? Index the arguments of extrinsics? You can query the nodes' storage all you want from subsquid, that is not sub-optimal. Unless maybe you are a validator and have performance concerns." CreationDate="2022-09-21T12:18:43.763" UserId="94" />
  <row Id="4606" PostId="4931" Score="0" Text="It only works in Firefox for me because of some policy. Are you using MacOS? Docker behaves a bit different there as well." CreationDate="2022-09-21T13:51:17.190" UserId="94" />
  <row Id="4607" PostId="4911" Score="0" Text="Suboptimal is querying chain each block while indexing billions of blocks. I'm trying to understand the downsides of having big Events with 10-20 fields." CreationDate="2022-09-21T14:21:02.433" UserId="1803" />
  <row Id="4608" PostId="4931" Score="0" Text="ok so the above command works for you on firefox, I will check that. Yes indeed im using MacOS. So its not necessarily an error in the command..." CreationDate="2022-09-21T14:22:21.810" UserId="298" />
  <row Id="4609" PostId="4932" Score="0" Text="hey, i tried this but i think its a docker thing, because if i run a node-template outside of docker then it works fine." CreationDate="2022-09-21T14:23:16.313" UserId="298" />
  <row Id="4610" PostId="4933" Score="0" Text="i tried this but then i try connect via ws://0.0.0.0:9944 instead of 127.0.0.1. And then the console error is `WS endpoint= ws://0.0.0.0:9944 The page at 'https://polkadot.js.org/apps/?rpc=ws%3A%2F%2F0.0.0.0%3A9944#/addresses' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://0.0.0.0:9944/'. This endpoint should be available via WSS. Insecure access is deprecated.`&#xA; + `...Connecting to a non-secure WebSocket server from a secure origin is deprecated.`&#xA;&#xA;then i try wss:// and get: `API-WS: disconnected from wss://0.0.0.0:9944: 1006:: Abnormal Closure`" CreationDate="2022-09-21T14:47:47.793" UserId="298" />
  <row Id="4611" PostId="4933" Score="0" Text="Yep, to solve that you just need to follow Guantong's answer." CreationDate="2022-09-21T14:49:31.440" UserId="251" />
  <row Id="4612" PostId="4933" Score="0" Text="my insecure content is already set to Allow. I wonder if the command is working for anyone, perhaps its my mac m2 on chrome with Docker, because it works fine without Docker." CreationDate="2022-09-21T14:53:02.100" UserId="298" />
  <row Id="4613" PostId="4929" Score="1" Text="Can you provide your full code(like a repo)? So that we can reproduce your problem" CreationDate="2022-09-21T14:53:43.383" UserId="1959" />
  <row Id="4614" PostId="4933" Score="0" Text="From your screenshot, I think you are still in 'secure' mode." CreationDate="2022-09-21T15:06:18.873" UserId="251" />
  <row Id="4615" PostId="4933" Score="0" Text="that was an old screenshot, now insecure mode is allowed, and still same behaviour. i updated the main comment to show that." CreationDate="2022-09-21T15:13:37.230" UserId="298" />
  <row Id="4616" PostId="4931" Score="0" Text="Try `--net=host` instead of the ports. It should only be used for local development and not deployment." CreationDate="2022-09-21T15:15:56.600" UserId="94" />
  <row Id="4617" PostId="4931" Score="0" Text="i tried `--net=host` replacing the -p ports, but then it attaches to 0.0.0.0 instead of 127.0.0.1, so i try to connect to ws://0.0.0.0:9944 and i get `...insecure access deprecated.`" CreationDate="2022-09-21T15:20:48.860" UserId="298" />
  <row Id="4618" PostId="4933" Score="0" Text="Could you try `curl` your 9933 rpc port? And what about add `--network=&quot;host&quot;` to your docker command or run with `127.0.0.1:9944:9944`?" CreationDate="2022-09-21T15:45:57.773" UserId="251" />
  <row Id="4619" PostId="1790" Score="0" Text="Using this method, I get &quot;next_key returned a key with no value at []&quot; logged in the console. The functionality works fine, just getting this which seems to come from the storage pallet. Is it ok to ignore it?" CreationDate="2022-09-21T17:41:07.137" UserId="2136" />
  <row Id="4620" PostId="4875" Score="1" Text="This is because Polkadot JS detects these dev accounts, and provides them to you through the UI, not the node. Its like a global agreement that these accounts are well known in the Substrate and Polkadot community, and thus they show up everywhere." CreationDate="2022-09-21T21:22:24.093" UserId="28" />
  <row Id="4621" PostId="1790" Score="0" Text="that means that there are probably no more contributions to query" CreationDate="2022-09-21T21:24:06.750" UserId="28" />
  <row Id="4623" PostId="4934" Score="0" Text="Are you asking about the blocks that the moonbeam collators send to Polkadot, or the transaction pool of moonbeam itself?" CreationDate="2022-09-21T23:44:33.490" UserId="28" />
  <row Id="4624" PostId="4399" Score="1" Text="I've just updated the answer." CreationDate="2022-09-22T05:57:25.633" UserId="251" />
  <row Id="4625" PostId="4948" Score="0" Text="Can you provide code reference or docs or in-depth docs to understand?" CreationDate="2022-09-22T06:07:42.357" UserId="3216" />
  <row Id="4626" PostId="4948" Score="0" Text="I updated the answer." CreationDate="2022-09-22T07:19:32.290" UserId="251" />
  <row Id="4627" PostId="4934" Score="0" Text="@ShawnTabrizi I am asking about the blocks that the moonbeam collators send to Polkadot." CreationDate="2022-09-22T07:42:18.587" UserId="3211" />
  <row Id="4629" PostId="1790" Score="0" Text="Yep that's what I assumed. So that message will always be logged because the iterator will always, eventually, run out of contributions to query. In my personal opinion, it would be better for that message not to be logged (since it is inevitable) but it's not a big deal." CreationDate="2022-09-22T10:31:11.510" UserId="2136" />
  <row Id="4630" PostId="4875" Score="0" Text="@ShawnTabrizi I see. I thought it works similar to ETH node which manage accounts and it can be accessed via RPC - especially after I noticed mentioned in question call to storage." CreationDate="2022-09-22T11:20:56.950" UserId="2760" />
  <row Id="4631" PostId="4953" Score="1" Text="Thanks a lot! It worked after putting `*` in quotes." CreationDate="2022-09-22T11:34:10.360" UserId="3217" />
  <row Id="4632" PostId="4953" Score="0" Text="Please consider marking your question as &quot;answered&quot; so that other people can easily find it." CreationDate="2022-09-22T11:59:32.517" UserId="94" />
  <row Id="4633" PostId="4827" Score="0" Text="Also would like to know this.&#xA;It does seem like the balance is checked in the `send_raw_transaction` EVM call [here](https://github.com/paritytech/frontier/blob/e8dbed108867e0bbdcc69c62ad488ec58f7aa1e7/primitives/evm/src/validation.rs#L139).&#xA;Want to know if there is a clean way to bypass this for certain precompiles." CreationDate="2022-09-22T12:58:07.787" UserId="3218" />
  <row Id="4634" PostId="4942" Score="0" Text="When they bond more funds are those funds split evenly between their nominations? How can I derive the total amount they have bonded to their nominations?" CreationDate="2022-09-22T14:34:59.980" UserId="3064" />
  <row Id="4635" PostId="4942" Score="1" Text="I think you need to look more into the [Phragmen election](https://wiki.polkadot.network/docs/learn-phragmen) process used in Polkadot. Basically, we have an algorithm which automatically distributes your funds based on a set of criteria, one of which is make sure validators have as close to even amount of stake across them all. This means, you do not control how much each validator gets, but an algorithm will." CreationDate="2022-09-22T15:15:21.347" UserId="28" />
  <row Id="4636" PostId="3887" Score="0" Text="I think it _may_ be related to [this issue](https://github.com/rust-lang/rust-analyzer/issues/12973) related to build.rs (there is a dup issue calling out cyclic deps). This was just &quot;fixed&quot; upstream in RA, so it should land in a release  and make it's way into the VSCode extension " CreationDate="2022-09-22T19:17:16.867" UserId="34" />
  <row Id="4637" PostId="4961" Score="0" Text="Try importing it &lt;use pallet_scheduler&gt;" CreationDate="2022-09-22T20:36:33.960" UserId="351" />
  <row Id="4638" PostId="4961" Score="0" Text="If I do that I get an unresolved import `pallet_scheduler` error ```  --- stderr&#xA;     Compiling node-template-runtime v4.0.0-dev (/home/bosr/rust/substrate-node-template/runtime)&#xA;  error[E0432]: unresolved import `pallet_scheduler`&#xA;   --&gt; /home/bosr/rust/substrate-node-template/runtime/src/lib.rs:9:5&#xA;    |&#xA;  9 | use pallet_scheduler;&#xA;    |     ^^^^^^^^^^^^^^^^ no external crate `pallet_scheduler`&#xA;```" CreationDate="2022-09-22T20:58:55.533" UserId="716" />
  <row Id="4639" PostId="4467" Score="0" Text="It's still unclear what you want to do. I mean, why not write an independent Rust program (something like staking-miner)?" CreationDate="2022-09-23T02:54:25.983" UserId="251" />
  <row Id="4640" PostId="4911" Score="1" Text="Perhaps someone can turn this into an answer: the main downside of Events with 10-20 fields is that each event incurs some storage overhead and computational overhead during cleanup. In practice, as Events are themselves stored (temporarily) in the state of the chain, there is little meaningful difference between emitting larger events versus emitting more smaller events." CreationDate="2022-09-23T05:16:44.140" UserId="283" />
  <row Id="4641" PostId="4911" Score="0" Text="But it sounds like there might be an XY problem here; the statement 'While indexing it's impossible to extract information from the Extrinsic call when Extrinsic has optional parameters' is suspicious. The parity-scale-codec (see [docs](https://docs.substrate.io/reference/scale-codec/)) encodes Optional values as 0x00 when `None`." CreationDate="2022-09-23T05:18:40.560" UserId="283" />
  <row Id="4642" PostId="4961" Score="0" Text="Does it work if you remove the '.git' at the end of the Substrate URL in your Cargo.toml? Also, this line must be in the Cargo.toml file for the runtime crate, not any other Cargo.toml file." CreationDate="2022-09-23T05:21:08.190" UserId="283" />
  <row Id="4643" PostId="4933" Score="0" Text="i discovered its because of m1/m2 mac, which i forgot to mention. It works fine on Mac Intel, with the `--unsafe-ws-external` flag" CreationDate="2022-09-23T10:59:21.920" UserId="298" />
  <row Id="4644" PostId="4933" Score="0" Text="You only need to do that in a different network ENV. I suggest you to check your docker network configurations. Is it use bridge or NAT or localhost?" CreationDate="2022-09-23T11:19:18.033" UserId="251" />
  <row Id="4645" PostId="4968" Score="0" Text="Does the syncing process get stuck? IIUC, these are some fork blocks that you could ignore them." CreationDate="2022-09-23T11:42:09.943" UserId="251" />
  <row Id="4646" PostId="4968" Score="0" Text="Yes, the syncing process gets stuck after seeing that error. It drops all the peers and stops syncing. I'm trying to follow this now: https://github.com/paritytech/substrate/issues/10103#issuecomment-1256102788" CreationDate="2022-09-23T12:14:43.423" UserId="379" />
  <row Id="4647" PostId="4961" Score="0" Text="No, that didn't make a difference.  All the other dependencies end in .git as well.  Yes, I am using Cargo.toml and that is the only toml file I have." CreationDate="2022-09-23T13:08:37.067" UserId="716" />
  <row Id="4648" PostId="4948" Score="0" Text="Thanks for your quick response" CreationDate="2022-09-23T13:18:04.907" UserId="3216" />
  <row Id="4650" PostId="4925" Score="0" Text="Useful encoded call data from Guantong&#xA;0x29000101000214000400000000070010a5d4e81300000000070010a5d4e80006000700f2052a01381700e8030000e803000000900100140d0100040001003121" CreationDate="2022-09-23T13:56:33.383" UserId="3171" />
  <row Id="4651" PostId="4925" Score="1" Text="Yeah, I delete it because it only can be decoded in your parachain. And I added the screeshot for everyone to see." CreationDate="2022-09-23T14:01:13.483" UserId="1959" />
  <row Id="4652" PostId="4925" Score="0" Text="When exactly the transaction will be executed after motion?&#xA;https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpencol-roc-00.pendulumchain.tech#/council/motions" CreationDate="2022-09-23T14:34:41.167" UserId="3171" />
  <row Id="4653" PostId="4925" Score="0" Text="Sorry. I have the same Barrier error. Can we talk via some google meeting?" CreationDate="2022-09-23T15:17:04.107" UserId="3171" />
  <row Id="4654" PostId="4925" Score="0" Text="Could you please provide your execution block number or TG: https://t.me/jiguantong" CreationDate="2022-09-23T15:24:57.363" UserId="1959" />
  <row Id="4655" PostId="4925" Score="2" Text="I think that question is off topic. Maybe you should ask another question about how motion works. I’d like to answer it there." CreationDate="2022-09-23T15:39:58.553" UserId="251" />
  <row Id="4656" PostId="4925" Score="0" Text="https://substrate.stackexchange.com/questions/4971/i-created-a-motion-and-want-to-know-when-code-will-be-executed" CreationDate="2022-09-23T16:20:37.663" UserId="3171" />
  <row Id="4657" PostId="4929" Score="0" Text="https://github.com/JuaniRios/xcm-emulator/blob/xcmp-bug/xcm-emulator/xcmp-bug/src/lib.rs#:~:text=fn%20new_fungible_reserve_transfer()%20%7B" CreationDate="2022-09-23T16:24:55.040" UserId="2884" />
  <row Id="4658" PostId="4968" Score="0" Text="I narrowed down the issue in https://github.com/paritytech/substrate/issues/10103#issuecomment-1256449790" CreationDate="2022-09-23T17:05:45.633" UserId="379" />
  <row Id="4659" PostId="4934" Score="0" Text="Just have a look at the finalized blocks of the Moonbeam chain. These are what the collators have sent to relay-chain validators. There are maybe competing blocks that have been lost in cyberspace, and there is no good archive for such blocks at this time." CreationDate="2022-09-23T20:26:34.710" UserId="283" />
  <row Id="4660" PostId="4965" Score="0" Text="Based on a bit of experimentation, I don't believe that this is currently possible. Perhaps one of the FRAME experts can weigh in." CreationDate="2022-09-23T20:32:36.833" UserId="283" />
  <row Id="4661" PostId="4977" Score="0" Text="You may find `capi`, which builds on top of this SCALE stack, useful. It exposes type definitions for many common types in Substrate blockchains. https://github.com/paritytech/capi" CreationDate="2022-09-24T03:45:46.600" UserId="283" />
  <row Id="4663" PostId="4987" Score="1" Text="didn't quite understand your issue, can you please explain it a little bit more" CreationDate="2022-09-24T14:13:45.003" UserId="354" />
  <row Id="4664" PostId="4952" Score="0" Text="As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-09-24T15:54:51.693" UserId="-1" />
  <row Id="4666" PostId="4987" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-09-24T15:58:18.667" UserId="-1" />
  <row Id="4669" PostId="4979" Score="0" Text="`codec =` is an alias name. The real name is `parity-scale-codec`. I recommend you learn some Rust first. There is no &quot;correct&quot; format. Just because we use an alias name here. You could also write `parity-scale-codec = { version = &quot;3.0.0&quot;, default-features = false, features = [&quot;derive&quot;] }`" CreationDate="2022-09-24T16:25:26.010" UserId="251" />
  <row Id="4670" PostId="4979" Score="0" Text="IMHO, that answer is not good. He didn't tell you why you need to write in this way. Anyway, have some Rust first.  :)" CreationDate="2022-09-24T16:29:45.600" UserId="251" />
  <row Id="4671" PostId="4989" Score="0" Text="Without something concrete to look at it is impossible to help sadly. Please provide some minimal viable example?" CreationDate="2022-09-24T22:18:31.197" UserId="34" />
  <row Id="4672" PostId="4989" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-09-24T22:18:44.667" UserId="-1" />
  <row Id="4673" PostId="4987" Score="0" Text="Hi, updated the post. I followed the tutorials to add the sub-node Dave connection to the parent node Charlie, but it doesn't work. Not sure if there is any steps missing." CreationDate="2022-09-25T04:56:21.280" UserId="3118" />
  <row Id="4674" PostId="4989" Score="0" Text="@DanShields I have added some images to my question. I hope that it helps to explain my problem." CreationDate="2022-09-25T05:50:08.190" UserId="3228" />
  <row Id="4676" PostId="4992" Score="0" Text="You havent configured your cargo.toml correctly that is the issue. Make sure the path is correct." CreationDate="2022-09-25T13:58:49.680" UserId="351" />
  <row Id="4677" PostId="4998" Score="0" Text="Please check out API docs. in crates.parity.io" CreationDate="2022-09-25T16:01:00.890" UserId="351" />
  <row Id="4678" PostId="4993" Score="0" Text="As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-09-25T16:27:47.953" UserId="-1" />
  <row Id="4679" PostId="4991" Score="1" Text="What CLI commands did you use to run templates?" CreationDate="2022-09-25T16:30:09.833" UserId="34" />
  <row Id="4680" PostId="4995" Score="1" Text="Are you saying your STD code is not being executed in the blockchain runtime? If so, then this is expected as the Wasm runtime for Substrate is always expected to be `no-std`" CreationDate="2022-09-25T22:06:27.330" UserId="28" />
  <row Id="4682" PostId="4976" Score="1" Text="Is it possible you have installed rust twice? In any case, the solution is likely to clean up your machine, and re-install rust. Otherwise, please provide more information about how you have set up your computer, and what steps you are following." CreationDate="2022-09-25T23:29:49.703" UserId="28" />
  <row Id="4683" PostId="4998" Score="0" Text="Also, check this https://substrate.stackexchange.com/questions/4395/lifetime-error-on-storage-mutate/4399#comment4624_4399" CreationDate="2022-09-26T01:59:44.293" UserId="251" />
  <row Id="4684" PostId="4969" Score="0" Text="so would you need to store another mapping of tuples that maps to an array of Ids for each element in the tuple?" CreationDate="2022-09-26T02:44:44.093" UserId="3070" />
  <row Id="4685" PostId="4995" Score="0" Text="I was going through https://github.com/substrate-developer-hub/substrate-docs/issues/531, got some understanding. But is there a way to use STD during blockchian runtime it would be really helpful" CreationDate="2022-09-26T04:40:02.520" UserId="354" />
  <row Id="4686" PostId="4718" Score="0" Text="I have already clone the smoldot repository but now where to test by using cd bin/wasm-node/javascript &amp;&amp; npm i &amp;&amp; npm start  ," CreationDate="2022-09-26T06:38:53.843" UserId="3109" />
  <row Id="4687" PostId="5008" Score="0" Text="This is a bad direction, as even if you get this to work, your native and wasm runtime will produce different state root, and therefore your blockchain consensus will break. What are you trying to achieve here?" CreationDate="2022-09-26T07:13:13.837" UserId="167" />
  <row Id="4688" PostId="5005" Score="0" Text="I think it's not so critical. It's just a nice to have. In Zeitgeist we have the main-net and test-net and the runtimes are separated. There is the prediction-markets pallet, which is used by both runtimes. Now, we'd like to include a specific feature, which affects the prediction-market pallet. But this should only be allowed for the test-net, but since both runtimes use the same code, we thought about using Rust features.&#xA;Issue: https://github.com/paritytech/substrate/issues/12350" CreationDate="2022-09-26T07:34:33.720" UserId="2484" />
  <row Id="4689" PostId="5010" Score="2" Text="Correct me if I'm wrong, but I believe it is generally heavily discouraged to use JSON in a substrate runtime, and one should use SCALE instead. See e.g. [this answer](https://substrate.stackexchange.com/a/3370/2673)." CreationDate="2022-09-26T07:38:10.283" UserId="2673" />
  <row Id="4690" PostId="5010" Score="0" Text="Yep, thanks. But if he wants to use JSON anyway. Anyway, this is just an example. I think 'how to deal with the bytes object in Substrate' would be another question. It's a little bit off-topic." CreationDate="2022-09-26T07:40:23.833" UserId="251" />
  <row Id="4691" PostId="5012" Score="0" Text="Hi Alex, I have tried to restart the node, but it stills showed 0 peer in Dave’s node. Then I tried to remove all the tmp files, and redo all the steps to authorise Charlie’s and Dave’s node, but the result is the same." CreationDate="2022-09-26T09:16:04.390" UserId="3118" />
  <row Id="4692" PostId="4718" Score="0" Text="This assumes Linux, not sure what you are trying." CreationDate="2022-09-26T09:49:06.873" UserId="94" />
  <row Id="4693" PostId="5012" Score="0" Text="And if you try to do the: Allow connections to the sub-node step without run the Dave node, and run it after. Still showing 0?" CreationDate="2022-09-26T10:07:10.157" UserId="2762" />
  <row Id="4695" PostId="5012" Score="0" Text="Thanks Alex. I tried again and it works now. Maybe I got some mistakes on one of the steps." CreationDate="2022-09-26T12:11:08.840" UserId="3118" />
  <row Id="4696" PostId="5012" Score="0" Text="Great that it worked! Not sure but I think the node has to be restarted after the extrinsics, will check again and review the documentation" CreationDate="2022-09-26T12:26:25.657" UserId="2762" />
  <row Id="4697" PostId="5011" Score="0" Text="So we don't have information about the author of the block in the header?" CreationDate="2022-09-26T13:01:53.077" UserId="2663" />
  <row Id="4698" PostId="287" Score="0" Text="could you give an example on how to set base_fee ?" CreationDate="2022-09-26T13:23:31.213" UserId="1789" />
  <row Id="4699" PostId="5011" Score="0" Text="You can have the validator's information. But you can not access the validator's node.&#xA;&#xA;https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/explorer/query/0x1e9082ad8ecb5b6210efcbf3515f021c4216857da35149ea82c11d117ad0c00f&#xA;&#xA;You can easily find the author of this block, `13NFKRvvSoKCAg3Q8HjigdBNvg5ypC8Rh6aziQjfUF2YspLV`." CreationDate="2022-09-26T14:24:33.957" UserId="251" />
  <row Id="4701" PostId="4996" Score="0" Text="please see my update above" CreationDate="2022-09-26T14:38:08.817" UserId="1789" />
  <row Id="4702" PostId="4996" Score="0" Text="can I cancel or remove that `base_fee` conditionally?" CreationDate="2022-09-26T15:46:42.420" UserId="1789" />
  <row Id="4703" PostId="5011" Score="0" Text="But why I can't see it when I run a local blockchain? https://imgur.com/a/cDQwBcI I'm running 4 authority nodes with Aura/Grandpa" CreationDate="2022-09-26T15:49:48.067" UserId="2663" />
  <row Id="4704" PostId="5011" Score="0" Text="Maybe you need to add the pallet-authorship to your chain." CreationDate="2022-09-26T16:00:59.907" UserId="251" />
  <row Id="4705" PostId="5004" Score="0" Text="Thanks very much, I have solved my problem" CreationDate="2022-09-26T16:08:13.527" UserId="3228" />
  <row Id="4706" PostId="5022" Score="1" Text="Could you share your call and parameters?" CreationDate="2022-09-26T16:36:16.017" UserId="251" />
  <row Id="4708" PostId="5022" Score="0" Text="Amplitude runtime:&#xA;https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpencol-roc-00.pendulumchain.tech#/extrinsics/decode&#xA;hex-encoded call&#xA;0x0c00290001010002140004000000000b00a0724e180913000000000b00a0724e18090006000b007083d05d06381700e8030000e803000000900100140d0100040001003121" CreationDate="2022-09-26T16:48:01.637" UserId="3171" />
  <row Id="4709" PostId="5022" Score="1" Text="Try reduce this `requireWeightAtMost: 7,000,000,000,000`." CreationDate="2022-09-26T16:52:14.237" UserId="251" />
  <row Id="4710" PostId="5011" Score="0" Text="You missed this https://github.com/paritytech/polkadot/blob/0e50e33b9622d1b8bf684340fb17eb59e4a4f987/runtime/polkadot/src/lib.rs#L1423." CreationDate="2022-09-26T16:55:07.283" UserId="251" />
  <row Id="4711" PostId="5011" Score="0" Text="Yes sorry, I had already fix that like this: https://github.com/Datagen-Project/Datagen-Substrate-Grant/blob/744d01400825f7b4ebd8a1ab621739a13e19a09a/fast_blockchain/runtime/src/lib.rs#L346" CreationDate="2022-09-26T17:03:54.387" UserId="2663" />
  <row Id="4712" PostId="5023" Score="2" Text="You will find a lot of other questions about this when searching for `imp` in the stackexchange. The problem is that you are trying to use std code in no-std." CreationDate="2022-09-26T17:11:16.210" UserId="94" />
  <row Id="4713" PostId="5022" Score="0" Text="what does parameter means?&#xA;is there some example for this parameter for opening hrmp?" CreationDate="2022-09-26T17:32:46.293" UserId="3171" />
  <row Id="4714" PostId="5018" Score="0" Text="Checkout these playlist from Seun https://www.youtube.com/watch?v=lICQD3FMAZw&amp;list=PLLBglgxW6ibJ6tUDKEcPY0GUia4wgd-Sx&amp;index=22,  You will know which Traits needs to be implemented for Consensus" CreationDate="2022-09-26T17:33:51.447" UserId="351" />
  <row Id="4715" PostId="5022" Score="0" Text="Try reduce to 500_000_000_000 or 5_000_000_000 (. I think it is safety measure in current XCM configs to allow  bad configuration taking too much money." CreationDate="2022-09-26T19:39:51.233" UserId="484" />
  <row Id="4716" PostId="1471" Score="0" Text="Could you provide a tutorial on how to use it with an existing project?" CreationDate="2022-09-26T22:44:42.573" UserId="3235" />
  <row Id="4717" PostId="4991" Score="0" Text="I'm using command as guideline:&#xA;```./target/release/node-template \&#xA;  --base-path /tmp/node02 \&#xA;  --chain ./customSpecRaw.json \&#xA;  --port 30333 \&#xA;  --ws-port 9945 \&#xA;  --rpc-port 9933 \&#xA;  --telemetry-url &quot;wss://telemetry.polkadot.io/submit/ 0&quot; \&#xA;  --validator \&#xA;  --rpc-methods Unsafe \&#xA;  --name MyNode02 \&#xA;  --bootnodes /ip4/&lt;ip.from.above.step&gt;/tcp/30333/p2p/id_from_above_step \&#xA;  --password-interactive&#xA;```" CreationDate="2022-09-26T23:14:47.673" UserId="3229" />
  <row Id="4718" PostId="5021" Score="1" Text="Well this updates your toolchains, it does not add new toolchains or components within them, so in the case you don't yet have the target wasm-unknown-unknown toolchain stuff yet, it won't add it. But one its there it will be included in updates." CreationDate="2022-09-26T23:25:18.303" UserId="34" />
  <row Id="4719" PostId="5022" Score="0" Text="It sets up a maximum weight for that transact to ensure you won't waste too many unexpected fees." CreationDate="2022-09-27T01:45:23.187" UserId="251" />
  <row Id="4720" PostId="5017" Score="1" Text="Good question! I also encountered this requirement and added a custom barrier to solve it. I would also like to know if there is a security risk" CreationDate="2022-09-27T02:41:09.147" UserId="1959" />
  <row Id="4721" PostId="287" Score="0" Text="in your links above, it seems the base_fee is fixed for ALL users. But I need to set it only for selected users. How to do it?" CreationDate="2022-09-27T03:29:48.560" UserId="1789" />
  <row Id="4722" PostId="4996" Score="1" Text="no,I mean the concept in eip1559, if with metamask normally `Max Priority fee` and `Max fee` are estimated based on the previous block’s history,`Base fee` is defined by the protocol and will be burnt. And I remember there is some default implementation in frontier" CreationDate="2022-09-27T05:48:03.163" UserId="523" />
  <row Id="4723" PostId="5031" Score="0" Text="Is it possible to request **storage state** to get ump messages in the queue?" CreationDate="2022-09-27T06:27:31.563" UserId="3040" />
  <row Id="4726" PostId="5035" Score="0" Text="Thanks. You right, it's working!" CreationDate="2022-09-27T08:50:34.627" UserId="3229" />
  <row Id="4727" PostId="5034" Score="0" Text="You *actually can* use `u128` directly in benchmarks, if you add an appropriate `where_clause`. Take a look a [this code](https://github.com/Wiezzel/substrate-dex/blob/203dd718020232439c26b4acefd1ceac0cbc99fd/src/benchmarking.rs#L25-L27)." CreationDate="2022-09-27T08:51:36.223" UserId="2673" />
  <row Id="4728" PostId="5020" Score="0" Text="Depending on what is the intended behaviour when the block number doesn't fit into 64 bits, using [CheckedConversion](https://paritytech.github.io/substrate/master/sp_runtime/traits/trait.CheckedConversion.html) might be an option as well." CreationDate="2022-09-27T09:07:37.947" UserId="2673" />
  <row Id="4729" PostId="5011" Score="0" Text="Make a new question for this specific problem https://substrate.stackexchange.com/questions/5038/pallet-authorship-implementation-doesnt-work-with-aura-consensus" CreationDate="2022-09-27T09:46:55.137" UserId="2663" />
  <row Id="4730" PostId="5039" Score="0" Text="U know any reason, Why we can't use String?" CreationDate="2022-09-27T09:50:12.800" UserId="3237" />
  <row Id="4731" PostId="5027" Score="0" Text="Hi. I use all parameters that you advise. But now I have other error.&#xA;https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frococo-rpc.polkadot.io#/explorer/query/0x07a63bd3d790daa46ee9f03a7119fa7903882f1105f4fd5abf30f1594ef12fa8&#xA;{&#xA;  Incomplete: [&#xA;    1,000,000,000&#xA;    FailedToTransactAsset&#xA;  ]&#xA;}" CreationDate="2022-09-27T09:53:55.873" UserId="3171" />
  <row Id="4732" PostId="5027" Score="1" Text="Make sure your sovereign account in the relaychain has sufficient balance to withdraw. Your sovereign account is `5Ec4AhP2VP3kQcM928TnKuw9miE7yCDvRxd3mqVNA28pE3m4`, transfer some ROC to it on rococo." CreationDate="2022-09-27T09:57:38.087" UserId="1959" />
  <row Id="4733" PostId="5027" Score="0" Text="How it is possible to check? &#xA;https://rococo.subscan.io/parachain/2124&#xA;Is it right way to check it?&#xA;Seems that it is enough  ROC tokens on relay chain.&#xA;I am trying to open HRMP with Rockmine." CreationDate="2022-09-27T10:01:24.157" UserId="3171" />
  <row Id="4734" PostId="5039" Score="0" Text="@Samray Because Substrate uses `no_std` so there's no `String` type." CreationDate="2022-09-27T10:03:03.143" UserId="2673" />
  <row Id="4735" PostId="5027" Score="1" Text="https://rococo.subscan.io/account/5Ec4AhP2VP3kQcM928TnKuw9miE7yCDvRxd3mqVNA28pE3m4" CreationDate="2022-09-27T10:03:08.720" UserId="1959" />
  <row Id="4736" PostId="5027" Score="0" Text="Please. Tell me how you find the sovereign account for our parachain?" CreationDate="2022-09-27T10:04:02.640" UserId="3171" />
  <row Id="4737" PostId="5027" Score="1" Text="Refer to this question: https://substrate.stackexchange.com/questions/1200/how-to-calculate-sovereignaccount-for-parachain/1210#1210" CreationDate="2022-09-27T10:05:09.370" UserId="1959" />
  <row Id="4738" PostId="5027" Score="0" Text="Awesome! You are really substrate ninja!!! Thank you!" CreationDate="2022-09-27T10:06:59.777" UserId="3171" />
  <row Id="4740" PostId="4958" Score="0" Text="You can use the JS spread operator, e.g. `contract.query[message](accountId, &lt;opts&gt;, ...args)`" CreationDate="2022-09-27T12:08:01.377" UserId="627" />
  <row Id="4741" PostId="5022" Score="0" Text="So it fixed to use correct xcm call with sudo:&#xA;&#xA;0x0c0029000101000214000400000000070010a5d4e81300000000070010a5d4e80006000700f2052a01381700e8030000e803000000900100140d0100040001003121&#xA;from our parachain to rococo&#xA;or from our parachain to Bifrost&#xA;0x0c0029000101000214000400000000070010a5d4e81300000000070010a5d4e80006000700f2052a01381700d1070000e803000000900100140d0100040001003121" CreationDate="2022-09-27T13:08:08.040" UserId="3171" />
  <row Id="4742" PostId="5042" Score="0" Text="Thanks Alexander. Great explanation. Obvious in hindsight!" CreationDate="2022-09-27T13:11:17.833" UserId="2136" />
  <row Id="4743" PostId="4929" Score="0" Text="@Guantong posted the link, would you mind taking a look?" CreationDate="2022-09-27T13:18:46.933" UserId="2884" />
  <row Id="4745" PostId="5036" Score="0" Text="Thank you, using the `where_clause` worked." CreationDate="2022-09-27T13:33:03.097" UserId="3217" />
  <row Id="4746" PostId="4929" Score="0" Text="Yeah, I'll take a look" CreationDate="2022-09-27T13:33:52.197" UserId="1959" />
  <row Id="4747" PostId="287" Score="0" Text="You only want to have the base fee for some users? Why?" CreationDate="2022-09-27T13:56:55.030" UserId="73" />
  <row Id="4748" PostId="5021" Score="1" Text="This simply isn't the correct answer to the question asked, no need to feel good or bad for anyone." CreationDate="2022-09-27T14:12:13.677" UserId="2673" />
  <row Id="4749" PostId="4990" Score="0" Text="Is the ip address really from your machine where the node is running? And are you sure that the port is right? Do you have the port open in your firewall?" CreationDate="2022-09-27T14:14:19.727" UserId="73" />
  <row Id="4750" PostId="5048" Score="0" Text="Perfect....Thank you" CreationDate="2022-09-27T14:22:04.257" UserId="3237" />
  <row Id="4751" PostId="5041" Score="0" Text="Pallets are a special kind of crates, to be used in Substrate-based chains." CreationDate="2022-09-27T14:31:08.910" UserId="2673" />
  <row Id="4752" PostId="4842" Score="0" Text="I will take a look here. Thanks" CreationDate="2022-09-27T14:52:21.170" UserId="552" />
  <row Id="4753" PostId="5039" Score="0" Text="I updated my anwser." CreationDate="2022-09-27T15:24:11.273" UserId="251" />
  <row Id="4754" PostId="4929" Score="0" Text="Well, it seems to be a bug" CreationDate="2022-09-27T16:03:27.287" UserId="1959" />
  <row Id="4755" PostId="3036" Score="0" Text="Awesome answer! Thank you! Very useful!" CreationDate="2022-09-27T16:23:30.220" UserId="3171" />
  <row Id="4756" PostId="5018" Score="0" Text="Thanks I take a look!" CreationDate="2022-09-27T16:57:05.243" UserId="2663" />
  <row Id="4757" PostId="5031" Score="0" Text="You have &quot;RelayDispatchQueues&quot; storage element in the ump pallet in Polkadot relay chain to query the messages waiting to be handled by the relay-chain originating from a certain parachain: https://github.com/paritytech/polkadot/blob/master/runtime/parachains/src/ump.rs#L290" CreationDate="2022-09-27T18:53:01.230" UserId="2025" />
  <row Id="4758" PostId="4751" Score="0" Text="So all reprioritization should be done after the transaction payment pallet? What is the impact on performance when adding a signed extension after the transaction payment pallet vs. modifying the Transaction-Payment-Pallet?" CreationDate="2022-09-27T19:05:09.313" UserId="590" />
  <row Id="4759" PostId="5052" Score="0" Text="Please ensure the quality of this StackExchange by including code examples and explaining your problem in detail such that others can profit from it as well." CreationDate="2022-09-27T19:45:10.527" UserId="94" />
  <row Id="4760" PostId="4990" Score="0" Text="Yes the ip address is from the machine. Yes port is also right. Not sure about firewall tho. But the thing is for relay chain it shows&#xA;`&#xA;[Relaychain]  Discovered new external address for our node: /ip4/3.xx.xx.53/tcp/7676/ws/p2p/12D3KooWLhkaoFSGV2JfXea1BGTEAv2R5PE4v2b1nHZMo1ZGtxxx&#xA;`&#xA;And but for parachain it shows nothing like this" CreationDate="2022-09-28T01:21:49.657" UserId="2384" />
  <row Id="4761" PostId="5016" Score="0" Text="Hi Oliver, I re-followed the steps above and then tried your command, I get back the following and the original error remains: `info: component 'rust-std' for target 'wasm32-unknown-unknown' is up to date`" CreationDate="2022-09-28T03:47:18.957" UserId="3225" />
  <row Id="4762" PostId="287" Score="0" Text="why? my boss told me so... I have a storage in a pallet to check which user can do x number of times feeless transactions. any advice?" CreationDate="2022-09-28T05:40:56.763" UserId="1789" />
  <row Id="4763" PostId="5055" Score="0" Text="Check https://substrate.stackexchange.com/questions/4802/the-election-failed-no-new-era-is-planned and try to log more information." CreationDate="2022-09-28T07:10:12.923" UserId="251" />
  <row Id="4764" PostId="5058" Score="0" Text="The key I have chosen for the question is not the concrete key I am trying to mutate, is just an example." CreationDate="2022-09-28T09:04:21.447" UserId="165" />
  <row Id="4765" PostId="5058" Score="0" Text="I think you can edit the genesis spec file. What is your use-case? When do you need the insertion to happen?" CreationDate="2022-09-28T09:08:57.973" UserId="94" />
  <row Id="4766" PostId="4034" Score="0" Text="@Lewis can you please post full solution when you have it. Thanks!" CreationDate="2022-09-28T10:39:23.187" UserId="529" />
  <row Id="4767" PostId="4751" Score="1" Text="I am afraid the only way to answer you question is benchmarking: https://substrate.stackexchange.com/a/2950/527&#xA;&#xA;To be honest, I think the difference if any is going to be minimal since you'll be applying the same logic in both places. It would be more about what is the overhead of adding a new `SignedExtension`.&#xA;&#xA;My recommendation is not to touch `transaction-payment` as it will be easier for your code maintenance when upgrading Substrate versions." CreationDate="2022-09-28T11:27:00.623" UserId="527" />
  <row Id="4768" PostId="5055" Score="0" Text="NPOS working fine but after adding EVM to Genesis config in node the NPOS is not working and the staking election failed." CreationDate="2022-09-28T11:27:42.917" UserId="2281" />
  <row Id="4769" PostId="5030" Score="0" Text="I agree with the part about security - to my knowledge, I cannot see any problems.&#xA;&#xA;Regarding HRMP, I don't think it should make a difference since that's just a protocol for transferring XCM - not executing it." CreationDate="2022-09-28T11:29:52.533" UserId="426" />
  <row Id="4770" PostId="5055" Score="0" Text="https://substrate.stackexchange.com/questions/4802/the-election-failed-no-new-era-is-planned i have tried this but the problem is same" CreationDate="2022-09-28T11:30:57.557" UserId="2281" />
  <row Id="4771" PostId="5055" Score="0" Text="I mean, follow that guide and paste the log here. Which will help us to diagnose." CreationDate="2022-09-28T11:44:50.953" UserId="251" />
  <row Id="4772" PostId="5055" Score="0" Text="I am using polkadot-v0.9.25&#xA;&#xA;  708 |     type Fallback = frame_election_provider_support::onchain::OnChainSequentialPhragmen&lt;Runtime&gt;;&#xA;      |                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `frame_election_provider_support::onchain`&#xA;I am getting this error while using this **frame_election_provider_support::onchain::OnChainSequentialPhragmen&lt;Runtime&gt;** as there is two struct which is BoundedExecution and UnbondedExecution" CreationDate="2022-09-28T12:56:27.633" UserId="2281" />
  <row Id="4773" PostId="5055" Score="0" Text="**I am using polkadot-v0.9.25**" CreationDate="2022-09-28T13:02:24.107" UserId="2281" />
  <row Id="4774" PostId="5055" Score="0" Text="**cannot find type `OnChainSequentialPhragmen` in module `frame_election_provider_support::onchain**" CreationDate="2022-09-28T13:13:40.943" UserId="2281" />
  <row Id="4775" PostId="5069" Score="0" Text="I'm trying to use the examples in:  https://www.shawntabrizi.com/substrate/querying-substrate-storage-via-rpc.  I can't get the storage map query to work either.  Why?" CreationDate="2022-09-28T14:28:27.910" UserId="3142" />
  <row Id="4777" PostId="5070" Score="1" Text="...THAT'S WHY! :)" CreationDate="2022-09-28T15:34:00.117" UserId="3127" />
  <row Id="4778" PostId="5055" Score="1" Text="Try calling this with sudo: https://paritytech.github.io/substrate/master/pallet_election_provider_multi_phase/pallet/struct.Pallet.html#method.governance_fallback" CreationDate="2022-09-28T15:46:10.157" UserId="167" />
  <row Id="4779" PostId="5071" Score="0" Text="Do you not use the current block number `now`? I have an assumption what could be the cause, but it would help if you could share the code of the `on_initialize` or the whole pallet, if possible." CreationDate="2022-09-28T17:22:30.097" UserId="94" />
  <row Id="4780" PostId="5071" Score="0" Text="No, Im not using the value of 'now' , inside my logic.." CreationDate="2022-09-28T17:35:21.387" UserId="3237" />
  <row Id="4781" PostId="5071" Score="1" Text="I have updated my code...@OliverTale-Yazdi" CreationDate="2022-09-28T17:36:28.940" UserId="3237" />
  <row Id="4782" PostId="5075" Score="1" Text="2nd was the issue.." CreationDate="2022-09-28T18:06:12.503" UserId="3237" />
  <row Id="4783" PostId="5075" Score="0" Text="Okay great! Then please mark this question as solved." CreationDate="2022-09-28T19:32:11.240" UserId="94" />
  <row Id="4784" PostId="4810" Score="0" Text="have you used latest nightly rust? Have a look [this link](https://matrix.to/#/!utTuYglskDvqRRMQta:matrix.org/$Mk4XDWUA6-dFgnT1EPcInejMsVjoV-U7MJp__6XTIoY?via=matrix.org&amp;via=t2bot.io&amp;via=cardinal.ems.host) you may find solution." CreationDate="2022-09-29T00:23:27.087" UserId="2844" />
  <row Id="4785" PostId="5064" Score="0" Text="have you used latest nightly rust? Have a look [this link](https://matrix.to/#/!utTuYglskDvqRRMQta:matrix.org/$Mk4XDWUA6-dFgnT1EPcInejMsVjoV-U7MJp__6XTIoY?via=matrix.org&amp;via=t2bot.io&amp;via=cardinal.ems.host) you may find solution." CreationDate="2022-09-29T00:27:41.117" UserId="2844" />
  <row Id="4786" PostId="5072" Score="1" Text="Go through [this link](https://github.com/paritytech/ink/pull/1400), now storage derives has moved to ink crate. you can use ::ink::storage::traits::push_spread_root::&lt;Self&gt;(self, &amp;root_key);" CreationDate="2022-09-29T00:43:44.437" UserId="2844" />
  <row Id="4787" PostId="5081" Score="0" Text="[go through this](https://substrate.stackexchange.com/questions/4762/how-to-convert-address-string-to-accountid-in-ink)" CreationDate="2022-09-29T01:40:23.397" UserId="2844" />
  <row Id="4788" PostId="5081" Score="0" Text="What kinds of the `str`? SS58 or public key in `str`." CreationDate="2022-09-29T01:52:23.280" UserId="251" />
  <row Id="4789" PostId="5063" Score="0" Text="Please add more detiald. How did you add the new validator? Did you insert the GRANDPA key correctly?" CreationDate="2022-09-29T01:57:19.233" UserId="251" />
  <row Id="4790" PostId="5081" Score="0" Text="I was looking for the public key. The question above might be the answer. Thanks!" CreationDate="2022-09-29T02:10:23.413" UserId="3236" />
  <row Id="4791" PostId="5055" Score="0" Text="As in the governance_fallback it is mentioned that **This can only be called when Phase::Emergency is enabled** but in my case there is no event of Phase::Emergency occur and I am getting this error after every era **staking.StakingElectionFailed&#xA;The election failed. No new era is planned. ** &#xA;I also tried governance_fallback function with sudo but getting this error **error: electionProviderMultiPhase.CallNotAllowed** same for set_emergency_election_results &#xA;41-2" CreationDate="2022-09-29T05:46:06.700" UserId="2281" />
  <row Id="4792" PostId="5072" Score="0" Text="Hey @Ganesh11, thanks a lot. But in fact, I have tried `::ink::storage::traits::push_spread_root::&lt;Self&gt;(self, &amp;root_key);` before I asked the question here, and I met the problem below: `::ink::storage::traits::push_spread_root::&lt;Self&gt;(self, &amp;root_key);&#xA;    |                                     ^^^^^^^^^^^^^^^^ not found in \`ink::storage::traits\``. And I cannot find `push_spread_root` and related `pull_spread_root` in the document.  So is there any other suggestions?" CreationDate="2022-09-29T07:09:04.943" UserId="2417" />
  <row Id="4793" PostId="5063" Score="0" Text="Firstly, I connected the node and inserted the gran,babe,imol and audi keys through RPC, after that from the same node I added more validators by inserting the rotate key. There was no issue when i added 2 or 3 validator from the same node through rotate key but when i added more than 3 validators from the same node I started getting the block generation and block finalization issue and **Yes I inserted the GRANDPA key correctly**" CreationDate="2022-09-29T07:37:20.583" UserId="406" />
  <row Id="4794" PostId="5074" Score="2" Text="Thank you @Guantong, this is a great and detailed answer!&#xA;&#xA;I did check the origin_conversion.rs file before but I must have interpreted the info differently. My understanding of Native and Sovereign in this case was swapped." CreationDate="2022-09-29T07:46:55.407" UserId="426" />
  <row Id="4796" PostId="5064" Score="1" Text="&quot;associated consts cannot be referenced in pattern&quot; This is a known issue see https://github.com/paritytech/ink/pull/1418. We will try and get a release out soon with this fix" CreationDate="2022-09-29T08:06:22.577" UserId="451" />
  <row Id="4797" PostId="5072" Score="0" Text="The functions `push_spread_root` and `push_spread_root` were removed in [this pull request](https://github.com/paritytech/ink/pull/1331). I don't know what is their replacement though." CreationDate="2022-09-29T08:38:28.977" UserId="2673" />
  <row Id="4798" PostId="5072" Score="1" Text="[This instruction](https://github.com/paritytech/ink/blob/a4594f0dfe91b69cd6ac603ad00aae17bfdd6ae4/crates/ink/codegen/src/generator/dispatch.rs#L820-L822) was previously (i.e. in 3.* version) using `push_spread_root`, but now there's a `set_contract_storage` call there. Maybe that's the function you're looking for?" CreationDate="2022-09-29T08:46:11.477" UserId="2673" />
  <row Id="4799" PostId="5072" Score="1" Text="And [here](https://github.com/paritytech/ink/blob/a4594f0dfe91b69cd6ac603ad00aae17bfdd6ae4/crates/ink/codegen/src/generator/dispatch.rs#L835-L843) a call to `pull_spread_root` was replaced with `get_contract_storage`." CreationDate="2022-09-29T08:47:19.310" UserId="2673" />
  <row Id="4800" PostId="5072" Score="1" Text="if you use `ink 4.0.0-alpha.3` version, then you can't find `push_spread_root and pull_spread_root` [look hear](https://paritytech.github.io/ink/ink/storage/traits/index.html), you can find those in `ink 3.00` version [look hear](https://docs.rs/ink_storage/3.0.0-rc3/ink_storage/traits/index.html) in function section. `pull_spread_root and _push_spread root` they take of type `T` which is `SpreadLayout` and this was omitted on latest version, you can [see here](https://github.com/paritytech/ink/pull/1331) on `2 commit`." CreationDate="2022-09-29T09:05:17.870" UserId="2844" />
  <row Id="4801" PostId="5059" Score="0" Text="Yeah, this was my first go to and I couldn't make it work. I guess I might have done something wrong, will give it a go again. Thanks" CreationDate="2022-09-29T09:19:08.463" UserId="165" />
  <row Id="4802" PostId="5058" Score="0" Text="Indeed, editing the spec file was my first idea." CreationDate="2022-09-29T09:19:32.337" UserId="165" />
  <row Id="4803" PostId="5083" Score="0" Text="Yes, I restarted the nodes and the blockchain is working fine but after adding more validators on a single node I can't restart it again because it will be an offence for the validator" CreationDate="2022-09-29T09:47:26.367" UserId="406" />
  <row Id="4804" PostId="5086" Score="0" Text="I've just compiled cumulus brach `polkadot-v0.9.29` without any errors whatsoever. Maybe it's the rust version? Try running `rustup update`." CreationDate="2022-09-29T09:57:47.760" UserId="2673" />
  <row Id="4805" PostId="4503" Score="0" Text="The node is running. What is your question now?" CreationDate="2022-09-29T11:03:03.070" UserId="94" />
  <row Id="4806" PostId="5069" Score="0" Text="The article mentions storage value `Balances::FreeBalance`, it was probably how balances were formerly handled. The answer below from Lana explains the new way of getting the free balance." CreationDate="2022-09-29T11:05:04.853" UserId="94" />
  <row Id="4807" PostId="5059" Score="0" Text="You could follow https://subalfred.hack.ink/user/cli/storage-key.html to calculate the correct storage key." CreationDate="2022-09-29T11:18:14.047" UserId="251" />
  <row Id="4808" PostId="5082" Score="0" Text="I have same `Environment` as yours except `OS: macOS Monterey` and I haven't faced issue." CreationDate="2022-09-29T11:18:16.710" UserId="2844" />
  <row Id="4809" PostId="5083" Score="0" Text="Updated answer." CreationDate="2022-09-29T11:19:57.057" UserId="251" />
  <row Id="4810" PostId="5059" Score="0" Text="This is not a problem, ty though :)" CreationDate="2022-09-29T11:22:41.967" UserId="165" />
  <row Id="4811" PostId="5073" Score="0" Text="Thanks Jeff. The PR you shared is an valuable consideration for better UX (to complement fast unstake), but it only covers staking.&#xA;&#xA;For delegations, I think the scenario mentioned is not the expected behavior. I think a quick fix could be this:&#xA;In `prior.accumulate` check if Y &gt; X and only then restart the lock period. Otherwise, if X &gt;= Y, keep the current lock period. &#xA;&#xA;This potentially allows for shorter lock periods for the smaller amount, but not sure if it's a security risk.&#xA;&#xA;The proper solution would be to keep track of each lock period separately, like we do with votes." CreationDate="2022-09-29T11:32:31.100" UserId="1820" />
  <row Id="4812" PostId="5090" Score="0" Text="This is possible. But my question is different. when I give Balance type in runtime as U256 directly instead of u128 I am facing lots of errors." CreationDate="2022-09-29T12:52:28.560" UserId="427" />
  <row Id="4813" PostId="5076" Score="0" Text="thank for the idea to increase timer but it still does not work with Kusama wss. Your code works fine for me with Polkadot wss." CreationDate="2022-09-29T13:03:09.477" UserId="529" />
  <row Id="4814" PostId="5090" Score="0" Text="Updated my answer." CreationDate="2022-09-29T14:03:03.250" UserId="251" />
  <row Id="4815" PostId="4912" Score="1" Text="@FernandoRuscitti If you are still having issues with this, upgrading from v3.0.0 and start following Polkadot releases should work. Currently this is `polkadot-v0.9.29`. The polkadot releases are the most up-to-date. Simply update all of the dependencies to follow that branch. Any changes to the client will require using a new binary for the nodes." CreationDate="2022-09-29T14:15:38.633" UserId="703" />
  <row Id="4816" PostId="5091" Score="0" Text="OMG, I can' believe it... so much time wasted. Thanks a million!!" CreationDate="2022-09-29T14:49:56.120" UserId="529" />
  <row Id="4817" PostId="5090" Score="0" Text="Understood. What would be the changes required in pallet_balances on high level?" CreationDate="2022-09-29T16:09:04.890" UserId="427" />
  <row Id="4818" PostId="5072" Score="0" Text="Shawn, it looks like @xgreenx answered your question in https://github.com/paritytech/ink/pull/1400 and https://github.com/dantenetwork/protocol-stack-for-ink/pull/10, can you re-post the solution here?" CreationDate="2022-09-29T16:23:20.557" UserId="1824" />
  <row Id="4819" PostId="4449" Score="0" Text="Can you open an issue in the ink! repository and tag me? Make sure to include a link link to the contract repo and the version of `cargo-contract` you're using to build the contract" CreationDate="2022-09-29T16:41:45.193" UserId="1824" />
  <row Id="4820" PostId="5090" Score="1" Text="Remove the traits bound that `U256` doesn't implement. But you will meet a lot of questions in the future." CreationDate="2022-09-29T17:12:12.640" UserId="251" />
  <row Id="4821" PostId="5095" Score="0" Text="You can store that HashMap as a value inside storagevalue" CreationDate="2022-09-29T17:51:10.160" UserId="351" />
  <row Id="4822" PostId="5064" Score="0" Text="Okay then, Thanks!" CreationDate="2022-09-29T18:41:13.093" UserId="3241" />
  <row Id="4825" PostId="5102" Score="1" Text="Would you mind to provide the source-code?" CreationDate="2022-09-30T11:28:33.420" UserId="94" />
  <row Id="4826" PostId="4428" Score="0" Text="Does anybody know where I can find documentation on ContractRef? I am unsure where the methods such as .endowment() come from." CreationDate="2022-09-29T17:09:16.333" UserId="3246" />
  <row Id="4827" PostId="4778" Score="0" Text="Thanks for asking this question, just got stuck on the same problem. Have you figured out where the endowment, code_hash, salt_bytes and instantiate functions are defined? I can't find any documentation on what ContractRef is. Only link I could find is https://paritytech.github.io/ink/ink_lang/reflect/trait.ContractReference.html which unfortunately is broken." CreationDate="2022-09-29T17:17:13.200" UserId="3246" />
  <row Id="4828" PostId="5096" Score="0" Text="Thank you so much.  But is there way to get the result in the function after executing the bare_call.  I need the result to do some computation like TVL, etc." CreationDate="2022-09-30T14:40:23.403" UserId="2565" />
  <row Id="4830" PostId="5096" Score="0" Text="You'll need to dig into the return type of `bare_call`. Eventually you get to `ExecReturnValue` (https://crates.parity.io/pallet_contracts_primitives/struct.ExecReturnValue.html) and from there you should be able to decode the `data` field into a balance. Something like `let balance: T::Balance = Decode::decode(result.data)`, but it'll vary for your specific pallet/runtime" CreationDate="2022-09-30T15:49:56.937" UserId="1824" />
  <row Id="4831" PostId="5096" Score="0" Text="Thanks, will try this." CreationDate="2022-09-30T15:52:12.150" UserId="2565" />
  <row Id="4832" PostId="5101" Score="0" Text="Thanks it worked! Can you please check my recent edit to the question? I need help on just one more thing." CreationDate="2022-09-30T15:59:43.297" UserId="3217" />
  <row Id="4833" PostId="5104" Score="0" Text="Are you querying an RPC node or how do you need to access the events?" CreationDate="2022-09-30T16:43:03.273" UserId="94" />
  <row Id="4834" PostId="5104" Score="0" Text="I am querying from an off-chain worker running on the node.  ie.  no rpc" CreationDate="2022-09-30T17:02:18.933" UserId="3142" />
  <row Id="4835" PostId="5105" Score="0" Text="How do I access System from an offchain worker function inside a pallet?  I tried &lt;frame_system::Pallet&lt;T&gt;&gt;::events() but I get error[E0599]: no function or associated item named `events` found for struct `frame_system::Pallet` in the current scope." CreationDate="2022-09-30T17:21:28.370" UserId="3142" />
  <row Id="4836" PostId="5105" Score="0" Text="This is for an off-chain worker and not the mock runtime." CreationDate="2022-09-30T19:14:23.183" UserId="3142" />
  <row Id="4837" PostId="5103" Score="0" Text="What do you need the `can_enqueue_txs` and `inherent_extrinsics_with_context` for?" CreationDate="2022-09-30T20:46:34.293" UserId="94" />
  <row Id="4838" PostId="5103" Score="1" Text="Can you confirm that the node is running on a clean DB path? If not, the genesis-hash will still contain the old runtime code without the Runtime API. The `--tmp` flag is useful for this." CreationDate="2022-09-30T22:26:42.823" UserId="283" />
  <row Id="4839" PostId="5109" Score="1" Text="Could you link your repo？Or Cargo.toml，I think there is an error in it." CreationDate="2022-10-01T00:03:04.033" UserId="1959" />
  <row Id="4840" PostId="5109" Score="1" Text="Please paste the output here. Don't use a screenshot." CreationDate="2022-10-01T00:48:56.293" UserId="251" />
  <row Id="4841" PostId="1419" Score="1" Text="This is really helpful! Thanks for your detailed information." CreationDate="2022-10-01T04:42:12.817" UserId="316" />
  <row Id="4842" PostId="5112" Score="0" Text="yes!!! finally after adding &quot;orml-tokens/std&quot; to cargo toml it works!!!" CreationDate="2022-10-01T11:14:40.367" UserId="3171" />
  <row Id="4843" PostId="5117" Score="0" Text="Which command did you run? Please consider marking the other question as &quot;Answered&quot; then." CreationDate="2022-10-01T20:05:22.757" UserId="94" />
  <row Id="4845" PostId="5121" Score="0" Text="&quot;an offchain worker capable of API calls on top of an existing&quot; What do you mean exactly by API calls? `pallet-election-provider-multi-phase` is a pallet that uses offchain workers and is compatible with substrate master, and it does submit transactions back to the chain." CreationDate="2022-10-02T15:16:10.940" UserId="167" />
  <row Id="4846" PostId="5127" Score="0" Text="is reserved-nodes what I'm looking for?" CreationDate="2022-10-03T03:35:36.063" UserId="116" />
  <row Id="4847" PostId="5121" Score="0" Text="https://github.com/MrishoLukamba/substrate-tutorials/tree/mhl-OCW-solution/exercises/ex05-offchain-workers" CreationDate="2022-10-03T03:40:56.430" UserId="351" />
  <row Id="4848" PostId="4602" Score="0" Text="can you solve the problem? I also want to get reward for specific address in polkadot.js/api." CreationDate="2022-10-01T12:01:24.453" UserId="3252" />
  <row Id="4849" PostId="4378" Score="0" Text="How to use the Staking::Rewarded and Staking::PayoutStarted? Can you give me a example?" CreationDate="2022-10-01T15:16:23.653" UserId="3252" />
  <row Id="4854" PostId="5133" Score="1" Text="Perhaps this answer will be helpful: https://substrate.stackexchange.com/a/5131/2673" CreationDate="2022-10-03T09:25:45.750" UserId="2673" />
  <row Id="4855" PostId="5111" Score="0" Text="Combine your two answers to your question to one" CreationDate="2022-10-03T10:37:12.610" UserId="116" />
  <row Id="4856" PostId="5136" Score="1" Text="As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-10-03T10:39:02.930" UserId="-1" />
  <row Id="4857" PostId="5136" Score="1" Text="In your scenario, the paraId is locked, check storage item `registrar.paras(2017)`.&#xA;So that the owner can only take action when this lock is not active." CreationDate="2022-10-03T10:50:09.833" UserId="165" />
  <row Id="4858" PostId="5133" Score="0" Text="thanks @AdamWierzbicki, so is a centralised exchange necessary then?" CreationDate="2022-10-03T12:07:07.743" UserId="18" />
  <row Id="4859" PostId="3986" Score="0" Text="No, again just an implementation detail. Inspecting blocks from the node side is not straight forward/supported." CreationDate="2022-10-03T12:09:10.673" UserId="1842" />
  <row Id="4860" PostId="5133" Score="0" Text="I cannot tell you if it's *necessary*, but it's a possible way." CreationDate="2022-10-03T12:42:39.297" UserId="2673" />
  <row Id="4861" PostId="5105" Score="2" Text="The answer is to use: `&lt;frame_system::Pallet&lt;T&gt;&gt;::read_events_no_consensus();`" CreationDate="2022-10-03T12:44:02.110" UserId="3142" />
  <row Id="4862" PostId="5126" Score="0" Text="why i  search the exposures.others.length not same as the expore show ? exposures.others.length=302 but the the expore show 342" CreationDate="2022-10-03T13:53:59.313" UserId="3252" />
  <row Id="4863" PostId="5126" Score="0" Text="should i use currentEra or activeEra?" CreationDate="2022-10-03T15:14:52.317" UserId="3252" />
  <row Id="4864" PostId="5137" Score="0" Text="What specific version of the node template are you using? The tag associated with Polkadot is what you are after, 0.9.(something)  usually" CreationDate="2022-10-03T15:25:02.837" UserId="34" />
  <row Id="4865" PostId="5120" Score="0" Text="Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer)." CreationDate="2022-10-03T15:28:31.223" UserId="-1" />
  <row Id="4866" PostId="5141" Score="0" Text="What is &quot;the interface&quot;? What have you already tried?" CreationDate="2022-10-03T15:48:17.717" UserId="28" />
  <row Id="4867" PostId="5137" Score="0" Text="I just checked out the `main` branch. But the `polkadot-v0.9.29` yields the same error." CreationDate="2022-10-03T16:08:22.060" UserId="3265" />
  <row Id="4869" PostId="5121" Score="0" Text="Thanks a lot @MrishoLukamba, I will take a look, I hope the runtime has all necessary dependencies to make that pallet works, or that the tutorial gives some clues on how to add these dependencies, thanks again" CreationDate="2022-10-03T18:42:47.743" UserId="3221" />
  <row Id="4870" PostId="5121" Score="0" Text="@kianenigma , I meant &quot;calling an external service, outside of Substrate, through a HTTP GET or HTTP PUT call, from the off-chain worker&quot;;  it looks like the pallet you suggested is very thoroughly documented according to what I've found at https://crates.parity.io/src/pallet_election_provider_multi_phase/lib.rs.html, I will definitely sit down and go deeper in it as well, thank you!" CreationDate="2022-10-03T18:47:00.857" UserId="3221" />
  <row Id="4872" PostId="5145" Score="1" Text="This a known issue right now. An update of the nightly compiler has, unfortunately, broken the compilation process. This [question](https://substrate.stackexchange.com/questions/4785/errore0158-when-testing-default-contract-from-flipper) contains the answer. And this [issue](https://github.com/paritytech/ink/pull/1418) will fix the error." CreationDate="2022-10-03T19:05:50.603" UserId="703" />
  <row Id="4873" PostId="5127" Score="1" Text="Seems like there is an underlying issue as to why the node is loosing its peers, I would troubleshoot that." CreationDate="2022-10-03T23:15:09.063" UserId="29" />
  <row Id="4874" PostId="5144" Score="1" Text="This does not sound like an appropriate use of offchain workers. Why does an offchain worker need to be involved at all? In general, it does not sound like what you want is possible." CreationDate="2022-10-04T00:19:38.977" UserId="28" />
  <row Id="4875" PostId="5136" Score="0" Text="how to unlock a paraId." CreationDate="2022-10-04T03:09:07.913" UserId="3263" />
  <row Id="4876" PostId="5126" Score="0" Text="I think it is best if you ask the difference between currentEra and activeEra in a new question and we will answer it there." CreationDate="2022-10-04T07:09:15.220" UserId="167" />
  <row Id="4877" PostId="5144" Score="0" Text="I've edited the question to display the fact that the off-chain worker would be used to invoke an external service that validates whether extrinsicB should be called or not. But I understand that I might need to rethink this logic. Still it would be useful if you could provide an example of `with_filter`, I haven't found any" CreationDate="2022-10-04T08:21:24.727" UserId="2442" />
  <row Id="4878" PostId="5111" Score="0" Text="I dont think this is the right approach. You should not build a block yourself. I should probably write an integration guide." CreationDate="2022-10-04T11:58:39.283" UserId="94" />
  <row Id="4879" PostId="5122" Score="1" Text="Thanks for putting in an *exact* commit hash and some commands on how to reproduce it. Otherwise the question would be very difficult to answer." CreationDate="2022-10-04T12:07:37.333" UserId="94" />
  <row Id="4880" PostId="5122" Score="1" Text="ahhh thank you! `--native` swtich was the thing! i can manage the other errors on my own" CreationDate="2022-10-04T13:09:18.963" UserId="3247" />
  <row Id="4882" PostId="5147" Score="0" Text="To be clear: are you using an unmodified node? It is possible that a migration was not implemented would be my first guess if so, as the node itself isn't meant to be used seamlessly in production in the way you are trying to upgrade." CreationDate="2022-10-04T15:46:09.327" UserId="34" />
  <row Id="4883" PostId="4894" Score="2" Text="`brew install protobuf` on macos." CreationDate="2022-10-04T15:52:22.877" UserId="233" />
  <row Id="4884" PostId="5122" Score="0" Text="Please consider to mark the question as &quot;Answered&quot; if this solved your problem, thanks." CreationDate="2022-10-04T17:21:31.550" UserId="94" />
  <row Id="4885" PostId="5155" Score="0" Text="Uh, you were faster " CreationDate="2022-10-04T19:17:21.617" UserId="94" />
  <row Id="4886" PostId="5152" Score="0" Text="Checkout Acala implementation, But just look at pallet asset and you can derive any logic with that pallet" CreationDate="2022-10-04T19:21:45.413" UserId="351" />
  <row Id="4887" PostId="5117" Score="0" Text="Could be a difference between your mock runtime and the node runtime, since it works with the tests but not the node. Cannot suggest more without source-code." CreationDate="2022-10-04T19:24:09.470" UserId="94" />
  <row Id="4888" PostId="4943" Score="0" Text="Hey @shawn thanks for the reply. But is there a way to do it without changing code in transaction payment pallet ? because I am using parity substrate repo directly to for transaction payment pallet. or are you saying that I should create a custom CustomCurrencyAdapter in my code and use that in my code?&#xA;Please correct If I am taking it in the wrong direction.&#xA;Thanks" CreationDate="2022-10-04T21:07:15.027" UserId="3213" />
  <row Id="4889" PostId="4943" Score="0" Text="This is an external trait implementation that you can plug into an unchanged transaction payment pallet." CreationDate="2022-10-04T22:18:26.870" UserId="28" />
  <row Id="4890" PostId="2033" Score="0" Text="You can add `--dev` and it should connect" CreationDate="2022-10-04T22:34:41.330" UserId="3140" />
  <row Id="4891" PostId="5152" Score="0" Text="Please review the kinds of questions which are supported on this forum: https://substrate.stackexchange.com/help/dont-ask" CreationDate="2022-10-04T22:38:29.180" UserId="28" />
  <row Id="4892" PostId="5134" Score="0" Text="Thanks for your answer, Adam Wierzbicki.&#xA;&#xA;Your help is really valuable for me, then another question I have for now. I am going to build the 3 parachains for my project, and am using the substrate-parachain-template GitHub repository for testing. They have to communicate with each other via XCMP, therefore, I want to build the 3 parachain template projects, and to test how they simultaneously work on rococo local testnet." CreationDate="2022-10-05T01:46:26.497" UserId="3255" />
  <row Id="4893" PostId="5134" Score="0" Text="Here, the issue I've faced is; When I use 2 validator nodes(running by Alice and Bob account) and 1 collator node(of 1 parachain), I can see my parachain builds the blocks successfully(like the guidance in the parity tech documentation). But when I use more than 2 validator nodes(running by Alice, Bob, Charles etc) and more than 1 collator node(of the other parachains), any blocks are not built by the parachains while I can't find any YouTube tutorials or specific documentation guidance." CreationDate="2022-10-05T01:46:38.207" UserId="3255" />
  <row Id="4894" PostId="5134" Score="0" Text="Of course I know it's came by the lack of my knowledge, but I love Polkadot very much, but also want to become a good engineer in it's ecosystem. I am looking forward to your help if you could share your time for me.&#xA;&#xA;Thanks, Stephen." CreationDate="2022-10-05T01:46:46.560" UserId="3255" />
  <row Id="4895" PostId="5150" Score="0" Text="how to use api.events.staking.Rewarded.is to get reward?  like this: let event:IEventLike={&#xA;			index:9281,&#xA;			method:&quot;staking&quot;,&#xA;			section:&quot;rewarded&quot;,&#xA;		};&#xA;		const nominatorReward = api.events.staking.Rewarded.is(event)&#xA;		console.log(nominatorReward)" CreationDate="2022-10-05T04:45:32.897" UserId="3252" />
  <row Id="4896" PostId="5160" Score="0" Text="ForceApprove is different than forcing a GRANDPA set change, which is perhaps what's needed?" CreationDate="2022-10-05T05:10:50.887" UserId="283" />
  <row Id="4897" PostId="5171" Score="0" Text="thank you Alex, but its not really related to a pallet its for a transaction that we will pass as a parameter of our new custom rpc." CreationDate="2022-10-05T07:22:14.090" UserId="632" />
  <row Id="4898" PostId="4223" Score="1" Text="Perhaps this guide from my colleagues in support helps you building a custom RPC for your purposes: https://hackmd.io/JpJCbu0nTa2jym0za1Tggw&#xA;&#xA;Let me know if it helps." CreationDate="2022-10-05T07:22:53.630" UserId="2025" />
  <row Id="4899" PostId="5147" Score="0" Text="The case I've described reproduces on unmodified [node from the Substrate repository](https://github.com/paritytech/substrate/tree/master/bin/node). All migrations should be there, right?" CreationDate="2022-10-05T07:26:01.327" UserId="2749" />
  <row Id="4900" PostId="4223" Score="0" Text="thank you I will take a look." CreationDate="2022-10-05T07:33:41.370" UserId="632" />
  <row Id="4901" PostId="5171" Score="0" Text="You can take a look about how the transaction payment pallet is doing it: https://github.com/paritytech/substrate/blob/master/frame/transaction-payment/src/lib.rs#L485 to implement it yourself in your RPC code" CreationDate="2022-10-05T07:42:20.343" UserId="2762" />
  <row Id="4902" PostId="5167" Score="0" Text="Which i can shoule choose at  await api.query.staking.erasStakers? ActiveEra  or CurrentEra" CreationDate="2022-10-05T07:46:33.850" UserId="3252" />
  <row Id="4905" PostId="5167" Score="0" Text="Use `CurrentEra`.&#xA;https://github.com/paritytech/substrate/blob/241b0d0455453499763d0db0b4ea4188012b372f/frame/staking/src/pallet/impls.rs#L432-L444" CreationDate="2022-10-05T08:23:33.263" UserId="251" />
  <row Id="4906" PostId="5170" Score="0" Text="Interesting, why do you need this? Does https://github.com/paritytech/substrate/tree/master/frame/transaction-payment solve your problem?" CreationDate="2022-10-05T08:35:42.690" UserId="251" />
  <row Id="4907" PostId="5137" Score="0" Text="Ok. I found out that I have to run `scripts/init.sh` that installs the nigthly build of rust and then it started to work (that should be in the docs, though). There was also something odd with my local rust env with i just installed again from scratch." CreationDate="2022-10-05T09:12:45.150" UserId="3265" />
  <row Id="4908" PostId="5134" Score="0" Text="Honestly, there might many possible reasons and it I'm not sure if I would be able to debug this, but maybe try double-checking if you haven't messed up anything with the parachain IDs. Make sure you have reserved two ParaIds and passed them correctly to the parachain specs, as well as registration calls." CreationDate="2022-10-05T09:40:14.897" UserId="2673" />
  <row Id="4909" PostId="5173" Score="0" Text="Could you please provide more details regarding the problem? Some code snippet, build error logs, crate versions..." CreationDate="2022-10-05T09:43:35.503" UserId="2673" />
  <row Id="4910" PostId="5167" Score="2" Text="`erasStakers` should be queried with `currentEra`. &#xA;&#xA;Also, note that `ActiveEra` is used for reward related logic." CreationDate="2022-10-05T09:49:59.837" UserId="167" />
  <row Id="4911" PostId="5160" Score="0" Text="i tried to forcApprove up to 5 blockcs behind the best block, but i didnt see any change. Then i try Grandpa noteStalled, but still finalized blocks are 500 behind, with 1 minute blocks. Perhaps i need to wait for session change?" CreationDate="2022-10-05T09:57:51.547" UserId="298" />
  <row Id="4912" PostId="5178" Score="0" Text="Unfortunately this doesn't work. This error: `error: no rules expected the token ')'` and in addition this `warning: unused imports: `Pallet as Pallet1`, 'benchmarking as bench1'`." CreationDate="2022-10-05T11:57:22.870" UserId="2484" />
  <row Id="4913" PostId="5178" Score="0" Text="Another error, which comes after doing this: `error[E0599]: no function or associated item named 'test_bench_by_name' found for struct 'my_pallet::Pallet' in the current scope`" CreationDate="2022-10-05T13:23:18.153" UserId="2484" />
  <row Id="4914" PostId="5121" Score="0" Text="Follow the How-to guides from the Substrate page: https://docs.substrate.io/reference/how-to-guides/offchain-workers/offchain-transactions/" CreationDate="2022-10-05T14:18:24.870" UserId="2762" />
  <row Id="4915" PostId="4965" Score="0" Text="if you have the cfg statement as the first thing then the other two might not need to be cfg_attr ? While this might not yet be possible cfg is supported in the `constuct_runtime` macro now so you can now add in pallets via features." CreationDate="2022-10-05T14:37:34.967" UserId="85" />
  <row Id="4916" PostId="5160" Score="0" Text="Now it looks like it is completely down?" CreationDate="2022-10-05T14:54:29.903" UserId="73" />
  <row Id="4917" PostId="5147" Score="0" Text="Runtime wasm file size is more than 5 MB. Can it be an issue?" CreationDate="2022-10-05T15:02:31.773" UserId="2749" />
  <row Id="4918" PostId="5178" Score="0" Text="I've tried to reproduce what you attempt to do, but with my crate, and got the same error. So after some digging in Substrate I learned that `test_bench_by_name` is indeed implemented by the `benchmarks!` macro, but it has a `#[cfg(test)]` annotation, which AFAIR makes it invisible to other crates. :( You might take a look at the [source](https://github.com/paritytech/substrate/blob/409167ef427e1b1b32a0cb9c05117e8fe73a7b1a/frame/benchmarking/src/lib.rs#L1126-L1151) and try to implement it manually, but I'm not sure if it's worth." CreationDate="2022-10-05T15:08:04.837" UserId="2673" />
  <row Id="4919" PostId="5155" Score="0" Text="@bkchr Can you please suggest the resources to learn about Hooks?" CreationDate="2022-10-05T15:22:47.827" UserId="555" />
  <row Id="4920" PostId="5157" Score="0" Text="can please suggest any resources to learn more about hooks?" CreationDate="2022-10-05T15:23:43.270" UserId="555" />
  <row Id="4921" PostId="5178" Score="0" Text="I see, that the code of `test_bench_by_name` is invisible without the feature `test`. But I could ensure, that the call of `impl_benchmark_test_suite` is in the scope of an enabled `test` feature too. Why isn't that visible then?" CreationDate="2022-10-05T16:03:17.383" UserId="2484" />
  <row Id="4922" PostId="5134" Score="0" Text="Absolutely, I can't show you here what I've done specifically for building my project. If you provide me any links of video or document explaining the steps to build 2-3 parachains with 3-4 validator nodes, they will exactly help me." CreationDate="2022-10-05T16:11:39.003" UserId="3255" />
  <row Id="4924" PostId="5185" Score="0" Text="Is it a one-time job? Or a call that you could call it multiple times?" CreationDate="2022-10-05T17:41:52.763" UserId="251" />
  <row Id="4925" PostId="5185" Score="0" Text="I like one-time job than call it multiple times. Do you know the advantage/disadvantage of each way. Just wonder can we distribute token to 500k-1m users with one-time job?" CreationDate="2022-10-05T18:17:14.380" UserId="1777" />
  <row Id="4926" PostId="5157" Score="0" Text="Yes, you can look here: https://paritytech.github.io/substrate/master/frame_support/traits/trait.Hooks.html and you can also do a search in the Substrate repo for specific hooks - they are used extensively." CreationDate="2022-10-05T18:27:44.780" UserId="29" />
  <row Id="4927" PostId="5134" Score="2" Text="This may help: https://substrate.stackexchange.com/questions/4692/how-do-i-spin-up-a-testnet-with-zombienet" CreationDate="2022-10-05T18:45:33.643" UserId="29" />
  <row Id="4928" PostId="5147" Score="1" Text="Make sure you are using the `compressed` wasm." CreationDate="2022-10-05T18:48:37.140" UserId="29" />
  <row Id="4929" PostId="5147" Score="0" Text="Thank you @Bruno. It helps. I was using `compact` one." CreationDate="2022-10-05T19:52:05.100" UserId="2749" />
  <row Id="4930" PostId="5160" Score="0" Text="yes it’s down, sigh, I think that would have bricked it, because of babe, now must restart I assume." CreationDate="2022-10-05T20:55:48.800" UserId="298" />
  <row Id="4934" PostId="5194" Score="0" Text="Can we do 500k-1m transactions in 1 extrinsic call. Is there any limit by BlockWeight or anything else?" CreationDate="2022-10-06T07:49:53.410" UserId="1777" />
  <row Id="4935" PostId="5196" Score="0" Text="What command are you using to start your chain?" CreationDate="2022-10-06T08:11:01.123" UserId="2762" />
  <row Id="4936" PostId="5160" Score="0" Text="Yes, the nodes are now doing this:&#xA;&#xA;///  New epoch 4268 launching at block 0xc6ba…0e95 (block slot 277502581 &gt;= start slot 277494208).&#xA;&#xA;///  Next epoch starts at slot 277494808&#xA;&#xA;/// Not applying authority set change forced at block #2158588, due to pending standard change at block #2158105&#xA;&#xA;/// Error with block built on 0xe9abb0102d2e059a4a56ca30ce99e6027873aa274ffc423babe72f43cd40b1d9: Import failed: A pending forced authority set change could not be applied since it must be applied after the pending standard change at #2158105" CreationDate="2022-10-06T08:17:03.400" UserId="286" />
  <row Id="4937" PostId="5194" Score="1" Text="I'm not pretty sure about that. But you could split it into multiple calls. It looks like this `Vec&lt;Scheduler::schedule(Utility::batch(Vec&lt;transfer&gt;))&gt;`. Make sure that your chain has `pallet-scheduler` and `pallet-utility`," CreationDate="2022-10-06T08:17:08.770" UserId="251" />
  <row Id="4938" PostId="5160" Score="0" Text="Oh, yes.  Stackexchange doesn't do formatting in comments, does it?" CreationDate="2022-10-06T08:18:42.877" UserId="286" />
  <row Id="4939" PostId="5160" Score="0" Text="Possibly the parameters on the extrinsic weren't right?  &#xA;https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpopart1.jelliedowl.com#/extrinsics/decode/0xd10184002e25b97b6ea3d9ea70d82e7896a8979483185186f853d5a7614d2dcfd983477c01a26809d84c86ae84b05d23e8875765930005dfc0c61beb40a7fe800c42d5822ede6e2db9011be712cd184a6604543ca63a5e4c7107dbb31bf8cbc1dd8e5cd68f25026d010020000a0200000000d4ef2000" CreationDate="2022-10-06T08:50:03.620" UserId="286" />
  <row Id="4940" PostId="5190" Score="0" Text="from OCW context can we do this?" CreationDate="2022-10-06T09:07:51.347" UserId="427" />
  <row Id="4942" PostId="4877" Score="0" Text="The only thing that I'm aware of is actually a Solidity to ink! transpiler which is currently under development: https://github.com/Supercolony-net/sol2ink. The Solang compiler already allows you to compile Solidity code to WASM. But AFAIK there is nothing in the other direction, neither Solidity-&gt;ink!, nor WASM-&gt;EVM." CreationDate="2022-10-06T09:38:52.503" UserId="1867" />
  <row Id="4943" PostId="5178" Score="1" Text="`test` doesn't work like other features in Rust. You can't use code from other crates annotated with `#[cfg(test)]`, even when the code using it would have `#[cfg(test)]` too." CreationDate="2022-10-06T09:42:52.590" UserId="2673" />
  <row Id="4944" PostId="5190" Score="1" Text="See: https://substrate.stackexchange.com/questions/254/process-ethereum-transactions-in-an-offchain-worker" CreationDate="2022-10-06T09:44:16.070" UserId="1867" />
  <row Id="4945" PostId="5178" Score="1" Text="I just found a way to get a better result with just ignoring `impl_benchmark_test_suite` and use the actual runtime config parameters with this script: `./target/release/my-node benchmark pallet --chain dev --execution=native --wasm-execution=compiled --heap-pages=4096 --pallet &quot;*&quot; --extrinsic &quot;*&quot; --steps 1 --repeat 0 --detailed-log-output`" CreationDate="2022-10-06T09:48:41.720" UserId="2484" />
  <row Id="4947" PostId="5192" Score="0" Text="Let me check how Swanky can help in solving this: https://github.com/paritytech/ink/issues/1330, hm in short, it solves the problem." CreationDate="2022-10-06T10:03:54.190" UserId="19" />
  <row Id="4948" PostId="5196" Score="0" Text="./target/release/substrate --dev" CreationDate="2022-10-06T11:29:50.080" UserId="2281" />
  <row Id="4949" PostId="5206" Score="0" Text="Thank you, it works fine!" CreationDate="2022-10-06T11:59:28.863" UserId="2663" />
  <row Id="4950" PostId="5208" Score="0" Text="this is useful https://paritytech.github.io/substrate/master/sc_service/struct.GenericChainSpec.html" CreationDate="2022-10-06T12:37:46.220" UserId="298" />
  <row Id="4951" PostId="5208" Score="0" Text="and this shows you the spec version layout https://github.com/w3f/PSPs/blob/master/PSPs/drafts/psp-6.md" CreationDate="2022-10-06T12:39:09.780" UserId="298" />
  <row Id="4954" PostId="5208" Score="0" Text="but the above two links dont really help me understand that much." CreationDate="2022-10-06T12:54:38.190" UserId="298" />
  <row Id="4956" PostId="5208" Score="0" Text="this describes slightly what &quot;codeSubstitutes&quot; is: https://paritytech.github.io/substrate/master/sc_service/struct.GenericChainSpec.html#impl-ChainSpec-for-ChainSpec%3CG%2C%20E%3E" CreationDate="2022-10-06T12:58:31.730" UserId="298" />
  <row Id="4958" PostId="5181" Score="0" Text="I want to get nominator reward by nominator address not by block hash ? how to do?" CreationDate="2022-10-06T15:22:50.010" UserId="3252" />
  <row Id="4960" PostId="5181" Score="0" Text="If you don't know the blockHash you can query the events of all blocks and filter with the nominator address. See how to query all events: https://polkadot.js.org/docs/api/examples/promise/system-events" CreationDate="2022-10-06T15:57:25.990" UserId="2762" />
  <row Id="4961" PostId="5216" Score="0" Text="Follow-up question: why does the node advertise the transaction version but not the extrinsic version?" CreationDate="2022-10-06T17:19:58.643" UserId="12" />
  <row Id="4962" PostId="5214" Score="0" Text="Do I see it correctly that you write a `u128` to storage and then decode it as `u32`? This should work. You should probably use a `storage_alias` here to make it easier to read." CreationDate="2022-10-06T18:00:50.833" UserId="94" />
  <row Id="4963" PostId="5104" Score="0" Text="The reason why it displays `&lt;wasm:stripped&gt;` is because of the node was started using `--execution=wasm`.  If I change it to `--execution=Native`, it works!" CreationDate="2022-10-06T19:18:42.840" UserId="3142" />
  <row Id="4964" PostId="5195" Score="0" Text="For anyone looking this is actually a comprehensive answer because it covers other cases not mentioned in the question like swapping out one enum for another. In this case both the old and the new enums are equivalent in how they are represented in storage (and memory) even if the names change." CreationDate="2022-10-06T20:22:47.903" UserId="87" />
  <row Id="4965" PostId="5168" Score="0" Text="Finalization is very important for displaying state in the UI. e.g. If I'm showing a spinner after a button was clicked (and transaction sent) how do I know when to stop showing it? Things like &quot;is in block&quot;, &quot;pending signature&quot;, &quot;is finalized&quot; are very useful states to know about for creating robust UIs. This is out of scope for this thread, so I'll share my ideas another time elsewhere to get your take. Thanks for the help" CreationDate="2022-10-06T20:57:46.070" UserId="3140" />
  <row Id="4966" PostId="5219" Score="0" Text="So if I understand this correctly, the validator operators themselves have no control over whether their validator is selected to become a para-validator or not?" CreationDate="2022-10-06T23:03:59.650" UserId="87" />
  <row Id="4967" PostId="5219" Score="2" Text="Yes. They just run a regular validator node and the network picks who gets to be para-validators randomly." CreationDate="2022-10-06T23:21:02.323" UserId="32" />
  <row Id="4968" PostId="4948" Score="0" Text="Can you provide js or your preferred language code if possible for above example?." CreationDate="2022-10-07T03:55:35.177" UserId="3216" />
  <row Id="4969" PostId="5160" Score="2" Text="Next time I propose that you read the docs of the extrinsic before sending it.Using `delay` of `0` is wrong." CreationDate="2022-10-07T06:34:38.833" UserId="73" />
  <row Id="4970" PostId="5190" Score="0" Text="Yes from the OCW context you can sign transaction. This is fine." CreationDate="2022-10-07T06:35:47.073" UserId="73" />
  <row Id="4974" PostId="5214" Score="0" Text="I see. I'm just trying to assert that the old u32 value is purged.&#xA;With `storage_alias` the same thing happens.&#xA;I use `take()` on the `old::SomeName` in `on-runtime-upgrade` and then the value remains in `post-upgrade` when I use `old::SomeName::get()`" CreationDate="2022-10-07T12:37:42.193" UserId="505" />
  <row Id="4975" PostId="5214" Score="1" Text="I've edited the question with the minimal example with `storage_alias`&#xA;```" CreationDate="2022-10-07T12:49:21.237" UserId="505" />
  <row Id="4976" PostId="5226" Score="2" Text="With what version of ink! are you trying to build this example? Can you push your full repo to some GitHub account so that I can give it a try building it?  In the most recent version of ink! you should probably replace the `HashMap` storage type by `ink_storage::Mapping` which also requires an initialization in the constructor: https://use.ink/datastructures/mapping/" CreationDate="2022-10-07T12:58:04.833" UserId="1867" />
  <row Id="4979" PostId="5229" Score="0" Text="How is it that the extrinsic base weight (smallest non-zero weight) is mapped to 1/10 CENT?&#xA;&#xA;Are the following calculation correct:&#xA;Polkadots ExtrinsicBaseWeight can be found [here](https://github.com/paritytech/polkadot/blob/850d1f5a819de5a9bf52a149ffd8b7d584ba1076/runtime/polkadot/constants/src/weights/extrinsic_weights.rs#L56)                                    &#xA;                              &#xA; &#xA;`CENTS = 100_000_000 `&#xA;`extrinsic_base_weight = 1_000 * 85_212 = 85_212_000 ~ 100_000_000`" CreationDate="2022-10-07T14:55:46.883" UserId="590" />
  <row Id="4980" PostId="5232" Score="1" Text="Please ask separate questions as new posts, not in the answer to a question " CreationDate="2022-10-07T15:27:00.797" UserId="34" />
  <row Id="4982" PostId="5230" Score="0" Text="Why would you want to build what sounds like a heavy process into / on top of an already fairly heavy protocol for a chain like this? Why not use a separate derive and network for non chain operations?" CreationDate="2022-10-07T15:31:29.337" UserId="34" />
  <row Id="4983" PostId="5229" Score="0" Text="I updated the question because it is so hard to read the code that I left here." CreationDate="2022-10-07T15:41:37.687" UserId="590" />
  <row Id="4985" PostId="4847" Score="1" Text="For me this solved the issue." CreationDate="2022-10-07T16:27:40.970" UserId="19" />
  <row Id="4986" PostId="5235" Score="0" Text="How do you get the WASM code? Which file did you use in the `wbuild` folder?" CreationDate="2022-10-08T02:52:52.227" UserId="251" />
  <row Id="4987" PostId="5226" Score="1" Text="@Achim &#xA;the same error was happened when I changed as you said....&#xA;Repo:https://github.com/tnkshuuhei/WasmAMM/tree/master/amm" CreationDate="2022-10-08T03:50:15.230" UserId="3254" />
  <row Id="4988" PostId="5233" Score="0" Text="You can find the commit where this logic was added here: https://github.com/paritytech/polkadot/pull/1064" CreationDate="2022-10-08T04:56:15.137" UserId="28" />
  <row Id="4989" PostId="5224" Score="1" Text="It feels like this question and [this question](https://substrate.stackexchange.com/questions/5233/polkadot-weighttofee-coefficient) should be merged in some way. If you have received two answers here which gave you different information, then you can leave these open and mark the answers as correct, otherwise, I would suggest you make the question more different and specific in what you are trying to specifically overcome." CreationDate="2022-10-08T05:00:19.383" UserId="28" />
  <row Id="4990" PostId="129" Score="0" Text="If you are doing a calculation on a Balance (u128), I assume you should use the highest resolution Perbill?" CreationDate="2022-10-07T20:17:36.927" UserId="304" />
  <row Id="4991" PostId="129" Score="0" Text="It has nothing to do with the value, but the percentage you are after. 1% of a u128 will be the same with percent, permill, or perbill. But you cannot do .001% with percent for example. You should use perbill where you want maximum flexibility for the percentage you want to specify." CreationDate="2022-10-08T05:02:58.797" UserId="28" />
  <row Id="4993" PostId="5242" Score="0" Text="the frame-support dependency is actually present ```frame-support = { version = &quot;4.0.0-dev&quot;, default-features = false, git = &quot;https://github.com/paritytech/substrate.git&quot;, branch = &quot;polkadot-v0.9.30&quot; }``` even the frame-system dependency is present too" CreationDate="2022-10-08T08:45:37.797" UserId="3301" />
  <row Id="4994" PostId="5242" Score="0" Text="```error[E0432]: unresolved import `pallet` ``` was added to the error trace too." CreationDate="2022-10-08T08:47:27.680" UserId="3301" />
  <row Id="4995" PostId="5242" Score="0" Text="Could you put the full error log in the question? If there is a link to the code, that would be much better." CreationDate="2022-10-08T08:47:34.197" UserId="251" />
  <row Id="4996" PostId="5242" Score="0" Text="I just added the error trace and this is a link to the code on github [https://github.com/jim-nnamdi/pallet-identity/blob/main/pallets/template/src/lib.rs ] (github)" CreationDate="2022-10-08T08:49:20.000" UserId="3301" />
  <row Id="4997" PostId="5242" Score="0" Text="It looks like you updated your Substrate dependencies.&#xA;&#xA;`Config::Event` was renamed to `Config::RuntimeEvent`" CreationDate="2022-10-08T08:58:29.553" UserId="251" />
  <row Id="4998" PostId="5242" Score="0" Text="THANKS MAN! you saved a soul" CreationDate="2022-10-08T09:09:56.957" UserId="3301" />
  <row Id="4999" PostId="5230" Score="0" Text="Are you referring to using a separate blockchain for live streaming?" CreationDate="2022-10-08T09:56:46.153" UserId="3235" />
  <row Id="5000" PostId="4668" Score="0" Text="Did you check the content of `decodedEvent.event.data`?" CreationDate="2022-10-08T10:31:30.247" UserId="1867" />
  <row Id="5001" PostId="5244" Score="1" Text="I appreciate your help!! also your comment on PR and above are helpful for me.&#xA;the error wasn't happened but new errors come to me haha&#xA;I will try Mapping struct. Thank you!" CreationDate="2022-10-08T10:53:41.290" UserId="3254" />
  <row Id="5002" PostId="5238" Score="0" Text="What do you need more for? Typically there is ability for more to be granted from those that maintains the faucet if you have an appropriate and reasonable need for them." CreationDate="2022-10-08T14:47:10.327" UserId="34" />
  <row Id="5003" PostId="5230" Score="0" Text="A separate non blockchain service,like ipfs." CreationDate="2022-10-08T14:48:23.390" UserId="34" />
  <row Id="5005" PostId="5225" Score="0" Text="awesome thanks i was doing --chain dev instead of --chain rococo-staging, now it is working, thanks for your time." CreationDate="2022-10-08T16:06:19.150" UserId="298" />
  <row Id="5007" PostId="5244" Score="0" Text="You are welcome! If this answers your original question, feel free to mark it as a solution. You are also welcome to ask more questions regarding your implementation." CreationDate="2022-10-08T21:27:21.420" UserId="1867" />
  <row Id="5008" PostId="5248" Score="0" Text="you are 100% right, this is by far the quickest way to set ALL transaction fees to zero. I guess other pallets will have to check case by case. have re-worded my original question to expand scope to other pallets in case anyone can add" CreationDate="2022-10-09T02:17:17.590" UserId="3121" />
  <row Id="5010" PostId="5248" Score="0" Text="I think it is best to update your question to ask how to most easily set the fees to zero, which this answers, and can be answered. I do not think there is any simple and general answer on how to remove a pallet than to simply remove all the code that references it." CreationDate="2022-10-09T05:45:09.020" UserId="28" />
  <row Id="5011" PostId="5248" Score="0" Text="understood, thanks" CreationDate="2022-10-09T05:49:38.897" UserId="3121" />
  <row Id="5012" PostId="5244" Score="1" Text="Im very happy to meet a kind man as you in my first question!! I like the people at Parity more now haha." CreationDate="2022-10-09T10:42:39.130" UserId="3254" />
  <row Id="5013" PostId="5253" Score="0" Text="Indeed, I will use it with Stackoverflow.&#xA;Anyway, I did as you advised and the error disappeared. &#xA;Thank you very much!!" CreationDate="2022-10-09T11:31:19.883" UserId="3254" />
  <row Id="5016" PostId="5207" Score="0" Text="You said the following **changes** but never posted the original `Cargo.toml`. Changes from what?" CreationDate="2022-10-09T20:11:43.340" UserId="16" />
  <row Id="5019" PostId="5259" Score="1" Text="Please post all the versions of the involved components (`cargo contract` + `substrate-contracts-node`) and and a repo with the &quot;flipper&quot; you are trying to compile." CreationDate="2022-10-10T07:57:53.817" UserId="16" />
  <row Id="5021" PostId="5261" Score="0" Text="Watch [this](https://www.youtube.com/watch?v=BQ60bTU1bPg&amp;t=9s) video on the Polkadot ecosystem which is explained in simple terms." CreationDate="2022-10-10T09:13:57.597" UserId="2844" />
  <row Id="5023" PostId="5264" Score="0" Text="if it is possible, can you share automated script for upload and instantiate?" CreationDate="2022-10-10T09:59:40.747" UserId="3281" />
  <row Id="5025" PostId="5207" Score="1" Text="Sounds like the answer is &quot;remember to add `default-features = false` when importing `ethabi` and `hex`&quot;." CreationDate="2022-10-10T10:13:11.127" UserId="2673" />
  <row Id="5026" PostId="5259" Score="0" Text="Is [this](https://github.com/paritytech/ink/blob/master/examples/flipper/lib.rs) the contract you're trying to deploy?" CreationDate="2022-10-10T10:18:03.317" UserId="2673" />
  <row Id="5028" PostId="5255" Score="0" Text="Thank you very much.&#xA;How would I describe if I want to update a mapping by adding a specific value to a value that is already in the mapping?" CreationDate="2022-10-10T11:15:51.713" UserId="3254" />
  <row Id="5029" PostId="5255" Score="0" Text="Updated my answer above with an example." CreationDate="2022-10-10T12:28:38.767" UserId="1867" />
  <row Id="5030" PostId="748" Score="0" Text="Closing this post because no additional details were included to help diagnose the particular issue." CreationDate="2022-10-10T13:17:02.753" UserId="28" />
  <row Id="5031" PostId="5270" Score="0" Text="Thanks!! codespool" CreationDate="2022-10-10T13:27:08.543" UserId="3281" />
  <row Id="5032" PostId="5255" Score="0" Text="Thank you very much. But I don't think I understand it properly. I have updated my question as well." CreationDate="2022-10-10T14:18:01.087" UserId="3254" />
  <row Id="5033" PostId="5255" Score="0" Text="I was assuming you mapping's value is a struct. In the referenced case its simpler, I updated my example above. Read the mapping's value to get the old value and then write the new one which depend's on the old value." CreationDate="2022-10-10T14:54:24.840" UserId="1867" />
  <row Id="5034" PostId="5176" Score="1" Text="Good point, guess I should have read the question details more carefully." CreationDate="2022-10-10T14:57:07.850" UserId="452" />
  <row Id="5035" PostId="5229" Score="0" Text="Hey, I think I accidentally downvoted your answer. Can you please make an edit so I can regain the ability to upvote?" CreationDate="2022-10-10T16:11:40.650" UserId="590" />
  <row Id="5036" PostId="1535" Score="0" Text="@Purple_Turtle closing this as there was not enough details for us to get you an answer. If this is still an issue, please let me know and we can look into how we can better resolve this." CreationDate="2022-10-10T17:41:34.530" UserId="28" />
  <row Id="5037" PostId="1466" Score="0" Text="if this is still a problem for you, please open an issue on the frontier repo where you can get more specific help." CreationDate="2022-10-10T17:45:14.083" UserId="28" />
  <row Id="5038" PostId="5261" Score="0" Text="See also: https://substrate.stackexchange.com/questions/7/whats-the-difference-between-substrate-and-polkadot/" CreationDate="2022-10-10T17:47:44.197" UserId="28" />
  <row Id="5039" PostId="5274" Score="0" Text="Can you be more clear on what you want to debug? I mean when `Debug` ins't implemented, you need to derive the trait." CreationDate="2022-10-10T18:06:47.123" UserId="73" />
  <row Id="5040" PostId="5274" Score="0" Text="what kind of value do you hope to see with `print`?" CreationDate="2022-10-10T18:07:40.837" UserId="28" />
  <row Id="5041" PostId="5231" Score="0" Text="Yes of-course, makes sense now, thanks for clarifying." CreationDate="2022-10-10T18:15:19.307" UserId="505" />
  <row Id="5042" PostId="5260" Score="0" Text="Thanks Shawn, that makes sense" CreationDate="2022-10-10T20:04:57.987" UserId="183" />
  <row Id="5043" PostId="5276" Score="0" Text="consider Phala Fat Contracts" CreationDate="2022-10-10T20:15:23.297" UserId="351" />
  <row Id="5044" PostId="1388" Score="0" Text="I consulted some more people on this, and it does not seem to be an issue with Polkadot JS, as other projects have used the library successfully with React Native. Likely the issue is with your project, so you will need to provide more information if you want to get an answer." CreationDate="2022-10-10T22:24:17.880" UserId="28" />
  <row Id="5045" PostId="1388" Score="0" Text="Here is a link to one of the applications referenced using Polkadot JS just fine: https://github.com/stylo-app/stylo" CreationDate="2022-10-10T22:25:11.777" UserId="28" />
  <row Id="5049" PostId="5062" Score="0" Text="Is this still a problem for you? Can you share more details where you are seeing the fee value is zero?" CreationDate="2022-10-11T01:08:45.223" UserId="28" />
  <row Id="5050" PostId="4976" Score="0" Text="I have reinstalled it but the issue persists. I am able to build substrate on Ubuntu and an m1 mac but not the x86 edition." CreationDate="2022-10-11T02:16:37.097" UserId="3225" />
  <row Id="5051" PostId="4149" Score="0" Text="did you solve this problem??" CreationDate="2022-10-11T05:53:03.790" UserId="2281" />
  <row Id="5052" PostId="5286" Score="0" Text="Thanks, I checked the linked repo before but there was no answer to my question.&#xA;&#xA;But if this isn't on a schedule, than that's an answer to my question. Thanks!" CreationDate="2022-10-11T06:12:33.263" UserId="426" />
  <row Id="5053" PostId="4928" Score="0" Text="Does this answer your question? [Node startup message missing after upgrade to Polkadot v0.9.23](https://substrate.stackexchange.com/questions/3147/node-startup-message-missing-after-upgrade-to-polkadot-v0-9-23)" CreationDate="2022-10-11T07:12:23.437" UserId="251" />
  <row Id="5058" PostId="5273" Score="0" Text="I recommend you to take a look at the @substrate/api-sidecar tool, a REST service that makes it easy to interact with blockchain nodes to query this kind of information: https://github.com/paritytech/substrate-api-sidecar" CreationDate="2022-10-11T08:03:20.963" UserId="2762" />
  <row Id="5059" PostId="5276" Score="0" Text="Is any other way?" CreationDate="2022-10-11T08:52:40.713" UserId="2548" />
  <row Id="5061" PostId="5287" Score="0" Text="The fact that it works for wasm could mean that you are not passing the build flags somewhere. Did this happen after a Substrate update? Where can I find the code?" CreationDate="2022-10-11T10:56:18.963" UserId="94" />
  <row Id="5063" PostId="5294" Score="0" Text="You can run your node with `--help`. It will print out the docs. In the code you will find them here: https://github.com/paritytech/substrate/blob/2cd40882d27ef10437c691b2705e67fa97f7c074/client/cli/src/commands/run_cmd.rs#L209-L211" CreationDate="2022-10-11T11:35:59.837" UserId="73" />
  <row Id="5064" PostId="5287" Score="0" Text="@OliverTale-Yazdi I'm based on the old Substrate version (~polkadot-v0.9.26); the code is here: https://github.com/Cardinal-Cryptography/aleph-node/pull/655" CreationDate="2022-10-11T11:45:54.740" UserId="2736" />
  <row Id="5066" PostId="5287" Score="0" Text="I dont quite understand the code. You dont have a `--dev` flag for testing? Or `--chain my-runtime-dev`?" CreationDate="2022-10-11T12:37:58.323" UserId="94" />
  <row Id="5067" PostId="5287" Score="0" Text="nah, we don't have... we have a command bootstrap-chain for generating chainspec in a `dev` manner" CreationDate="2022-10-11T13:04:59.453" UserId="2736" />
  <row Id="5068" PostId="5274" Score="0" Text="Apol for the ambiguity, new to a lot of things, not just substrate - will ask better questions moving forward. Updated above with context." CreationDate="2022-10-11T14:00:15.733" UserId="3121" />
  <row Id="5069" PostId="5276" Score="0" Text="If you are using ink then just use Phat Contract because the contract is executed in offchain enviroment thus giving you more functionalities. Concerning other smart contract no its not possible" CreationDate="2022-10-11T14:05:21.487" UserId="351" />
  <row Id="5071" PostId="5276" Score="0" Text="I am using substrate pallets, not ink." CreationDate="2022-10-11T14:23:35.023" UserId="2548" />
  <row Id="5073" PostId="5274" Score="0" Text="https://substrate.stackexchange.com/a/5294/73 here I have explained how the private key is generated. Or better, how the uri is build." CreationDate="2022-10-11T18:24:31.313" UserId="73" />
  <row Id="5075" PostId="5301" Score="0" Text="Thanks it success after `protobuf installation`." CreationDate="2022-10-12T02:59:37.423" UserId="2844" />
  <row Id="5078" PostId="5177" Score="0" Text="I want to achieve three functions:&#xA;1. The one is becoming a nominator and staking my amount;&#xA;2. The two is appending the staking my amount;&#xA;3. The three is unbounding my staking amount;&#xA;Can you give me the example about the ? I do not know how to write and use which rpc," CreationDate="2022-10-12T03:06:02.113" UserId="3252" />
  <row Id="5079" PostId="5290" Score="0" Text="Thanks. Very useful answer!" CreationDate="2022-10-12T04:23:01.050" UserId="544" />
  <row Id="5080" PostId="5177" Score="0" Text="How to build the payload?" CreationDate="2022-10-12T04:53:55.570" UserId="3252" />
  <row Id="5084" PostId="5307" Score="0" Text="Could you try to rephrase your question, and remove the unnecessary code-block formatting? This is hardly readable." CreationDate="2022-10-12T08:23:22.383" UserId="2673" />
  <row Id="5085" PostId="5307" Score="0" Text="ok,please look up" CreationDate="2022-10-12T08:28:09.720" UserId="3252" />
  <row Id="5086" PostId="5276" Score="0" Text="Okey Sorry for the earlier comments. So yes you can because offchain workers can execute any http logic" CreationDate="2022-10-12T10:40:06.343" UserId="351" />
  <row Id="5088" PostId="5309" Score="1" Text="I missed this question https://substrate.stackexchange.com/a/5074/501 which is only a piece of the answer..." CreationDate="2022-10-12T14:35:44.083" UserId="501" />
  <row Id="5089" PostId="5312" Score="0" Text="I really like this answer. A combination of PoA + Instant seal would be a good start." CreationDate="2022-10-12T15:08:54.483" UserId="139" />
  <row Id="5090" PostId="5315" Score="0" Text="If possible, prefer to text snippets rather than screenshots. Text works better for discoverability of the issue by other people." CreationDate="2022-10-12T16:02:31.150" UserId="45" />
  <row Id="5091" PostId="5315" Score="0" Text="thanks @pepyakin, edited" CreationDate="2022-10-12T16:46:15.487" UserId="3326" />
  <row Id="5092" PostId="5318" Score="1" Text="Thanks indeed for the quick reply." CreationDate="2022-10-12T17:53:10.120" UserId="424" />
  <row Id="5093" PostId="5314" Score="0" Text="Ok, thanks I understand better the error code itself, but do I have to parse the metadata myself ? &#xA;the best way I found to do it is to render the metadata as a JSON and parse it, to lookup the error index, then get an error &quot;type&quot; (which is a number) and lookup again this number and find another object, then get the error 14 (converted from the first two digits of the hex error code), and find there the error description. Is there is no function to do this easier ?" CreationDate="2022-10-12T21:04:34.717" UserId="154" />
  <row Id="5094" PostId="5326" Score="0" Text="I think this is okay. Telemetry will refuse your connection sometimes. There is no harm to your chain." CreationDate="2022-10-13T11:50:13.543" UserId="251" />
  <row Id="5095" PostId="5326" Score="0" Text="I see, it just felt odd I continue to get the same telemtry error for almost 24 hours... What would be the best way to look up more details on `error: Other(A(Handshake(Io(Kind(UnexpectedEof)))))`?" CreationDate="2022-10-13T12:56:44.187" UserId="3121" />
  <row Id="5096" PostId="5308" Score="0" Text="From this readme: https://github.com/paritytech/substrate/tree/ce10b9f29353e89fc3e59d447041bb29622def3f/frame/examples/offchain-worker&#xA;we know that we can send data from off-chain worker -- &gt; runtime. What if would like to send the data from runtime to an off-chain worker?" CreationDate="2022-10-13T13:49:36.567" UserId="2548" />
  <row Id="5097" PostId="5326" Score="0" Text="`RUST_LOG=sc_telemetry`, I don't remember if it is `sc_telemetry`, but something like that." CreationDate="2022-10-13T16:03:44.487" UserId="251" />
  <row Id="5098" PostId="5332" Score="0" Text="You mean how much space an encoded block takes up? For what is that important? You could compress them afterwards." CreationDate="2022-10-13T16:07:08.840" UserId="94" />
  <row Id="5099" PostId="5332" Score="0" Text="@OliverTale-Yazdi yes somewhat along those lines. Any docs you can point me to for reading about the same? I am curios to know about the entire process like block encoding which you mentioned.." CreationDate="2022-10-13T17:30:39.427" UserId="2089" />
  <row Id="5102" PostId="5339" Score="0" Text="What is `NetworkWoker`? Could add some links/details?" CreationDate="2022-10-14T01:56:18.720" UserId="251" />
  <row Id="5103" PostId="5145" Score="0" Text="I use `cargo +nightly-2022-08-15 test` rather `cargo +nightly test` to test and `cargo +nightly-2022-08-15 contract build` to build rather `cargo +nightly contract build` today and it works for me. My `cargo contract version cargo-contract 1.5.0-unknown-x86_64-apple-darwin` and `rustc 1.66.0-nightly (c0983a9aa 2022-10-12))`" CreationDate="2022-10-14T02:09:55.263" UserId="2844" />
  <row Id="5104" PostId="4810" Score="0" Text="I use `cargo +nightly-2022-08-15 test` rather `cargo +nightly test` to test and `cargo +nightly-2022-08-15 contract build` to build rather `cargo +nightly contract build` today and it works for me. My `cargo contract version cargo-contract 1.5.0-unknown-x86_64-apple-darwin` and `rustc 1.66.0-nightly (c0983a9aa 2022-10-12))`" CreationDate="2022-10-14T02:10:26.427" UserId="2844" />
  <row Id="5105" PostId="4847" Score="0" Text="I use `cargo +nightly-2022-08-15 test` rather `cargo +nightly test` to test and `cargo +nightly-2022-08-15 contract build` to build rather `cargo +nightly contract build` today and it works for me. My `cargo contract version cargo-contract 1.5.0-unknown-x86_64-apple-darwin` and `rustc 1.66.0-nightly (c0983a9aa 2022-10-12))`" CreationDate="2022-10-14T02:11:26.863" UserId="2844" />
  <row Id="5106" PostId="5338" Score="0" Text="hmmm I may be missing something, I have implemented your code snippet, it compiles, but still it doesn't trigger in my custom pallet. I wonder if I need to add something in the runtime?" CreationDate="2022-10-14T02:55:16.533" UserId="3326" />
  <row Id="5107" PostId="5334" Score="1" Text="Exactly this. We also have an [integration guide](https://wiki.polkadot.network/docs/build-integration) with a specific note about monitoring deposits:&#xA;&#xA;&quot;If you want to monitor deposits into an address, keep in mind that several transactions can initiate a balance transfer (such as `balances.transferKeepAlive` and a `utility.batch` transaction with a transfer inside of it). Only monitoring `balances.transfer` transactions will not be sufficient. Make sure that you monitor events in each block for events that contain your addresses of interest to ensure that you can properly credit deposits.&quot;" CreationDate="2022-10-14T05:24:44.843" UserId="620" />
  <row Id="5110" PostId="5290" Score="0" Text="Could you elaborate a little bit more why Sr25119 is non-deterministic? Maybe i have been using an incorrect definition for deterministic. I can produce a multisig out of some Sr25519 addresses off-chain. Is that part deterministic? But the signing part is non-determinsitic, perhaps now i see the distinction." CreationDate="2022-10-14T12:25:10.547" UserId="298" />
  <row Id="5111" PostId="5287" Score="0" Text="In Polkadot we only run the benchmarks with a dev runtime. I dont quite remember why, but there was a good reason for it…" CreationDate="2022-10-14T12:27:31.497" UserId="94" />
  <row Id="5113" PostId="5287" Score="0" Text="perhaps simply because dev runtime can produce blocks without peers." CreationDate="2022-10-14T12:36:03.290" UserId="298" />
  <row Id="5114" PostId="5336" Score="0" Text="Hello Alexandre, maybe you are from the blockchain academy if so its me Ramsey, hello! A good tip is to rotateKeys so that al the keys in your node's keystore are added then setKeys on the chain. There are probably somekeys missing so that parachain functionality can work. Check this tutorial which has the rotateKeys workflow https://decentration.medium.com/set-up-public-relay-validators-with-a-partner-3ef409c675c7" CreationDate="2022-10-14T13:15:32.833" UserId="298" />
  <row Id="5115" PostId="5336" Score="0" Text="Aslo are you running with just one validator on the relay chain? you need at least 3 validators in order to include a parachain." CreationDate="2022-10-14T13:18:30.583" UserId="298" />
  <row Id="5116" PostId="5336" Score="0" Text="Also in the error it says `No keystore associated for the current context!` try adding --alice and --bob to your collator commands, which should add the keys to the keystore of your nodes automatically. But if your chain spec of your parachain requires specific keys then you will need add those keys, to do that you need to curl insertKey with the correct methods. Or do key-insert like you did with the relay chain." CreationDate="2022-10-14T13:21:17.527" UserId="298" />
  <row Id="5117" PostId="5345" Score="0" Text="perhaps make title more human readable to get better results." CreationDate="2022-10-14T13:30:45.763" UserId="298" />
  <row Id="5118" PostId="5332" Score="1" Text="On StackExchange questions have to be asked with a very narrow scope, otherwise they cannot be answered with one simple post. You can ask in the Matrix chat for more general questions." CreationDate="2022-10-14T14:05:18.490" UserId="94" />
  <row Id="5119" PostId="5347" Score="0" Text="i use the maxAdditional  which is solving the problem ," CreationDate="2022-10-14T15:26:18.700" UserId="3252" />
  <row Id="5120" PostId="5350" Score="0" Text="Yes, I'm using specific keys for both. In the Relay and in the Parachain. The thing is, how can I add those keys to the parachain keystore?&#xA;The parachain build doesn't have the key subcommand. When I tried using the Relay binary to use it's `key-insert` I got a panic error. (rethinking now, it might work! )   &#xA;Can I add the key subcommand in the cli.rs and commands.rs on my para node?&#xA;And thanks for the help!! &lt;3 I'll try to add it to the para's keystore." CreationDate="2022-10-14T15:31:44.647" UserId="3331" />
  <row Id="5123" PostId="5325" Score="0" Text="Please share your source? A minimal reproducible example is best to help" CreationDate="2022-10-14T16:34:05.867" UserId="34" />
  <row Id="5124" PostId="5350" Score="0" Text="Yes, as I thought the error when trying to insert the keys into the parachain keystore returns me this:&#xA;&#xA;./target/release/polkadot key insert --base-path /tmp/parachain/mld --chain rococo-para-2000-raw.json --scheme sr25519 --suri &quot;&lt;key&gt;&quot; --key-type aura&#xA;&#xA;Error:&#xA;   0: Invalid input: Error parsing spec file: unknown field relay_chain at line 64 column 1&#xA;Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.&#xA;Run with RUST_BACKTRACE=full to include source snippets." CreationDate="2022-10-14T16:45:45.000" UserId="3331" />
  <row Id="5125" PostId="5339" Score="0" Text="https://crates.parity.io/sc_network/struct.NetworkWorker.html" CreationDate="2022-10-14T17:53:11.663" UserId="3239" />
  <row Id="5126" PostId="5347" Score="0" Text="Then please mark the question as solved." CreationDate="2022-10-14T17:57:47.180" UserId="94" />
  <row Id="5127" PostId="5338" Score="0" Text="Yeah for sure. You need to set this as the `SessionManager` of the session pallet `Config` trait." CreationDate="2022-10-14T19:18:01.700" UserId="73" />
  <row Id="5128" PostId="5350" Score="1" Text="Then you can curl it in something like this: curl -vH 'Content-Type: application/json' --data '{ &quot;jsonrpc&quot;:&quot;2.0&quot;, &quot;method&quot;:&quot;author_insertKey&quot;, &quot;params&quot;:[&quot;aura&quot;, &quot;0x153d8db5f7ef35f18a456c049d6f6e2c723d6c18d1f9f6c9fbee880c2a171c73&quot;, &quot;0x408f99b525d90cce76288245cb975771282c2cefa89d693b9da2cdbed6cd9152&quot;],&quot;id&quot;:1 }' localhost:9933" CreationDate="2022-10-14T20:51:24.120" UserId="298" />
  <row Id="5129" PostId="5318" Score="1" Text="Thx - the parathread was upgraded now." CreationDate="2022-10-14T19:05:05.663" UserId="424" />
  <row Id="5130" PostId="5338" Score="0" Text="Thank you! works now like you said just needed to add this &#xA;&#xA;```&#xA;    type SessionManager = custom_pallet::SessionManager&lt;pallet_session::historical::NoteHistoricalRoot&lt;Self, Staking&gt;&gt;;&#xA;```&#xA;&#xA;to session config" CreationDate="2022-10-14T23:48:43.403" UserId="3326" />
  <row Id="5131" PostId="5350" Score="0" Text="Still don't working.  When I'm going to check the node's keystore by `ls /tmp/parachain/mycol` it shows two chain options instead of just one. Can you please check if that is correct? [terminal outputs](https://imgur.com/a/5XB6jdD)" CreationDate="2022-10-15T00:10:25.653" UserId="3331" />
  <row Id="5132" PostId="5350" Score="0" Text="When I tried the curl, the output I got was `{&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;result&quot;:null,&quot;id&quot;:1}` I must be missing something on the keystore. I'm going crazy with this D:" CreationDate="2022-10-15T00:18:03.737" UserId="3331" />
  <row Id="5134" PostId="5339" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-10-15T02:47:43.877" UserId="-1" />
  <row Id="5135" PostId="5363" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-10-15T02:48:29.590" UserId="-1" />
  <row Id="5136" PostId="5363" Score="0" Text="Don't populate state with &quot;useless garbage&quot; just what you need to have populated in state before you run the extrinsic to test against that state." CreationDate="2022-10-15T02:51:45.533" UserId="34" />
  <row Id="5137" PostId="5354" Score="0" Text="Thanks! Will link to this explanation on the Wiki" CreationDate="2022-10-15T07:14:50.377" UserId="32" />
  <row Id="5138" PostId="5350" Score="0" Text="That means success. I know that’s a confusing result, but that is expected. There is docs on this somewhere." CreationDate="2022-10-15T07:46:17.613" UserId="298" />
  <row Id="5139" PostId="5350" Score="0" Text="The result null means there’s no error when inserting the key. You can check the keystore file in your directory where ever you added the —base-path (e.g. /home/…/parachain/keystore) and you will see the key in there." CreationDate="2022-10-15T07:54:27.733" UserId="298" />
  <row Id="5142" PostId="5368" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-10-16T00:56:05.203" UserId="-1" />
  <row Id="5143" PostId="5290" Score="0" Text="An on-chain multi-sig does not care, if that's your question.  Afaik we've no wallets with support off-chain cryptographic multi-sigs.  We've some code in schnorrkel for this, but it needs to be replaced since I wrote it before we'd proved https://eprint.iacr.org/2020/1245 and thus" CreationDate="2022-10-16T08:52:24.873" UserId="1810" />
  <row Id="5144" PostId="5345" Score="0" Text="The link to your explorer times out. After this error does your chain produce blocks normally?" CreationDate="2022-10-16T14:49:12.970" UserId="29" />
  <row Id="5145" PostId="5368" Score="0" Text="Please provide a [minimal-reproducible-example](https://stackoverflow.com/help/minimal-reproducible-example)." CreationDate="2022-10-16T15:21:04.643" UserId="29" />
  <row Id="5146" PostId="5368" Score="0" Text="To add Charlie as a sub-node, follow the steps outlined here: https://docs.substrate.io/tutorials/get-started/authorize-specific-nodes/#launch-network-nodes" CreationDate="2022-10-16T15:21:48.417" UserId="29" />
  <row Id="5147" PostId="5349" Score="0" Text="So is it not possible to convert a already working chain which is not substrate-node-template to a parachain?" CreationDate="2022-10-17T04:59:51.587" UserId="354" />
  <row Id="5148" PostId="5349" Score="0" Text="i answered your initial question &quot;is it possible to convert a solo to a relay chain&quot;, which i hope was a satisfactory answer for your initial question?&#xA;&#xA;To answer your new question &quot;is it possible to convert an already working chain to a parachain?&quot; The answer is yes and no, meaning you wont be able to take the blocks with you to the parachain. The parachain has to start with a new genesis block. But yes there are examples of solo chains becoming parachains by forking the state of their chain and then uploading it to the genesis state of the parachain." CreationDate="2022-10-17T11:58:29.597" UserId="298" />
  <row Id="5149" PostId="5361" Score="0" Text="Ah that &quot;schedule&quot; for runtime upgrade is scheduling with the relay chain. I kept trying to understand how it worked with the scheduler pallet." CreationDate="2022-10-17T12:19:22.933" UserId="300" />
  <row Id="5150" PostId="5383" Score="0" Text="Thanks much! This is exactly what I was looking for!" CreationDate="2022-10-17T16:11:37.773" UserId="698" />
  <row Id="5151" PostId="5391" Score="0" Text="Ok it's working, thank you!" CreationDate="2022-10-17T16:40:10.707" UserId="2663" />
  <row Id="5152" PostId="3705" Score="0" Text="have same issue sending ROC from Rococ to Rocmine https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frococo-rpc.polkadot.io#/extrinsics/decode/0x630201000100a10f01000101002aa47c41b763a16946b6cc7e051174877b14fafe5d8daf075b0e39e2398c8e4c0104000000000700e876481700000000" CreationDate="2022-10-17T17:25:16.007" UserId="484" />
  <row Id="5153" PostId="5350" Score="0" Text="Yes, indeed it works. But what happens after I insert the key is.&#xA;2022-10-17 14:25:47.587  WARN tokio-runtime-worker parachain::collator-protocol: Collation wasn't advertised to any validator. candidate_hash=0xe5c94d1cada5991c78b2ba39adf80aa90c96e085897beede55ac0f3241745075 pov_hash=0x0c8955bdc0f991fc543f8dcec038ecdb8ef445842a795ff5205265b95f0299c9 traceID=305438426720980369332937585534051027625" CreationDate="2022-10-17T17:28:34.800" UserId="3331" />
  <row Id="5154" PostId="5394" Score="0" Text="The current block author for the parachain or for the relay chain?" CreationDate="2022-10-17T19:42:54.307" UserId="29" />
  <row Id="5155" PostId="5372" Score="0" Text="Check the substrate version with which solang is compatible, this is one of the reasons, another one is, you need to optimize the solidity code before compiling which remix already provides but I don't know does solang has it or not." CreationDate="2022-10-18T05:16:16.890" UserId="354" />
  <row Id="5156" PostId="5399" Score="0" Text="downvoted. because there is not weight in reserveTransferAssets" CreationDate="2022-10-18T08:42:21.943" UserId="484" />
  <row Id="5157" PostId="5399" Score="0" Text="please read the docs too - in both cases it will fail either teleport or reserve transfer, so why one fails and other works if these are same?" CreationDate="2022-10-18T08:52:39.227" UserId="484" />
  <row Id="5158" PostId="5399" Score="0" Text="Updated. Check the answer again." CreationDate="2022-10-18T10:18:24.203" UserId="251" />
  <row Id="5159" PostId="5397" Score="0" Text="Hey, can you add the command you are using to start the collator?" CreationDate="2022-10-18T10:39:35.830" UserId="279" />
  <row Id="5160" PostId="5396" Score="0" Text="OK, but couldn't such transaction be emitted by a mere function call in Rust, instead of making an HTTP request?" CreationDate="2022-10-18T11:03:34.603" UserId="2673" />
  <row Id="5161" PostId="5403" Score="0" Text="ok. will check version mentioned" CreationDate="2022-10-18T11:43:20.797" UserId="484" />
  <row Id="5162" PostId="5403" Score="0" Text="i did transfers previosly. but they kind of stopped to work." CreationDate="2022-10-18T11:43:42.050" UserId="484" />
  <row Id="5163" PostId="5403" Score="0" Text="transfer from rococo to rockmine does not work for me too. but teleport work perfectly." CreationDate="2022-10-18T11:44:07.290" UserId="484" />
  <row Id="5164" PostId="5403" Score="0" Text="rockmine is in full 100% trust with rococo as rockmine accepts rococo as root." CreationDate="2022-10-18T11:45:01.647" UserId="484" />
  <row Id="5165" PostId="5403" Score="0" Text="but yeah, it is unclear. it should teleport to rococo, but then transfer to our chain for parachain xcm." CreationDate="2022-10-18T11:51:17.107" UserId="484" />
  <row Id="5166" PostId="5397" Score="0" Text="RUST_LOG=runtime ./target/release/parachain \&#xA;--collator \&#xA;--force-authoring \&#xA;--chain para-2000-raw.json \&#xA;--base-path /tmp/parachain/tokenizer \&#xA;--port 40333 \&#xA;--ws-port 8844 \&#xA;--name PARA2000 \&#xA;--rpc-port 9022 \&#xA;--unsafe-ws-external \&#xA;--rpc-methods=unsafe \&#xA;--rpc-external \&#xA;--rpc-cors=all \&#xA;-- \&#xA;--execution wasm \&#xA;--chain 2v-raw.json \&#xA;--port 30343 \&#xA;--ws-port 9977" CreationDate="2022-10-18T12:01:05.020" UserId="3331" />
  <row Id="5167" PostId="5398" Score="0" Text="When I used the `--alice` flag on the parachain, I didn't insert the keys manually. I'm saying that, something must be wrong on the Relay Chain side (on the session keys probably?) because I got the same error `Collation wasn't advertised to any validator.`" CreationDate="2022-10-18T12:03:30.200" UserId="3331" />
  <row Id="5168" PostId="5405" Score="0" Text="I can't really follow. Isn't the &quot;getter&quot; that I can add to the storage doing the same? I'm coming from solidity, where this is also common practise to discover the storage - what is the equivalent pattern in substrate?&#xA;&#xA;How would I wrap BoundedVec with a struct and why is it better to give a struct back while giving back primitives is a bad idea?" CreationDate="2022-10-18T12:23:49.567" UserId="3265" />
  <row Id="5169" PostId="3705" Score="0" Text="@DzmitryLahoda see answer bellow, maybe it'll help." CreationDate="2022-10-18T12:43:46.283" UserId="501" />
  <row Id="5170" PostId="5397" Score="1" Text="I read your comment about using `--alice`, I think something could be wrong in the chain-spec. Can you trying with zombienet (https://github.com/paritytech/zombienet) ?" CreationDate="2022-10-18T13:14:53.213" UserId="279" />
  <row Id="5171" PostId="5396" Score="2" Text="Yes, there are helper functions made for offchain workers to send both signed and unsigned transactions: https://paritytech.github.io/substrate/master/frame_system/offchain/index.html" CreationDate="2022-10-18T13:35:47.490" UserId="167" />
  <row Id="5172" PostId="5398" Score="0" Text="Did you try adding more validators to the relaychain. If the validators count too low, it won't assign validators to the parachain." CreationDate="2022-10-18T14:02:24.440" UserId="251" />
  <row Id="5173" PostId="5405" Score="0" Text="Because the way you are trying to do is defining an extrinsic call. Add `#[pallet::getter(fn names)]` above the `Names` is the default way to add a getter to that storage." CreationDate="2022-10-18T14:09:05.597" UserId="251" />
  <row Id="5174" PostId="5398" Score="0" Text="Yes, I have tried with 3 validators on the Relay Chain but got the same error. Should I need to insert on the Relay validator nodes any kind/type of keys from my Collator?" CreationDate="2022-10-18T14:20:39.600" UserId="3331" />
  <row Id="5175" PostId="5405" Score="0" Text="Ok, so extrinsic calls should only be read only under all circumstances? So discovery of the storage may only be done by the default auto-generated getters? Is that correct to say?" CreationDate="2022-10-18T14:24:22.167" UserId="3265" />
  <row Id="5176" PostId="5397" Score="0" Text="My builds have custom build-spec commands to receive seed and generate the needed keys for the Relay and in the Parachain as well. What is interesting is, when I make the ChainSpec using `//Alice //Bob` as seed in the Relay and starting with `--alice` and `--bob` flags in the Relay, and in the Parachain using the same Genesis, Wasm and ChainSpec with the Alice keys inserted running the Para with the `--alice` flag it works, the collation starts. Which by this I started to think that I'm missing something when inserting keys on my Relay Validtator Nodes." CreationDate="2022-10-18T14:30:19.447" UserId="3331" />
  <row Id="5177" PostId="5405" Score="1" Text="The extrinsic call is similar to the transaction call in Ethereum. Users pay fee and execute the functions. The default auto-generated getter is something read-only, it queries the storage and returns the result to you. There are other ways to do that, like define a custom RPC query. It's what I said in the last part. We usually use that for more complicated situation. For example, get the names and check if it is CAPITAL if yes then return `Some(names)` else `None`. When you want a processed value, then use custom RPC." CreationDate="2022-10-18T14:31:58.960" UserId="251" />
  <row Id="5178" PostId="5398" Score="1" Text="No, you don't need to do that." CreationDate="2022-10-18T15:02:27.247" UserId="251" />
  <row Id="5179" PostId="5398" Score="0" Text="Could you share your relaychain and parachain code?" CreationDate="2022-10-18T15:03:11.833" UserId="251" />
  <row Id="5180" PostId="5405" Score="0" Text="Thanks. More questions to come :-)" CreationDate="2022-10-18T15:12:13.217" UserId="3265" />
  <row Id="5181" PostId="5398" Score="0" Text="Interesting, so it should work when using `--alice`. I can't share the code sorry, but I'm trying a different approach, I'm building the v0.9.29 from scratch, and will just edit the ChainSpec files. The modifications I made were only in the `chain_spec.rs` and in `commands.rs` just to add a new build-spec option that receives the seed input as a CLI argument." CreationDate="2022-10-18T15:21:54.403" UserId="3331" />
  <row Id="5182" PostId="5403" Score="1" Text="Updated @DzmitryLahoda" CreationDate="2022-10-18T15:25:25.637" UserId="1959" />
  <row Id="5185" PostId="5405" Score="0" Text="Could you give me a hint where to look for wrapping with a struct?" CreationDate="2022-10-18T16:36:57.160" UserId="3265" />
  <row Id="5186" PostId="5405" Score="0" Text="`struct H256([u8; 32]);`, it is `[u8; 32]` actually. But PolkadotApps could recognize it as `Hash`, `0x..` instead of `[0, ..]`." CreationDate="2022-10-18T17:00:44.247" UserId="251" />
  <row Id="5187" PostId="5405" Score="0" Text="Ok, i am far away from understanding what you are talking about :-) - is there documentation around this?" CreationDate="2022-10-18T17:16:08.817" UserId="3265" />
  <row Id="5188" PostId="5405" Score="0" Text="Ah, I know found how i can query it on polkadot.js.org at least." CreationDate="2022-10-18T17:22:06.470" UserId="3265" />
  <row Id="5189" PostId="5406" Score="0" Text="The implementation on how to store offchain data is maintainer's responsibility. These solutions will not land into core substrate repo." CreationDate="2022-10-18T18:07:18.667" UserId="351" />
  <row Id="5190" PostId="5406" Score="0" Text="Offchain data can be stored in offchain storage. Those forks are custom implementation. &#xA;I think the question could be more clear if you asked what are the ways to store offchain data and i believe there are answers already" CreationDate="2022-10-18T18:09:51.933" UserId="351" />
  <row Id="5191" PostId="5419" Score="0" Text="It looks like JS can be compiled to wasm for a wasm32-wasi target using https://github.com/Shopify/javy.git.  However I'm guessing it wouldn't be compatible with substrate's  wasm32-unknown-unknown." CreationDate="2022-10-18T19:48:53.813" UserId="2451" />
  <row Id="5192" PostId="5406" Score="0" Text="`&gt; These solutions will not land into core substrate repo.`&#xA;&#xA;New here... are you a member of the core team?" CreationDate="2022-10-18T20:30:19.360" UserId="3344" />
  <row Id="5198" PostId="5406" Score="0" Text="am a contributor but these are personal custom implementation. the core team implementation is to use offchain db which is already configured." CreationDate="2022-10-18T23:01:43.640" UserId="351" />
  <row Id="5199" PostId="5403" Score="0" Text="likely transfering from my chain to relay not works either https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.composablefinance.ninja#/extrinsics/decode/0x29080101000100010100b8e39e87c0fec96f7d012d31a4c27b44bfb504ab359662112e4270e380c84341010400000000070010a5d4e8000000000102286bee will retry later" CreationDate="2022-10-18T23:12:07.000" UserId="484" />
  <row Id="5200" PostId="1406" Score="0" Text="What if you only want to use it for benchmarking and testing?" CreationDate="2022-10-18T23:43:21.260" UserId="590" />
  <row Id="5201" PostId="5381" Score="0" Text="I updated, thanks! I'm still getting some build errors, but they are new errors. Progress! =)" CreationDate="2022-10-19T00:59:59.430" UserId="3339" />
  <row Id="5202" PostId="5414" Score="0" Text="Is your node source available? Just logs is not clear how this could be happening to me at least." CreationDate="2022-10-19T02:22:34.423" UserId="34" />
  <row Id="5203" PostId="5403" Score="0" Text="It seems you shouldn't use asset `{0, here}`, if it's not related to this question, you could open a new question and I would help you." CreationDate="2022-10-19T02:38:22.040" UserId="1959" />
  <row Id="5205" PostId="5403" Score="0" Text="i tried 1 too. let me compare with what is on picasso and on otber chains. and if the root cause is different." CreationDate="2022-10-19T04:28:17.657" UserId="484" />
  <row Id="5206" PostId="5422" Score="0" Text="Try it like this `let hex_string_hash = hash::&lt;Runtime&gt;(&amp;hex_string.into());`" CreationDate="2022-10-19T05:41:06.823" UserId="354" />
  <row Id="5209" PostId="5425" Score="0" Text="Yes, we control keys and address generation - so this looks promising. Thanks!" CreationDate="2022-10-19T08:56:03.730" UserId="2423" />
  <row Id="5210" PostId="5415" Score="0" Text="What kind of node are you running? Is this your custom parachain or standalone chain? If so, could you maybe share a link to the code?" CreationDate="2022-10-19T09:27:55.443" UserId="2673" />
  <row Id="5211" PostId="5410" Score="0" Text="Sounds like you need to check that with dwellir.com, your RPC provider. I don't think this rate limiting is enforced by Substrate itself." CreationDate="2022-10-19T09:30:53.357" UserId="2673" />
  <row Id="5212" PostId="5413" Score="0" Text="What kind of node are you running? Is this your custom parachain or standalone chain? If so, could you maybe share a link to the code?" CreationDate="2022-10-19T09:33:28.217" UserId="2673" />
  <row Id="5216" PostId="5408" Score="0" Text="Can you please give more information on how you run the nodes? Do you use docker? Or anything else? You could try running with `--discover-local`." CreationDate="2022-10-19T13:23:27.547" UserId="73" />
  <row Id="5217" PostId="5415" Score="0" Text="Substrate is not deleting anything from the keystore. I would highly recommend to check your hard drive or your configuration." CreationDate="2022-10-19T13:26:46.813" UserId="73" />
  <row Id="5218" PostId="5408" Score="0" Text="Yes please give us more context on your setup. Is there anything different in your setup than what is in the repo? I can run v0.9.27 relay chain with parachains fine on my machine. Ideally give us something we can reproduce and troubleshoot on our machines to best help you." CreationDate="2022-10-19T13:30:08.027" UserId="29" />
  <row Id="5219" PostId="5413" Score="0" Text="We are running a standalone chain using a pull we did from this repo back in August (should correlate to 9.26): https://github.com/paritytech/substrate" CreationDate="2022-10-19T13:49:20.933" UserId="3346" />
  <row Id="5220" PostId="5415" Score="0" Text="We are using code from this repo, pulled in August 2022, states it is version 9.26. Standalone chain. https://github.com/paritytech/substrate" CreationDate="2022-10-19T13:51:17.237" UserId="3346" />
  <row Id="5221" PostId="5415" Score="0" Text="We will be retrying this week with the latest build from that repo to see if it helps. Configuration has been checked a few times but we will check it again." CreationDate="2022-10-19T13:52:22.653" UserId="3346" />
  <row Id="5222" PostId="5408" Score="1" Text="I am using https://github.com/CherryNetwork/polkadot (branch = cherry) and https://github.com/CherryNetwork/evm-parachain/tree/main/runtime (branch = main). I am not using a docker. I just build and run.&#xA;&#xA;The steps I am doing in more details are the following:&#xA;1. Spin up the first validator Relay node&#xA;2. Spin up the second validator Relay node&#xA;3. Insert their keys through a curl command&#xA;4. Register the ParaId (2000)&#xA;5. Spin the parachain collator node&#xA;6. Insert their keys through a curl command&#xA;7. Use parasSudoWrapper to Initialize the parachain" CreationDate="2022-10-19T13:54:02.410" UserId="2455" />
  <row Id="5223" PostId="5408" Score="2" Text="I have also tried running the `v0.9.27` and `v0.9.28` polkadot and rococo Relay. I got the exact same results.&#xA;&#xA;When I run my custom branches with `--alice` and `--bob` everything works btw. It is kinda strange." CreationDate="2022-10-19T13:55:02.673" UserId="2455" />
  <row Id="5224" PostId="5432" Score="0" Text="Adrian! You rock. We are implementing this now. Thanks!" CreationDate="2022-10-19T14:23:13.930" UserId="3346" />
  <row Id="5225" PostId="5419" Score="1" Text="If you look closer, javy bundles the given JS source code with QuickJS, an interpreter. No compilation is happening. Actually, my original answer mentioned a similar approach, but I decided not to post it. The problem with such approaches is that they are complex and very inefficient. Something that you want to avoid when building a blockchain." CreationDate="2022-10-19T15:00:09.403" UserId="45" />
  <row Id="5227" PostId="5355" Score="0" Text="Did you submit the transaction multiple times? And were you able to get one of the transactions to succeed?" CreationDate="2022-10-19T17:18:14.530" UserId="29" />
  <row Id="5229" PostId="1406" Score="0" Text="You make the dependency &quot;optional&quot; and then enable the dependency when `runtime-benchmarks` feature flag is enabled" CreationDate="2022-10-19T17:48:07.583" UserId="28" />
  <row Id="5230" PostId="5442" Score="0" Text="Did you checked what events are being present?" CreationDate="2022-10-19T19:19:12.287" UserId="73" />
  <row Id="5231" PostId="5440" Score="1" Text="Yeah, I was trying to avoid using Events as they are noisy and client has to manually find them (vs returning the result to them), but it looks like subxt's [`wait_for_finalized_success`](https://docs.rs/subxt/latest/subxt/tx/struct.TxProgress.html#method.wait_for_finalized_success) makes it easy to return the events associated with a transaction. Thanks!" CreationDate="2022-10-19T19:24:10.103" UserId="512" />
  <row Id="5232" PostId="5444" Score="0" Text="Yeah, this is a much simpler approach, thanks!" CreationDate="2022-10-19T19:27:48.470" UserId="2163" />
  <row Id="5233" PostId="5419" Score="0" Text="This makes sense, thanks for taking the time to clarify!" CreationDate="2022-10-19T20:07:56.877" UserId="2451" />
  <row Id="5234" PostId="5431" Score="0" Text="Problem Solved by running node with extra --enable-offchain-indexing=true param" CreationDate="2022-10-19T20:51:27.113" UserId="3346" />
  <row Id="5235" PostId="5440" Score="1" Text="You kind of have to use events, since a `CallConsumed` could also happen through a different Extrinsic, eg `utility::batch`. So the only way to notice that is to use event and subscribe in the client. There was a similar Q here https://substrate.stackexchange.com/questions/5330/monitoring-transfers-and-keep-transfer-alive" CreationDate="2022-10-19T20:57:55.980" UserId="94" />
  <row Id="5236" PostId="5408" Score="0" Text="Can you try to replicate the same issue using Zombienet and let me know. Here is a post on spinning up a test network using Zombienet: https://substrate.stackexchange.com/questions/4692/how-do-i-spin-up-a-testnet-with-zombienet" CreationDate="2022-10-19T23:23:20.703" UserId="29" />
  <row Id="5237" PostId="1065" Score="0" Text="`but you do need to select the right file...` --&#xA;This answer would be more usable if it explained which file to use..." CreationDate="2022-10-20T00:58:14.240" UserId="116" />
  <row Id="5239" PostId="5448" Score="0" Text="Answered here: https://substrate.stackexchange.com/questions/4891/substrate-build-failure-with-runtime-benchmarks-flag" CreationDate="2022-10-20T01:00:16.533" UserId="2873" />
  <row Id="5240" PostId="5447" Score="0" Text="What's the name? And what's the `MinLength` that you have configured?" CreationDate="2022-10-20T03:01:17.067" UserId="251" />
  <row Id="5241" PostId="3437" Score="0" Text="Grandpa requires a 2f+1 non-faulty node (i.e., a two-thirds majority) to finalise blocks. So it depends on how many grandpa authorities you have configured &amp; what is their weightage, it can't be absolute 3 nodes. More info here: https://docs.substrate.io/fundamentals/consensus/#default-consensus-models" CreationDate="2022-10-20T04:22:58.933" UserId="1833" />
  <row Id="5242" PostId="5295" Score="0" Text="The origin question was how to simulate the VoteSplit in Democracy on Council election when a lot of users have deposited their token to a pallet. But you only answers how a single user can delegate its voting right to another party. Not so useful." CreationDate="2022-10-20T05:28:39.053" UserId="544" />
  <row Id="5243" PostId="5457" Score="0" Text="See https://substrate.stackexchange.com/questions/5265/how-to-determine-value-for-param-num-slashing-spans-for-a-withdrawunbonded-tx/5266#5266" CreationDate="2022-10-20T07:31:32.227" UserId="620" />
  <row Id="5246" PostId="5350" Score="0" Text="whenever i get that warning i am usually on the wrong branch. So i need to make sure i have checkout and compiled the correct branch." CreationDate="2022-10-20T09:02:54.883" UserId="298" />
  <row Id="5249" PostId="5465" Score="0" Text="While what you describe is what I expected, this is not what I see. The `MinNickLength` is set to `ConstU32&lt;8&gt;;` and I use setName with a name smaller than 8.&#xA;&#xA;Now I realized that all the system events can't be decoded by pjs/apps. All the blocks have a &#xA;`Unable to decode storage system.events:: createType(Vec&lt;FrameSystemEventRecord&gt;):: decodeU8a: failed at 0x0000000000000090e9900e0000000002… (index 0/1): `&#xA;&#xA;Because of this, the UI can't see that the extrinsic failed. I edited the first post with a screenshot." CreationDate="2022-10-20T11:50:05.310" UserId="341" />
  <row Id="5250" PostId="5447" Score="0" Text="I edited my post, the `MinLength` is set to 8 in the config, and I call the extrinsic with a smaller name than this." CreationDate="2022-10-20T11:53:53.450" UserId="341" />
  <row Id="5257" PostId="5447" Score="1" Text="Was able to replicate this on substrate-node-template v0.9.30" CreationDate="2022-10-20T15:25:54.170" UserId="29" />
  <row Id="5258" PostId="5456" Score="0" Text="From what I understand, in the case of a runtime bug, on-chain governance does not fully apply, since the bug might affect the actual on-chain governance.&#xA;To me, it seems like the on-chain governance relies on the assumption that runtime logic is bug-free, but practically there are no guarantees. Am I missing something?" CreationDate="2022-10-20T15:34:28.080" UserId="2862" />
  <row Id="5259" PostId="5456" Score="0" Text="One more thing, here is a quote: `The deprecation of the native runtime will now be pursued with a much higher priority. Using the Wasm compiler Wasmtime already brings us to a performance level that is almost the same as using the native runtime, so we don’t really need the native optimization anymore. Especially with all the potential downsides.` What happens when the native runtime gets deprecated since it is one of the ways for resolving runtime bugs?" CreationDate="2022-10-20T15:34:40.083" UserId="2862" />
  <row Id="5260" PostId="5456" Score="0" Text="Just thinking conceptually, why not have 2 runtimes stored on-chain, the current and the previous one, in the case of a bug with the current runtime it can potentially fall back to the previous working one." CreationDate="2022-10-20T15:34:48.850" UserId="2862" />
  <row Id="5262" PostId="5408" Score="2" Text="I tried adding the `--discover-local` tag and it didn't work unfortunately. Thank you @bkchr.&#xA;I will try tomorrow the Zombienet and will let you know @Bruno. Thank you as well!" CreationDate="2022-10-20T18:34:22.020" UserId="2455" />
  <row Id="5263" PostId="5471" Score="0" Text="Can you please provide more logs? From the start of the collator and then 2 minutes" CreationDate="2022-10-20T18:45:05.023" UserId="73" />
  <row Id="5264" PostId="5429" Score="0" Text="Yes, you are right.&#xA;Thank you very much." CreationDate="2022-10-20T20:11:58.060" UserId="3352" />
  <row Id="5266" PostId="5452" Score="0" Text="Yes, you are right.&#xA;Thank you very much. @Bruno" CreationDate="2022-10-20T20:13:31.087" UserId="3352" />
  <row Id="5267" PostId="1320" Score="0" Text="Closing this question because it is stale. If you have a similar question, please open an new post, which will get eyes on it again." CreationDate="2022-10-20T20:27:11.480" UserId="28" />
  <row Id="5268" PostId="1320" Score="0" Text="I’m voting to close this question because it is stale." CreationDate="2022-10-20T20:27:26.790" UserId="28" />
  <row Id="5269" PostId="1630" Score="0" Text="Is this still an open question, or should we close it? If it is an open question, is there anything further you can do to help clarify?" CreationDate="2022-10-20T20:30:13.247" UserId="28" />
  <row Id="5270" PostId="5470" Score="0" Text="By open ended do you mean variable and possibly indefinite / infinite ? And by lengths do you mean only time or also total weight and size of the block data?" CreationDate="2022-10-20T21:35:32.317" UserId="34" />
  <row Id="5271" PostId="5374" Score="0" Text="Care to improve this with reference to why this is the case?" CreationDate="2022-10-20T21:37:27.660" UserId="34" />
  <row Id="5272" PostId="5465" Score="0" Text="Try the latest node-template, Bruno could replicate it. https://substrate.stackexchange.com/questions/5447/the-ensure-macro-with-a-false-condition-doesnt-make-an-extrinsic-fail-why?noredirect=1#comment5257_5447" CreationDate="2022-10-20T21:37:33.233" UserId="341" />
  <row Id="5273" PostId="5397" Score="1" Text="Deleting the question text makes the post not that valuable :/ please do update or delete yge post completely?" CreationDate="2022-10-20T22:46:54.793" UserId="34" />
  <row Id="5274" PostId="5472" Score="0" Text="Where do you gather these from? Can you link to references?" CreationDate="2022-10-20T22:47:59.780" UserId="34" />
  <row Id="5275" PostId="5465" Score="0" Text="Sorry I can experiment your issue now too. I have been testing it with substrate-node-template v0.9.29 and worked, but i can see the error testing it with substrate-node-template v0.9.3o like you. I am going to investigate what can cause the issue" CreationDate="2022-10-21T07:22:33.510" UserId="2762" />
  <row Id="5277" PostId="5470" Score="1" Text="I've tried to clarify." CreationDate="2022-10-21T07:32:57.183" UserId="3344" />
  <row Id="5278" PostId="5472" Score="1" Text="Added reference." CreationDate="2022-10-21T07:44:24.763" UserId="3344" />
  <row Id="5279" PostId="5475" Score="2" Text="looking at the screenshot, you are indeed missing the wasm binary and metadata.json.&#xA;If the compile step was completed correctly, those should have been there.&#xA;Can you run the compile command again with `--verbose` flag and check the output?" CreationDate="2022-10-21T07:57:38.193" UserId="1876" />
  <row Id="5280" PostId="5475" Score="1" Text="and please add `ls` printout for `flipper/target/ink` folder" CreationDate="2022-10-21T07:59:33.687" UserId="529" />
  <row Id="5281" PostId="1630" Score="0" Text="I think the question could've been rephrased better with an example. Say auth#1 has weight 20 and auth#2 and auth#3 have weight 5 respectively. Would it be possible for auth#1 to override the final chain against the votes of auth#2 and auth#3? I.E. if auth#2 and auth#3 vote on chain B and auth#1 on chain A, since auth#1 has weight 20, will chain A be the finalized chain?" CreationDate="2022-10-21T08:37:20.277" UserId="139" />
  <row Id="5282" PostId="5471" Score="0" Text="hey, I edited the question to add more logs, since we are running with log level debug the first 2 minutes is an incredible amount of useless logs, but I filtered them a bit, let me know if that is enough to spot something suspicious" CreationDate="2022-10-21T09:41:38.823" UserId="110" />
  <row Id="5285" PostId="5478" Score="0" Text="Were you able to add your network manually? I was NOT able because of this chain id issue :/ The save button does not work. Can you please tell me how did you do it?" CreationDate="2022-10-21T11:35:42.113" UserId="2548" />
  <row Id="5286" PostId="5471" Score="0" Text="These 100 log lines are not enough, please do 2 minutes as I said." CreationDate="2022-10-21T12:03:37.833" UserId="73" />
  <row Id="5287" PostId="5478" Score="0" Text="did you choose the chain id suggested in the message (in the case above it's 1281, not 2) ?" CreationDate="2022-10-21T12:09:07.793" UserId="3309" />
  <row Id="5288" PostId="5481" Score="0" Text="This issue is related to the use of NextJS, see this issue in the library GitHub: https://github.com/polkadot-js/extension/issues/1050" CreationDate="2022-10-21T13:18:20.030" UserId="2762" />
  <row Id="5289" PostId="5465" Score="0" Text="@Tbaut I have found is a known issue in the PolkadotJS app code: https://github.com/polkadot-js/apps/issues/8259" CreationDate="2022-10-21T13:31:47.227" UserId="2762" />
  <row Id="5290" PostId="2650" Score="0" Text="Here's an example in the wild that helped me adapting it: https://github.com/Phala-Network/khala-parachain/blob/main/runtime/phala/src/lib.rs#L289-L297" CreationDate="2022-10-21T13:34:09.683" UserId="3265" />
  <row Id="5291" PostId="5481" Score="0" Text="@AlexBean&#xA;Thank you for your reply.&#xA;I have looked at the issue, but it seems that nothing has been resolved. What should I do?" CreationDate="2022-10-21T14:36:23.893" UserId="3254" />
  <row Id="5292" PostId="5447" Score="0" Text="Following up here https://github.com/polkadot-js/apps/issues/8259" CreationDate="2022-10-21T15:05:25.993" UserId="341" />
  <row Id="5293" PostId="5465" Score="0" Text="yes I saw it too, at the end of the day, it means either the node-template should be upgraded to weight v2, or the pjs api should handle node-template weight correctly." CreationDate="2022-10-21T15:13:42.480" UserId="341" />
  <row Id="5294" PostId="5484" Score="1" Text="Can you provide a bit more focus in your question? Like for example, you want to understand how the outer node works? Or you want to go deeper into the runtime and understand how the runtime &quot;orchestrates&quot; everything? Take a look [here](https://docs.substrate.io/fundamentals/architecture/) for reference." CreationDate="2022-10-21T16:03:24.467" UserId="29" />
  <row Id="5295" PostId="5479" Score="2" Text="Please provide more context. How are you creating these users? In a pallet? What are you trying to do that needs roles?" CreationDate="2022-10-21T16:27:59.470" UserId="29" />
  <row Id="5296" PostId="5489" Score="0" Text="I was aware of the first [link](https://spec.polkadot.network/#defn-polkadot-block-limits)(but it didn't show any reasoning for it), but the [second](https://research.web3.foundation/en/latest/polkadot/overview/2-token-economics.html#limits-on-resource-usage) gives more insights about that and other specific parameters. Thanks." CreationDate="2022-10-21T16:36:08.740" UserId="2383" />
  <row Id="5297" PostId="5485" Score="0" Text="Thanks for your help, Guantong." CreationDate="2022-10-21T19:12:27.873" UserId="3255" />
  <row Id="5298" PostId="5485" Score="0" Text="I will try and leave my feedback here, if you are available at the moment, please check my message." CreationDate="2022-10-21T19:13:17.923" UserId="3255" />
  <row Id="5301" PostId="5475" Score="1" Text="thanks for comments, I have issue with nodejs version now works fine" CreationDate="2022-10-22T03:09:55.950" UserId="2844" />
  <row Id="5302" PostId="5483" Score="1" Text="thanks for answer, after upgrade nodejs version problem solved" CreationDate="2022-10-22T03:10:44.277" UserId="2844" />
  <row Id="5303" PostId="5492" Score="0" Text="I guess I am not totally crazy after all! Thank you @joepetrowski." CreationDate="2022-10-22T05:58:52.030" UserId="2264" />
  <row Id="5304" PostId="5498" Score="0" Text="First of all that is a normal rust error, the match arms must return same types, first resolve that and convert the error type to                                                                             &#xA; Pallet::Error type None =&gt; Err(&lt;Error&lt;T&gt;&gt;::StoreItemNotFound.into()),   And make sure the there is enum variant StorageItemNotFound in your error enum." CreationDate="2022-10-22T11:26:49.733" UserId="351" />
  <row Id="5305" PostId="5498" Score="0" Text="@MrishoLukamba still show me error" CreationDate="2022-10-22T11:31:52.453" UserId="3000" />
  <row Id="5306" PostId="5498" Score="0" Text="Please read the error message. Its very clear what you have to do. Your match arms has different return types" CreationDate="2022-10-22T11:36:59.083" UserId="351" />
  <row Id="5307" PostId="5498" Score="0" Text="@MrishoLukamba I Read that but i dont know how  can i solve that" CreationDate="2022-10-22T11:38:58.430" UserId="3000" />
  <row Id="5312" PostId="5500" Score="0" Text="thanks for answer but my problem for this error : ` ^^^^^^ expected `()`, found enum `Result`&#xA;`" CreationDate="2022-10-22T11:55:31.090" UserId="3000" />
  <row Id="5313" PostId="5500" Score="0" Text="still show me this error" CreationDate="2022-10-22T11:55:50.907" UserId="3000" />
  <row Id="5315" PostId="5484" Score="0" Text="@Bruno, First I want to understand how the runtime orchestrates everything? From which pallet the execution starts, where the execution goes next like that? For example if we see a rust binary crate project execution starts from main.rs or if its a lib crate it start from lib.rs. So substrate is a collection of many lib crate right. So i want to understand the very low level execution flow. Am I clear with my question here?" CreationDate="2022-10-22T13:49:23.057" UserId="427" />
  <row Id="5316" PostId="5501" Score="0" Text="Please share your `Cargo.toml` and the command that you used to compile. Most likely there is something wrong with the Rust features in your Cargo file." CreationDate="2022-10-22T14:02:28.087" UserId="94" />
  <row Id="5317" PostId="5501" Score="0" Text="I use `cargo test` and `pallet-assets = { version = &quot;4.0.0-dev&quot;, default-features = false, git = &quot;https://github.com/paritytech/substrate.git&quot;, branch = &quot;polkadot-v0.9.30&quot; }&#xA;`" CreationDate="2022-10-22T14:14:39.927" UserId="3265" />
  <row Id="5318" PostId="5501" Score="0" Text="https://goonlinetools.com/snapshot/code/#klta1t9riihefykzccl6v4 -&gt; Full Cargo.toml" CreationDate="2022-10-22T14:16:15.160" UserId="3265" />
  <row Id="5319" PostId="5501" Score="0" Text="Got it. Need to balances and assets add it to `std`!" CreationDate="2022-10-22T14:23:14.977" UserId="3265" />
  <row Id="5320" PostId="5479" Score="0" Text="@Bruno In fact, I want to have a role for each role of user so that I can limit a pellet methods to this roles." CreationDate="2022-10-22T14:25:08.857" UserId="1914" />
  <row Id="5321" PostId="5501" Score="0" Text="Okay answering so we can mark it as solved." CreationDate="2022-10-22T14:57:30.373" UserId="94" />
  <row Id="5322" PostId="5500" Score="0" Text="That is the error. And the reason is what I said. Did you try to update the code as I wrote?" CreationDate="2022-10-22T15:28:11.270" UserId="251" />
  <row Id="5325" PostId="5501" Score="0" Text="There are so many similar questions like this. Please close this." CreationDate="2022-10-22T15:38:05.807" UserId="251" />
  <row Id="5326" PostId="5498" Score="0" Text="Code related questions can only be properly answered when the full code is present. Please add a link to GitHub or some other public code hoster with the complete example, not just a snippet, thanks." CreationDate="2022-10-22T17:14:52.960" UserId="94" />
  <row Id="5327" PostId="5500" Score="1" Text="Yes I did , but i did" CreationDate="2022-10-22T17:58:36.690" UserId="3000" />
  <row Id="5328" PostId="5497" Score="0" Text="This can be done easily in the Node template.  I would like to replicate this using Cumulus SDK.  I am having a hard time finding the runtime to modify." CreationDate="2022-10-23T05:28:34.940" UserId="2565" />
  <row Id="5329" PostId="5497" Score="1" Text="The basic runtime you would modify would be this one, I believe https://github.com/paritytech/cumulus/blob/master/parachain-template/runtime/src/lib.rs However, you have more runtimes available in the `runtimes` folder, and this one appears to already have the contracts pallet, like you need https://github.com/paritytech/cumulus/tree/master/parachains/runtimes/contracts/contracts-rococo - you can select a different runtime to use with the `--chain` flag." CreationDate="2022-10-23T10:52:16.457" UserId="3127" />
  <row Id="5330" PostId="5497" Score="0" Text="aaahhh....thanks....thats what I need." CreationDate="2022-10-23T14:47:04.683" UserId="2565" />
  <row Id="5331" PostId="5497" Score="0" Text="do you happen to have documentation how to run a parachain using the parachain-template and a local polkadot relay chain?" CreationDate="2022-10-23T14:47:51.587" UserId="2565" />
  <row Id="5332" PostId="5497" Score="0" Text="Sure - you would start with this tutorial https://docs.substrate.io/tutorials/connect-relay-and-parachains/" CreationDate="2022-10-23T16:19:33.557" UserId="3127" />
  <row Id="5333" PostId="5478" Score="0" Text="To add on to this, when you customize to a new ChainID, please check if it has already been taken. A good place to check on is https://chainlist.org/" CreationDate="2022-10-24T07:03:16.547" UserId="2909" />
  <row Id="5334" PostId="5429" Score="0" Text="@INcre Please, mark the question as resolved then." CreationDate="2022-10-24T07:35:14.653" UserId="2673" />
  <row Id="5337" PostId="5512" Score="0" Text="By default there are some RPC methods that are manually enforced to be included there: https://github.com/paritytech/smoldot/blob/17425040ddda47d539556eeaf62b88c4240d1d42/src/json_rpc/methods.rs#L338-L462" CreationDate="2022-10-24T10:29:56.373" UserId="2762" />
  <row Id="5338" PostId="5512" Score="0" Text="I see. But this is actually incase of smoldot right, I'm talking more in terms of polakdot/api because when I queried api.rpc.chain.getRuntimeVersion() it failed. But api.rpc.chain.getBlock() is working so a bit confused on that" CreationDate="2022-10-24T11:20:09.367" UserId="552" />
  <row Id="5339" PostId="5512" Score="0" Text="yes, because from chain the only methods that are available to execute as api.rpc.chain are chain_getBlock, chain_getBlockHash,  chain_getFinalisedHead and chain_getHeader" CreationDate="2022-10-24T11:26:50.577" UserId="2762" />
  <row Id="5340" PostId="5512" Score="0" Text="Sorry for the link above, the code for substrate is defined here: https://github.com/paritytech/substrate/blob/master/client/rpc-api/ and your specific pallet: https://github.com/paritytech/substrate/blob/master/client/rpc-api/src/chain/mod.rs" CreationDate="2022-10-24T11:31:54.987" UserId="2762" />
  <row Id="5341" PostId="5515" Score="0" Text="The article is outdated :/" CreationDate="2022-10-24T12:37:54.650" UserId="2548" />
  <row Id="5342" PostId="5515" Score="1" Text="Could you elaborate on what you want to do and what information is missing?" CreationDate="2022-10-24T13:15:51.527" UserId="3317" />
  <row Id="5344" PostId="5515" Score="0" Text="I would like to add MyNewTestnet as in this article is doing: https://vimukthi.com/how-to-configure-a-new-testnet-for-substrate-chain-2cfdce951b9f  but I need also an open source code so I can understand it better where should I make my changes." CreationDate="2022-10-24T16:06:54.723" UserId="2548" />
  <row Id="5345" PostId="5519" Score="1" Text="Thanks a lot, I want to add some others functionnalities and add some tests and I will publish it on Substrate Marketplace :)&#xA;Thanks for the documentation, I'm going to read this !" CreationDate="2022-10-24T16:24:52.630" UserId="1864" />
  <row Id="5346" PostId="5429" Score="0" Text="I am not able to check two answers at once. Do you know how to do that? @Adam" CreationDate="2022-10-24T16:38:33.327" UserId="3352" />
  <row Id="5347" PostId="5505" Score="0" Text="when i put my CustomBlockImport in [here](https://github.com/substrate-developer-hub/substrate-node-template/blob/6c701fa6109693a955bb1fa317d8b724634e0fa7/node/src/service.rs#L117) , the code compiles and it executes with no errors by it does not execute mu custom BlockImport (i put prinln!() everywhere just to be sure and nothing was printed),  where is the right place to place it to work ?" CreationDate="2022-10-24T17:32:31.120" UserId="3319" />
  <row Id="5348" PostId="5505" Score="0" Text="Be aware that this code is only called when the block is imported from the network. If you are just running with `--dev` for example, you also need to the block import here: https://github.com/substrate-developer-hub/substrate-node-template/blob/6c701fa6109693a955bb1fa317d8b724634e0fa7/node/src/service.rs#L262.&#xA;However, I think you don't need to check the extrinsic on your local node after building the block?" CreationDate="2022-10-24T17:50:10.923" UserId="73" />
  <row Id="5349" PostId="5515" Score="0" Text="Any youtube video?" CreationDate="2022-10-24T17:51:57.753" UserId="2548" />
  <row Id="5351" PostId="5505" Score="0" Text="i guess im going to write another BlockImport and use it in there, however i dont understand what are those two functions (new_partial and new_full) and why in the first we provide new_partial and in the second we dont, and which BlockImport does it gets executed, is it the first or the second?" CreationDate="2022-10-24T19:06:37.330" UserId="3319" />
  <row Id="5352" PostId="5505" Score="0" Text="These are different code paths, one is called when a block is being produced by the local node and the other is when importing a block from the network into the local node." CreationDate="2022-10-24T21:49:26.913" UserId="73" />
  <row Id="5353" PostId="5512" Score="0" Text="yeh makes sense, so if I want to query chain_getRuntimeVersion, through polkadot-js or chain what do I need to enable that? Or is that not at all possible, I see that chain_getRuntimeVersion is a runtime api." CreationDate="2022-10-25T05:25:47.927" UserId="552" />
  <row Id="5355" PostId="5523" Score="1" Text="Can you explain a bit more the use case you are trying? Can this be done with a Bridge:  https://wiki.polkadot.network/docs/learn-bridges" CreationDate="2022-10-25T07:44:34.673" UserId="2762" />
  <row Id="5357" PostId="5529" Score="0" Text="it show me this error : ` no field `itemId` on type `&amp;&amp;frame_support::dispatch::Vec&lt;BusinessItem&gt;``" CreationDate="2022-10-25T08:15:12.260" UserId="3000" />
  <row Id="5358" PostId="5429" Score="0" Text="Ah, ok, I missed Bruno's answer. Nevermind then." CreationDate="2022-10-25T08:16:25.617" UserId="2673" />
  <row Id="5359" PostId="5529" Score="0" Text="Sorry, I made a mistake here. Let me update my answer." CreationDate="2022-10-25T08:24:50.690" UserId="251" />
  <row Id="5360" PostId="5529" Score="0" Text="thanks for answer but still show me error : ` no field `itemId` on type `&amp;(&lt;T as frame_system::Config&gt;::AccountId, frame_support::dispatch::Vec&lt;BusinessItem&gt;)``" CreationDate="2022-10-25T08:35:24.233" UserId="3000" />
  <row Id="5361" PostId="5529" Score="0" Text="Sry, try this `find(|(_, i)| i.id == id)`. Because the iterator returns a tuple `(K, V)`." CreationDate="2022-10-25T08:49:49.340" UserId="251" />
  <row Id="5362" PostId="5529" Score="0" Text="no field `itemId` on type `&amp;frame_support::dispatch::Vec&lt;BusinessItem&gt;`" CreationDate="2022-10-25T08:55:54.370" UserId="3000" />
  <row Id="5364" PostId="5529" Score="0" Text="Okay. I know. Your storage item is a `Vec&lt;Item&gt;`. Is this what you expect?" CreationDate="2022-10-25T09:42:15.787" UserId="251" />
  <row Id="5365" PostId="5529" Score="0" Text="i except find item in the vec" CreationDate="2022-10-25T09:42:39.053" UserId="3000" />
  <row Id="5366" PostId="5529" Score="0" Text="Try the latest code." CreationDate="2022-10-25T09:45:18.000" UserId="251" />
  <row Id="5368" PostId="5505" Score="0" Text="It is initialized here: https://github.com/paritytech/substrate/blob/f2bc08a3071a91b71fec63cf2b22c707411cec0e/bin/node-template/node/src/service.rs#L145" CreationDate="2022-10-25T09:51:21.033" UserId="73" />
  <row Id="5369" PostId="5508" Score="1" Text="Thanks your advice!&#xA;`TypeError: web3Enable is not a function`&#xA;new error was happened if I did as you mentioned but I finally did it because I wrote them in async function like bellow&#xA;const { web3Enable,web3Accounts, web3FromSource } = await import(&quot;@polkadot/extension-dapp&quot;);" CreationDate="2022-10-25T09:51:28.987" UserId="3254" />
  <row Id="5370" PostId="5508" Score="0" Text="Really? That code worked for me. But glad you finally fix it" CreationDate="2022-10-25T09:57:19.690" UserId="2762" />
  <row Id="5372" PostId="5532" Score="1" Text="Cleaning all and restarting worked! Thanks" CreationDate="2022-10-25T10:24:35.300" UserId="3362" />
  <row Id="5373" PostId="5429" Score="0" Text="Thank you. Your answer is very helpful!!!" CreationDate="2022-10-25T11:24:25.903" UserId="3352" />
  <row Id="5374" PostId="5513" Score="0" Text="thanks, very helpful" CreationDate="2022-10-25T13:33:05.217" UserId="2147" />
  <row Id="5375" PostId="5415" Score="0" Text="Not 100% sure, but the error seems to suggest the keystone is deleted *before* the error, which causes the failure to sign, which causes the node to shut down." CreationDate="2022-10-25T15:09:37.040" UserId="1820" />
  <row Id="5377" PostId="5415" Score="0" Text="We wondered that same thing. Further experiments showed that the keystore is there all the way up to the GP Voter Error, but we can't tell exactly which happened first. We noticed that the base path for the keystore (and everything else for the node) is in a tmp folder (according to the standard methods in the instructions). Could it be that this tmp folder is deleted if the node shuts down? That would account for the missing files after the GP Voter Error." CreationDate="2022-10-25T15:40:19.993" UserId="3346" />
  <row Id="5380" PostId="5535" Score="0" Text="thanks, what are the possible types? and how can I confirm them." CreationDate="2022-10-25T16:13:24.850" UserId="2898" />
  <row Id="5382" PostId="5535" Score="0" Text="Where did you get this result? Need more detail to analyze this." CreationDate="2022-10-25T16:14:54.650" UserId="251" />
  <row Id="5383" PostId="5535" Score="0" Text="i got it from running an extrinsic from polkadot-ui.&#xA;`Developers -&gt; Extrinsics -&gt; System -&gt; remarkWithEvent -&gt; Value:0x1234`&#xA;and then running &#xA;`let block = client.rpc().block(Some(block_hash)).await?; `&#xA;using subxt providing the blockhash of event&#xA;and then &#xA;`block.block.extrincics[1]` returns me this hex" CreationDate="2022-10-25T16:18:40.007" UserId="2898" />
  <row Id="5384" PostId="5533" Score="0" Text="This works, but I have to add Parameter, Default, MaxEncodedLen as traits for the storage.&#xA;&#xA;What I don't understand: Why do I have to add them again? Isn't the `IsType` bit defining it as AssetId from config which in turn already has this trait?" CreationDate="2022-10-25T16:38:40.580" UserId="3265" />
  <row Id="5385" PostId="4825" Score="0" Text="This thread may be helpful:&#xA;https://substrate.stackexchange.com/questions/2797/what-is-the-best-way-to-make-a-cross-contract-call-on-ink" CreationDate="2022-10-25T17:04:26.770" UserId="2956" />
  <row Id="5386" PostId="5523" Score="0" Text="Thanks, for a use case think public-private." CreationDate="2022-10-25T19:24:33.913" UserId="3344" />
  <row Id="5387" PostId="5538" Score="0" Text="Thank you Shawn!! We will test this and report back!" CreationDate="2022-10-25T22:44:12.140" UserId="3346" />
  <row Id="5389" PostId="5497" Score="0" Text="Do you have a sample parachain-template that has a pallet-contracts configured.  I am loss in adding the pallet." CreationDate="2022-10-26T05:50:57.020" UserId="2565" />
  <row Id="5390" PostId="5533" Score="1" Text="@shredding I think `IsType` only allows to convert back and forth, but isn't so smart to tell the compiler that type A implements all the traits which type B does. You would probably need a macro for that." CreationDate="2022-10-26T07:29:59.090" UserId="2673" />
  <row Id="5393" PostId="5543" Score="0" Text="Can you give a bit more context to your question?&#xA;What exactly are you doing, what error are you getting?&#xA;Why would you need timestamps in the first place?" CreationDate="2022-10-26T09:30:56.480" UserId="2673" />
  <row Id="5394" PostId="5542" Score="1" Text="With PolkadotJS you have the Multi Queries function, check the docs https://polkadot.js.org/docs/api/start/api.query.multi/" CreationDate="2022-10-26T09:34:47.707" UserId="2762" />
  <row Id="5397" PostId="5515" Score="0" Text="Could you elaborate on what changes you need more information about? &#xA;Also, perhaps your answers can be found in the tutorials. Especially the 'getting started' and the 'work with pallets' tutorial." CreationDate="2022-10-26T10:33:02.843" UserId="3317" />
  <row Id="5398" PostId="5497" Score="1" Text="for instance here https://github.com/paritytech/trappist/blob/master/runtime/src/lib.rs" CreationDate="2022-10-26T10:51:20.490" UserId="3127" />
  <row Id="5402" PostId="18" Score="0" Text="Is it therefore fair to say that i start with substrate and when the time comes I add cumulus or do I run into problems if i don't start with cumulus from day 1?" CreationDate="2022-10-26T18:43:42.210" UserId="3265" />
  <row Id="5403" PostId="5557" Score="0" Text="Where did you get that code snipe for defining the `BlockWeights` from?" CreationDate="2022-10-26T19:36:46.383" UserId="94" />
  <row Id="5405" PostId="5549" Score="0" Text="`--no-hardware-benchmarks` does not seem to fix it but leads to a different error " CreationDate="2022-10-26T19:48:04.970" UserId="94" />
  <row Id="5407" PostId="5538" Score="0" Text="New experiment today shows that if we have a running chain, with a permanent base path, and we delete the session keys out of the keystore folder for Node A, that node will shut down immediately with exactly the same error we have been experiencing. This suggests that having your chain running in a tmp base path risks that Node A's entire existence will be deleted at some point (dependent on the operating system and when they were last accessed, making it seem random). When the session keys are deleted, you get this error. A permanent base path should definitely solve it. Thank you, Shawn!" CreationDate="2022-10-26T23:16:59.397" UserId="3346" />
  <row Id="5409" PostId="5560" Score="0" Text="Great, thanks for your answer!" CreationDate="2022-10-27T07:28:42.743" UserId="3364" />
  <row Id="5410" PostId="5558" Score="0" Text="Thank you for this great answer! It indeed resolved the issue" CreationDate="2022-10-27T08:19:57.810" UserId="2099" />
  <row Id="5411" PostId="5567" Score="0" Text="Hi Adam! Thanks for the answer! However, I want to believe that there is a better way to accomplish this :-) Actually, I think that I'm getting closer: there is a `system.eventTopics` storage call that returns a vector of a tuple with the blocks-indexes that match the given topic... So, now I just need to find out how to compute the hash of the topic. I'm trying to find documentation around that, but no luck so far... wish me luck! ;-)" CreationDate="2022-10-27T09:07:57.953" UserId="635" />
  <row Id="5412" PostId="5567" Score="0" Text="Actually... I take it back, I think that I was mistaken and there is no way to accomplish this on substrate . B/c I just noticed that on substrate when defining events, there is no way to flag some of their args as indexed... Therefore, the topic must be the topic of the &quot;generic&quot; event, and there probably is no way to build a narrower query... :/" CreationDate="2022-10-27T09:33:31.293" UserId="635" />
  <row Id="5413" PostId="5567" Score="1" Text="Oh, wait, no... apparently [there is a way](https://github.com/paritytech/substrate/blob/676e35fdfdd2526a2df29efd41e6642046f2ddee/frame/system/src/lib.rs#L1236) to store the events so that they can be indexed given a list of topics...  it's just that's not the default way of storing the events, but it can be done... I still don't quite understand how the `system.eventTopics` should be used in that case... I guess that I will open a different question. Thanks!" CreationDate="2022-10-27T10:14:23.770" UserId="635" />
  <row Id="5414" PostId="5503" Score="0" Text="in the description of the actual behaviour, you said that Y amount is transferable but at the same time it is locked (X + Y for staking, as in the expected behaviour). Is this what you tried to say? Also, quickly checking on mainnet I could see the expected behaviour in accounts with staking + vesting but not the second scenario you reported here." CreationDate="2022-10-27T10:53:43.607" UserId="2025" />
  <row Id="5415" PostId="1015" Score="0" Text="I wanted to ask about this as well. It seems even polkadot and kusama runtime use the default weights. But the important question is how should the two parameters, validator_count and MAX_NOMINATORS should be customized for each runtime: 		`// we take the validator set count from the membership proof to&#xA;		// calculate the weight but we set a floor of 100 validators.&#xA;		let validator_count = validator_count.max(100) as u64;&#xA;&#xA;		// worst case we are considering is that the given offender&#xA;		// is backed by 200 nominators&#xA;		const MAX_NOMINATORS: u64 = 200;`" CreationDate="2022-10-27T11:15:30.647" UserId="2834" />
  <row Id="5416" PostId="5568" Score="0" Text="Got it! Thank you!" CreationDate="2022-10-27T11:21:57.167" UserId="3088" />
  <row Id="5417" PostId="5568" Score="0" Text="Any dates are known yet?" CreationDate="2022-10-27T11:23:40.807" UserId="3088" />
  <row Id="5418" PostId="5543" Score="0" Text="I would like to access timestamps to calculate durations of sections of code." CreationDate="2022-10-27T12:45:00.473" UserId="3142" />
  <row Id="5419" PostId="5573" Score="0" Text="The link is invalid." CreationDate="2022-10-27T15:32:31.243" UserId="251" />
  <row Id="5420" PostId="5571" Score="2" Text="I advise to read the official documentation of polkadot/substrate: https://wiki.polkadot.network/docs/learn-consensus  /  https://docs.substrate.io/fundamentals/consensus/" CreationDate="2022-10-27T16:00:18.223" UserId="3317" />
  <row Id="5421" PostId="5571" Score="0" Text="@DaanvanderPlas thats not the official docs for aura, and i have read that" CreationDate="2022-10-27T16:25:43.557" UserId="3319" />
  <row Id="5422" PostId="5511" Score="0" Text="Some more info would be needed on what are you expecting as a testnet so answers can be a bit more on point and provide actual help.&#xA;Are you trying to create a testnet for parachains ?&#xA;You just want a solochain that runs the same runtime than your chain but with faster block production or smaller waiting times ?&#xA;&#xA;Some info on those lines" CreationDate="2022-10-27T16:31:07.127" UserId="165" />
  <row Id="5423" PostId="5573" Score="0" Text="I see. Which part of the code are you interested in so I can post it here?" CreationDate="2022-10-27T17:09:24.617" UserId="2548" />
  <row Id="5424" PostId="5573" Score="0" Text="I want to see how you build the pallet. Maybe there is something wrong with the macro or `Cargo.toml`." CreationDate="2022-10-27T17:22:33.633" UserId="251" />
  <row Id="5425" PostId="5573" Score="0" Text="I posted the Cargo.toml above" CreationDate="2022-10-27T17:45:01.940" UserId="2548" />
  <row Id="5426" PostId="4246" Score="0" Text="I understand you would rather not share your code. Are you able to share your runtimes or a RPC node ?" CreationDate="2022-10-27T19:35:01.187" UserId="198" />
  <row Id="5427" PostId="5542" Score="0" Text="no this won't solve the problem. we cannot use multi query for contract's function call." CreationDate="2022-10-28T00:56:01.373" UserId="3368" />
  <row Id="5428" PostId="5479" Score="0" Text="Have you read about the origin system?" CreationDate="2022-10-28T07:25:51.413" UserId="34" />
  <row Id="5430" PostId="5580" Score="0" Text="It is there. I have not forgotten it but I could not post it - so many characters" CreationDate="2022-10-28T08:33:27.437" UserId="2548" />
  <row Id="5431" PostId="5580" Score="0" Text="Do you have time for a short call? If yes, where can I find you?" CreationDate="2022-10-28T08:57:05.323" UserId="2548" />
  <row Id="5432" PostId="5582" Score="0" Text="what do you mean by seals the block, do all authorities sign it or is it simply accepted? and in the link i provided it talks about aura finality not grandpa finality" CreationDate="2022-10-28T09:56:35.603" UserId="3319" />
  <row Id="5434" PostId="5503" Score="0" Text="Yes. The lock for staking is X + Y (the original amount plus the rewards). The total lock is the sum of the two vesting amounts: Z + X. So, the remaining (Y), since it's &quot;beyond&quot; the total lock is &quot;translated&quot; to transferable. I'll add an example in the question." CreationDate="2022-10-28T11:07:39.663" UserId="1820" />
  <row Id="5435" PostId="5585" Score="0" Text="relevant issue here :)&#xA;https://github.com/paritytech/substrate/issues/12195" CreationDate="2022-10-28T13:27:12.177" UserId="165" />
  <row Id="5436" PostId="5527" Score="0" Text="Why is this not a `StorageDoubleMap`?" CreationDate="2022-10-28T13:53:35.250" UserId="94" />
  <row Id="5437" PostId="5589" Score="1" Text="To add to this question, in trying to understand what predispatch (by calling validate) is meant to do, we took a signed extension and set pre_dispatch to return always Ok(Default::default()), then submitted a transaction that we knew would fail and there did not seem to be a difference of behavior." CreationDate="2022-10-29T00:30:20.900" UserId="2060" />
  <row Id="5440" PostId="5595" Score="0" Text="How to kill the storage?" CreationDate="2022-10-29T18:58:04.393" UserId="3171" />
  <row Id="5444" PostId="5595" Score="1" Text="Extrinsic -&gt; system -&gt; killstorage.&#xA;&#xA;The default key is `0x45323df7cc47150b3930e2666b0aa31390d171f8401887cf06fb43a732994c32`.&#xA;&#xA;If you modified your pallet name, then you should calculate the storage key youself." CreationDate="2022-10-30T08:24:33.900" UserId="251" />
  <row Id="5445" PostId="5604" Score="0" Text="Sorry for being so novice, any hint will help on how to check C, all seems to match existing code in contract nodes, etc." CreationDate="2022-10-30T11:16:56.923" UserId="2565" />
  <row Id="5446" PostId="5604" Score="0" Text="Without the full code, I can't do any further diagnosis.&#xA;&#xA;Maybe you missed https://github.com/paritytech/substrate/blob/0e33b4e9a3deb0a3637f0c618c6c8ac24f36c0d2/bin/node/runtime/src/lib.rs#L1951-L2021." CreationDate="2022-10-30T11:19:34.133" UserId="251" />
  <row Id="5447" PostId="5604" Score="0" Text="in my runtime i am using this: ```impl pallet_contracts_rpc_runtime_api::ContractsApi&lt;Block, AccountId, Balance, BlockNumber, Hash&gt;```" CreationDate="2022-10-30T11:28:09.013" UserId="2565" />
  <row Id="5448" PostId="5604" Score="0" Text="I posted the code above." CreationDate="2022-10-30T11:33:02.493" UserId="2565" />
  <row Id="5449" PostId="5604" Score="0" Text="You should add something like this to your `new_partial`. https://github.com/paritytech/polkadot/blob/d17ee12922b069423b0d9eb562d579eaebe0940e/node/service/src/lib.rs#L391-L392" CreationDate="2022-10-30T12:07:19.073" UserId="251" />
  <row Id="5450" PostId="5604" Score="0" Text="in my new_partial I already have the following: ``` RuntimeApi::RuntimeApi: sp_transaction_pool::runtime_api::TaggedTransactionQueue&lt;Block&gt;&#xA;	+ sp_api::Metadata&lt;Block&gt;&#xA;	+ sp_session::SessionKeys&lt;Block&gt;&#xA;	+ sp_api::ApiExt&lt;&#xA;		Block,&#xA;		StateBackend = sc_client_api::StateBackendFor&lt;TFullBackend&lt;Block&gt;, Block&gt;,```" CreationDate="2022-10-30T12:40:19.527" UserId="2565" />
  <row Id="5451" PostId="5604" Score="0" Text="By the way, I am using the parachain-template to add a pallet_contracts" CreationDate="2022-10-30T12:55:30.940" UserId="2565" />
  <row Id="5452" PostId="5604" Score="0" Text="Obviously, you didn't specify the contract API in the `RuntimeApi`. IMHO, you'd better learn some Rust first." CreationDate="2022-10-30T12:58:07.003" UserId="251" />
  <row Id="5453" PostId="5604" Score="0" Text="Sorry, so how can you specify.  As far as my little knowledge would show, you just need to implement it in ```impl_runtime_apis!``` and I already did ```impl pallet_contracts_rpc_runtime_api::ContractsApi&lt;Block, AccountId, Balance, BlockNumber, Hash&gt;```" CreationDate="2022-10-30T13:42:11.067" UserId="2565" />
  <row Id="5454" PostId="5604" Score="0" Text="Also I added ```impl pallet_contracts::Config for Runtime``` in the runtime.  Unless I miss something." CreationDate="2022-10-30T13:47:51.043" UserId="2565" />
  <row Id="5455" PostId="5604" Score="0" Text="Sorry being so forceful :) , you can check the implementation here: https://github.com/hgminerva/humidefi-parachain/blob/main/runtime/src/lib.rs#L510" CreationDate="2022-10-30T13:55:38.753" UserId="2565" />
  <row Id="5456" PostId="5497" Score="0" Text="Thanks so much...this should be a great help." CreationDate="2022-10-30T14:21:48.310" UserId="2565" />
  <row Id="5457" PostId="80" Score="0" Text="So the only nodes that can author/produce blocks are collators?  Then the collator hands the newly authored block to a validator on the relay chain?" CreationDate="2022-10-30T16:59:22.353" UserId="2936" />
  <row Id="5459" PostId="5604" Score="0" Text="Add the api here. https://github.com/hgminerva/humidefi-parachain/blob/015d477ee6a73479760d4ea072ce871e970a0d43/node/src/service.rs#L86-L93" CreationDate="2022-10-31T01:50:18.820" UserId="251" />
  <row Id="5466" PostId="5604" Score="0" Text="It doesn't work.  I tried adding RuntimeApi::RuntimeApi: ContractsApi" CreationDate="2022-10-31T03:15:02.173" UserId="2565" />
  <row Id="5467" PostId="5604" Score="1" Text="No, you don't. Check https://github.com/hgminerva/humidefi-parachain/pull/1.&#xA;&#xA;Still recommending you learn some Rust first. I have already given the answer to you and you said you have tried that..." CreationDate="2022-10-31T03:41:53.703" UserId="251" />
  <row Id="5468" PostId="5604" Score="0" Text="OMG....I was modifying the new_partial function, ....much love  , it worked!   thanks so much, you are a heaven sent." CreationDate="2022-10-31T04:04:50.120" UserId="2565" />
  <row Id="5469" PostId="5604" Score="0" Text="Please mark this as the answer." CreationDate="2022-10-31T04:07:26.657" UserId="251" />
  <row Id="5472" PostId="5618" Score="0" Text="Thanks Oliver for your help. This will solve our problem." CreationDate="2022-10-31T08:34:46.123" UserId="1793" />
  <row Id="5473" PostId="5598" Score="0" Text="Can you share the source code?" CreationDate="2022-10-31T10:55:34.943" UserId="429" />
  <row Id="5474" PostId="5621" Score="0" Text="I'm not trying to modify ensure_signed, rather I'm trying to modify the Into impl generated by the construct_runtime macro which ensure_signed uses on Origin." CreationDate="2022-10-31T12:00:18.557" UserId="1792" />
  <row Id="5475" PostId="5621" Score="0" Text="What you want to achieve i kinda understand it, You want a user to be able to dispatch call using custom origin and automatically the user will be recognized as signed origin because Into trait is implemented on your custom origins. But the issue is you cannot override this as per Shawn reply. Or maybe you really modify FRAME core." CreationDate="2022-10-31T12:17:02.057" UserId="351" />
  <row Id="5478" PostId="5621" Score="0" Text="Shawn's reply (and also Rob's) refers to modifying the ensure_signed function and RawOrigin::Signed enum variant respectfully, this is what I want to modify: https://github.com/paritytech/substrate/blob/master/frame/support/procedural/src/construct_runtime/expand/origin.rs#L287&#xA;This macro is expanded inside my own runtime, so should have access to the implementation and should be able to modify it." CreationDate="2022-10-31T13:13:22.197" UserId="1792" />
  <row Id="5479" PostId="5598" Score="0" Text="Not sure exactly what to share here, the process of making a custom origin is pretty standard. Perhaps pointing to the implementation I want to modify makes sense, here it is: https://github.com/paritytech/substrate/blob/master/frame/support/procedural/src/construct_runtime/expand/origin.rs#L287&#xA;Since this macro is expanded in my own runtime and not in an external crate, I expect to be able to modify the implementations generate by it." CreationDate="2022-10-31T13:13:44.347" UserId="1792" />
  <row Id="5480" PostId="5598" Score="0" Text="Added some more info in edits." CreationDate="2022-10-31T16:41:18.840" UserId="1792" />
  <row Id="5481" PostId="5593" Score="0" Text="It looks like if we are using a signed extension with the [check_non_zero_sender](https://github.com/paritytech/substrate/blob/master/frame/system/src/extensions/check_non_zero_sender.rs signed-extension, why do we need to still ensured_signed in an extrinsics?" CreationDate="2022-10-31T16:43:50.483" UserId="590" />
  <row Id="5482" PostId="5593" Score="0" Text="`check_non_zero_sender` just checks that nobody is using the `0x00000…` address. That is different from signed/unsigned. You want to use `ensured_signed` so that someone pays for the extrinsic. Otherwise your chain does work for free by accepting unsigned extrinsics." CreationDate="2022-10-31T16:46:19.200" UserId="94" />
  <row Id="5483" PostId="5593" Score="0" Text="Can I check ensured_signed in a SignedExtension? Is the following answer correct?&#xA;https://substrate.stackexchange.com/questions/5588/how-can-i-check-origin-in-a-signedextension/5611#5611" CreationDate="2022-10-31T16:48:57.760" UserId="590" />
  <row Id="5484" PostId="5611" Score="0" Text="are you saying that I should call ensure_signed(who) inside the signed-extension?" CreationDate="2022-10-31T16:49:58.283" UserId="590" />
  <row Id="5485" PostId="5627" Score="2" Text="In this case, it would be nice to be reflected in the documentation here.[Update the outer node](https://docs.substrate.io/tutorials/work-with-pallets/contracts-pallet/#update-the-outer-node). Cheers," CreationDate="2022-10-31T18:29:33.273" UserId="3387" />
  <row Id="5486" PostId="5627" Score="0" Text="Agree...if you made it and got time, please feel free to open a PR to update that doc =)" CreationDate="2022-10-31T18:37:00.860" UserId="14" />
  <row Id="5487" PostId="2231" Score="0" Text="This is a great resource. Can we please update the links to some of these?" CreationDate="2022-10-31T23:10:43.490" UserId="590" />
  <row Id="5488" PostId="5625" Score="1" Text="It is possible [conditional compiling in ink!](https://use.ink/4.0.0-alpha.1/faq#what-does-the-cfg_attrnotfeature--std-no_std-at-the-beginning-of-each-contract-mean)" CreationDate="2022-11-01T00:43:48.447" UserId="2844" />
  <row Id="5489" PostId="5624" Score="0" Text="This might be help in order to access `Salt` [access salt](https://paritytech.github.io/ink/ink_env/call/state/index.html)" CreationDate="2022-11-01T01:07:35.323" UserId="2844" />
  <row Id="5490" PostId="5624" Score="0" Text="`Salt` is an enum indicating the state of some call builder I guess. Doesn't look useful. I'm not sure if salt is accessible in the constructor, but I would not be surprised if it doesn't. If you just want to get the address of the new contract, inside the constructor you should be able to access `Self::env().callee()`, and outside the constructor you can convert the `InnerContractRef` to an account id." CreationDate="2022-11-01T03:39:00.517" UserId="544" />
  <row Id="5491" PostId="5624" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-11-01T03:39:47.783" UserId="544" />
  <row Id="5492" PostId="5626" Score="0" Text="Better to ask repo related questions in the related repos" CreationDate="2022-11-01T03:42:52.487" UserId="544" />
  <row Id="5493" PostId="5627" Score="1" Text="That would be a very good idea. But the real problem is the documentation is not associated with a CI/CD pipeline in which &quot;tags&quot; that documentation to a release version. If we just perform individual ad hoc corrections will increase confusion to new people that want to use Substrate/Polkadot." CreationDate="2022-11-01T06:42:01.623" UserId="3387" />
  <row Id="5494" PostId="5627" Score="0" Text="On another Note: don't use semver if 0.0.x increments introduce breaking Changes" CreationDate="2022-11-01T08:51:45.777" UserId="3265" />
  <row Id="5495" PostId="5631" Score="1" Text="I think you should ask this on StackOverflow Rust." CreationDate="2022-11-01T09:59:29.397" UserId="251" />
  <row Id="5496" PostId="5625" Score="0" Text="That's not what this documentation describes, it specifies how to compile to std and non-std (aka wasm) environments. It says nothing about passing own feature flags for conditional compilation" CreationDate="2022-11-01T10:01:26.190" UserId="425" />
  <row Id="5497" PostId="5624" Score="0" Text="@h4x3rotab, thanks for the suggestion but there's no `callee()` in the `Self::env()` : https://docs.rs/ink_lang/3.4.0/ink_lang/struct.EnvAccess.html if there was I wouldn't have this problem.&#xA;&#xA;What I want to achieve is to calculate the `AccountId` of *external contract* that I am just instantiating, and pass that as an argument to the constructor of `InnerContractRef`. I thought that's clear from my code sample." CreationDate="2022-11-01T11:12:35.807" UserId="3385" />
  <row Id="5498" PostId="5634" Score="2" Text="Generally (this is not the first time this happens), this indicates a mismatch between the node and runtime versions, i.e. the RPC node calls into the runtime and then cannot decode the response. Basically it means that the RPC nodes would need to be upgraded to match the runtime version (or if newer, downgraded).&#xA;&#xA;For the `state_call` question - this doesn't suffer from the same issues (no node &lt;-&gt; runtime encoding), hence the JS API using `api.call.*` to make these queries. Generally if functionality is available on the runtime calls and rpcs, you would rather use the runtime calls." CreationDate="2022-11-01T13:21:20.480" UserId="627" />
  <row Id="5499" PostId="5636" Score="1" Text="Without it, the WS will disconnect after 60 seconds (even with open subscriptions) since no data is received. Recent versions of the Substrate code has the WS ping-pong built-in on the node WS layer, so it is on the roadmap to remove the health calls in the JS API since it is (since very recently) not needed in up-to-date chains. TL;DR For some chains it is still needed, for others it is not (anymore) - for broad compat, it is (still) on by default with no switch." CreationDate="2022-11-01T13:24:59.030" UserId="627" />
  <row Id="5500" PostId="1065" Score="0" Text="For upgrading common good parachains the runtime file is built and released in the cumulus github; for example here is the v9290 release: https://github.com/paritytech/cumulus/releases/tag/parachains-v9290 . Anyone can also build it themselves using the published docker image. Running https://github.com/chevdor/srtool-cli is the easiest way to do that." CreationDate="2022-11-01T13:48:00.913" UserId="85" />
  <row Id="5501" PostId="5634" Score="0" Text="Thank you! That explains the issue. If you want, you can move this comment to the `answers` section and I will mark it as accepted one" CreationDate="2022-11-01T14:43:44.753" UserId="521" />
  <row Id="5502" PostId="5639" Score="0" Text="Would this still allow external connections over the internet though? I would like the nodes we are running only communicate local but still want other nodes to connect across the internet." CreationDate="2022-11-01T14:53:22.543" UserId="2792" />
  <row Id="5503" PostId="5629" Score="0" Text="Can you give us the full code on GitHub or so? It should be stored." CreationDate="2022-11-01T14:56:44.023" UserId="94" />
  <row Id="5504" PostId="1065" Score="0" Text="I think `cargo build --release` in the correct source tree is the easiest and safest way. Then just picking the correct artifact is the challenge." CreationDate="2022-11-01T22:28:53.630" UserId="116" />
  <row Id="5505" PostId="5646" Score="0" Text="Thank you @Andreea.&#xA;&#xA;const code = new CodePromise(api, metadata, wasm);&#xA;&#xA;the official doc show above sample code. In this situation, api is instance, metadata is metadata.json, right? The third argument 'wasm' you said is in the .contract file? Also I can access like this 'json.info.source.wasm'?" CreationDate="2022-11-02T01:38:32.697" UserId="3254" />
  <row Id="5506" PostId="5646" Score="0" Text="Sorry for the my poor understanding and for asking such a rudimentary question!" CreationDate="2022-11-02T01:39:43.267" UserId="3254" />
  <row Id="5507" PostId="5640" Score="1" Text="I think this should be an issue in https://github.com/paritytech/subport/issues." CreationDate="2022-11-02T02:12:42.377" UserId="251" />
  <row Id="5508" PostId="5634" Score="0" Text="Copied the answer and added some (small) clarifications." CreationDate="2022-11-02T05:59:01.913" UserId="627" />
  <row Id="5512" PostId="5485" Score="0" Text="@TinyDev Please update your question to add your XCM you sent so that I can find what's wrong." CreationDate="2022-11-02T08:24:06.073" UserId="1959" />
  <row Id="5519" PostId="5485" Score="0" Text="@TinyDev Could you edit your question and add the XCM instructions or screenshot?Comment is not convenient." CreationDate="2022-11-02T08:41:49.087" UserId="1959" />
  <row Id="5521" PostId="5485" Score="0" Text="@TinyDev I have updated my answer. But I think it's not related to the original question, If you are still confused, you can open a new question, I am willing to help you" CreationDate="2022-11-02T09:13:40.490" UserId="1959" />
  <row Id="5524" PostId="5485" Score="0" Text="https://substrate.stackexchange.com/questions/5654/i-cant-open-a-hrmp-channel-between-the-parachains&#xA;Please check this question, @Guantong." CreationDate="2022-11-02T09:26:14.890" UserId="3255" />
  <row Id="5525" PostId="5656" Score="0" Text="it dose not work" CreationDate="2022-11-02T09:44:17.370" UserId="3000" />
  <row Id="5527" PostId="5656" Score="0" Text="What is the error you are getting?" CreationDate="2022-11-02T09:45:45.277" UserId="2762" />
  <row Id="5528" PostId="5611" Score="0" Text="That will not work. `ensure_signed` is expecting an origin, however `who` is an `AccountId`." CreationDate="2022-11-02T09:48:31.307" UserId="527" />
  <row Id="5529" PostId="5611" Score="1" Text="I am not sure what you are trying to achieve, but if what you want is to check if a transaction is signed or not before it is included in the block, what you can do is to use build your own `UncheckedExtrinsic`.&#xA;&#xA;You could modify `check()` method to reject transactions filtering them with `Call`." CreationDate="2022-11-02T09:56:46.390" UserId="527" />
  <row Id="5531" PostId="5646" Score="0" Text="if you want to let users deploy contracts from your app you need to display an instantiation form with a file input where they can upload the .contract file which is valid JSON. the contents of the file input should then be parsed into an object and the wasm blob can be found at yourJsonObject.info.source.wasm" CreationDate="2022-11-02T10:27:08.510" UserId="100" />
  <row Id="5532" PostId="5646" Score="0" Text="sorry it's yourJsonObject.source.wasm. the metadata structure is subject to change, but you can preview the .contract file in any online json formatter and you can see where the wasm field is." CreationDate="2022-11-02T10:36:22.243" UserId="100" />
  <row Id="5533" PostId="5654" Score="0" Text="As others have noted, you will have to either include the sudo pallet or governance pallets. Additionally, make sure you are using the parachain's sovereign account." CreationDate="2022-11-02T11:03:04.510" UserId="29" />
  <row Id="5534" PostId="5654" Score="0" Text="Thanks, @Bruno, I am fixing the issues now as all you mentioned." CreationDate="2022-11-02T11:14:19.857" UserId="3255" />
  <row Id="5535" PostId="5662" Score="0" Text="Have you seen https://github.com/paritytech/subxt ? As I say you tagged rust I assumed rust based subscription is what you wanted. If historical, you likely want something else like an indexer or block explorer." CreationDate="2022-11-02T11:49:30.050" UserId="34" />
  <row Id="5536" PostId="80" Score="0" Text="Yes exactly. The collators are building the blocks and send then to the relay chain validators." CreationDate="2022-11-02T15:39:52.920" UserId="73" />
  <row Id="5537" PostId="5629" Score="1" Text="@OliverTale-Yazdi I will try to make some small example to reproduce. Give me couple of days." CreationDate="2022-11-02T16:33:13.910" UserId="2403" />
  <row Id="5540" PostId="5654" Score="0" Text="I updated my question." CreationDate="2022-11-02T18:08:21.223" UserId="3255" />
  <row Id="5541" PostId="5662" Score="0" Text="I am using Golang interface to catch events emitted by contracts in rust. As application is written in golang." CreationDate="2022-11-02T18:10:50.713" UserId="3383" />
  <row Id="5542" PostId="5675" Score="0" Text="Thanks. it worked." CreationDate="2022-11-03T06:33:05.840" UserId="3255" />
  <row Id="5543" PostId="5675" Score="0" Text="So, please mark this as the answer." CreationDate="2022-11-03T07:23:33.843" UserId="251" />
  <row Id="5544" PostId="5624" Score="0" Text="@h4x3rotab May be this could help. If you want to calculate of the AccountId of the contract which you instantiating, then I think you can use `Self::env().account_id()`. [You can look here](https://paritytech.github.io/ink/ink_env/fn.account_id.html)" CreationDate="2022-11-03T09:13:09.600" UserId="2844" />
  <row Id="5545" PostId="5624" Score="0" Text="@Ganesh11 when you call that in the constructor it will return the account ID of the caller, not the contract being instantiated." CreationDate="2022-11-03T09:42:04.007" UserId="3385" />
  <row Id="5546" PostId="5677" Score="0" Text="Interesting, but it seems like the extrinsic needs to be called manually until there's no more people to refund right? Although I would like to execute the migration automatically, this is useful to model a first approach, thx!" CreationDate="2022-11-03T09:50:29.613" UserId="2102" />
  <row Id="5547" PostId="5674" Score="0" Text="Thanks for the confirmation. Could you also perhaps point me to the code in `construct_runtime!` macro that is responsible for the generation of genesis execution/ordering?" CreationDate="2022-11-03T10:58:05.233" UserId="2759" />
  <row Id="5548" PostId="5639" Score="1" Text="As far as I know this doesn't prevent internet traffic as long as your node is reachable on a public IP." CreationDate="2022-11-03T11:44:05.900" UserId="539" />
  <row Id="5549" PostId="5677" Score="1" Text="Yes, you are right, this approach will require manual execution until whole storage will be updated" CreationDate="2022-11-03T14:16:49.617" UserId="521" />
  <row Id="5550" PostId="5686" Score="0" Text="Did you implement BABE support on your own for parachains? Otherwise it is not supported. To your question, can you not just take a db backup?" CreationDate="2022-11-03T23:09:02.223" UserId="73" />
  <row Id="5551" PostId="5685" Score="1" Text="Did you go through [this Question](https://substrate.stackexchange.com/questions/4317/what-are-the-costs-of-multiple-cross-contract-calls-in-one-contract-call-stack-t)" CreationDate="2022-11-04T01:12:49.747" UserId="2844" />
  <row Id="5552" PostId="5625" Score="1" Text="There is [`mother contract in example`](https://github.com/paritytech/ink/tree/master/examples/mother). Exactly your question Scenario for conditional compiling. [read this](https://github.com/paritytech/ink/pull/1458)" CreationDate="2022-11-04T01:34:21.543" UserId="2844" />
  <row Id="5553" PostId="5646" Score="0" Text="like this ?, I set contractWASM as compiled .contract file. Then I define `wasm` as bellow&#xA;`const wasm = contractWasm.source.wasm;`" CreationDate="2022-11-04T02:27:01.820" UserId="3254" />
  <row Id="5554" PostId="5689" Score="0" Text="The problem occurs when I build a contract $cargo +nightly contract builld" CreationDate="2022-11-04T04:28:45.503" UserId="3403" />
  <row Id="5555" PostId="5686" Score="0" Text="The relay chain is the one using BABE, updated the question. I have an old backup of the database, lets say that the database is on block 500 and the relay chain already processed 1000 blocks from that parachain." CreationDate="2022-11-04T07:25:56.280" UserId="3002" />
  <row Id="5556" PostId="5686" Score="0" Text="I've already re-deployed the parachain, but I would like to know how I could recover from that, if it is even possible." CreationDate="2022-11-04T07:26:59.137" UserId="3002" />
  <row Id="5557" PostId="5689" Score="3" Text="you haven't included `pdao-beacon-chain-common/std` on `std = []`" CreationDate="2022-11-04T07:30:50.697" UserId="2844" />
  <row Id="5559" PostId="5690" Score="0" Text="Unfortunately, it didn't help me." CreationDate="2022-11-04T09:46:04.963" UserId="3255" />
  <row Id="5560" PostId="5690" Score="0" Text="You should provide more detail. Why it didn't help you? What is the new error?" CreationDate="2022-11-04T09:49:00.113" UserId="251" />
  <row Id="5561" PostId="5692" Score="0" Text="Thanks, i am looking for a similar alternative in rust." CreationDate="2022-11-04T09:55:23.063" UserId="2898" />
  <row Id="5562" PostId="5690" Score="0" Text="I have tried all instructions in the links I mentioned, but I could not solve the issue I'd faced. It seems the issue is related the open source's version, I guess, but am not sure." CreationDate="2022-11-04T10:37:53.250" UserId="3255" />
  <row Id="5563" PostId="5690" Score="0" Text="I tried to reset the parity-db version, to remove the checksum section in Cargo.lock file, but it didn't work while in the *.lock file being 2 &quot;syn&quot; parts." CreationDate="2022-11-04T10:40:50.367" UserId="3255" />
  <row Id="5564" PostId="5690" Score="0" Text="Did you read that post? You don't need to modify the lock file yourself. You just need to use the `cargo update` command to manage them." CreationDate="2022-11-04T11:42:03.880" UserId="251" />
  <row Id="5566" PostId="5408" Score="1" Text="@Bruno Sorry for my super late reply. Was working on some other stuff. I tried Zombienet but I couldn't really reproduce the issue. I was expecting Zombienet to work because it uses `--alice` and `--bob`. I am still pretty confused of this issue... it doesn't make sense." CreationDate="2022-11-04T14:18:13.397" UserId="2455" />
  <row Id="5567" PostId="5690" Score="0" Text="Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/140364/discussion-between-tinydev-and-aurevoirxavier)." CreationDate="2022-11-04T14:30:24.143" UserId="3255" />
  <row Id="5568" PostId="5397" Score="1" Text="Would you mind providing the solution anytime soon? We have the same issue, asked here: https://substrate.stackexchange.com/questions/5696/adding-pallet-gilt-to-a-running-chain-bricks-the-chain" CreationDate="2022-11-04T14:49:45.520" UserId="608" />
  <row Id="5569" PostId="5686" Score="0" Text="All the stuff you are saying is very unspecific. You should add more details on what is your actual problem." CreationDate="2022-11-04T21:55:37.170" UserId="73" />
  <row Id="5570" PostId="5698" Score="1" Text="Thanks for your answer. I will try it and come back to you. Cheers!" CreationDate="2022-11-04T22:47:40.383" UserId="2455" />
  <row Id="5571" PostId="5703" Score="0" Text="Thanks for your message, but I want to let you know more about." CreationDate="2022-11-04T23:16:06.150" UserId="3255" />
  <row Id="5572" PostId="5703" Score="0" Text="I updated my question, if you are available, please check it again. All the best." CreationDate="2022-11-04T23:16:36.107" UserId="3255" />
  <row Id="5573" PostId="5699" Score="0" Text="I believe that token standards are specific to smart contracts and therefore DOT and other Substrate based tokens from the balances pallet do not use a token standard. Can anyone confirm that?" CreationDate="2022-11-04T23:21:14.447" UserId="3346" />
  <row Id="5574" PostId="5703" Score="0" Text="Ahh yeah, I see. You should for now put `tt_default_parts` in the export list. I think this is something we should fix. It is some macro generated by the macro and should be put into the public export automatically." CreationDate="2022-11-04T23:32:12.963" UserId="73" />
  <row Id="5575" PostId="5703" Score="0" Text="Awesome, thanks a lot, @bkchr." CreationDate="2022-11-04T23:40:59.787" UserId="3255" />
  <row Id="5576" PostId="5697" Score="1" Text="[In this questions](https://substrate.stackexchange.com/a/1155/2844), he suggested to `Hash` `String` in client code and store that `Hash` in the contract." CreationDate="2022-11-05T11:04:24.687" UserId="2844" />
  <row Id="5579" PostId="5534" Score="1" Text="Just to say, Subxt doesn't currently support decoding blocks into anything useful, but it's next up on the roadmap and should be out by the end of Jan 2023, all being well!" CreationDate="2022-11-05T22:02:47.363" UserId="474" />
  <row Id="5580" PostId="4034" Score="1" Text="Just to add, one thing you can do is go to https://polkadot.js.org/apps/?rpc=ws%3A%2F%2F127.0.0.1%3A9944#/explorer and point it at the node you'd like to call contract code on. See what extrinsics you can submit via that UI. If you can't see contract calls there, that'll be why you also can't see them via Subxt. Also, make sure that Subxt is pointed at metadata for the node you want to talk to so that it knows about any contract stuff that might be available :)" CreationDate="2022-11-05T22:08:00.243" UserId="474" />
  <row Id="5581" PostId="2866" Score="0" Text="Two things to mention here briefly: 1) The interface has changed a fair bit in &quot;modern&quot; Subxt, and on `master` you can roughly call `api.blocks().at(block_hash).await?.events()` to get all events on some &quot;historic&quot; block. 2) Subxt doesn't support asking for blocks that pre-date the latest node runtime (or more accurately, it might work or might not depending on the runtime changes). Just something to keep in mind :)" CreationDate="2022-11-05T22:11:27.657" UserId="474" />
  <row Id="5582" PostId="5705" Score="0" Text="For the Go part you can use [GSRPC](https://github.com/centrifuge/go-substrate-rpc-client) which has some issues but works for basic use-cases. [Example](https://github.com/perun-network/perun-polkadot-backend/blob/9ec28fc9fd9d89f715cdc991c0794e38746e6f19/pkg/substrate/event_source.go#L67)." CreationDate="2022-11-05T22:38:05.827" UserId="94" />
  <row Id="5583" PostId="5617" Score="0" Text="Thanks a lot, just tried and it compiles! Makes it an easy base to start from." CreationDate="2022-11-06T02:08:49.047" UserId="3221" />
  <row Id="5584" PostId="5693" Score="0" Text="Did you try searching here for your error message? It looks like a duplicate to me." CreationDate="2022-11-06T15:19:25.540" UserId="94" />
  <row Id="5585" PostId="5532" Score="0" Text="This seems like a fundamental design flaw and a show stopper for a blockchain application. A key design consideration of a blockchain is resiliency, and bricking simply by doing nothing and allow time to lapse seems crazy.  The workaround is just to restart the chain from genesis (?)" CreationDate="2022-11-06T16:57:03.490" UserId="332" />
  <row Id="5587" PostId="5721" Score="0" Text="I want to make sure I understood it correctly:&#xA;Let's say I create a function called add_number_to_btree(sender: T::AccountId, number: u32). What gets added to the actual block is the call to that function with the parameters, and every node executes that call? So if I check for that invariant in the function I've written, all nodes which use my code and are not malicious will have the same storage state, since every function I'm writing has to be deterministic?" CreationDate="2022-11-06T23:58:48.047" UserId="3408" />
  <row Id="5589" PostId="5721" Score="0" Text="Yes, you are right!" CreationDate="2022-11-07T04:40:32.443" UserId="521" />
  <row Id="5590" PostId="5728" Score="0" Text="Could you provide some examples?" CreationDate="2022-11-07T04:57:13.960" UserId="3410" />
  <row Id="5591" PostId="5728" Score="0" Text="You are trying to update from 0.9.25 to 0.9.31, so there might be some dependencies that are being used twice with different versions, you need to check that." CreationDate="2022-11-07T05:11:45.760" UserId="354" />
  <row Id="5592" PostId="5728" Score="0" Text="Could you point me exactly where and how to check it?" CreationDate="2022-11-07T05:26:41.647" UserId="3410" />
  <row Id="5593" PostId="5729" Score="0" Text="And one more thing, Do i  need to create Key pairs on all nodes?" CreationDate="2022-11-07T06:58:52.153" UserId="3109" />
  <row Id="5594" PostId="5730" Score="1" Text="AFAIK sidecar v14.0.1 is compatible with Polkadot v0.9.29. For Polkadot v0.9.30 you should try sidecar v14.1.0." CreationDate="2022-11-07T08:36:36.790" UserId="2673" />
  <row Id="5596" PostId="5569" Score="0" Text="If you remove the pure proxy by calling `kill_anonymous` instead of `remove_proxy`, then the funds are unreserved for the spawner account, as expected. I believe that `remove_proxy` was not really meant to be used with pure proxies." CreationDate="2022-11-07T08:56:27.077" UserId="2673" />
  <row Id="5600" PostId="5729" Score="0" Text="When starting the network you need to provide key pair for every node." CreationDate="2022-11-07T11:43:51.103" UserId="354" />
  <row Id="5601" PostId="5684" Score="2" Text="See if this answer can help you: https://substrate.stackexchange.com/a/4433/2762" CreationDate="2022-11-07T13:08:04.897" UserId="2762" />
  <row Id="5602" PostId="5733" Score="0" Text="Thank you, Adam!" CreationDate="2022-11-07T13:35:13.887" UserId="3346" />
  <row Id="5603" PostId="5709" Score="1" Text="Thanks for the answer, I`ve done something similar to that. Thanks for the answer !" CreationDate="2022-11-07T13:56:58.647" UserId="3331" />
  <row Id="5604" PostId="5569" Score="0" Text="That was my impression, as well, hence this question. I would have already raised an issue if it wasn't for the comment linked in the question above that shows that the developers were aware of this interaction and apparently decided to leave it in." CreationDate="2022-11-07T14:33:16.777" UserId="3" />
  <row Id="5605" PostId="5726" Score="0" Text="Can you try running your node with the flag: `--offchain-worker always` and let me know if it solves the issue." CreationDate="2022-11-07T15:03:51.613" UserId="29" />
  <row Id="5606" PostId="4137" Score="0" Text="This is the right thing for me" CreationDate="2022-11-07T15:54:37.130" UserId="3179" />
  <row Id="5607" PostId="5397" Score="1" Text="I've submitted the solution, soon they'll review and approve so you can solve your problem as well." CreationDate="2022-11-07T16:11:12.280" UserId="3331" />
  <row Id="5609" PostId="5397" Score="1" Text="Thanks @AlexandreRibeiro " CreationDate="2022-11-07T17:32:11.247" UserId="34" />
  <row Id="5610" PostId="5397" Score="1" Text="You should answer your own question though. The question should not contain a solution." CreationDate="2022-11-07T17:32:53.273" UserId="34" />
  <row Id="5611" PostId="5726" Score="0" Text="@Bruno sadly this does not fix the issue" CreationDate="2022-11-08T00:51:38.443" UserId="2678" />
  <row Id="5612" PostId="1105" Score="0" Text="Is there a way of enabling Events for genesis? We need it for indexing." CreationDate="2022-11-08T04:23:15.853" UserId="1803" />
  <row Id="5613" PostId="5674" Score="1" Text="One of the chain runtime types that construct_runtime expands and creates is called GenesisConfig for which the trait BuildStorage is implemented and there it goes over another runtime type called `AllPalletsWithSystem` which is a tuple constructed of all the pallets according to their declaration order. Have a look at: https://github.com/paritytech/substrate/blob/polkadot-v0.9.30/frame/support/procedural/src/construct_runtime/expand/config.rs#L82-L95&#xA;Finally when the client builds the chain-spec it uses that GenesisConfig type from the runtime." CreationDate="2022-11-08T04:37:03.203" UserId="318" />
  <row Id="5614" PostId="5730" Score="0" Text="I have tried the sidecar v14.1.0 , but still , i am getting the '502 bad gateway' error" CreationDate="2022-11-08T05:17:11.347" UserId="3412" />
  <row Id="5615" PostId="1105" Score="1" Text="We explicitly disabled events on genesis because it created a very heavy and slow block. So no, we have no such functionality today." CreationDate="2022-11-08T06:17:32.170" UserId="28" />
  <row Id="5616" PostId="5752" Score="0" Text="We have added the SUDO keys, and as I mentioned we have been using the SUDO key for more than a year. But now PolkadotApps doesn't show the sudo option even if I add the sudo keys." CreationDate="2022-11-08T07:31:26.470" UserId="3418" />
  <row Id="5617" PostId="5752" Score="0" Text="What's your Substrate version? Could you share the testnet link?" CreationDate="2022-11-08T08:02:28.680" UserId="251" />
  <row Id="5619" PostId="5752" Score="0" Text="We use older version v2.0.0, link: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fatom2.api.godscilla.com%2Frpc#/accounts" CreationDate="2022-11-08T08:27:54.570" UserId="3418" />
  <row Id="5620" PostId="5752" Score="0" Text="That's quite old. If you open your browser console, you will see a lot of errors. You might be incompatible with the latest PolkadotApps. I guess this is the reason why the sudo pallet fail to load." CreationDate="2022-11-08T08:45:56.117" UserId="251" />
  <row Id="5621" PostId="5752" Score="0" Text="Sorry. *Your node might be" CreationDate="2022-11-08T09:15:08.660" UserId="251" />
  <row Id="5622" PostId="5750" Score="0" Text="Hey Ganesh, thanks for the reply. I'm aware I can't read all of the map entries as return in `#[ink(message)]` -- I was interested how to do it via RPC and querying storage directly." CreationDate="2022-11-08T09:20:41.757" UserId="3385" />
  <row Id="5623" PostId="5752" Score="0" Text="Thanks for the response, Is there a way I can use the old version of PolkadotApps?..Because we are running prod private network with the old version. Definitely we will consider upgrading the newer version. For the time being, is there any workaround to use polkadot older version?" CreationDate="2022-11-08T09:42:14.493" UserId="3418" />
  <row Id="5625" PostId="5752" Score="0" Text="I think the only way is git clone polkadot-apps &amp; checkout old version tag &amp; yarn. If anyone knows other ways. Please correct me." CreationDate="2022-11-08T10:01:41.080" UserId="251" />
  <row Id="5626" PostId="5752" Score="0" Text="Thanks for your help. The issue is resolved, I have cloned the older version and run it. Appreciate your timely help" CreationDate="2022-11-08T10:37:43.133" UserId="3418" />
  <row Id="5627" PostId="5758" Score="0" Text="What error do you get? Is it a no_std issue?" CreationDate="2022-11-08T10:56:10.300" UserId="116" />
  <row Id="5628" PostId="5758" Score="0" Text="Can you post compilation error? and also your `Cargo.toml` code where you are adding this crate?" CreationDate="2022-11-08T11:24:24.903" UserId="140" />
  <row Id="5629" PostId="5758" Score="0" Text="yes, I have to set it up again, that's why I was asking if it was possible without providing the error, but I'll attach it asap" CreationDate="2022-11-08T11:34:57.817" UserId="2102" />
  <row Id="5630" PostId="5758" Score="1" Text="You can not use `regex` in pallet btw. Please see my answer. I hope this helps." CreationDate="2022-11-08T11:39:21.913" UserId="140" />
  <row Id="5631" PostId="5762" Score="0" Text="Thanks! I'll test it out. Where can I see wether a crate supports `no_std` or not? Should it have `#![no_std]` in the source?" CreationDate="2022-11-08T11:48:19.140" UserId="2102" />
  <row Id="5632" PostId="5762" Score="0" Text="I think so. `safe-regex` explicitly has mentioned in their document https://crates.io/crates/safe-regex&#xA;&#xA;Please accept the answer if this helps you." CreationDate="2022-11-08T11:52:31.707" UserId="140" />
  <row Id="5633" PostId="5746" Score="0" Text="Works fine for me. Do you have any browser add-ons enabled that might interrupt the proper functioning of the playground?" CreationDate="2022-11-08T12:11:46.423" UserId="2673" />
  <row Id="5635" PostId="5751" Score="0" Text="This has already been answered here https://substrate.stackexchange.com/questions/3200/sudo-option-is-missing" CreationDate="2022-11-08T13:12:19.293" UserId="140" />
  <row Id="5636" PostId="5752" Score="0" Text="Could you mark this as the answer?" CreationDate="2022-11-08T13:12:22.307" UserId="251" />
  <row Id="5637" PostId="5751" Score="0" Text="Does this answer your question? [Sudo option is missing](https://substrate.stackexchange.com/questions/3200/sudo-option-is-missing)" CreationDate="2022-11-08T13:12:52.043" UserId="140" />
  <row Id="5638" PostId="5752" Score="0" Text="This has already been answered here https://substrate.stackexchange.com/questions/3200/sudo-option-is-missing" CreationDate="2022-11-08T13:13:07.347" UserId="140" />
  <row Id="5639" PostId="5746" Score="0" Text="Working fine this morning, haven't changed any settings (or even restarted since yesterday) and I'm on the same network, I will leave this thread open in case I see any issues but for now it's working, thanks for your reply Adam" CreationDate="2022-11-08T13:42:55.983" UserId="3415" />
  <row Id="5640" PostId="5768" Score="0" Text="Thanks @oliver for the help. What if Alice is not a sudo user?" CreationDate="2022-11-08T13:58:15.607" UserId="3327" />
  <row Id="5641" PostId="5768" Score="1" Text="Then you need to use a different mnemonic instead of `//Alice`. Development chains use Alice, that's why I used it in the example." CreationDate="2022-11-08T14:05:51.697" UserId="94" />
  <row Id="5644" PostId="5768" Score="0" Text="Thank you very much for the help and your time, What if I wanted to do two transaction with pallet::balances::force_transfer from two diffirent source account, wraps in pallet:utlity::batch and than perform these transaction as a sudo. Can we use a double wraper here?" CreationDate="2022-11-08T15:27:05.850" UserId="3327" />
  <row Id="5645" PostId="5781" Score="0" Text="Thanks. I will give this a try if it happens again." CreationDate="2022-11-08T19:05:35.787" UserId="3002" />
  <row Id="5646" PostId="5783" Score="2" Text="Can you show your code? Maybe you have two different git versions of Substrate in your Cargo.lock?" CreationDate="2022-11-08T20:14:39.397" UserId="73" />
  <row Id="5648" PostId="5750" Score="0" Text="@deuszx you mean read all `my_map ` entries via RPC?" CreationDate="2022-11-09T01:04:01.233" UserId="2844" />
  <row Id="5650" PostId="5558" Score="0" Text="Thanks for the answer indeed, but this is really annoying since we have no PoV in our chain for instance. What value should I pick and why should I even think about it if it is not applicable " CreationDate="2022-11-09T01:41:39.917" UserId="25" />
  <row Id="5652" PostId="5780" Score="1" Text="OK，thanks a lot :)" CreationDate="2022-11-09T02:20:22.920" UserId="489" />
  <row Id="5653" PostId="5766" Score="0" Text="This returns *summary: Retrieves the fee information for an encoded extrinsic* witch is close but it is not practical to use for this." CreationDate="2022-11-09T02:48:18.280" UserId="116" />
  <row Id="5654" PostId="5755" Score="0" Text="thanks, but i pass the vec data which is the field of ProofStr struct. i tried to decode the vec, but failed" CreationDate="2022-11-09T03:35:06.127" UserId="489" />
  <row Id="5657" PostId="5755" Score="0" Text="I didn't get what you want to do. You are trying to decode a `Vec&lt;u8&gt;` to a `Vec&lt;u32&gt;`.&#xA;&#xA;But for the question. I think you want to decode the `ProofStr` from `Vec&lt;u8&gt;`." CreationDate="2022-11-09T06:37:20.423" UserId="251" />
  <row Id="5658" PostId="5751" Score="0" Text="Nope. These are two different situations." CreationDate="2022-11-09T06:39:36.203" UserId="251" />
  <row Id="5660" PostId="5755" Score="0" Text="But from your polkadotapps screenshot, it is a `ProofStr` that  decoded from a `Vec&lt;u8&gt;`." CreationDate="2022-11-09T07:17:19.200" UserId="251" />
  <row Id="5661" PostId="5755" Score="0" Text="`However i want to get the vec data like in polkadot js instead of encoded.`&#xA;&#xA;This is what you said in the question. You want the polkadotapps's output. Actually it's a decoded `ProofStr`." CreationDate="2022-11-09T07:18:52.683" UserId="251" />
  <row Id="5662" PostId="5755" Score="0" Text="Also, `Vec&lt;u8&gt;` is aka bytes in computers. `Vec&lt;u32&gt;` is just a series of `u32`. I don't why you want this type." CreationDate="2022-11-09T07:23:43.197" UserId="251" />
  <row Id="5663" PostId="4990" Score="0" Text="@SudipGhimire hi! Have you found any solution for this? I am facing similar issue after upgrading my code base to polkadot-v0.9.29" CreationDate="2022-11-09T09:30:20.963" UserId="2010" />
  <row Id="5665" PostId="5766" Score="0" Text="@Simson, check the full context for this answer, https://github.com/paritytech/substrate/pull/11819 I do feel that it could be helpful for your scenario" CreationDate="2022-11-09T11:07:55.703" UserId="165" />
  <row Id="5666" PostId="5795" Score="1" Text="@Coreggon are you talking something like this?" CreationDate="2022-11-09T11:43:57.747" UserId="2844" />
  <row Id="5667" PostId="5558" Score="0" Text="You have no PoV or no PoV weight? You have a solo-chain? `u64::MAX` just signals that proof size will effectively be un-limited. For para-chains this will work now, but needs to be adapted in the future. For solo chains its their own responsibility." CreationDate="2022-11-09T11:57:14.253" UserId="94" />
  <row Id="5669" PostId="5768" Score="0" Text="It should be enough to wrap the `batch` in a `sudo` since `batch` propagates the origin." CreationDate="2022-11-09T12:26:13.190" UserId="94" />
  <row Id="5670" PostId="5791" Score="0" Text="I'm confused, why do you think that these apis exist?" CreationDate="2022-11-09T12:58:14.707" UserId="73" />
  <row Id="5671" PostId="5791" Score="0" Text="I could curl this. Also, I could use `polkadotapps -  rpc calls - net` send this.&#xA;&#xA;https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fdarwiniacrab-rpc.dwellir.com#/rpc&#xA;&#xA;Maybe my chain's Substrate is too old? it's at `polkadot-v0.9.16`." CreationDate="2022-11-09T13:23:01.673" UserId="251" />
  <row Id="5672" PostId="5770" Score="0" Text="Hmm... I could be wrong after all, because another test showed that the delegation does indeed propagate." CreationDate="2022-11-09T13:33:30.053" UserId="1820" />
  <row Id="5673" PostId="5766" Score="0" Text="@Simson I believe it contains weight as one of the fields of the returned struct. [See the code](https://github.com/polkadot-js/api/blob/2b2bad672592b9a1ee8029104afce7b482068705/packages/types/src/interfaces/payment/types.ts#L22)" CreationDate="2022-11-09T13:57:11.370" UserId="2673" />
  <row Id="5674" PostId="5802" Score="1" Text="Ok thats clear. i have prod or fast macro, but perhaps my parachain is set to live on the staging net so its expecting blocknumber to be at least 3 days. Ok makes sense" CreationDate="2022-11-09T15:31:42.030" UserId="298" />
  <row Id="5675" PostId="5770" Score="0" Text="votes should propagate in the current design of polkadot governance. closing this as this is also not really a stackexchange question" CreationDate="2022-11-09T16:03:37.087" UserId="28" />
  <row Id="5676" PostId="5783" Score="0" Text="Which part of the code you want to see?" CreationDate="2022-11-09T19:29:02.670" UserId="2960" />
  <row Id="5677" PostId="5795" Score="0" Text="@Coreggon while build this code I get those errors.                                             `error: the #[alloc_error_handler] in ink_allocator conflicts with allocation error handler in: std` &#xA;`error[E0463]: can't find crate for panic_abort`" CreationDate="2022-11-10T00:20:58.560" UserId="2844" />
  <row Id="5678" PostId="5810" Score="0" Text="A block's extrinsic will always contain a signer, as long as it has a signature, something along the lines of [this](https://paritytech.github.io/substrate/master/sp_runtime/generic/struct.UncheckedExtrinsic.html). This is probably some weird behavior about the python interface, hiding the extrinsic author somewhere hard to find. What is the exact output of this `get_block`?" CreationDate="2022-11-10T02:15:48.817" UserId="167" />
  <row Id="5680" PostId="725" Score="0" Text="Apologies to revive this old question, but re-reading your answer I had another question. Why not the aforementioned pallets choose inherents over unsigned transactions? – aren't inherents supposed to bypass the checks by SignedExtensions?" CreationDate="2022-11-10T08:31:59.827" UserId="139" />
  <row Id="5681" PostId="5620" Score="0" Text="When you say `Pays::No` I assume you are talking about using that as weight information for a dispatchable that receives an unsigned tx and using SignedExtension validation of that utx?" CreationDate="2022-11-10T09:26:49.423" UserId="139" />
  <row Id="5682" PostId="5813" Score="0" Text="Thanks @joepetrowski!!" CreationDate="2022-11-10T11:08:14.023" UserId="246" />
  <row Id="5683" PostId="5807" Score="0" Text="Please see my answer. If it helps, please mark this as acceptable answer." CreationDate="2022-11-10T11:11:07.300" UserId="140" />
  <row Id="5684" PostId="5802" Score="1" Text="@Decentration Please consider marking the question as resolved." CreationDate="2022-11-10T11:15:36.053" UserId="2673" />
  <row Id="5685" PostId="5783" Score="0" Text="That fails to compile for you." CreationDate="2022-11-10T12:51:34.560" UserId="73" />
  <row Id="5687" PostId="5816" Score="0" Text="I agree we shouldn't use inherents in place of utx, but just for the purpose of curiousity , let's say we had to do this and as per my understanding, all one would need to do to remodel `pallet_im_online` in terms of inherents is provide just one trait implementation of `ProvideInherent` instead of going the signed extension route. Since the trait provides methods for both checking and producing an inherent, all validators would eventually see, in case of AURA block production, heartbeats from all validators in a session which would satisfy the functionality of `im_online`." CreationDate="2022-11-10T15:44:53.300" UserId="139" />
  <row Id="5688" PostId="5820" Score="0" Text="Are you using Aura?" CreationDate="2022-11-10T16:01:10.173" UserId="29" />
  <row Id="5689" PostId="5820" Score="0" Text="This post may be relevant:&#xA;- https://substrate.stackexchange.com/questions/4558/why-my-solo-chain-block-time-is-12-seconds-when-set-to-6" CreationDate="2022-11-10T16:03:01.413" UserId="29" />
  <row Id="5690" PostId="5824" Score="1" Text="Take a look at this https://substrate.stackexchange.com/questions/2179/why-unsigned-extrinsics" CreationDate="2022-11-10T16:10:39.427" UserId="251" />
  <row Id="5691" PostId="5824" Score="0" Text="funny i was just reading that lol!" CreationDate="2022-11-10T16:12:23.820" UserId="139" />
  <row Id="5692" PostId="5825" Score="0" Text="I've already followed those instructions. The only needed calls to execute the parachain upgrade, must be done **only** in the parachainSystem pallet? There is no need to make extra calls on the relay? Or calling a set_code after or between the auth -&gt; enact flow?" CreationDate="2022-11-10T17:58:16.690" UserId="3331" />
  <row Id="5693" PostId="5825" Score="0" Text="When I'm executing with the scheduler pallet, I run in this sequence:&#xA;scheduled a call, auth_upgrade, to block n + 5.&#xA;after the block n+5, I then scheduled another call to enact in again, n+5 blocks.&#xA;What is the correct order to make those calls?" CreationDate="2022-11-10T18:01:23.713" UserId="3331" />
  <row Id="5694" PostId="5825" Score="2" Text="The issue is not with the calls. You have them correct. This issue is with the migration. Your migration most likely takes up more than what one block can hold." CreationDate="2022-11-10T18:56:29.267" UserId="29" />
  <row Id="5695" PostId="5825" Score="0" Text="Okay, so how could I use the scheduler pallet to successfully execute the upgrade in more than 1 block. I was thinking that scheduling would resolve the more than 1 block need." CreationDate="2022-11-10T19:06:43.007" UserId="3331" />
  <row Id="5696" PostId="5816" Score="1" Text="The point of heartbeats is to send them when you are not being able to produce a block, to show that you were online. When you are producing a block, you can don't need to send a heartbeat." CreationDate="2022-11-10T21:59:10.547" UserId="73" />
  <row Id="5697" PostId="5822" Score="0" Text="This fixes it, thanks! Put up a [PR](https://github.com/paritytech/cumulus/pull/1860) to add this directly into the Parachain Template Node to prevent others from hitting a similar issue in the future." CreationDate="2022-11-10T23:08:29.313" UserId="2678" />
  <row Id="5698" PostId="5830" Score="2" Text="Looks like you got a permission/access denied. Check the privileges of the file/user/group." CreationDate="2022-11-11T00:00:26.617" UserId="29" />
  <row Id="5699" PostId="5830" Score="2" Text="Also, it is recommended that you use WSL: https://docs.substrate.io/install/windows" CreationDate="2022-11-11T00:01:19.330" UserId="29" />
  <row Id="5700" PostId="5788" Score="1" Text="Thank you! Figured it out based on your comments. For anyone interest, please see my comment below." CreationDate="2022-11-11T00:52:23.240" UserId="3423" />
  <row Id="5701" PostId="5729" Score="0" Text="I did all the things mentioned on  tutorials , I started first node  , do I have to create key pairs on 2nd node(different  machine )and add them to customspec.json or just need to create on first node ??" CreationDate="2022-11-11T07:18:32.390" UserId="3109" />
  <row Id="5702" PostId="5834" Score="0" Text="Just curious. Why do you want non-transactional?" CreationDate="2022-11-11T09:22:17.163" UserId="251" />
  <row Id="5703" PostId="5835" Score="0" Text="Hey. Thank you for your answer. I also tried it but it doesn't work for me. When I log ```result.status```, it is just ```ready``` and if condition log does not happen" CreationDate="2022-11-11T09:34:36.640" UserId="2581" />
  <row Id="5704" PostId="4990" Score="0" Text="Same here for upgrading the codebase to 0.9.26" CreationDate="2022-11-11T09:38:01.010" UserId="2484" />
  <row Id="5705" PostId="5729" Score="0" Text="While creating customSpec you need to add the keys for all the nodes, it doesn't matter where you create it." CreationDate="2022-11-11T10:07:49.593" UserId="354" />
  <row Id="5706" PostId="5835" Score="0" Text="I have tried it in the Polkadot network and works, make sure you are importing you are creating the Keyring propertly: https://polkadot.js.org/docs/keyring/start/create and specific for Kusama: https://polkadot.js.org/docs/keyring/start/ss58" CreationDate="2022-11-11T10:10:00.053" UserId="2762" />
  <row Id="5707" PostId="5835" Score="0" Text="Yes. Tranasaction is done. This mean, I am doing correctly, just I can't get block hash" CreationDate="2022-11-11T10:16:50.080" UserId="2581" />
  <row Id="5708" PostId="5835" Score="0" Text="Do you close your connection after the transfer? you may have to wait a bit to get the message that is included in a block, and check you have the await" CreationDate="2022-11-11T11:45:38.060" UserId="2762" />
  <row Id="5709" PostId="5729" Score="0" Text="You mean I need to add aura and grandpa key of  node2 in node 1 when  creating customspec.json? And then create customspecRaw.json and distribute to the other nodes" CreationDate="2022-11-11T12:06:10.680" UserId="3109" />
  <row Id="5710" PostId="5835" Score="0" Text="Yes, I think it is logical. I will try to add setTimeout." CreationDate="2022-11-11T12:11:09.677" UserId="2581" />
  <row Id="5711" PostId="5841" Score="0" Text="Can you share the code of the SC, looks there is something wrong with the event" CreationDate="2022-11-11T12:34:28.327" UserId="2762" />
  <row Id="5712" PostId="379" Score="0" Text="Hi @apopiak how can we upgrade a live poa chain to npos? is it possible? if so what would be right steps for it? Even polkadot was initially POA and then they switched to NPOS right? so it should be possible but right now we are not sure how. kindly put some light on it. Thank you" CreationDate="2022-11-11T12:57:11.363" UserId="427" />
  <row Id="5713" PostId="1038" Score="0" Text="Hi @rob how can we upgrade a live poa chain to npos? is it possible? if so what would be right steps for it? Even polkadot was initially POA and then they switched to NPOS right? so it should be possible but right now we are not sure how. kindly put some light on it. Thank you." CreationDate="2022-11-11T12:58:46.920" UserId="427" />
  <row Id="5714" PostId="5769" Score="0" Text="Could you explain where is `Call&lt;T&gt;` in `type Call = Call&lt;T&gt;;` coming from?" CreationDate="2022-11-11T16:11:54.700" UserId="139" />
  <row Id="5715" PostId="5769" Score="0" Text="I should've mentioned it in my question but I need to make calls to other pallets after matching on them to ensure special action when certain dispatchables are called. How would that change `fn match(c)`?" CreationDate="2022-11-11T16:21:50.593" UserId="139" />
  <row Id="5716" PostId="5825" Score="1" Text="This may help: https://substrate.stackexchange.com/questions/5852/how-do-i-do-a-mult-block-migration" CreationDate="2022-11-11T19:36:12.193" UserId="29" />
  <row Id="5717" PostId="5835" Score="0" Text="It is working after adding setTimeout. Thank you. I have one more issue. I am not sure how to use hash values in callback. It is called after return function. I need to get these values and should return hash values. Any idea?" CreationDate="2022-11-11T20:52:21.587" UserId="2581" />
  <row Id="5718" PostId="5841" Score="0" Text="[Decode events on smart contract](https://substrate.stackexchange.com/a/2948/2844)" CreationDate="2022-11-12T00:18:46.747" UserId="2844" />
  <row Id="5719" PostId="5841" Score="0" Text="@AlexBean https://github.com/Interoperable-swap/frontend/tree/develop/interface&#xA;provably the issue is happening at component/Main.js" CreationDate="2022-11-12T03:20:49.937" UserId="3254" />
  <row Id="5720" PostId="5851" Score="0" Text="You run an indexing service against some public RPC server?" CreationDate="2022-11-12T14:04:29.710" UserId="73" />
  <row Id="5721" PostId="5851" Score="0" Text="@bkchr it's a private deployment of substrate nodes. But why would that matter either way?" CreationDate="2022-11-12T16:43:34.443" UserId="2264" />
  <row Id="5722" PostId="5861" Score="0" Text="What do you mean by adding logging to Substrate?" CreationDate="2022-11-12T19:32:12.350" UserId="139" />
  <row Id="5723" PostId="5307" Score="0" Text="https://substrate.stackexchange.com/q/1871/139 Should help you out using the polkadot js api client." CreationDate="2022-11-12T19:36:41.153" UserId="139" />
  <row Id="5724" PostId="5816" Score="0" Text="What do you mean by the runtime having a `UnsignedValidator`?" CreationDate="2022-11-12T19:44:12.647" UserId="139" />
  <row Id="5726" PostId="5836" Score="0" Text="Thank you Alejandro :) this will help us :)" CreationDate="2022-11-12T20:01:20.070" UserId="1793" />
  <row Id="5727" PostId="5834" Score="0" Text="The reason we need non-transactional is that we need to charge some special fees which be charged even if the extrinsic fails; they can't be a part of extrinsic fees because it is too heavy an operation to be done during extrinsic validation (as a part of the signed extension) for all such extrinsics." CreationDate="2022-11-12T20:01:56.680" UserId="1793" />
  <row Id="5728" PostId="5826" Score="0" Text="can you please be more specific about what queries and code you are using, and what expected output you want?" CreationDate="2022-11-12T20:40:19.487" UserId="28" />
  <row Id="5729" PostId="5862" Score="0" Text="Thanks Shawn.  I didn't realize that the template was in the substrate repository because there is also a separate repository for it." CreationDate="2022-11-12T21:00:07.950" UserId="3142" />
  <row Id="5730" PostId="5862" Score="1" Text="The separate repo is generated automatically from the content inside the main repo. Basically, allowing users to only get the template, versus the whole project." CreationDate="2022-11-12T21:11:22.517" UserId="28" />
  <row Id="5731" PostId="5861" Score="0" Text="I want to view various functions (in which modules) that are called when a tx is being processed to better understand how signed and unsigned, mortal and immortal, etc.. transactions are handled." CreationDate="2022-11-12T21:18:37.463" UserId="3142" />
  <row Id="5732" PostId="5824" Score="0" Text="@Purple_Turtle can you please update your question to be more specific, or close it if you think the answer above answers your question." CreationDate="2022-11-12T21:20:11.160" UserId="28" />
  <row Id="5733" PostId="5862" Score="0" Text="Related to my question is another question:  how to enable tracing (sp_tracing) that is already in some parts of the code?" CreationDate="2022-11-12T21:20:52.280" UserId="3142" />
  <row Id="5734" PostId="5824" Score="0" Text="I've updated my title and I don't believe the commented link answers my question but does provide a fantastic overview of unsigned TX handling." CreationDate="2022-11-12T21:33:28.790" UserId="139" />
  <row Id="5735" PostId="5862" Score="1" Text="If you look at `--help` you will see the flag `-l, --log`. You can do something like `-l=trace` or `-lsync=trace` and similar. If you need more help than this, please open a new question and we can take it from there." CreationDate="2022-11-13T00:04:00.703" UserId="28" />
  <row Id="5736" PostId="5729" Score="0" Text="yes thats what you need to do" CreationDate="2022-11-13T07:05:37.150" UserId="354" />
  <row Id="5737" PostId="5632" Score="0" Text="Facing with the same issue, sometimes happen, sometimes not.&#xA;Current workaround is wiping parachain db, but would like to find out why this happens in the first place." CreationDate="2022-11-13T09:09:45.090" UserId="275" />
  <row Id="5738" PostId="5864" Score="0" Text="What public key do you want? GRANDPA? BABE? Stash?" CreationDate="2022-11-13T11:56:32.253" UserId="251" />
  <row Id="5739" PostId="5864" Score="0" Text="@AurevoirXavier aura !" CreationDate="2022-11-13T12:09:25.650" UserId="3319" />
  <row Id="5740" PostId="5865" Score="0" Text="i want to do it in rust though?" CreationDate="2022-11-13T13:30:19.747" UserId="3319" />
  <row Id="5741" PostId="5865" Score="0" Text="You could use [Subalfred](https://github.com/hack-ink/subalfred/blob/2e769b1da67ba2cc9ade04ff9dc0543f889d6d62/substrate-minimal/substorager/src/lib.rs#L90) to calculate the storage key. Then query the storage key through rpc use reqwest or whatever you like.&#xA;&#xA;Or you could use subxt. Please check its [document](https://github.com/paritytech/subxt/blob/master/examples/examples/concurrent_storage_requests.rs) for more detail." CreationDate="2022-11-13T14:35:01.517" UserId="251" />
  <row Id="5742" PostId="5865" Score="0" Text="what do you mean by Sublfred and storage key, ps: i can use subxt" CreationDate="2022-11-13T14:48:53.667" UserId="3319" />
  <row Id="5743" PostId="5865" Score="0" Text="1. Use it to calculate the storage key&#xA;2. Pass the storage key to rpc endpint `state_getStorage`&#xA;3. Get the result" CreationDate="2022-11-13T14:55:38.327" UserId="251" />
  <row Id="5744" PostId="5868" Score="0" Text="Thanks Shawn, seems to be a misunderstanding of syntax more than anything." CreationDate="2022-11-13T18:37:28.790" UserId="3030" />
  <row Id="5745" PostId="5816" Score="0" Text="Some Pallet that implements `ValidateUnsigned` for a certain unsigned call." CreationDate="2022-11-13T19:02:16.737" UserId="73" />
  <row Id="5746" PostId="3165" Score="0" Text="A transaction is only put in the future queue if it's requirements have not been fulfilled. Most likely the tx will get dropped as pre-dispatch is supposed to call validate at the time of extrinsic execution." CreationDate="2022-11-14T06:06:09.313" UserId="139" />
  <row Id="5748" PostId="5865" Score="0" Text="https://docs.substrate.io/fundamentals/state-transitions-and-storage/" CreationDate="2022-11-14T07:04:21.157" UserId="251" />
  <row Id="5749" PostId="693" Score="0" Text="how do you verify messages signed with `sign_with()` method" CreationDate="2022-11-14T07:06:26.380" UserId="3319" />
  <row Id="5751" PostId="5857" Score="0" Text="Take a look at this: https://substrate.stackexchange.com/questions/2613/ink-cannot-derive-spreadlayout-and-spreadallocate-for-simple-struct-and-enum" CreationDate="2022-11-14T08:46:15.523" UserId="3317" />
  <row Id="5752" PostId="5875" Score="0" Text="Is that meant he collators do not need to set a timestamp when sealing a block? Sounds interesting." CreationDate="2022-11-14T09:41:33.527" UserId="125" />
  <row Id="5754" PostId="5841" Score="0" Text="How can I replicate it? Which operation are you trying to do?" CreationDate="2022-11-14T10:18:01.110" UserId="2762" />
  <row Id="5755" PostId="5843" Score="1" Text="I've edited the question to add a specific use case.&#xA;&#xA;But I would also argue it's just generally a little unintuitive that FRAME aggregates the pallet::Call and the pallet::Event, but not the pallet::Error. (Given that the calls, events, and errors are all very much linked, ie. a call can emit events and return errors)." CreationDate="2022-11-14T10:20:14.790" UserId="2192" />
  <row Id="5756" PostId="5879" Score="0" Text="Sorry - should have been clearer - DispatchError erases the error message when it's encoded." CreationDate="2022-11-14T10:25:11.527" UserId="2192" />
  <row Id="5757" PostId="5879" Score="0" Text="(see: https://paritytech.github.io/substrate/master/src/sp_runtime/lib.rs.html#485-487)" CreationDate="2022-11-14T10:25:54.037" UserId="2192" />
  <row Id="5758" PostId="5879" Score="0" Text="(Have edited the question to make this clearer)" CreationDate="2022-11-14T10:27:44.080" UserId="2192" />
  <row Id="5759" PostId="5879" Score="0" Text="Interesting. For me, module index + error index is enough. PolkadotApps also return the error name only (which was indexed by the module index + error index). But yes, I think I don't have any better solutions." CreationDate="2022-11-14T10:29:24.193" UserId="251" />
  <row Id="5760" PostId="5879" Score="1" Text="It's enough, but my point is it could be *much* easier. The PolkaJs does it (I think) is by parsing the metadata. Contrast this with the `Event` type, which doesn't require this." CreationDate="2022-11-14T12:15:05.993" UserId="2192" />
  <row Id="5761" PostId="5871" Score="0" Text="are you using the correct selector?" CreationDate="2022-11-14T12:42:48.780" UserId="170" />
  <row Id="5762" PostId="5886" Score="1" Text="Thanks Andre for confirming! We will rollout an upgrade to incorporate this fix." CreationDate="2022-11-14T14:34:22.543" UserId="2011" />
  <row Id="5764" PostId="5830" Score="1" Text="Tryed this again in WSL and it worked fine ! Thank you" CreationDate="2022-11-14T19:29:30.927" UserId="3429" />
  <row Id="5765" PostId="5830" Score="0" Text="Curious, did you use WSL or WSL2?" CreationDate="2022-11-14T19:39:45.847" UserId="29" />
  <row Id="5766" PostId="5884" Score="1" Text="We are reworking the labels to make them more understandable. The current set of labels is too random." CreationDate="2022-11-14T21:28:54.520" UserId="73" />
  <row Id="5767" PostId="5895" Score="1" Text="I am asking myself If I need to store (the date and status) on the chain because the cryptographic hash is proof that an invoice is already paid or not.&#xA;&#xA;Do you think is a good idea to develop on the substrate?" CreationDate="2022-11-14T23:07:53.207" UserId="2548" />
  <row Id="5768" PostId="5875" Score="0" Text="Substrate does not have the concept of &quot;a block timestamp&quot;. You could get the timestamp of a block via `timestamp.now()` with block hash. Refer to [here](https://github.com/paritytech/substrate/issues/2811)" CreationDate="2022-11-15T03:04:04.750" UserId="1959" />
  <row Id="5770" PostId="3586" Score="0" Text="@ShawnTabrizi Hi following up on your comment. Would the validators automatically pair themselves once they join the network (hence not requiring the bootnodes anymore), or do we explicitly need to specify them to pair up?" CreationDate="2022-11-15T06:48:12.187" UserId="371" />
  <row Id="5771" PostId="3586" Score="0" Text="Your node will automatically connect to more peers. The node logs will tell you how many peers you have, for example `2022-11-15 02:50:57  Idle (16 peers), best: #15335210 (0x03ba…9d3a), finalized #15335205 (0x84f8…9c6c), ⬇ 73.3kiB/s ⬆ 36.1kiB/s    &#xA;`" CreationDate="2022-11-15T06:52:17.767" UserId="28" />
  <row Id="5772" PostId="5901" Score="0" Text="Have you launched Rialto and Millau nodes beforehand? The relayer process must connect to running nodes." CreationDate="2022-11-15T08:43:10.753" UserId="2673" />
  <row Id="5773" PostId="5901" Score="0" Text="i have launced both nodes (Rialto and Millau) error is [Rialto_to_Millau_MessageLane_00000000] 2022-11-15 05:30:23 +00 ERROR bridge Error retrieving state from Millau node: BridgePalletIsNotInitialized. Retrying in 0.746009028" CreationDate="2022-11-15T08:46:00.867" UserId="3304" />
  <row Id="5774" PostId="5902" Score="0" Text="I am aware of backing up data directory and restarting using that. I was wondering if we can just export blocks using substrate cli for parachain archive node. Thanks for the help though." CreationDate="2022-11-15T08:59:39.500" UserId="1947" />
  <row Id="5775" PostId="5451" Score="1" Text="Note that `multi_removal_result.loop` should probably be taken in consideration for weight calculation (it indicates how many item where queried on the state and directly impact the size of the PoV)." CreationDate="2022-11-15T09:00:45.997" UserId="225" />
  <row Id="5776" PostId="5871" Score="0" Text="yes i did check the selector as well @Coreggon ." CreationDate="2022-11-15T09:02:37.253" UserId="1947" />
  <row Id="5777" PostId="5880" Score="0" Text="I realized why it's happened. And I could fix them! Thanks your help! I changed it to execute after checking api is available like this  `if (api) {setup()}`" CreationDate="2022-11-15T09:11:31.650" UserId="3254" />
  <row Id="5778" PostId="5803" Score="0" Text="Thank you Shawn." CreationDate="2022-11-15T09:31:39.787" UserId="464" />
  <row Id="5779" PostId="5819" Score="1" Text="To address `Import failed: State Database error: Too many sibling blocks inserted` have a look at https://substrate.stackexchange.com/questions/3054/how-to-prune-sibling-blocks&#xA;This issue is solved by https://github.com/paritytech/cumulus/pull/1559" CreationDate="2022-11-15T09:34:17.263" UserId="165" />
  <row Id="5781" PostId="5906" Score="0" Text="sequence I have executed:1.running both nodes(rialto and millau),   2.running relays.   3.running the relay-messages but still i am getting the same error" CreationDate="2022-11-15T10:17:53.623" UserId="3304" />
  <row Id="5782" PostId="4872" Score="0" Text="Use node template tag polkadot-v0.9.28 works just fine" CreationDate="2022-11-15T10:44:42.853" UserId="2307" />
  <row Id="5783" PostId="5906" Score="0" Text="could you, please, add here logs from &quot;2.running relays.&quot; ?" CreationDate="2022-11-15T11:10:13.077" UserId="3445" />
  <row Id="5784" PostId="5836" Score="0" Text="Alejandro can you tell us in which crate is this attribute #[without_transactional] ? .. we did not find this." CreationDate="2022-11-15T11:16:06.523" UserId="1793" />
  <row Id="5785" PostId="5836" Score="0" Text="The implementation of such attribute tag was halted as per the discussion on this issue: https://github.com/paritytech/substrate/issues/11533 Where you can find the PR with the proposal for its implementation" CreationDate="2022-11-15T11:29:18.623" UserId="165" />
  <row Id="5786" PostId="5881" Score="0" Text="Thank you a lot!&#xA;Adding the migrations as it was done in Polkadot has solved the issue." CreationDate="2022-11-15T12:57:29.393" UserId="3122" />
  <row Id="5790" PostId="5907" Score="0" Text="is to possible to have an off-chain worker inside that function (because i want to call a grpc server from there, fetch something offchain)" CreationDate="2022-11-15T13:56:37.407" UserId="3319" />
  <row Id="5791" PostId="5900" Score="0" Text="Thank you.  I've been trying to synthesize this info from multiple (often outdated) sources to get a good conceptual understanding of the relay." CreationDate="2022-11-15T14:09:46.080" UserId="3142" />
  <row Id="5792" PostId="5907" Score="1" Text="Theoretically yes, but that would make this check very expensive. But this check should be as cheap as possible, as otherwise nodes can start spamming you with transactions and making your node do expensive operations for free." CreationDate="2022-11-15T14:14:45.450" UserId="73" />
  <row Id="5793" PostId="5871" Score="0" Text="further note ... the issue appears only when ContractB's method is payable and i try to transfer value greater than 0 . This is getting weird not sure what i am missing." CreationDate="2022-11-15T14:47:01.897" UserId="1947" />
  <row Id="5795" PostId="4386" Score="0" Text="Looking at the Substrate source code, I don't understand how these hooks like offchain_worker() are called. I see the hooks in pallet/expand/hooks.rs but I fail to see code that actually makes the call to offchain_worker(). What am I missing? –" CreationDate="2022-11-15T15:43:17.693" UserId="3142" />
  <row Id="5796" PostId="5902" Score="0" Text="What do you mean though? What is &quot;export blocks&quot; mean which is not provided by the `export-block` command?" CreationDate="2022-11-15T16:11:16.593" UserId="28" />
  <row Id="5797" PostId="4386" Score="1" Text="It is called here: https://github.com/paritytech/substrate/blob/59a74b18df148b9b4b460ba1d0322948f96d04d0/client/offchain/src/lib.rs#L166-L175" CreationDate="2022-11-15T18:09:37.260" UserId="73" />
  <row Id="5798" PostId="5740" Score="0" Text="Just to add to what Alex said; you can use the `?at=&lt;blocknumber or hash&gt;` query parameter with the `/pallets/staking/progress` endpoint to get the list of addresses in the validatorSet at a historic block.&#xA;&#xA;NOTE: you will need to be querying an archive node if you wish to get all historic data." CreationDate="2022-11-15T22:39:45.823" UserId="1798" />
  <row Id="5800" PostId="5912" Score="0" Text="for custom struct you have to implement `SpreadLayout ` like in the [`official docs`](https://use.ink/4.0.0-alpha.1/datastructures/custom-datastructure) you can go through it" CreationDate="2022-11-16T01:02:09.677" UserId="2844" />
  <row Id="5801" PostId="5918" Score="2" Text="Same question, but without an accepted answer.&#xA;&#xA;https://substrate.stackexchange.com/questions/1783/how-to-reject-empty-blocks" CreationDate="2022-11-16T03:06:10.103" UserId="251" />
  <row Id="5802" PostId="5902" Score="0" Text="ya so the issue is i can pass parachain spec file to export-block command to backup all the blocks in a range from our archive node  but cant do the same by passing relaychain spec. It gives error `field RelayChainSpec is missing`  when i try to do that. I think it implies relay blocks can only be exported from relay chain archive right? @Shawn Tabrizi" CreationDate="2022-11-16T04:11:50.007" UserId="1947" />
  <row Id="5803" PostId="4943" Score="0" Text="Hey @shawn, I tried this but I am getting an error.&#xA;Can you please help?&#xA;&#xA;error[E0308]: mismatched types&#xA;    --&gt; network-node/runtime/dev/src/impls.rs:68:25&#xA;     |&#xA;  68 |         let fee = fee + 3000;&#xA;     |                         ^^^^ expected associated type, found integer&#xA;     |&#xA;     = note: expected associated type `&lt;C as hidden_include::traits::Currency&lt;&lt;T as SysConfig&gt;::AccountId&gt;&gt;::Balance`&#xA;                           found type `{integer}`&#xA;&#xA;What should I pass here? I want to add 0.3 to the overall fee" CreationDate="2022-11-16T04:36:04.880" UserId="3213" />
  <row Id="5804" PostId="5898" Score="0" Text="Yeah I know new header has the new storage root after all extrinsincs. What I am confused is not new header, just the block header.&#xA;When block header is created, is state root calculated by predispatch? If so, then it makes sense to me." CreationDate="2022-11-16T05:23:28.590" UserId="2140" />
  <row Id="5805" PostId="5912" Score="0" Text="isn't it enough that I have already derived it?" CreationDate="2022-11-16T07:04:40.023" UserId="2736" />
  <row Id="5806" PostId="5918" Score="0" Text="Some resources that you can refer about Instant Seal&#xA;&#xA;+ https://www.youtube.com/watch?v=uhkV0jAcWDY&#xA;&#xA;+ https://substrate.recipes/kitchen-node.html&#xA;&#xA;+ Configure service in Moonbeam" CreationDate="2022-11-16T07:08:11.880" UserId="445" />
  <row Id="5808" PostId="5914" Score="0" Text="you can update your constructor like this: `Self {inner: Default::default()}` and it works" CreationDate="2022-11-16T07:25:33.353" UserId="2844" />
  <row Id="5809" PostId="5914" Score="0" Text="but this won't work if `Self` has e.g. `Mapping` field as well, right? we would have to use `ink_lang::utils::initialize_contract` then" CreationDate="2022-11-16T07:45:24.783" UserId="2736" />
  <row Id="5810" PostId="5912" Score="0" Text="Can you tell me how did you observe that `tree` field is not initilized properly? I have modified your constructor [`like this`](https://gist.github.com/ink-playground-gists/d9a6046d0b9909e4d3459ea13f562115) it builds." CreationDate="2022-11-16T07:49:23.383" UserId="2844" />
  <row Id="5811" PostId="5914" Score="0" Text="I don't think so because Mapping can be initialize by `Mapping::default()` and they have excluded in updated version as [you can view](https://github.com/paritytech/ink/blob/gn/mapping-take-tests/examples/mappings/lib.rs) in this example" CreationDate="2022-11-16T08:26:06.170" UserId="2844" />
  <row Id="5812" PostId="5912" Score="0" Text="Well, I have been warned by docs: https://use.ink/4.0.0-alpha.1/datastructures/mapping/#initializing-a-mapping" CreationDate="2022-11-16T08:28:41.250" UserId="2736" />
  <row Id="5813" PostId="5914" Score="0" Text="then it is in opposite to https://use.ink/4.0.0-alpha.1/datastructures/mapping/#initializing-a-mapping" CreationDate="2022-11-16T08:29:15.267" UserId="2736" />
  <row Id="5814" PostId="5914" Score="0" Text="As `Mapping` is in `storage` then `ink_lang::utils::initialize_contract` must be included inside constructor but [In this example](https://gist.github.com/ink-playground-gists/20784008ec376f27dae9fa198a3a892d), I seperated Mapping to different struct and there is no requirement of `ink_lang::utils::initialize_contract` in constructor" CreationDate="2022-11-16T08:52:40.753" UserId="2844" />
  <row Id="5815" PostId="5914" Score="0" Text="and [this example is](https://github.com/paritytech/ink/blob/gn/mapping-take-tests/examples/mappings/lib.rs) based on ink!  version `4.0.0-alpha.3`  so in the future we just need to use `Mapping::default()`" CreationDate="2022-11-16T09:06:05.400" UserId="2844" />
  <row Id="5816" PostId="5915" Score="0" Text="This post is missing really any kind of information. How did you run the node? When did this  happen? Directly after upgrading? Some point later? We would need more logs etc. How did you close the node before this error happened? I think your db maybe got corrupted somehow." CreationDate="2022-11-16T10:05:05.700" UserId="73" />
  <row Id="5817" PostId="5918" Score="0" Text="i noticed that if you use --dev option it does not generate blocks until other validators show up or you cast a transaction so that might be usefull for you to dig more how that works because you will understand the code more yourself in depth" CreationDate="2022-11-16T10:14:45.463" UserId="3319" />
  <row Id="5818" PostId="5919" Score="1" Text="Well, there are examples for the two macros the crate provides. [`within_span`](https://paritytech.github.io/substrate/master/sp_tracing/macro.within_span.html) and [`enter_span`](https://paritytech.github.io/substrate/master/sp_tracing/macro.enter_span.html). But I think is an interesting question overall. Upvoting." CreationDate="2022-11-16T12:12:05.693" UserId="165" />
  <row Id="5819" PostId="5914" Score="0" Text="If `initialize_contract` is not required it should be enforced by the compiler. Otherwise it's like giving people a gun without giving them a warning. I don't consider the explanation on `Mapping` sufficient." CreationDate="2022-11-16T12:12:50.000" UserId="3385" />
  <row Id="5820" PostId="5926" Score="0" Text="There is no issue of firewall. I have started 4 nodes on the same system by using different ports and the issue i have mentioned earlier is coming." CreationDate="2022-11-16T12:52:09.597" UserId="3414" />
  <row Id="5821" PostId="5919" Score="0" Text="Where do you want to use it? In a pallet (runtime) or the node?" CreationDate="2022-11-16T13:29:13.853" UserId="94" />
  <row Id="5822" PostId="5806" Score="0" Text="Excellent summary.  However, the last bit though doesn't seem to be complete.  Only signed transactions use all the `SignedExtension` extras: `check_{non_zero_sender, mortality, nonce, genesis, tx_version, spec_version, weight}`.  Whereas unsigned transactions only use the `SignedExtension` `check_weight`.  Correct?" CreationDate="2022-11-16T14:00:15.687" UserId="3142" />
  <row Id="5823" PostId="5871" Score="0" Text="and what about the function you are making the call from, is it payable too?" CreationDate="2022-11-16T15:14:33.243" UserId="170" />
  <row Id="5824" PostId="5921" Score="0" Text="I see. I guess I do not understand why we would use this feature. Do you know?" CreationDate="2022-11-16T17:25:43.403" UserId="590" />
  <row Id="5825" PostId="5620" Score="0" Text="Yes as weight information but I meant for signed transactions" CreationDate="2022-11-16T17:40:00.350" UserId="3317" />
  <row Id="5826" PostId="5931" Score="0" Text="Lovely, thanks!" CreationDate="2022-11-16T17:55:43.467" UserId="25" />
  <row Id="5827" PostId="5921" Score="2" Text="As far as I understand, it is meant to write benchmarks that are just for the developer's information, but their results are not supposed to be included in the pallet's `WeightInfo`." CreationDate="2022-11-16T21:33:23.627" UserId="2673" />
  <row Id="5828" PostId="5871" Score="0" Text="also, are you sure that the contract has enough balance?" CreationDate="2022-11-16T22:52:31.803" UserId="170" />
  <row Id="5829" PostId="5629" Score="0" Text="@OliverTale-Yazdi No luck with short example. Anyway, we changed the way we did it. So, if I faced this again, I will update OP post and tag you." CreationDate="2022-11-17T00:05:13.757" UserId="2403" />
  <row Id="5831" PostId="5906" Score="0" Text="yes, really, there was problem with scripts (wrong account used),&#xA;please, update your git branch `origin/master`, there is a fix for that" CreationDate="2022-11-17T00:34:39.243" UserId="3445" />
  <row Id="5832" PostId="5919" Score="0" Text="usually in node(native) part" CreationDate="2022-11-17T02:26:20.170" UserId="445" />
  <row Id="5833" PostId="5889" Score="0" Text="For indirect questions and opinion based discussion, try asking on https://forum.polkadot.network" CreationDate="2022-11-17T04:52:32.337" UserId="34" />
  <row Id="5834" PostId="1756" Score="0" Text="What does it mean for a key to be compressed/decompressed?" CreationDate="2022-11-17T05:26:49.510" UserId="139" />
  <row Id="5835" PostId="5953" Score="0" Text="Thanks @Alex. I have one more question. If the parachain is not live on Polkadot and we want a long-lasting slot, should we reserve a ParaId on polkadot and use same for Rococo? Would this be enough to reserve a long-lasting slot on Rococo?" CreationDate="2022-11-17T10:33:16.683" UserId="3437" />
  <row Id="5836" PostId="5953" Score="0" Text="The permanent slots are typically assigned to teams who have completed a successful slot lease auction and have deployed a parachain with a slot on Polkadot. But mention it when you book the slot request in https://github.com/paritytech/subport/issues/new?assignees=&amp;labels=Rococo&amp;template=rococo.yaml" CreationDate="2022-11-17T10:45:02.233" UserId="2762" />
  <row Id="5837" PostId="5950" Score="0" Text="Thank you.&#xA;I have checked the issue but it doesn't make me clear...&#xA;This is why ??&#xA;`But you need to restrict your contract to only be used by ECDSA addresses.`" CreationDate="2022-11-17T12:27:33.573" UserId="3254" />
  <row Id="5838" PostId="5950" Score="0" Text="explained there :https://substrate.stackexchange.com/a/3220/567" CreationDate="2022-11-17T13:46:57.703" UserId="567" />
  <row Id="5839" PostId="5956" Score="1" Text="Another interesting alternative is to use Sidecar, thanks @dominique" CreationDate="2022-11-17T14:14:45.220" UserId="2762" />
  <row Id="5840" PostId="2498" Score="0" Text="i added 5 ROC to the sovereign account of my parachain on Rococo but still FailedToTransact" CreationDate="2022-11-17T16:56:55.643" UserId="298" />
  <row Id="5841" PostId="5964" Score="0" Text="aha so 2000 need to fund their sovereign account perhaps let me check" CreationDate="2022-11-17T18:33:54.170" UserId="298" />
  <row Id="5842" PostId="5581" Score="0" Text="When should you use or not use it?  What should be the guideline?" CreationDate="2022-11-17T20:53:36.883" UserId="3142" />
  <row Id="5843" PostId="5959" Score="0" Text="Yes, I am running a one-validator, it's working when I am running 2 validators. Thanks" CreationDate="2022-11-18T02:47:30.587" UserId="445" />
  <row Id="5844" PostId="5966" Score="0" Text="operating system is Linux" CreationDate="2022-11-18T02:59:44.337" UserId="116" />
  <row Id="5845" PostId="4165" Score="0" Text="@katapulte Isn't Acala using Aura for consensus and already Proof of Authority?" CreationDate="2022-11-18T08:00:09.287" UserId="371" />
  <row Id="5846" PostId="5966" Score="1" Text="Any errors in the JavaScript Console?" CreationDate="2022-11-18T08:45:07.187" UserId="2762" />
  <row Id="5847" PostId="1756" Score="0" Text="A public key is a point in a curve. In order to recover the point is sufficient to have only one between x and y (typically x is chosen) and the sign of the other." CreationDate="2022-11-18T09:06:53.577" UserId="342" />
  <row Id="5848" PostId="5972" Score="0" Text="that will require some kind of plugin extension to the construct_runtime macro to allow us write some code to generate `NonDelayedRuntimeOrigin`?" CreationDate="2022-11-18T09:53:18.827" UserId="359" />
  <row Id="5849" PostId="5972" Score="0" Text="or perhaps just some sort of option to generate a second `Origin` type which skips some of the variants." CreationDate="2022-11-18T10:39:13.240" UserId="53" />
  <row Id="5851" PostId="5906" Score="0" Text="~/parity-bridges-common$ ./scripts/send-message-from-rialto-millau.sh transfer                                  &#xA;error: Found argument '--target-signer' which wasn't expected, or isn't valid in this context&#xA;&#xA;USAGE:&#xA;    substrate-relay send-message &lt;bridge&gt; --source-host &lt;source-host&gt; --source-port &lt;source-port&gt;" CreationDate="2022-11-18T10:41:58.990" UserId="3304" />
  <row Id="5852" PostId="5972" Score="0" Text="Not very sure how will that to be implemented. Are you suggesting to add some optional parameters to the `construct_runtime` macro to achieve this?" CreationDate="2022-11-18T11:05:23.877" UserId="359" />
  <row Id="5853" PostId="1756" Score="0" Text="But what does it have to do with compression?" CreationDate="2022-11-18T13:05:01.240" UserId="139" />
  <row Id="5854" PostId="5825" Score="1" Text="Thank you very much for the help and support Bruno! The 5852 you posted is so damn good, I was able to understand de facto the processes. Thanks again, and I was able to execute a runtime upgrade using zombienet." CreationDate="2022-11-18T15:37:47.430" UserId="3331" />
  <row Id="5855" PostId="5944" Score="0" Text="how do you find the address of the sovereign account?" CreationDate="2022-11-18T15:42:59.253" UserId="298" />
  <row Id="5856" PostId="5982" Score="0" Text="it's the unmodified substrate node template. Tried that, still the same" CreationDate="2022-11-18T17:46:21.677" UserId="2446" />
  <row Id="5858" PostId="5966" Score="0" Text="updated the question @AlexBean" CreationDate="2022-11-19T00:38:27.370" UserId="116" />
  <row Id="5859" PostId="5980" Score="0" Text="but how come a new validator that just joined the network can verify the finality of some blocks if they dont have justifications since they could be sometimes not included? and why is it that only when we have an authority change that we need a justification? what does this protect against? shouldn't all blocks be simply having the justifications?" CreationDate="2022-11-19T07:35:26.247" UserId="3319" />
  <row Id="5860" PostId="1756" Score="0" Text="Since you are actually representing the same information with half of the data this is in fact a compression. It is called &quot;point compression&quot; in the SEC1 standard. Please refer to paragraph 2.3.3 of https://www.secg.org/sec1-v2.pdf" CreationDate="2022-11-19T09:54:00.307" UserId="342" />
  <row Id="5862" PostId="5989" Score="0" Text="It seems to me that it was already installed. I still launched sudo apt install g++ (0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded). But somehow the error message evolved (see the update above)" CreationDate="2022-11-19T10:12:53.930" UserId="3459" />
  <row Id="5863" PostId="5972" Score="0" Text="Yes; that would seem most efficient." CreationDate="2022-11-19T10:20:50.047" UserId="53" />
  <row Id="5864" PostId="5944" Score="1" Text="Refer to this question https://substrate.stackexchange.com/questions/1200/how-to-calculate-sovereignaccount-for-parachain/1210" CreationDate="2022-11-19T10:50:48.967" UserId="1959" />
  <row Id="5866" PostId="5989" Score="0" Text="How about `apt install protobuf-compiler`?" CreationDate="2022-11-19T13:45:40.227" UserId="251" />
  <row Id="5867" PostId="5989" Score="0" Text="it is already installed." CreationDate="2022-11-19T14:08:29.233" UserId="3459" />
  <row Id="5868" PostId="5991" Score="0" Text="As I'm on windows, I followed this setup: https://docs.substrate.io/install/windows/ (i.e. it seems similar to the linux one except I had to install wls). It is installed: protoc --version --&gt;&#xA;libprotoc 3.0.0" CreationDate="2022-11-19T14:13:22.680" UserId="3459" />
  <row Id="5869" PostId="5989" Score="0" Text="Maybe it wasn't in your $PATH?" CreationDate="2022-11-19T15:52:02.540" UserId="251" />
  <row Id="5870" PostId="5991" Score="0" Text="And its working? Perhaps a PR is needed upstream on the windows install instruction?" CreationDate="2022-11-19T21:32:27.247" UserId="34" />
  <row Id="5871" PostId="5993" Score="0" Text="I do. The accountid needs to be a part of the post struct tho. The workaround is nightmarish, especially on the frontend. Its simpler, easier, and more efficient to include as part of the struct. And because this is the case, I need to impl default for an accountid. So, would that look like this:&#xA;&#xA;[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]&#xA;&#xA;?" CreationDate="2022-11-19T21:38:40.180" UserId="2257" />
  <row Id="5872" PostId="5989" Score="0" Text="if I'm not mistaken the protoc file is stored under /usr/bin which is included in my PATH variable." CreationDate="2022-11-20T08:50:15.543" UserId="3459" />
  <row Id="5873" PostId="5994" Score="0" Text="Same as in elements: What kind of TPS and what bottlenecks? How many nodes do you want? How many para-chains? What do you even want to archieve?" CreationDate="2022-11-20T11:09:42.800" UserId="94" />
  <row Id="5874" PostId="5994" Score="0" Text="`What kind of TPS` , whats your mean ?" CreationDate="2022-11-20T11:30:19.627" UserId="2722" />
  <row Id="5875" PostId="5994" Score="0" Text="i wanna check how many percentage of cpu is using with substrate . &#xA;&#xA;2 nodes .&#xA;&#xA;i wanna test it in local substrate ," CreationDate="2022-11-20T11:32:11.853" UserId="2722" />
  <row Id="5876" PostId="5994" Score="0" Text="@OliverTale-Yazdi , I wanna do some Test like this : https://hackmd.io/@cp287/Bk1kx2x4U" CreationDate="2022-11-20T11:35:54.233" UserId="2722" />
  <row Id="5877" PostId="5993" Score="2" Text="Using `0x0…` is a hack, not a proper fix. If there is no `AccountId` then maybe `Post` should use `Option&lt;AccountId&gt;`?" CreationDate="2022-11-20T15:11:33.233" UserId="94" />
  <row Id="5878" PostId="5988" Score="0" Text="nope that was not the problem." CreationDate="2022-11-20T15:55:22.037" UserId="116" />
  <row Id="5879" PostId="5998" Score="0" Text="Can you show an example of what using option looks like?" CreationDate="2022-11-20T23:40:10.603" UserId="2257" />
  <row Id="5880" PostId="5993" Score="0" Text="Could you maybe provide an example please? I'm specifically not sure where to add the option tag." CreationDate="2022-11-20T23:41:58.130" UserId="2257" />
  <row Id="5881" PostId="5999" Score="0" Text="Is there any way to find out how many new mint tokens were given to treasury." CreationDate="2022-11-21T05:38:58.417" UserId="299" />
  <row Id="5882" PostId="5991" Score="0" Text="Not sure I understand you. I installed protoc on windows, with the same result." CreationDate="2022-11-21T05:43:51.240" UserId="3459" />
  <row Id="5883" PostId="5983" Score="0" Text="I'll try to explain explain in more detail.&#xA;&#xA;1. I have a Production chain based on release Polkadot release v0.8.25 (for each Polkadot release there is a branch or tag in Substrate repo).&#xA;&#xA;2. I need functionality from Polkadot v0.9.19 release.&#xA;&#xA;3. To have it, I need to apply all node upgrades from v0.8.25 to v0.9.19 one by one.&#xA;&#xA;4. Some of the releases contain storage migrations. In Polkadot repo they are all applied but in Substrate repo there is only migration code.&#xA;&#xA;5. So I'm looking for an **optimal** way to identify **all**  required migrations to apply during the upgrades." CreationDate="2022-11-21T07:39:18.440" UserId="3122" />
  <row Id="5884" PostId="5980" Score="0" Text="GRANDPA stands apart from other Byzantine fault-tolerant (BFT) blockchain algorithms in that validators vote on chains, not blocks. So when a block contains a justification and the two previous blocks don't, the validator in your example can assume that the two previous blocks are finalized as well. &#xA;&#xA;And I think you are misunderstanding the sentence. The only blocks that must have a justification are the blocks changing authorities, but they are not the only blocks that can have a justification. @dadzerlaze" CreationDate="2022-11-21T09:43:48.603" UserId="3317" />
  <row Id="5886" PostId="5325" Score="0" Text="This might be the reason for your problem: https://substrate.stackexchange.com/questions/5911/substrate-tutorial-blank-page-when-deploying-smart-contract" CreationDate="2022-11-21T10:19:42.433" UserId="3317" />
  <row Id="5888" PostId="5967" Score="0" Text="Thanks for the input. The reason I am asking this is because it is written in the code's comment [here](https://github.com/paritytech/substrate/blob/a47f200eebeb88a5bde6f1ed2be9728b82536dde/frame/treasury/src/lib.rs#L185). So I am trying to get a complete definition of sovereign account. The definitions that I have found [here](https://substrate.stackexchange.com/questions/5845/what-is-a-sovereign-account-in-polkadot-substrate) do not include a definition for a pallet sovereign account - I could not find one!" CreationDate="2022-11-21T12:28:08.567" UserId="29" />
  <row Id="5889" PostId="6001" Score="0" Text="What would these tags look like?  Where are the tags set?  Where (file/function) in the Substrate code is the dependency graph built/evaluated?" CreationDate="2022-11-21T12:53:53.887" UserId="3142" />
  <row Id="5890" PostId="6001" Score="0" Text="Good question, and I don't have an answer for you. But my guess would be to look at where Transactions are built. Check out this doc: https://paritytech.github.io/substrate/master/frame_support/pallet_prelude/struct.ValidTransaction.html and look for uses of `with_tag_prefix`" CreationDate="2022-11-21T13:06:49.290" UserId="139" />
  <row Id="5891" PostId="6012" Score="0" Text="hi chevdor, ive tried these variations: `srtool build  --package kabocha-runtime -r  ./runtime/ `and also `srtool build  -r  ./runtime/  --package kabocha-runtime` and also `srtool build  --package kabocha-runtime -r  ./runtime/kabocha-runtime` as well as just `-r ./`  all of which provide same error message" CreationDate="2022-11-21T13:39:36.483" UserId="298" />
  <row Id="5894" PostId="6012" Score="1" Text="I see you are using `srtool` direclty (ie the Docker image), while you could get it to work, I strongly recommend using the `srtool-cli` I mentioned, it makes things MUCH easier. You can find this tool here: https://github.com/chevdor/srtool-cli&#xA;&#xA;It takes care of lots of the work you are doing with those ENV.&#xA;Make sure to remove your `srtool` alias after installing the `srtool-cli` since it is also called `srtool`.&#xA;With `srtool-cli` installed, the command I mentioned above it working fine on your repo and it will pass all the expected args to the srtool Docker image used in the background." CreationDate="2022-11-21T16:32:56.880" UserId="198" />
  <row Id="5895" PostId="6012" Score="1" Text="ok i think i need to unalias srtool, will give it a spin now." CreationDate="2022-11-21T16:37:14.223" UserId="298" />
  <row Id="5897" PostId="5906" Score="0" Text="sorry for unsatisfactory answer and troubles,&#xA;please update repo, right now just this should work `./scripts/send-message-from-rialto-millau.sh remark` (send some Trap message),&#xA;&#xA;inside that script, arguments remark/transfer is wrong, there should be `raw &lt;some-encoded-call&gt;`,&#xA;like `raw 020419ac` is `Trap(..)` call,&#xA;&#xA;but honestly, I see `020419ac` in code base, but I dont know how was this generated, trying to find out &#xA;&#xA;also, we dont really use this script, and they surely needs to be updated:&#xA;https://github.com/paritytech/parity-bridges-common/issues/1406" CreationDate="2022-11-21T16:41:37.257" UserId="3445" />
  <row Id="5898" PostId="6012" Score="0" Text="one issue is that is cant find my local pallet, do i need to change the structure of the files?" CreationDate="2022-11-21T16:42:06.783" UserId="298" />
  <row Id="5900" PostId="6012" Score="0" Text="i was not in the parent directory, now it should work" CreationDate="2022-11-21T16:44:25.080" UserId="298" />
  <row Id="5902" PostId="6003" Score="0" Text="I tried to use const generics to attach a `nested` level to the Origin such that only a specific nesting limit is reachable, but Rust the features are not yet stable and it also did not work. A macro could be used to define limited nested types." CreationDate="2022-11-21T16:48:51.980" UserId="94" />
  <row Id="5906" PostId="6001" Score="0" Text="I found one example that shows that they are strings.  e.g.  `ValidTransaction::with_tag_prefix(&quot;BabeEquivocation&quot;)`" CreationDate="2022-11-21T19:33:38.340" UserId="3142" />
  <row Id="5907" PostId="6001" Score="0" Text="But it would be great to see a full but simple example." CreationDate="2022-11-21T19:34:02.363" UserId="3142" />
  <row Id="5908" PostId="6021" Score="0" Text="`pub fn function(&amp;self) -&gt; Result&lt;(), MyError&gt; {}` are you talking about something like this? [PSP37Error](https://github.com/Supercolony-net/openbrush-contracts/blob/main/contracts/src/traits/errors/psp37.rs) and [PSP37Error Implementation](https://github.com/Supercolony-net/openbrush-contracts/blob/main/examples/psp37/lib.rs)" CreationDate="2022-11-22T01:51:47.030" UserId="2844" />
  <row Id="5909" PostId="6023" Score="0" Text="I understand what you're saying, but I need a little clarity. The document states that I should update the database weights periodically.&#xA;&gt; &quot;regularly update these weights as the chain grows.&#xA;However, you're saying I should use the storage map with the largest expected size. Can you clarify how I should do this? What does this mean when your state is empty because you're a new chain? Should I still use a snapshot?" CreationDate="2022-11-22T02:44:02.723" UserId="590" />
  <row Id="5910" PostId="5991" Score="0" Text="If there was something that resolved this that you could identify as missing in the installation instructions, those should be updated." CreationDate="2022-11-22T05:30:47.753" UserId="34" />
  <row Id="5911" PostId="5991" Score="0" Text="Seems though that its unclear what the issue was from your answer. So we will see if others hit the same snag and help us find the issue" CreationDate="2022-11-22T05:31:24.087" UserId="34" />
  <row Id="5912" PostId="5980" Score="0" Text="@DaanvanderPlas ah completely forgot about the chain thing, makes sense, though i wonder what other cases when you need justifications other then changing authorities?" CreationDate="2022-11-22T06:00:53.680" UserId="3319" />
  <row Id="5913" PostId="6023" Score="2" Text="There isn't a perfect answer here. Fortunately merkle tries scale exponentially. That is, from 16^5 to 16^6, you go from 1 million items to 16 million items. if you expect to have 1 million users, you should set your storage benchmarks to 16^6, and know that your chain will be safe up to 16 million users, which then you should go to 16^7, and know you will be good for nearly 300 million users." CreationDate="2022-11-22T06:34:40.923" UserId="28" />
  <row Id="5914" PostId="6001" Score="1" Text="I am editing my answer and adding an example." CreationDate="2022-11-22T10:11:24.800" UserId="139" />
  <row Id="5916" PostId="5906" Score="0" Text="@swathi so the `&lt;some-encoded-call&gt;` value is just hex value of encoded VersionedXcm , e.g.: https://github.com/paritytech/parity-bridges-common/blob/master/primitives/test-utils/src/lib.rs#L323" CreationDate="2022-11-22T11:44:53.470" UserId="3445" />
  <row Id="5917" PostId="5871" Score="0" Text="thank you @Coreggon the contract did have enough balance but was trying to make balance transfer lower than existential deposit which was creating the issue." CreationDate="2022-11-22T12:15:35.770" UserId="1947" />
  <row Id="5918" PostId="6006" Score="0" Text="The pallet tests for you linked code work. Which test do you mean is failing?" CreationDate="2022-11-22T13:08:43.197" UserId="94" />
  <row Id="5920" PostId="6006" Score="0" Text="Hello and thanks for looking into it!!you need to un-comment the last line in test.rs. this check should succeed if the call is correctly executed: `assert_eq!(Roles::RepresentativeLog::&lt;Test&gt;::contains_key(FERDIE), true); `" CreationDate="2022-11-22T13:39:53.370" UserId="309" />
  <row Id="5921" PostId="6037" Score="0" Text="Dear @Oliver, Thank you very much for your time. Let me try it to mark this as answer. Just one followup question. We will run it from the node (in which we have added that pallet)  or from within the pallet itself?" CreationDate="2022-11-22T13:53:56.370" UserId="3327" />
  <row Id="5923" PostId="5561" Score="0" Text="Forgot about this issue. I found a pretty good example that I'll link.&#xA;&#xA;To be clear, I'm not generating key-pairs on-chain. I'm not sure why you're suggesting that I was doing that." CreationDate="2022-11-22T15:02:36.643" UserId="181" />
  <row Id="5924" PostId="5561" Score="1" Text="Though I do see the value of posting safe reminders like this on SE, out of abundance of caution " CreationDate="2022-11-22T15:09:03.007" UserId="181" />
  <row Id="5926" PostId="6037" Score="0" Text="The tests run in the mocked runtime completely without any node runtime.  &#xA;The benchmarks will then indeed need the node's runtime to produce the correct weights." CreationDate="2022-11-22T21:06:45.790" UserId="94" />
  <row Id="5927" PostId="6038" Score="0" Text="This is a good question. Also, as supplementary info I want to tag these two links: https://kusama.subscan.io/xcm_transfer and https://kusama.subscan.io/xcm_dashboard which may be helpful." CreationDate="2022-11-22T23:20:52.743" UserId="29" />
  <row Id="5928" PostId="6021" Score="0" Text="Sorry if my question is hard to understand. I'm a rust beginner. It seems inefficient to me to implement a From function to wrap all the errors of interest. So I would like to ask if there is a better way." CreationDate="2022-11-22T23:23:10.703" UserId="3114" />
  <row Id="5929" PostId="6023" Score="0" Text="how do I do this? Is this a configuration? &quot;You should ensure your make sure benchmarking uses the storage map with the largest expected size.&quot;&#xA;&#xA;Are you saying to do this:&#xA;cargo run --release -p node-bench -- ::trie::read::large&#xA;- https://www.shawntabrizi.com/substrate-graph-benchmarks/docs/#/database" CreationDate="2022-11-23T00:09:08.130" UserId="590" />
  <row Id="5931" PostId="6049" Score="0" Text="I think is because of the library, subscan verifier is not able to parse it. I have tried to delete the import and hardcoded all the code and I don't see that error anymore. (I see another: &quot;Cannot read property 'length' of undefined&quot;" CreationDate="2022-11-23T09:04:40.117" UserId="2762" />
  <row Id="5932" PostId="5906" Score="0" Text="how to launch millau node in ui" CreationDate="2022-11-23T11:31:29.170" UserId="3304" />
  <row Id="5933" PostId="6037" Score="0" Text="After running this command in my pallet the output is: &quot;running 0 tests&quot;.  So there are no test running" CreationDate="2022-11-23T11:59:07.330" UserId="3327" />
  <row Id="5934" PostId="6049" Score="0" Text="thanks for your reply. It is a little inconvenient to have to paste all the code of the inheritance destination. I wish there was another way. . . i will try too." CreationDate="2022-11-23T12:00:06.413" UserId="3114" />
  <row Id="5935" PostId="6054" Score="0" Text="Thank you Maario. I used the &quot;hardhat flatten&quot; command to output the code and have one license declaration. After that, I matched the compiler version and &quot;verified&quot;, but the following error occurred. &quot;No contract could be verified with provided data&quot;." CreationDate="2022-11-23T12:52:00.373" UserId="3114" />
  <row Id="5936" PostId="6037" Score="0" Text="How am I supposed to check without source code?" CreationDate="2022-11-23T13:03:29.037" UserId="94" />
  <row Id="5937" PostId="6054" Score="1" Text="In your hardhat config file check which compiler version is used" CreationDate="2022-11-23T13:14:20.147" UserId="529" />
  <row Id="5944" PostId="6047" Score="0" Text="Hey, now im getting the following error ```error: failed to run custom build command for `libp2p-core v0.37.0`}```" CreationDate="2022-11-23T16:36:49.633" UserId="496" />
  <row Id="5945" PostId="6061" Score="0" Text="I was able to install the GMP library but still have the same issue!" CreationDate="2022-11-23T17:07:04.790" UserId="2548" />
  <row Id="5946" PostId="6047" Score="0" Text="Please update your post with the exact steps you went through so I can try to reproduce your issue. Also include your `rustup show` and `rustup +nightly show`. And the version of CMake that you are using." CreationDate="2022-11-23T17:26:40.643" UserId="29" />
  <row Id="5948" PostId="6058" Score="0" Text="Have you run `xcode-select --install`?" CreationDate="2022-11-23T17:36:23.840" UserId="29" />
  <row Id="5949" PostId="6061" Score="1" Text="Then open an issue in their GitHub or ask in chat first if mac is supported." CreationDate="2022-11-23T17:40:15.087" UserId="94" />
  <row Id="5950" PostId="6058" Score="0" Text="I have run it but still the same." CreationDate="2022-11-23T18:04:43.917" UserId="2548" />
  <row Id="5951" PostId="6058" Score="0" Text="If you're using `stable-aarch64-apple-darwin` toolchain, you could try switching to `stable-x86_64-apple-darwin` and see if that resolves the issue." CreationDate="2022-11-23T18:12:26.200" UserId="29" />
  <row Id="5952" PostId="6063" Score="0" Text="hi there, i know why i am using srtool. But i want to know whats the best hash to use when i enactAuthorize on the parachain. The one srtool provides, or by uploading the file of the compact compressed wasm to polkadot js? i think im going to go with my second approach. But i want to know where the enactAuthorize hash provided by srtool has come from." CreationDate="2022-11-23T18:31:11.173" UserId="298" />
  <row Id="5953" PostId="6059" Score="0" Text="thank you for your detailed answer :)" CreationDate="2022-11-23T18:48:35.807" UserId="3459" />
  <row Id="5954" PostId="6058" Score="0" Text="I tried. Still the same!" CreationDate="2022-11-23T19:21:13.890" UserId="2548" />
  <row Id="5955" PostId="6061" Score="0" Text="Already did, they do not know how to fix it." CreationDate="2022-11-23T20:37:39.077" UserId="2548" />
  <row Id="5956" PostId="6058" Score="0" Text="If you search for `ld: library not found for` you will get lots of similar errors which may help in troubleshooting this issue." CreationDate="2022-11-23T21:02:02.787" UserId="29" />
  <row Id="5957" PostId="6054" Score="0" Text="Thank you so much ! Maario. I could solved this issue. v0.8.17 did not work, but v0.8.9 works !" CreationDate="2022-11-23T22:39:25.197" UserId="3114" />
  <row Id="5959" PostId="6048" Score="1" Text="Thanks for sharing this @Bruno.  My application used two api connections, one on the relay chain and the other on the parachain.  Due to my error I passed the relay chain api connection to a function requiring a parachain api connection.&#xA;&#xA;Given the code above I established that functionality exists and was able to find the error from there. &#xA;&#xA;Thanks for taking the time." CreationDate="2022-11-24T01:27:32.670" UserId="698" />
  <row Id="5960" PostId="6058" Score="0" Text="Perhaps you need to update clang and we did https://github.com/paritytech/scripts/pull/488" CreationDate="2022-11-24T02:15:18.993" UserId="34" />
  <row Id="5962" PostId="6063" Score="3" Text="The blake2 hash from srtool should be the same with the uploading-WASM calculated hash from PolkadotApps" CreationDate="2022-11-24T02:36:53.597" UserId="251" />
  <row Id="5963" PostId="6067" Score="0" Text="Is this helpful? https://substrate.stackexchange.com/a/5074/1959" CreationDate="2022-11-24T06:25:37.090" UserId="1959" />
  <row Id="5965" PostId="6062" Score="1" Text="You are confusing 2 hashes, the one of the runtime itself and the one of the call to authorize the upgrade for that specific runtime.&#xA;&#xA;Say the hash of the runtime is `H`.&#xA;&#xA;The `authorizeUpgrade` returned by srtool is the hash of the call:&#xA;```&#xA;parachainSystem.authorizeUpgrade(H)&#xA;```&#xA;and not `H` itself." CreationDate="2022-11-24T10:01:57.640" UserId="198" />
  <row Id="5966" PostId="6072" Score="0" Text="Thank you for your reply, Ossun!  I think your way is better than mine." CreationDate="2022-11-24T10:48:18.843" UserId="3114" />
  <row Id="5972" PostId="6075" Score="1" Text="I am not sure how long the HTTP will still work. Why can you not use WS? Normally you would use the `signAndSend` which returns a promise." CreationDate="2022-11-24T15:37:00.480" UserId="94" />
  <row Id="5973" PostId="6075" Score="0" Text="I am not using signAndSend because I dont want to share the private keys. I want to use HTTP because it is stateless. Even if I use websocket how would that benefit me?" CreationDate="2022-11-24T17:04:25.493" UserId="3475" />
  <row Id="5974" PostId="6074" Score="0" Text="I was already able to transfer with `is_sufficient` true, and if in fact USDt will be is_sufficient than this is a non-issue for the actual transfer. However, I'm wondering how other parachains already have USDt transfers enabled if `is_sufficient` is required. The way I see it, the original transfer should go through because consumers &amp; providers meet the requirements of `can_inc_consumer`. Even if is_sufficient is being provided for USDt, this does not apply to other assets on statemint, so what if I want to transfer something else?" CreationDate="2022-11-24T17:39:06.810" UserId="481" />
  <row Id="5977" PostId="6080" Score="0" Text="thanks. If i want to find what the General Key for the balances on a different parachain, how do i find it? How do i find the location of other things? I'm assuming 0x008 is little endian bytes?" CreationDate="2022-11-24T23:20:45.273" UserId="298" />
  <row Id="5978" PostId="5883" Score="0" Text="i tried to modify as mentioned in [link]  (https://docs.substrate.io/tutorials/work-with-pallets/contracts-pallet/) to enable the runtime contract. But getting error in the 'Implement the Contracts configuration trait' setion compilation.  related to ```unresolved import `pallet_contracts::DefaultContractAccessWeight`&#xA;    --&gt; /home/ubuntu/substrate/substrate-node-template/runtime/src/lib.rs:44:5 ```" CreationDate="2022-11-25T00:27:14.760" UserId="3440" />
  <row Id="5979" PostId="6070" Score="0" Text="Thank you very much.&#xA;It was successfully resolved!" CreationDate="2022-11-25T02:25:26.360" UserId="3474" />
  <row Id="5980" PostId="6080" Score="1" Text="Each Parachain has their own way of organizing assets. You may have to dig into the code for some of them to find exactly how they classify different types of assets. Generally, however, parachains have an `assetRegistry` pallet that enumerates the assets which are supported and has a storage item that holds metadata along with the location of that asset, and often the name and symbol of the asset too. @Guantong has some example screenshots of this. You should be able to query this data on all the live parachains that have integrated XCM." CreationDate="2022-11-25T05:19:19.500" UserId="481" />
  <row Id="5981" PostId="5906" Score="0" Text="when i am trying to send messages from rialto-millau i am getting targer-signer error" CreationDate="2022-11-25T06:02:27.843" UserId="3304" />
  <row Id="5982" PostId="6082" Score="0" Text="You're right - there's a field in `swanky.config.json` -&gt; `contracts -&gt; [contract_name] -&gt; deployments[]` that keeps track of where and when you deployed.&#xA;&#xA;Note on the `call` command though - it's only a proxy to `cargo contract call` for now (will be switched to polkadot-api), so you can actually just use that directly if you need more flexibility." CreationDate="2022-11-25T08:26:58.753" UserId="1876" />
  <row Id="5983" PostId="5883" Score="0" Text="Check the version when import the pallets, in the tutorial uses the polkadot-v0.9.28 but it has to be the same as the rest of the pallets you have in the Cargo.toml" CreationDate="2022-11-25T08:56:01.033" UserId="2762" />
  <row Id="5984" PostId="6079" Score="0" Text="Using the events is not an option for me nor sharing the private key / mnemonic of the wallet. Is there any way that with the transaction hash I can receive all transactions with this hash?" CreationDate="2022-11-25T13:03:20.730" UserId="3475" />
  <row Id="5985" PostId="6088" Score="1" Text="Try to follow these steps (:https://docs.substrate.io/install/linux/) closely and you should be good the go!" CreationDate="2022-11-25T15:36:31.777" UserId="3317" />
  <row Id="5986" PostId="6084" Score="0" Text="Could you provide your chainspec?" CreationDate="2022-11-25T16:02:58.850" UserId="3317" />
  <row Id="5987" PostId="6088" Score="0" Text="To clarify, I have followed all the steps in that document. I uninstalled everything, removed everything, and then did each of those steps again, and I still have this same issue." CreationDate="2022-11-25T20:16:47.103" UserId="3517" />
  <row Id="5988" PostId="1369" Score="1" Text="@forgetso not really. While extension is running the well known networks (Polkadot, kusama, rococo and westend) are syncing in the background and the latest state is saved in the localstorage. This way when an app is connected will start syncing from that latest state, which makes the sync period smaller." CreationDate="2022-11-25T22:58:32.853" UserId="629" />
  <row Id="5989" PostId="6083" Score="0" Text="thanks for this. So in Kabocha parachain which only has one token, do i instead do X1, and no need for general key? https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkabocha.jelliedowl.net#/chainstate" CreationDate="2022-11-26T19:28:45.000" UserId="298" />
  <row Id="5990" PostId="6080" Score="0" Text="ok great so if the parachain doesnt have some kind of assetRegistry then i only need the one junction X1?" CreationDate="2022-11-26T20:48:27.237" UserId="298" />
  <row Id="5991" PostId="6083" Score="0" Text="@Decentration Too long for a comment, so I updated the answer." CreationDate="2022-11-27T05:21:23.043" UserId="1959" />
  <row Id="5992" PostId="6083" Score="0" Text="thanks for the update. So for Kabocha {parents:1, X1(Parachain(2113))}&#xA;&#xA;you mention it seems not right? What do you mean by that?" CreationDate="2022-11-27T12:44:01.070" UserId="298" />
  <row Id="5994" PostId="6101" Score="0" Text="What versions of the node and api?" CreationDate="2022-11-27T14:44:49.337" UserId="34" />
  <row Id="5995" PostId="6101" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-11-27T14:45:00.227" UserId="-1" />
  <row Id="5996" PostId="6047" Score="0" Text="Hey, just i've updated the question." CreationDate="2022-11-27T16:57:03.823" UserId="496" />
  <row Id="5997" PostId="4223" Score="1" Text="Hey @Iker, you might also like to consider looking at the subxt rust library, which provides similar functions to PolkadotJS but in rust: https://github.com/paritytech/subxt/" CreationDate="2022-11-27T18:28:08.250" UserId="481" />
  <row Id="5998" PostId="4223" Score="0" Text="and this is the function you would use I  think: https://docs.rs/subxt/0.25.0/subxt/rpc/struct.Rpc.html#method.metadata" CreationDate="2022-11-27T18:45:21.267" UserId="481" />
  <row Id="5999" PostId="6080" Score="1" Text="if the chain only has the native token, it could be a few things. Generally, it's X2(Parachain(ParachainId), PalletInstance(pallet_balances Index)). Like for moonbeam it is X2(Parachain(2004), PalletInstance(10))." CreationDate="2022-11-27T18:47:29.160" UserId="481" />
  <row Id="6000" PostId="6101" Score="0" Text="node version is Node v0.20.0-8d76d04faca.   Api @polkadot/api is latest. That is 9.9.1" CreationDate="2022-11-27T21:12:45.020" UserId="3440" />
  <row Id="6001" PostId="6101" Score="0" Text="using the developer node of substrate. Made teh contract in Ink and trying to access it using metadata.json" CreationDate="2022-11-27T21:15:35.153" UserId="3440" />
  <row Id="6002" PostId="6083" Score="0" Text="If you want to use {parents:1, X1(Parachain(2113))}, in the xcm config of Kabocha, the &lt;T&gt; of IsConcrete&lt;T&gt; should be `MultiLocation::here()` rather than `MultiLocation::parent()`" CreationDate="2022-11-28T02:13:45.267" UserId="1959" />
  <row Id="6004" PostId="5618" Score="0" Text="I am facing similar issue, could you guys please help me understand what is still missing in my working progress PR https://github.com/zeitgeistpm/zeitgeist/pull/887&#xA;?&#xA;Here are the errors I am facing https://gist.github.com/vivekvpandya/69d09d47d0da83f95a04fe57fbbddf99" CreationDate="2022-11-28T14:00:05.843" UserId="2010" />
  <row Id="6005" PostId="6001" Score="0" Text="Excellent.  Can you explain the use of `self.0`?  Is that a tuple where the _nonce_ value is at index 0?" CreationDate="2022-11-28T14:23:59.893" UserId="3142" />
  <row Id="6006" PostId="6102" Score="0" Text="this is really useful, thank you. However: what we want to know in order to detect storage leaks is: &quot;Are there any NEW KEYS in the storage&quot;. We don't care about keys that changed their VALUE. So, our test may not qualify as a noop, even if there is no storage leak. In many cases, however, we may be able to use your solution by just manually reversing known storage changes" CreationDate="2022-11-28T14:50:25.063" UserId="360" />
  <row Id="6007" PostId="6102" Score="1" Text="Ahh okay. Yea this is not possible without inventing new storage guard types. If you have the need for some generic cleanup you could do it in the `new_test_ext` and then check for NO-OP afterwards. But I see what you mean. Could be that is fairly simple to hook into the storage overlay. I will think about it." CreationDate="2022-11-28T14:59:06.380" UserId="94" />
  <row Id="6008" PostId="5618" Score="0" Text="Could be that you are not passing the `try-runtime` feature to `frame-executive` in all `Cargo.toml` files. The `zrml/court/Cargo.toml` for example is missing it. Not sure if that is the only error but if could be responsible." CreationDate="2022-11-28T15:04:40.700" UserId="94" />
  <row Id="6010" PostId="6114" Score="0" Text="Please add more concrete details here, it's unclear what your goals are in just &quot;SQA team needs a checklist&quot; https://substrate.stackexchange.com/help/how-to-ask" CreationDate="2022-11-28T19:39:30.433" UserId="34" />
  <row Id="6011" PostId="6114" Score="0" Text="Question updated. Being a member of SQA team, I need to know, whether the benchmarking functions written by a developer is a good benchamarking function. From GOOD here I mean, a benchmarking functions that inovoke the most resource instensive path" CreationDate="2022-11-28T21:56:12.693" UserId="3327" />
  <row Id="6012" PostId="6114" Score="0" Text="have you reviewed https://docs.substrate.io/test/benchmark/ ?" CreationDate="2022-11-28T23:00:02.760" UserId="34" />
  <row Id="6014" PostId="6109" Score="0" Text="Thanks for the answer. I have edited the question. I need to take a backup without stopping the service. AFAIK, taking a folder backup without stopping a service is not a good idea." CreationDate="2022-11-29T05:05:12.467" UserId="3524" />
  <row Id="6015" PostId="5906" Score="0" Text="Going to retry in 10s&#xA;2022-11-29 07:20:24 +00 INFO bridge Connecting to Millau node at ws://millau-node-bob:9944&#xA;2022-11-29 07:20:24 +00 ERROR bridge Failed to connect to Millau node: RpcError(Transport(Failed to resolve IP addresses for this hostname: failed to lookup address information: Temporary failure in name resolution)). Going to retry in 10s" CreationDate="2022-11-29T07:19:54.347" UserId="3304" />
  <row Id="6017" PostId="6114" Score="1" Text="Yes I reviewed it. The benchmarking test basically is sort of unit testing. I am talking about SQA test. Let me give you an example. Suppose, there is a function F, it has two paths. Path-A  and path-B.  Path-A is more resource intensive as compared to Path-B. Now the developer write a benchmarking function targeting path-B (instaed of path-A). I need a way/tool that tells SQA team that  the developer has not targeted the most resource intensive path." CreationDate="2022-11-29T10:16:14.883" UserId="3327" />
  <row Id="6018" PostId="6001" Score="1" Text="Yes, as you can see from the code `pub struct CheckNonce&lt;T: Config&gt;(#[codec(compact)] pub T::Index);`, It's a tuple containing the Nonce, referred to as `Index` here." CreationDate="2022-11-29T11:15:49.580" UserId="139" />
  <row Id="6019" PostId="6001" Score="0" Text="https://github.com/paritytech/substrate/blob/master/frame/system/src/extensions/check_nonce.rs#L40" CreationDate="2022-11-29T11:17:03.903" UserId="139" />
  <row Id="6021" PostId="5618" Score="0" Text="Thanks @OliverTale-Yazdi I tried to make it work as https://github.com/mangata-finance/mangata-node/tree/develop-v0.9.29 however there seems something wrong I am getting errors as shown at https://gist.github.com/vivekvpandya/2883f4249457322b7e233e7f4b821c0a&#xA;looks like two different version of frame_support is being compiled and something is not good." CreationDate="2022-11-29T14:56:19.540" UserId="2010" />
  <row Id="6022" PostId="6106" Score="0" Text="Hi can you include the link to the repo of robonomics to try to reproduce? Also, can you check the logs of the collator? you need to find the log file in the temp directory for the namespace." CreationDate="2022-11-29T19:30:53.187" UserId="279" />
  <row Id="6023" PostId="6114" Score="0" Text="Perhaps, and I am not sure here, you want a fuzzer to test if the benchmarks setting the worst case scenario are surpassed." CreationDate="2022-11-30T01:52:10.870" UserId="34" />
  <row Id="6024" PostId="6119" Score="0" Text="you can use any branch of polkadot and use same branch of frontier suppose if you are using polkadot-v0.9.22 then use the same branch of frontier also." CreationDate="2022-11-30T06:55:03.613" UserId="2281" />
  <row Id="6025" PostId="3758" Score="0" Text="@Squirrel is it possible to contruct the `SignedExtra` which is needed by pallet_asset_tx_payment ?" CreationDate="2022-11-30T07:04:31.713" UserId="393" />
  <row Id="6026" PostId="6125" Score="1" Text="Yes, I wanted to get the weight consumed after the call. Thanks for the help. Let me try it out and come back to you if there is any issue. Thanks once again" CreationDate="2022-11-30T07:50:51.993" UserId="3327" />
  <row Id="6027" PostId="6114" Score="0" Text="No, I do not need a fuzzer, Let me ask another question, to clarify my point. Suppose, we have a  novice blockchain developer, who write a functions against  the best case scenario (instead of worst case scenario). What will happen?  The benchmarking functions will obviously not produced a good approximation of weights. Is there any methodology/ framework/ anything that may help SQA team the developer has written his/her benchmark against the worst case scenario and the benchmark functions must be updated to target the worst case scenario." CreationDate="2022-11-30T08:03:43.877" UserId="3327" />
  <row Id="6028" PostId="6119" Score="0" Text="I did so, but it looks like the StakingElection.failed error still exists in all 0.9.2* versions, and it looks like a compatibility issue between frontier's EVM pallets and pallets used to build NPoS runtimes." CreationDate="2022-11-30T09:19:35.127" UserId="2809" />
  <row Id="6029" PostId="6129" Score="0" Text="How can i upgrade my client?" CreationDate="2022-11-30T09:58:28.960" UserId="3136" />
  <row Id="6030" PostId="6129" Score="0" Text="@WakarSerajKhan see updated answer. Please say if something is still unclear to you" CreationDate="2022-11-30T10:15:23.883" UserId="3317" />
  <row Id="6031" PostId="6121" Score="0" Text="when you connect, do you follow light client protocol flow? if now, may be node logic is to kick connection which does not follow protocol" CreationDate="2022-11-30T10:55:56.347" UserId="484" />
  <row Id="6032" PostId="6121" Score="0" Text="@DzmitryLahoda our node tries to act as a full node, our score is always 0 (perfect score) according to a real substrate node" CreationDate="2022-11-30T10:58:33.387" UserId="3529" />
  <row Id="6034" PostId="6121" Score="0" Text="do you send ping or something within short period to node?" CreationDate="2022-11-30T11:14:05.257" UserId="484" />
  <row Id="6035" PostId="6060" Score="0" Text="I'm not sure but maybe this helps: https://substrate.stackexchange.com/questions/5918/how-can-i-make-my-node-generate-blocks-only-when-they-receive-transactions/5954#5954" CreationDate="2022-11-30T11:16:58.823" UserId="3317" />
  <row Id="6036" PostId="6083" Score="0" Text="how can i make it work with the current set up without having to make a runtime upgrade? or are you saying i need to make a runtime upgrade?" CreationDate="2022-11-30T11:57:30.160" UserId="298" />
  <row Id="6037" PostId="6129" Score="0" Text="I am using substrate version 0.9.17 which is build on substrate 1.63.0 and using another old substrate version which is build on 1.56.1, so i am upgrading my runtime with my new substrate version in polkadot explorer by using my latest WASM,and then i got that error on my explorer" CreationDate="2022-11-30T12:36:03.233" UserId="3136" />
  <row Id="6038" PostId="6129" Score="0" Text="Can you be a bit more precise in what you are trying to do?" CreationDate="2022-11-30T12:56:28.147" UserId="3317" />
  <row Id="6039" PostId="987" Score="0" Text="Although Ristretto and sr25519 are stable, curve25519-dalek is deprecating its non-standard hash-to-curve interface for ed25519 in https://github.com/dalek-cryptography/curve25519-dalek/pull/438 so maybe use curve25519-dalek-ng for this, or better yet adopt the standard, maybe send a PR to cruve25519-dalek or wait for them to do it." CreationDate="2022-11-30T13:30:04.807" UserId="1810" />
  <row Id="6040" PostId="6129" Score="0" Text="As my question says I am want to upgrade my chain to a latest version of substrate which  has also been answered in [here](https://substrate.stackexchange.com/questions/2554/runtime-upgrade-error-host-doesnt-provide-such-function-envext-storage-root), but was not able to it successfully and it also suggests that i need to upgrade my client but i was unable to find any documentation regarding that neither any relevant question here." CreationDate="2022-11-30T13:31:23.303" UserId="3136" />
  <row Id="6041" PostId="5930" Score="0" Text="It's only &quot;dangerous&quot; because BTC and ETH people adopted a flawed convention.  hash-to-curve was always the sensible solution because it lets you encode a non-spendable messages, like the reason why you burned tokens.  If I just burn to zero then maybe I can benefit from the burn in multiple ways in unrelated applications, which then makes the burn insecure." CreationDate="2022-11-30T13:37:55.303" UserId="1810" />
  <row Id="6042" PostId="987" Score="1" Text="Importantly, a burn-to-zero like BTC and ETH do could be insecure, also like we support with CheckNonZeroSender.  It's too easy to set up multiple burns in parallel in multiple applications, which could then all be fulfilled with one single burn, and this might break all or some of those applications.  The solution is to always burn to a hash-to-curve point." CreationDate="2022-11-30T13:39:53.443" UserId="1810" />
  <row Id="6043" PostId="6131" Score="1" Text="I think this may be the issue with new rustc https://github.com/paritytech/ink/issues/1417, ink 3.3.0 can be build with nightly-2022-06-30 and older, if you want to use the latest rustc then use ink 3.4.0, the issue is fixed there" CreationDate="2022-11-30T13:41:18.863" UserId="170" />
  <row Id="6044" PostId="6129" Score="0" Text="Added information to my answer again" CreationDate="2022-11-30T14:15:07.417" UserId="3317" />
  <row Id="6045" PostId="6083" Score="1" Text="Yeah you need fix it and make a runtime upgrade." CreationDate="2022-11-30T14:40:15.443" UserId="1959" />
  <row Id="6046" PostId="6136" Score="0" Text="Does this answer your question: https://substrate.stackexchange.com/questions/3942/error-connecting-to-substrate-connection-to-websocket-ws-127-0-0-19944-fai" CreationDate="2022-11-30T15:15:45.420" UserId="3317" />
  <row Id="6047" PostId="6083" Score="0" Text="what if did it this way? X2(Parachain(2113), PalletInstance(10)), would this work or do i still need to make runtime upgrade?&#xA;&#xA;If so i would also need to pr upstream to cumulus, because it would be a bug?" CreationDate="2022-11-30T15:43:33.967" UserId="298" />
  <row Id="6048" PostId="6136" Score="0" Text="oh lol thanks it works now" CreationDate="2022-11-30T16:01:45.077" UserId="3531" />
  <row Id="6051" PostId="6137" Score="0" Text="Are you talking about a `StorageMap`? Why can you not use an ever-increasing counter?" CreationDate="2022-11-30T17:53:42.013" UserId="94" />
  <row Id="6052" PostId="6119" Score="0" Text="@MuhammadTalhaDar you have not asked a clear and concise question above. Please update your post to be something that can be directly answered else, we will need to close this post." CreationDate="2022-11-30T20:49:05.910" UserId="28" />
  <row Id="6053" PostId="6139" Score="3" Text="Can you please give more details about the steps you took to get to this point? Like which pallets you were interacting with, what call you made, etc... In general, if you use a UI like Polkadot JS Apps, these errors will be decoded for you." CreationDate="2022-12-01T00:19:13.477" UserId="28" />
  <row Id="6054" PostId="6083" Score="1" Text="If you want to use  X2(Parachain(2113), PalletInstance(10)), you should set `T` to {parents: 0, X1(PalletInstance(&lt;Balances as PalletInfoAccess&gt;::index() as u8)) (refer to darwinia-parachain or other parachains), then upgrade the runtime. It's not a bug of cumulus, just a config of your parachain runtime." CreationDate="2022-12-01T02:01:39.897" UserId="1959" />
  <row Id="6055" PostId="6114" Score="0" Text="With weights not being worst case, your blocks could take longer then the benchmark assumptions for the given hardware. This in solo chains *may* be OK if not drastically wrong and very infrequently. But it is possible you could brick your chain in worst case. As a parachain there is (at least for now) no flexibility on block time so you would brick." CreationDate="2022-12-01T04:45:52.350" UserId="34" />
  <row Id="6056" PostId="6114" Score="0" Text="Benchmarking requires you to understand the pallet's branching behavior and how storage over time will effect it. Sadly I don't think there is any tooling or framework to ensure you are doing this correctly. Let's open this question back up to see what others can say" CreationDate="2022-12-01T04:49:10.090" UserId="34" />
  <row Id="6057" PostId="6119" Score="0" Text="I would like to know if a standalone chain can be NPoS and have EVM compatability. Because it looks that is not possible for versions of polkadot-v0.9.2*. @ShawnTabrizi" CreationDate="2022-12-01T07:55:11.910" UserId="2809" />
  <row Id="6058" PostId="6124" Score="0" Text="Thanks for the advice but i want to know how to decode the opaque extrinsic to get the values within it" CreationDate="2022-12-01T09:31:04.257" UserId="3319" />
  <row Id="6059" PostId="6114" Score="0" Text="The title is a duplicate. Voting to close. Please pick unique titles and ample description of your issues." CreationDate="2022-12-01T11:00:17.630" UserId="94" />
  <row Id="6064" PostId="6146" Score="0" Text="I deployed the code in the **substrate contract node**, which works well and execute the contract. Then I tried to run it by using the runtime pallet used in [link](https://docs.substrate.io/tutorials/work-with-pallets/contracts-pallet/). In the runtime, I access the contract from the **'metadata.json'** file created by compiling the smart contract written in Ink. The error comes when running it from the node application and accessing it using **metadata.json.**  i use the  **metadata.json.** created by running the flipper contract" CreationDate="2022-12-01T12:56:45.883" UserId="3440" />
  <row Id="6065" PostId="6139" Score="0" Text="I deployed the code in the **substrate contract node**, which works well and execute the contract. Then I tried to run it by using the runtime pallet used in [link](https://docs.substrate.io/tutorials/work-with-pallets/contracts-pallet/). In the runtime, I access the contract from the **'metadata.json'** file created by compiling the smart contract written in Ink. The error comes when running it from the node application and accessing it using **metadata.json.**  i use the  **metadata.json.** created by running the flipper contract" CreationDate="2022-12-01T12:57:00.427" UserId="3440" />
  <row Id="6066" PostId="6119" Score="0" Text="Ability to run the EVM and which consensus you use are not related. So yes, it is possible. It looks like you have not set up your staking correctly, so you need to simplify and clarify your question to solve that." CreationDate="2022-12-01T13:17:15.197" UserId="28" />
  <row Id="6067" PostId="6152" Score="0" Text="`--release` will take much more memory while compiling, because release builds are doing much more optimizations. The memory usage here is while building and not while running the final binary." CreationDate="2022-12-01T13:57:37.913" UserId="73" />
  <row Id="6069" PostId="6152" Score="0" Text="Interesting, if I remove the `--release` I can't finish the compiling.&#xA;&#xA;And I think the worst part is the final library linking. IIUC, If we use `--release`, the linking size/usage will be decreased.&#xA;&#xA;As he said, he stucked at `1600/1706`, I think the compiler was processing the linking at that time." CreationDate="2022-12-01T14:15:36.100" UserId="251" />
  <row Id="6071" PostId="6154" Score="0" Text="Thanks Shawn, the Staking pallet code helps a lot. I am going to check more in detail to see how it handles the percents and potential rounding errors." CreationDate="2022-12-01T14:43:44.967" UserId="2762" />
  <row Id="6072" PostId="6084" Score="0" Text="https://github.com/threefoldtech/tfchain/blob/development/substrate-node/chainspecs/main/chainSpecRaw.json" CreationDate="2022-12-01T14:44:02.513" UserId="379" />
  <row Id="6073" PostId="6134" Score="0" Text="Thanks. That all makes sense. Based on that, plus some additional reading, I've concluded that many of my extrinsics will need multiple benchmarks to be able to cover all chain states, as opposed to just the 'worst case' benchmarks I have at the moment." CreationDate="2022-12-01T14:50:08.520" UserId="2136" />
  <row Id="6075" PostId="6152" Score="0" Text="Hmm interesting, I would think that `--release` takes more memory :P Maybe later in the build order. Nevertheless, the proper solution here is still the ramdisk/swap." CreationDate="2022-12-01T14:51:13.950" UserId="73" />
  <row Id="6076" PostId="6124" Score="0" Text="As I said, you should not do in your node code. What I have given you above, will give you the values within the extrinsic." CreationDate="2022-12-01T14:53:29.367" UserId="73" />
  <row Id="6077" PostId="6083" Score="0" Text="thank you for your input, i really appreciate it." CreationDate="2022-12-01T15:08:35.417" UserId="298" />
  <row Id="6078" PostId="6124" Score="0" Text="you said i need to implement the runtime api in whatever way i want, i dont know any way to decode the Extrinsics to retreive the argument `value` within an encoded `store_value(value)` extrinsic, what you have given me above is the proper place to decode it and i agree but it does not show how to actually decode it!" CreationDate="2022-12-01T15:11:17.157" UserId="3319" />
  <row Id="6079" PostId="6152" Score="0" Text="I managed to get to the end of `cargo test`. Thanks for help. I didn't pass all the tests though, but I guess that's a separate issue" CreationDate="2022-12-01T15:39:22.613" UserId="3424" />
  <row Id="6080" PostId="6088" Score="0" Text="Is this still a problem? Its not something that the ecosystem is able to reproduce, since we would be hearing many more problems from the community." CreationDate="2022-12-01T15:46:55.707" UserId="28" />
  <row Id="6085" PostId="2219" Score="0" Text="hi jaco i have a question about RPC, i created a new issue for it here: https://substrate.stackexchange.com/questions/6169/how-to-decorate-rpc-correctly" CreationDate="2022-12-01T23:10:31.803" UserId="298" />
  <row Id="6086" PostId="6129" Score="0" Text="Thank for your response..Its work" CreationDate="2022-12-02T05:24:07.920" UserId="3136" />
  <row Id="6087" PostId="5535" Score="0" Text="@AurevoirXavier but how to decode the OpaqueExtrinsic into unchecked_extrinsic ?" CreationDate="2022-12-02T07:14:11.873" UserId="3319" />
  <row Id="6088" PostId="6153" Score="0" Text="The relay you're setting up, are you using custom keys or dev accounts?&#xA;&gt;&gt;&gt; yes. I have replaced with my own keys. using 5 session keys." CreationDate="2022-12-02T08:03:10.693" UserId="3534" />
  <row Id="6089" PostId="6153" Score="0" Text="In the parachain log, does it try start collating over and over until errors/warns start appearing? like too many siblings or header not found?&#xA;&#xA;&gt;&gt; yes it also happening." CreationDate="2022-12-02T08:03:51.923" UserId="3534" />
  <row Id="6090" PostId="6153" Score="0" Text="I have used own custom keys for Relay chain and different own keys for parachain.&#xA;&#xA;would I have to use same keys for both - Relay chain and parachain ?" CreationDate="2022-12-02T08:04:58.873" UserId="3534" />
  <row Id="6091" PostId="6149" Score="0" Text="That's I have done already." CreationDate="2022-12-02T08:08:28.400" UserId="3534" />
  <row Id="6092" PostId="6124" Score="0" Text="On the runtime side you will already get the decoded extrinsic. You will be able to inspect it there as you like. `Block::Extrinsic` is set to the concrete extrinsic type in your runtime." CreationDate="2022-12-02T09:26:55.600" UserId="73" />
  <row Id="6093" PostId="6158" Score="0" Text="Right, I also tried with another chainspec that has bootnodes: https://github.com/threefoldtech/tfchain/blob/development/substrate-node/chainspecs/dev/chainSpecRaw.json but it gave me the same result." CreationDate="2022-12-02T09:44:30.770" UserId="379" />
  <row Id="6094" PostId="6171" Score="0" Text="You can ask all substrate related questions here and we would be happy to help!" CreationDate="2022-12-02T10:08:08.430" UserId="3317" />
  <row Id="6095" PostId="6179" Score="1" Text="AFAIK, there are only a few keys in the collective storage. I think the weight is totally fine." CreationDate="2022-12-02T13:30:20.363" UserId="251" />
  <row Id="6096" PostId="6179" Score="1" Text="Yea but it all goes into the PoV - so if the maps hold a lot of values this will increase." CreationDate="2022-12-02T13:33:36.437" UserId="94" />
  <row Id="6097" PostId="6153" Score="0" Text="No no, you're probably inserting the keys in the wrong way.  You can use separate keys, there's no reason to use the same keys, actually is the opposite, DO NOT.  Follow the instructions on the link I posted, you need to insert the session keys correctly for the Relay and Parachain. https://substrate.stackexchange.com/questions/5397/how-to-properly-set-session-keys-for-relay-and-parachain-with-custom-keys?rq=1" CreationDate="2022-12-02T14:13:52.573" UserId="3331" />
  <row Id="6099" PostId="6171" Score="0" Text="Yes, although option based questions should live outside this platform, join us on https://forum.polkadot.network" CreationDate="2022-12-02T16:16:58.687" UserId="34" />
  <row Id="6100" PostId="6162" Score="0" Text="Have you tried connecting any evm explorers to the RPC?" CreationDate="2022-12-02T16:18:54.430" UserId="34" />
  <row Id="6101" PostId="6134" Score="0" Text="Should add in case others are in the same situation, that I stupidly thought that the actual weight (computation and db reads when mining the block), should be used to calculate the final transaction fees. This makes no sense as it would promote inefficient mining. It distracted me for a while and wasted my time." CreationDate="2022-12-03T14:34:24.277" UserId="2136" />
  <row Id="6104" PostId="6181" Score="0" Text="Thank you for your answer. Btw do you know what the function is for reading a specific pallet storage item from the `block_hash` parameter?" CreationDate="2022-12-03T14:54:22.773" UserId="684" />
  <row Id="6106" PostId="6106" Score="1" Text="I added the issue at the zombienet repository. https://github.com/paritytech/zombienet/issues/620" CreationDate="2022-12-03T16:52:03.020" UserId="3312" />
  <row Id="6107" PostId="6181" Score="0" Text="I don't get your question, sorry. What you mean by &quot;storage item from the `block_hash` parameter&quot;?" CreationDate="2022-12-03T20:37:59.763" UserId="73" />
  <row Id="6108" PostId="6158" Score="0" Text="The bootnodes in that chainspec are missing the `ws` bootnodes. If you see the link of `westend` spec mentioned above there are 2 types. The `p2p` and the `ws`. If you have the collator listening to websocket connections and, you can try by duplicating the ones and add the `ws` part." CreationDate="2022-12-03T20:41:23.943" UserId="629" />
  <row Id="6109" PostId="6190" Score="0" Text="Beyond just installing rust, did you also follow all the instructions for other installation prerequisites here: https://docs.substrate.io/install/ ?" CreationDate="2022-12-03T23:04:33.547" UserId="28" />
  <row Id="6110" PostId="6187" Score="1" Text="you can use wrapper from openbrush, [have a look this question](https://substrate.stackexchange.com/a/4779/2844)" CreationDate="2022-12-04T02:31:04.633" UserId="2844" />
  <row Id="6111" PostId="6088" Score="1" Text="Still an issue, I filed a bug report with rocksdb, I am not the only person encountering it according to the bug report. https://github.com/rust-rocksdb/rust-rocksdb/issues/713" CreationDate="2022-12-04T04:41:06.310" UserId="3517" />
  <row Id="6112" PostId="6161" Score="0" Text="yeah it seems like Substrate is a dependency for Polkadot to work. Is that correct?" CreationDate="2022-12-04T05:48:16.727" UserId="3424" />
  <row Id="6113" PostId="6194" Score="0" Text="What kind of storage are you referring to? Github repository size? On-chain data?" CreationDate="2022-12-04T11:22:06.677" UserId="94" />
  <row Id="6115" PostId="6181" Score="0" Text="Let's say palletX has the storage item: `let DummyStorageNumber = StorageValue&lt;_, u64, ValueQuery&gt;`. How do I access the value of `DummyStorageNumber`  in `&lt;Runtime as TaggedTransactionQueue&lt;Block&gt;&gt;::validate_transaction(source, tx, block_hash)`? Thanks" CreationDate="2022-12-04T11:29:02.953" UserId="684" />
  <row Id="6116" PostId="6194" Score="0" Text="computer storage" CreationDate="2022-12-04T12:23:28.817" UserId="3424" />
  <row Id="6117" PostId="6194" Score="0" Text="when I do things like `git clone [repository]` and then run `cargo build` and `cargo test`, it ends up taking ridiculous amount of space on my computer" CreationDate="2022-12-04T12:24:29.450" UserId="3424" />
  <row Id="6118" PostId="6196" Score="0" Text="Include your dependencies in std feature section" CreationDate="2022-12-04T12:53:38.130" UserId="351" />
  <row Id="6119" PostId="6196" Score="0" Text="@MrishoLukamba in this Cargo.toml not ant [std] section" CreationDate="2022-12-04T12:57:48.280" UserId="2722" />
  <row Id="6120" PostId="6162" Score="0" Text="Yep, I've connected Epirus and Expedition @DanShields" CreationDate="2022-12-04T15:53:57.683" UserId="3538" />
  <row Id="6122" PostId="6198" Score="1" Text="Thanks a lot!&#xA;Yes, as presented ignoring the error on f1 and continuing seems weird. But in actuality we would probably return from `extrinsic_func` if f1 fails (committing storage changes done by f1)." CreationDate="2022-12-04T18:00:32.970" UserId="522" />
  <row Id="6123" PostId="6198" Score="0" Text="Okay. So you would then see the error of `f1` but still return `Ok(())` from you call; otherwise if you return `Err(…)` if will obviously not commit." CreationDate="2022-12-04T18:10:08.297" UserId="94" />
  <row Id="6125" PostId="6181" Score="0" Text="`palletx::DummyStorageNumber::get()`" CreationDate="2022-12-04T19:16:51.740" UserId="73" />
  <row Id="6127" PostId="5906" Score="0" Text="how to launch Millau node in my localhost" CreationDate="2022-12-05T05:48:11.873" UserId="3304" />
  <row Id="6128" PostId="6202" Score="1" Text="`to not let users store the entire internet in your pallet.` I chuckled." CreationDate="2022-12-05T07:38:41.000" UserId="139" />
  <row Id="6129" PostId="6124" Score="0" Text="i tried to follow your solution but the first thing that did not work is using Vec, since std is not allowed in the runtime i had to use a simple array of type `[&lt;Block as BlockT&gt;::Extrinsic;length]`, so i created a simple array that holds one `OpaqueExtrinsic` but that also for some reason  got me an error when trying to pass the argument to contains_special_extrinsics(my_array) which is `an argument of type &amp;sp_api::BlockId&lt;...::BlakeTwo256&gt;, sp_runtime::OpaqueExtrinsic&gt;&gt; is missing`, even if make the function take one single OpaqueExtrinsic instead of an array the error still is the same" CreationDate="2022-12-05T08:09:10.900" UserId="3319" />
  <row Id="6132" PostId="5906" Score="0" Text="actually, you cannot use polkadot.js.org for Millau node now, there should be needed some hashing algo stuff added to the polkadot.js.org cfg, but we dont have it now, we will work on that &quot;later&quot;:&#xA;https://github.com/paritytech/parity-bridges-common/issues/1406&#xA;https://github.com/polkadot-js/apps/issues/8418&#xA;&#xA;and for the errors related to the `millau-node-bob` (looks like you are trying to run docker version), please open a issue with all commands and environmen directly here: https://github.com/paritytech/parity-bridges-common/issues" CreationDate="2022-12-05T08:20:20.250" UserId="3445" />
  <row Id="6133" PostId="6157" Score="0" Text="This was the approach I was thinking about but wanted to check if there was a more straight forward way to achieve this, thanks @shawn" CreationDate="2022-12-05T08:40:26.810" UserId="3438" />
  <row Id="6134" PostId="6124" Score="0" Text="`Vec` is available. You can get it from `sp_std::vec::Vec`. The macro is generating you on the node side a function that takes a first &quot;extra parameter&quot;. It expects the `at` parameter, aka the block in which context you want to execute this runtime call. In your case you need to pass `&amp;BlockId::Hash(parent_hash)` as first parameter." CreationDate="2022-12-05T08:57:40.427" UserId="73" />
  <row Id="6135" PostId="6190" Score="0" Text="@ShawnTabrizi I think I did. I could already succesfully build and run the substrate-node-template" CreationDate="2022-12-05T09:05:53.437" UserId="3552" />
  <row Id="6137" PostId="6124" Score="0" Text="thank you so much sir, it is working great and i learned a lot" CreationDate="2022-12-05T10:03:29.713" UserId="3319" />
  <row Id="6138" PostId="5024" Score="1" Text="I've got these commands working with version [8.13.1](https://github.com/prosopo/contract/blob/c256e8556d5571d32db1698b0c4d308617977ee4/package.json#L32-L41) of polkadot dependencies." CreationDate="2022-12-05T11:14:04.497" UserId="380" />
  <row Id="6139" PostId="6153" Score="1" Text="yes. It fixed my issue. Actually Problem was - I needed to create an account on relay chain by using any session key mentioned in para-chain spec and transferred balance in that new Account and use the same account to create the ParaID. so that they can do handshake. I had missed that and was using relay Sudo account for that which was root causes of it. Thanks @Alexandre Ribeiro" CreationDate="2022-12-05T12:04:01.320" UserId="3534" />
  <row Id="6140" PostId="6172" Score="0" Text="Thanks @Guantong, on the receiving side, it does not return on `ensure_signed(origin)` but the XCM call is successful - [function signature](https://pastecode.io/s/bcb1xwf5)&#xA;Do you know why? On the sending side I call it with `OriginKind::Native`, I define sovereign account as `pub const SovereignAccount: AccountId =&#xA;		sp_runtime::AccountId32::new(hex_literal::hex![&quot;7369626c07d10000000000000000000000000000000000000000000000000000&quot;]);` however it does not execute this check." CreationDate="2022-12-05T12:32:35.433" UserId="3013" />
  <row Id="6143" PostId="6190" Score="0" Text="Ah, then it might be that the recipes repo is just old and not compatible with the latest version of Rust or Substrate." CreationDate="2022-12-05T15:58:17.940" UserId="28" />
  <row Id="6145" PostId="6083" Score="0" Text="substrate-parachain-template has the same as me, should i make PR there to make it like darwinia? could you also exploain what the chain is? and where did you learn about it, are there good docs somewhere?" CreationDate="2022-12-05T16:34:29.353" UserId="298" />
  <row Id="6146" PostId="5564" Score="0" Text="thanks for this will look into it again." CreationDate="2022-12-05T16:36:04.830" UserId="298" />
  <row Id="6147" PostId="6218" Score="0" Text="There's not enough information here for people to help. Have you confirmed that the output of `new_session` for your pallet is correct? Have you checked the validators are correct? You can get them from a running chain via the explorer: Chain State &gt; session &gt; validators." CreationDate="2022-12-05T16:55:29.170" UserId="3407" />
  <row Id="6148" PostId="6218" Score="0" Text="Yes, they are correct. As I said if I stop `Alice` node, then `Bob` starts to produce blocks.  Which means the keys are correct." CreationDate="2022-12-05T16:56:59.543" UserId="251" />
  <row Id="6149" PostId="6209" Score="0" Text="it dosent work man" CreationDate="2022-12-05T16:58:35.227" UserId="2722" />
  <row Id="6150" PostId="6218" Score="0" Text="What about the set of authorities used by aura? If the set of authorities from aura is `[Alice, Bob]`, then both should be producing blocks equally, so there is more than likely an issue somewhere between your pallet and the set of aura authorities." CreationDate="2022-12-05T17:18:04.987" UserId="3407" />
  <row Id="6151" PostId="6218" Score="0" Text="I think they are correct. I put the code link in the question. Maybe you could find some issues?" CreationDate="2022-12-05T17:22:17.653" UserId="251" />
  <row Id="6153" PostId="6218" Score="0" Text="I read through the code in the link, and everything looks correct there. Are you making sure to wait 2 sessions before expecting a new set of authorities to take effect? You can check aura authorities on a running chain by Chain State &gt; aura &gt; authorities. If the aura authorities are correct (alice + bob) and bob can author blocks only when alice disconnects, that would imply an issue within / with aura setup or keys somehow." CreationDate="2022-12-05T17:46:28.670" UserId="3407" />
  <row Id="6154" PostId="6218" Score="0" Text="I posted a stupid answer. Maybe you could find out something from it." CreationDate="2022-12-05T17:48:13.177" UserId="251" />
  <row Id="6155" PostId="6190" Score="0" Text="Shouldn't it all be backwards compatible? It did work in the online playground thing, but that used a different Rust version indeed. @ShawnTabrizi" CreationDate="2022-12-05T21:00:00.540" UserId="3552" />
  <row Id="6156" PostId="6225" Score="0" Text="It does not work actually :/" CreationDate="2022-12-05T23:14:09.033" UserId="2548" />
  <row Id="6158" PostId="6190" Score="1" Text="Unfortunately rust is not always backwards compatible. You could try installing a version of rust which was available at that time in creating the recipe, but it could be that the old rust project does not work with the latest rust version. I suggest you open an issue to have the specific example you are looking for updated, or perhaps you ask questions on this forum on HOW you can fix the example, and what you tried and stuff." CreationDate="2022-12-06T00:38:37.367" UserId="28" />
  <row Id="6160" PostId="6083" Score="1" Text="No, you shouldn't make PR, it's just an initial template, those who use it will need to adjust it to their needs. And I'm a developer of Darwinia, this is my experience, I don't known where there are good docs." CreationDate="2022-12-06T03:41:35.513" UserId="1959" />
  <row Id="6161" PostId="6162" Score="0" Text="Nice. Successful? If so, I think you could answer your own question with some suggestions :)" CreationDate="2022-12-06T04:45:43.327" UserId="34" />
  <row Id="6164" PostId="6225" Score="0" Text="Why? Is it not compiling or what is the error?" CreationDate="2022-12-06T08:28:12.333" UserId="73" />
  <row Id="6165" PostId="6119" Score="0" Text="How many validator candidates you have (`staking.validators`) and how many validators you want? (`staking.validatorCount`)?" CreationDate="2022-12-06T09:25:08.573" UserId="167" />
  <row Id="6166" PostId="6230" Score="0" Text="Can we update/add collator/sudo key?" CreationDate="2022-12-06T09:40:08.603" UserId="3437" />
  <row Id="6167" PostId="6230" Score="2" Text="You should do that on-chain with a sudo call or governance. If you want to start a new chain, then it is fine." CreationDate="2022-12-06T09:51:59.690" UserId="251" />
  <row Id="6168" PostId="6155" Score="0" Text="Thanks @Shawn Tabrizi for your detailed explanation,  This really resolve my confusion." CreationDate="2022-12-06T10:17:54.883" UserId="3327" />
  <row Id="6169" PostId="6221" Score="1" Text="thank you this is extremely useful for my understanding, and i hope others too." CreationDate="2022-12-06T12:35:03.113" UserId="298" />
  <row Id="6170" PostId="6221" Score="1" Text="so if i use IsConcrete to match the Relay token, then i would need to make sure the sovereign account is funded?" CreationDate="2022-12-06T13:06:15.527" UserId="298" />
  <row Id="6172" PostId="6235" Score="1" Text="If you could add these to the `struct` field document. That would be great!" CreationDate="2022-12-06T14:02:41.047" UserId="251" />
  <row Id="6174" PostId="6158" Score="1" Text="Seems to be working with the latest version of smoldot and adding a ws bootnode. Thanks for the help!" CreationDate="2022-12-06T15:15:48.493" UserId="379" />
  <row Id="6175" PostId="6221" Score="1" Text="I'm not 100% sure what you're referencing but: &#xA;&#xA;The `LocalAssetTransactor` generally deals with assets in the XCM `MultiAsset` type itself, so it only touches the sovereign account if it's a reserve transfer in order to transfer to and from a sovereign account on a chain that is the reserve for a token. The sovereign account only needs to already be funded/exist if the reserve transfer contains a token that is not sufficient on its own, and therefore unable to create/keep an account alive." CreationDate="2022-12-06T15:22:21.520" UserId="481" />
  <row Id="6176" PostId="6221" Score="1" Text="If you're talking about where to fees are coming from, the fees come out of the XCM `MultiAsset` sent in the message. So if you were to transfer 2 DOT from one chain to the parachain template, the user on parachain-template would receive 2 DOT minus fee" CreationDate="2022-12-06T15:24:32.477" UserId="481" />
  <row Id="6177" PostId="2152" Score="0" Text="Is an extrinsic gossiped before or after it is validated? I am wondering whether an invalid extrinsic will be gossiped to other nodes." CreationDate="2022-12-06T16:46:14.600" UserId="3317" />
  <row Id="6178" PostId="2152" Score="1" Text="A transaction is always validated before it gets added to the pool. From that pool we gossip them to other nodes. Nevertheless, it could still happen that you gossip a transaction that the other nodes validates as invalid." CreationDate="2022-12-06T16:50:53.273" UserId="73" />
  <row Id="6180" PostId="6236" Score="0" Text="Please share your source yo get support, otherwise it will be very very difficult to if at all." CreationDate="2022-12-06T18:23:35.647" UserId="34" />
  <row Id="6181" PostId="6236" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-12-06T18:23:49.273" UserId="-1" />
  <row Id="6182" PostId="6181" Score="0" Text="I see. Thanks, it works :). Btw could I ask when it is appropriate to use `&lt;Runtime as TaggedTransactionQueue&lt;Block&gt;::validate_transaction()` and when it is appropriate to use `frame_system::Config::BaseCallFilter` to filter/validate transactions? Thanks again!" CreationDate="2022-12-06T18:26:19.323" UserId="684" />
  <row Id="6183" PostId="6236" Score="0" Text="@DanShields I don't I can do that. But there must be things I can check myself against the Substrate node." CreationDate="2022-12-06T18:53:20.830" UserId="3557" />
  <row Id="6184" PostId="6181" Score="0" Text="@SubstrateUser could you maybe create a separate question for this and give more context? I can not really follow on what you mean. Could you also tag my answer as solution if you are happy with it?" CreationDate="2022-12-06T19:34:20.003" UserId="73" />
  <row Id="6185" PostId="6181" Score="0" Text="Sure. Here is the separate question: https://substrate.stackexchange.com/questions/6239/runtime-as-taggedtransactionqueueblockvalidate-transaction-vs-frame-s. Thanks again :)" CreationDate="2022-12-06T20:06:59.800" UserId="684" />
  <row Id="6186" PostId="6181" Score="0" Text="Please also accept this as answer here :P" CreationDate="2022-12-06T21:58:23.437" UserId="73" />
  <row Id="6187" PostId="5978" Score="0" Text="The error can occur if you are not running the host locally. Since you have not provided the output from the node itself we cannot know if your node is running or not." CreationDate="2022-12-06T22:07:20.363" UserId="87" />
  <row Id="6188" PostId="5983" Score="0" Text="If you are running a Polkadot node and it is sync'd to the current block - you do not need to do anything at all. Simply clone and compile the more recent version of polkadot, and run it - no migration necessary. Why are you making this more complicated?" CreationDate="2022-12-06T22:13:07.213" UserId="87" />
  <row Id="6189" PostId="5643" Score="0" Text="Another idea I had was to create a sort of &quot;miscellaneous&quot; pallet for things that don't really belong anywhere else, but this also seems like a lot of overhead to expose one tiny value." CreationDate="2022-12-06T23:18:27.927" UserId="2441" />
  <row Id="6190" PostId="2618" Score="0" Text="For people who are interested in knowing what could go inside `impl SpreadAllocate for Type`, here is an example:&#xA;&#xA;```&#xA;    impl SpreadAllocate for Type {&#xA;        fn allocate_spread(_: &amp;mut KeyPtr) -&gt; Self {&#xA;            Type::Unknown&#xA;        }&#xA;    }&#xA;```" CreationDate="2022-12-06T23:30:44.400" UserId="318" />
  <row Id="6191" PostId="6172" Score="1" Text="Maybe you should add logs and debug it." CreationDate="2022-12-07T05:47:05.947" UserId="1959" />
  <row Id="6192" PostId="6241" Score="0" Text="one correction: Polkadot/Kusama relay chain block time is (and has been) [6 seconds](https://github.com/paritytech/polkadot/blob/d57049f1e4e5b00309cdd0297235a8de821f601d/runtime/polkadot/constants/src/lib.rs#L44)." CreationDate="2022-12-07T09:01:59.943" UserId="2025" />
  <row Id="6193" PostId="6240" Score="0" Text="Thank you for your answer. You mentioned that the runtime-api `validate_transaction()` is &quot;not required to be called by the node, the node could also just skip calling this.&quot; But I assume that a block-authoring node has to check `validate_transaction()` before it authors a block, correct?" CreationDate="2022-12-07T10:07:58.170" UserId="684" />
  <row Id="6194" PostId="6248" Score="0" Text="Yeah that was my intuition, thanks for the pointer.&#xA;In that case I'm wondering what would happen if the XCMP and DMP limits are hit, which are typically `MAXIMUM_BLOCK_WEIGHT / 4`.  Wouldn't the runtime then think it has `NORMAL_DISPATCH_RATION` amount of weight, usually 70%-75% of the `MAXIMUM_BLOCK_WEIGHT`, when it only has 50% remaining ?" CreationDate="2022-12-07T10:22:25.013" UserId="505" />
  <row Id="6196" PostId="6103" Score="0" Text="`stupidly thought that the actual weight (computation and db reads when mining the block), should be used to calculate the final transaction fees`: I'm afraid I don't understand why you say this. How is it an inefficiency? This is exactly the fees you should be charging." CreationDate="2022-12-07T11:11:13.807" UserId="139" />
  <row Id="6197" PostId="6240" Score="0" Text="Every node that follows the normal protocol will always call `validate_transaction` before a transaction enters the pool. A block producer will not call this function before pushing transactions to the block. As I already tried to explain above, the runtime needs to ensure that transactions that are being applied are valid. This means it will basically run the same checks as in `validate_transaction`." CreationDate="2022-12-07T12:27:41.820" UserId="73" />
  <row Id="6198" PostId="6251" Score="0" Text="If I don't perform the verification in the `#[pallet::call]`. I only do the verification in `#[pallet::validate_unsigned]`. What will happen? When the invalid extrinsic broadcast to other nodes' transaction pool, they will reject it I think. How does the attacker make a successful attack?" CreationDate="2022-12-07T13:39:17.337" UserId="251" />
  <row Id="6199" PostId="6251" Score="1" Text="What attacker? What kind of attack? I don't get it. Did you read what I have written above? That the same checks as in `validate_unsigned` are also done in `pre_dispatch` as this calls to `validate_unsigned` in the default implementation." CreationDate="2022-12-07T13:47:56.900" UserId="73" />
  <row Id="6200" PostId="2152" Score="0" Text="To the latter, is this why you need the same logic in the `pre-dispatch` and the `validate` function in the `SignedExtension`? Like a transaction can become invalid with time or a malicious node can gossip invalid extrinsics from his transaction pool?" CreationDate="2022-12-07T13:48:06.530" UserId="3317" />
  <row Id="6201" PostId="6251" Score="0" Text="Skip the transaction pool level verification. And make the invalid extrinsic successful. Because I don't verify it in runtime call. IIUC `validate_unsigned` only works for transaction pool verification which is off-chain." CreationDate="2022-12-07T13:50:42.547" UserId="251" />
  <row Id="6202" PostId="6251" Score="0" Text="Please take a look at this. If I remove these lines https://github.com/paritytech/polkadot/blob/d57049f1e4e5b00309cdd0297235a8de821f601d/runtime/common/src/claims.rs#L316-L319. Is that safe? We already did these verification in the `validate_unsigned`. Is that necessary?" CreationDate="2022-12-07T13:52:12.817" UserId="251" />
  <row Id="6203" PostId="6251" Score="0" Text="I updated my comment above to include your extra questions. You can not remove these lines as the code would not work anymore." CreationDate="2022-12-07T13:53:16.427" UserId="73" />
  <row Id="6204" PostId="6251" Score="1" Text="&gt; IIUC validate_unsigned only works for transaction pool verification which is off-chain.&#xA;&#xA;You did not read on what I have written above from the beginning.&#xA;&#xA;&gt; As you need to implement ValidateUnsigned for your pallet, it will already do the verification while applying the unsigned extrinsic.&#xA;&#xA;This works by having `pre_dispatch` call `validate_unsigned` in the default implementation of `pre_dispatch`." CreationDate="2022-12-07T13:54:39.313" UserId="73" />
  <row Id="6205" PostId="2152" Score="1" Text="No, the reason why you need the same logic for checking the validity in both is that a node is not required to call `validate_transaction`. This function is only an optimization for the node to reject transactions early and to clean up the tx pool. The runtime itself needs to ensure that when a transaction is applied to the state, that the transaction is valid. This means that the signature is correct, that the `nonce = current_nonce + 1` etc. All these checks are there to ensure that transactions are valid and the runtime can only trust &quot;itself&quot;." CreationDate="2022-12-07T14:00:12.363" UserId="73" />
  <row Id="6206" PostId="6251" Score="0" Text="Thanks so much! It seems I got lost in a dead loop before. So, if you provide a `signer` &#xA;parameter field in the `claim` call and compare it with the `eth_recover` result in the `validate_unsigned`. Then we could safely skip the second verification." CreationDate="2022-12-07T14:00:22.770" UserId="251" />
  <row Id="6207" PostId="6251" Score="0" Text="Yes that should work!" CreationDate="2022-12-07T14:01:15.310" UserId="73" />
  <row Id="6208" PostId="2152" Score="0" Text="Thanks again @bkchr" CreationDate="2022-12-07T14:03:50.277" UserId="3317" />
  <row Id="6209" PostId="6251" Score="0" Text="Thanks again! So, the first question's answer is NO. We don't need to re-do the verification. I'll improve my question. Maybe it made you confuse." CreationDate="2022-12-07T14:10:22.917" UserId="251" />
  <row Id="6210" PostId="6240" Score="0" Text="Thank you for your answer. **When you say &quot;the runtime needs to ensure that _transactions that are being applied are valid_&quot; - is this supposed to be done in `&lt;Runtime as sp_block_builder::BlockBuilder&lt;Block&gt;&gt;::apply_extrinsic()`?** (because I notice that in the node-template - it calls `Executive::apply_extrinsic(extrinsic)` (https://github.com/paritytech/substrate/blob/master/bin/node-template/runtime/src/lib.rs#L371-L373) - which calls the `SignedExtension::pre_dispatch()` function of all the signed extensions (i.e  of `CheckNonce`, `CheckWeight` etc.)" CreationDate="2022-12-07T14:21:04.900" UserId="684" />
  <row Id="6211" PostId="6251" Score="1" Text="No the answer is not really &quot;no&quot;. The answer is that you should do the same checks while applying as in validation. Point being where you do these checks, if you just use `pre_validate` then you don't need to do it in your call again. However, you could also implement `pre_validate` omitting all checks." CreationDate="2022-12-07T14:31:31.223" UserId="73" />
  <row Id="6212" PostId="6240" Score="0" Text="Yes exactly. You can use `SignedExtension`s to extend these checks in your runtime." CreationDate="2022-12-07T14:33:11.460" UserId="73" />
  <row Id="6213" PostId="6240" Score="0" Text="So then I am confused. What is the difference between `&lt;Runtime as sp_block_builder::BlockBuilder&lt;Block&gt;&gt;::apply_extrinsic()` and `&lt;BaseCallFilter as Contains::&lt;RuntimeCall&gt;&gt;::contains()`? Don't they both &quot;ensure that transactions that are being applied are valid&quot;? Thanks" CreationDate="2022-12-07T14:34:34.423" UserId="684" />
  <row Id="6214" PostId="6240" Score="0" Text="`BaseCallFilter` works on the &quot;call level&quot;, while `apply_extrinsic` works on the &quot;extrinsic/transaction level&quot;. One extrinsic can consist of multiple nested calls. A call is also not signed, the entire extrinsic is signed. You also don't have a nonce per call, you have one nonce per extrinsic. Etc. Basically these are just quite different concepts and levels. Both may share similar characteristics, but they are not the same. Like you may want to prevent that an inner proxy call changes the proxy setup. This extrinsic being valid, while the executed calls are trying forbidden operations." CreationDate="2022-12-07T14:45:07.970" UserId="73" />
  <row Id="6216" PostId="6238" Score="0" Text="I am not using WebSocket as a provider, instead I use HttpProvider." CreationDate="2022-12-07T15:03:37.073" UserId="3475" />
  <row Id="6217" PostId="6245" Score="0" Text="Maybe you could post the full log here?" CreationDate="2022-12-07T17:20:09.313" UserId="251" />
  <row Id="6218" PostId="6169" Score="1" Text="Did you try this https://polkadot.js.org/docs/api/start/rpc.custom/?" CreationDate="2022-12-07T17:30:29.550" UserId="251" />
  <row Id="6219" PostId="6172" Score="0" Text="I get the `BadSigner` error. Do I have to do something with the `OriginFor` on the receiving side? I am trying to find an example of this." CreationDate="2022-12-07T18:03:04.377" UserId="3013" />
  <row Id="6220" PostId="6241" Score="0" Text="@Iker Thanks for pointing it out. I completely misunderstood this." CreationDate="2022-12-07T18:24:19.733" UserId="3130" />
  <row Id="6222" PostId="6172" Score="1" Text="https://github.com/paritytech/polkadot/blob/v0.9.34/runtime/parachains/src/hrmp.rs#L475 May be this can be a reference." CreationDate="2022-12-08T02:36:26.097" UserId="1959" />
  <row Id="6223" PostId="6237" Score="0" Text="This is really helpful @Pierre" CreationDate="2022-12-08T06:30:08.823" UserId="3437" />
  <row Id="6224" PostId="6169" Score="0" Text="Yes indeed that’s how I got to this point." CreationDate="2022-12-08T10:50:30.740" UserId="298" />
  <row Id="6225" PostId="6266" Score="0" Text="Thank you. Its interesting" CreationDate="2022-12-08T12:22:18.960" UserId="546" />
  <row Id="6226" PostId="6172" Score="0" Text="If I understand this correctly, `ensure_parachain` + checking the para ID that matches the sending chain, is already safe enough? If an ordinary user sends, that check would fail, therefore I wouldn't have to decode it? Otherwise the `hrmp_init_open_channel` could be called by any user, is this correct? I don't even have to calculate the sovereign account in this case ..." CreationDate="2022-12-08T14:19:07.110" UserId="3013" />
  <row Id="6227" PostId="6172" Score="1" Text="Yeah `hrmp_init_open_channel` can't be called by ordinary user, if an ordinary user send the call, `ensure_parachain` would fail." CreationDate="2022-12-08T15:12:12.347" UserId="1959" />
  <row Id="6228" PostId="6273" Score="0" Text="Thanks for the answer Oliver :) I will try to adjust our code." CreationDate="2022-12-08T15:26:42.160" UserId="1793" />
  <row Id="6229" PostId="6238" Score="0" Text="perhaps if you share some of your code we can help you better" CreationDate="2022-12-08T16:10:06.320" UserId="2344" />
  <row Id="6230" PostId="6257" Score="0" Text="There is an example of creating a dynamic transaction [here](https://github.com/paritytech/subxt/blob/8484c18624783af36476fc5bf6a0f08d5363a3db/examples/examples/dynamic_multisig.rs#L37-L75) - it is a multisig example but still helpful - it uses a nested call just like batch does." CreationDate="2022-12-08T17:02:36.073" UserId="29" />
  <row Id="6231" PostId="6263" Score="0" Text="Have you tried using `batch` to batch the calls? [Here](https://github.com/paritytech/subxt/blob/8484c18624783af36476fc5bf6a0f08d5363a3db/examples/examples/dynamic_multisig.rs#L37-L75) is an example of using the dynamic api with `multisig` that may be helpful as it uses a nested inner call just like `batch` does." CreationDate="2022-12-08T17:09:25.280" UserId="29" />
  <row Id="6232" PostId="6270" Score="0" Text="thanks for your answer! Re: 1) how does the ui know where to get the custom rpc from, is not on a per chain basis, or can it apply to rpc method on any chain?" CreationDate="2022-12-08T21:37:19.077" UserId="298" />
  <row Id="6233" PostId="6270" Score="0" Text="So in this instead pure primitive tuple would be to just do (Vec&lt;ProposalState&gt;, u32) and leave out the RpcResult struct?" CreationDate="2022-12-08T21:38:13.200" UserId="298" />
  <row Id="6234" PostId="6270" Score="0" Text="&quot;Finally, try use state-call instead of custom rpc...&quot; what do you mean by this can you give an example? Do you mean to add it into the runtime/lib.rs amongst the rpc functions, not outside the runtime?" CreationDate="2022-12-08T21:39:48.147" UserId="298" />
  <row Id="6235" PostId="6271" Score="0" Text="i dont want to revert anything on relaychain just rollback parachain to previous block . will relaychain flag the new block as invalid? say block 100 is already included in relaychain , can i go back to block 75 and start submitting blocks from there?. Thank you for the help." CreationDate="2022-12-09T07:04:30.033" UserId="1947" />
  <row Id="6237" PostId="6275" Score="0" Text="Why do you need the sender's origin?" CreationDate="2022-12-09T08:27:52.190" UserId="3317" />
  <row Id="6239" PostId="6278" Score="1" Text="Doesn't this help https://substrate.stackexchange.com/questions/37/how-can-i-transfer-assets-using-xcm ?" CreationDate="2022-12-09T08:46:10.010" UserId="165" />
  <row Id="6240" PostId="6271" Score="0" Text="When you want to have a new block of your parachain be accepted by the relay chain, it needs to be a valid state transition from the last state the relay chain is aware of. If you are using Cumulus to build a parachain this last state in the relay chain is the block header. This block header contains the storage root and the next block needs to be build on top of this storage root. If this isn't the case your parachain validation code will reject the block. &#xA;&#xA;TLDR: You can not revert your parachain without forcing a different head of your parachain in the relay chain state." CreationDate="2022-12-09T10:51:01.527" UserId="73" />
  <row Id="6241" PostId="6263" Score="0" Text="Sorry for necroing. Regarding dynamic `batch` call: How would the `call` field be properly constructed? Say I have a `call: Vec&lt;DynamicTxPayload&gt;`, how would you derive the `Value`, e.g. `subxt::dynamic::tx(&quot;Utility&quot;, &quot;batch&quot;, vec![(&quot;call&quot;, do_something_with_calls)]`?" CreationDate="2022-12-09T11:16:19.140" UserId="280" />
  <row Id="6242" PostId="6278" Score="1" Text="the docs can be improved by following through with the basic example in a complete way (with perhaps the two examples requested above) rather than leaving the most important part ambiguous at section 5." CreationDate="2022-12-09T11:22:21.340" UserId="298" />
  <row Id="6243" PostId="6285" Score="0" Text="Does this answer your question? [Runtime upgrade error: parachainSystem.ValidationDataNotAvailable](https://substrate.stackexchange.com/questions/2309/runtime-upgrade-error-parachainsystem-validationdatanotavailable)" CreationDate="2022-12-09T12:37:38.687" UserId="251" />
  <row Id="6244" PostId="6285" Score="0" Text="ive done the enact and authorize route. I have done quite a few mainnet upgrades via sudo, https://decentration.medium.com/how-to-make-a-parachain-runtime-upgrade-2b0e063fe1f7&#xA;&#xA;On the first ever refendum upgrade i used sudo to create the `AuthorizeUpgrad`e, then i made a referendum to run the `enactAuthorizeUpgrade`, which took about 2 weeks, and produced an error. I think perhaps its a because i uploaded a compact comptessed wasm file, and i only have ever copy pasted wasm from a build spec." CreationDate="2022-12-09T13:07:41.257" UserId="298" />
  <row Id="6245" PostId="6293" Score="0" Text="i see i seee. right that really helps thanks!!" CreationDate="2022-12-09T13:28:29.647" UserId="298" />
  <row Id="6247" PostId="6294" Score="0" Text="Thanks a lot! You answer is really helpful. I solved this issue by defining account data type with the following.&#xA;And I marked your this answer, but I couldn't find the green check button on the old post.&#xA;&#xA;	```type ModifiedAccountInfo struct {&#xA;		Nonce       types.U32&#xA;		Consumers   types.U32&#xA;		Providers   types.U32&#xA;		Sufficients types.U32&#xA;		Data        struct {&#xA;			Free       types.U128&#xA;			Reserved   types.U128&#xA;			MiscFrozen types.U128&#xA;			FreeFrozen types.U128&#xA;		}&#xA;	}```" CreationDate="2022-12-09T14:03:24.460" UserId="3563" />
  <row Id="6248" PostId="6249" Score="0" Text="If you think the answer is useful, please check it." CreationDate="2022-12-09T14:07:16.973" UserId="251" />
  <row Id="6249" PostId="6236" Score="0" Text="debug logs? need something concrete to work on." CreationDate="2022-12-09T14:44:10.330" UserId="34" />
  <row Id="6252" PostId="6287" Score="0" Text="Sounds cool! Wanna share your work with us? Also please point out the right page that seems to be working on the Apps UI - I think https://github.com/polkadot-js/apps/search?q=chill will likely point you to the source to start looking for how it's done there." CreationDate="2022-12-09T17:02:51.437" UserId="34" />
  <row Id="6253" PostId="6288" Score="0" Text="https://support.polkadot.network/support/search/solutions?term=json might help here if, and only if, you have the password to unlock (decrypt) that json file. Likely need to import tp a supporting wallet to export a seed (if it's possible)" CreationDate="2022-12-09T18:00:58.223" UserId="34" />
  <row Id="6254" PostId="6286" Score="0" Text="https://substrate.stackexchange.com/help/how-to-answer -&gt; Always quote the most relevant part of an important link, in case the external resource is unreachable or goes permanently offline. Links to other websites should always be helpful, but avoid making it necessary to click on them as much as possible." CreationDate="2022-12-09T18:05:48.167" UserId="34" />
  <row Id="6255" PostId="6286" Score="1" Text="I think this is a helpful answer, but could be improve greatly with a bit more confidence and concrete text in it with an example? " CreationDate="2022-12-09T18:06:51.417" UserId="34" />
  <row Id="6256" PostId="6299" Score="1" Text="I think the only way is low down the `steps` and `repeat`. Maybe I'm wrong." CreationDate="2022-12-10T07:10:10.967" UserId="251" />
  <row Id="6257" PostId="6300" Score="0" Text="ahh nice find. I wonder why we would want to ignore the read and writes?" CreationDate="2022-12-10T08:00:41.130" UserId="590" />
  <row Id="6258" PostId="6279" Score="0" Text="I understand. I do not see any as robust as PSP22 token metadata interaction. Do you have a direct example that shows how to get the metadata of a PSP22 token from another contract, say using psp22Metadata::tokenSymbol() or a similar approach?" CreationDate="2022-12-10T08:14:04.030" UserId="3550" />
  <row Id="6259" PostId="6299" Score="0" Text="What is slow about it? Generating the signatures?" CreationDate="2022-12-10T14:37:19.320" UserId="94" />
  <row Id="6260" PostId="6294" Score="0" Text="Last time I used that the official advice was to define your own AccountData…" CreationDate="2022-12-10T14:38:29.007" UserId="94" />
  <row Id="6261" PostId="6290" Score="0" Text="Are you developing in Polkadot? Then there this happens automatically." CreationDate="2022-12-10T14:44:21.060" UserId="94" />
  <row Id="6262" PostId="6295" Score="0" Text="How `transferred_value()` is determined while contract contract execution?" CreationDate="2022-12-11T02:02:59.340" UserId="2844" />
  <row Id="6263" PostId="6304" Score="0" Text="Dupe of https://substrate.stackexchange.com/questions/4477/how-to-use-node-key Please refer to the answers contained on this link." CreationDate="2022-12-11T03:11:46.513" UserId="494" />
  <row Id="6264" PostId="6295" Score="0" Text="Is there a way to initiate transfer inside the method? I mean in my project's logic, the transferred value will be calculated within the method which cannot be predetermined, thus cannot be included with the call and cannot be read by self.env().transferred_value()" CreationDate="2022-12-11T11:09:00.217" UserId="3553" />
  <row Id="6266" PostId="6304" Score="1" Text="@BernardoRodrigues afaik the node-key is always `ed25519` but when I look at the chain spec I see a function `get_collator_keys_from_seed` which has a single line : `get_from_seed::&lt;AuraId&gt;(seed)`. I am confused, when we use the `--alice` option, is this function being called as the name would suggest `get_collator_keys_from_seed` ? If yes, I should expect the `node-key` to expect a `sr25519` key but when I used `//Alice`'s `sr25519` key instead, the node errored out with cannot parse as `ed25519`. So where does the `ed25519` key live/get inserted when using `--alice` option ?" CreationDate="2022-12-11T18:58:05.337" UserId="139" />
  <row Id="6267" PostId="6296" Score="1" Text="Thanks @Rodrigo" CreationDate="2022-12-12T05:21:45.493" UserId="2281" />
  <row Id="6268" PostId="6287" Score="0" Text="Above function that you talking is to chill validator.I want to show the list of inactive validators .Is there any rpc ??" CreationDate="2022-12-12T05:33:01.487" UserId="3575" />
  <row Id="6269" PostId="6301" Score="0" Text="Trying to use this module, but due to my limted rust knowledge I am facing problem. How can I use that code? I tried to install the crate with &quot;cargo install sp_application_crypto&quot;, but it cant find the crate. Do I need to install another crate or is it some other local error?" CreationDate="2022-12-12T07:22:04.123" UserId="3577" />
  <row Id="6270" PostId="6238" Score="1" Text="Please put any code examples in the original message. That way you can use code formatting and it's easier to see.&#xA;&#xA;Anyway, the HttpProvider has no api.on() event, so you can't trap it. Are you able to switch to a WsProvider?" CreationDate="2022-12-12T08:39:48.027" UserId="2344" />
  <row Id="6271" PostId="6301" Score="1" Text="Create a new cargo project. Edit the `Cargo.toml`'s dependencies field. Add `sp-core = &quot;7.0.0&quot;`." CreationDate="2022-12-12T09:10:21.427" UserId="251" />
  <row Id="6272" PostId="6271" Score="0" Text="Thank you @bkchr. i think i understand now." CreationDate="2022-12-12T09:11:08.947" UserId="1947" />
  <row Id="6273" PostId="6311" Score="1" Text="This has been answered here: https://substrate.stackexchange.com/questions/2585/how-can-manually-generate-same-address-from-mnemonic-as-subkey-without-it" CreationDate="2022-12-12T09:36:54.957" UserId="3002" />
  <row Id="6275" PostId="6298" Score="0" Text="But's not simply zero. It's `0 + 124200 * m + &lt;db_write_wight&gt; * m`. Doesn't it make sense in your case that weight is entirely dependent on `m`?" CreationDate="2022-12-12T12:09:35.523" UserId="2673" />
  <row Id="6276" PostId="6286" Score="1" Text="What exactly do you need? Would you like to know how the whole process of generating types we did in our case?" CreationDate="2022-12-12T13:43:22.927" UserId="1793" />
  <row Id="6277" PostId="6238" Score="0" Text="I've updated the original message. Unfortunately I cannot use WsProvider, because in my use case it is unreliable." CreationDate="2022-12-12T15:32:18.777" UserId="3475" />
  <row Id="6278" PostId="6295" Score="0" Text="You can only transfer value that is on the contract's account. If you add balance on the contract with some other payable method, you can still use `transfer(to, balance)`to send funds. To check contract balance use [ink_env::balance()](https://docs.rs/ink_env/3.3.1/ink_env/fn.balance.html)" CreationDate="2022-12-12T16:01:46.830" UserId="529" />
  <row Id="6279" PostId="6298" Score="0" Text="Totally understand the the total weight is not zero. What I did not understand was why this is zero: Weight::from_ref_time(0 as u64). I am not sure what that means." CreationDate="2022-12-12T17:38:07.587" UserId="590" />
  <row Id="6280" PostId="6299" Score="0" Text="Good point. I am going to dive a litter deeper." CreationDate="2022-12-12T17:38:46.800" UserId="590" />
  <row Id="6281" PostId="6295" Score="0" Text="@Maario [`ink_env::balance()`](https://docs.rs/ink_env/3.3.1/ink_env/fn.balance.html), returns executed contract balance, if we send this balance using `transfer(to, ink_env::balance())`, does all balance of the contract transferred? if so, will contract still exists with 0 balance?" CreationDate="2022-12-13T01:24:29.107" UserId="2844" />
  <row Id="6282" PostId="6305" Score="1" Text="Maybe this post will help you: https://substrate.stackexchange.com/questions/947/whats-a-convenient-way-to-look-up-a-dispatcherror-in-polkadot-js/956#956. And doesn't it fail at ensure_signed/ensure_root (BadOrigin)?" CreationDate="2022-12-13T07:59:48.183" UserId="3317" />
  <row Id="6283" PostId="6225" Score="0" Text="It does not store/mutate the new invoice." CreationDate="2022-12-13T10:57:41.683" UserId="2548" />
  <row Id="6284" PostId="6225" Score="0" Text="What new invoice, you mean that `status = true` is not stored? Are you sure that you have matching ids?" CreationDate="2022-12-13T11:34:02.040" UserId="73" />
  <row Id="6285" PostId="6325" Score="1" Text="This seems to be a known issue. The Kusama team is looking into it." CreationDate="2022-12-13T12:00:59.413" UserId="3002" />
  <row Id="6286" PostId="6327" Score="0" Text="You are mutating it to false and the contract.status is set to false, so yes the status is still false" CreationDate="2022-12-13T13:17:52.100" UserId="3317" />
  <row Id="6287" PostId="6327" Score="0" Text="It was a lapsus. I changed it to true." CreationDate="2022-12-13T13:23:25.440" UserId="2548" />
  <row Id="6289" PostId="6298" Score="1" Text="I think it simply means that the constant part of your weight is zero. Is it true for your code that when `m` is zero, it does nothing?" CreationDate="2022-12-13T13:29:07.193" UserId="2673" />
  <row Id="6290" PostId="6331" Score="0" Text="I would like to edit only one with id 17 and if status is false" CreationDate="2022-12-13T15:07:11.430" UserId="2548" />
  <row Id="6291" PostId="6298" Score="1" Text="ahh...got it. Thanks. This is true." CreationDate="2022-12-13T17:21:38.590" UserId="590" />
  <row Id="6292" PostId="6331" Score="0" Text="Still does not work :/" CreationDate="2022-12-13T17:23:16.413" UserId="2548" />
  <row Id="6294" PostId="6331" Score="0" Text="Where did you find the invoice for this method?&#xA;&#xA; &#xA;InvoiceSender::&lt;T&gt;::mutate(&amp;from, |invoice| {&#xA;    invoice.iter_mut().filter(|i| i.id == 17).for_each(|i| { // &lt;-- This line changed&#xA;        i.status = true;&#xA;    })&#xA;});" CreationDate="2022-12-13T19:00:08.273" UserId="2548" />
  <row Id="6295" PostId="6331" Score="0" Text="Line 209 is the method which needs to be fixed: https://github.com/herou/EscrowPallet/blob/invoice_system/pallets/invoice/src/lib.rs" CreationDate="2022-12-13T19:30:23.157" UserId="2548" />
  <row Id="6297" PostId="6305" Score="0" Text="That code doesn't work but may reveal some clues.  I was able to get the index of the error in the enum BUT not a human readable description.  ie.  the actual enum name and the pallet where the enum is defined.  &#xA;&#xA;```const failedEvent = chainEvents[&quot;system.ExtrinsicFailed&quot;];&#xA;console.dir(failedEvent.toJSON());```&#xA;&#xA;displays:&#xA;&#xA;```[&#xA;  { module: { index: 61, error: '0x03000000' } },&#xA;  { weight: 288499000, class: 'Normal', paysFee: 'Yes' }&#xA;]```&#xA;&#xA;where `0x03000000` means the enum at index 3 (4th when counting from 0)" CreationDate="2022-12-13T22:09:21.683" UserId="3142" />
  <row Id="6298" PostId="6305" Score="0" Text="There should be a more direct way of getting this or at least a way to get a human readable error enum name and pallet name." CreationDate="2022-12-13T22:11:30.583" UserId="3142" />
  <row Id="6299" PostId="6337" Score="0" Text="Did you get this issue after making some kind of a change? What version of Polkadot are you using i.e. `polkadot-v0.9.34`. Please include as much information as you can to be able to reproduce your issue." CreationDate="2022-12-13T23:23:34.200" UserId="29" />
  <row Id="6300" PostId="6337" Score="0" Text="Are you able to reproduce this issue ?&#xA;If in addition to what @Bruno has requested, you could provide logs with the following targets`db=trace,sync=trace` would add more information.&#xA;&#xA;On top of that, I am curious to know if forcing a fresh sync changes this behavior, understand getting rid of your actual db." CreationDate="2022-12-14T09:44:11.850" UserId="165" />
  <row Id="6301" PostId="6344" Score="0" Text="can you add `Cargo.toml` as well?" CreationDate="2022-12-14T12:09:50.987" UserId="2844" />
  <row Id="6302" PostId="6344" Score="0" Text="added in question!" CreationDate="2022-12-14T12:12:06.240" UserId="3241" />
  <row Id="6303" PostId="6146" Score="0" Text="I have instantiated the contract and run blueprint mentioned on [link](https://polkadot.js.org/docs/api-contract/start/code), and run the blueprint. I suppose my contract run on chain I suppose. I am able to access it in [ink](https://polkadot.js.org/) development node. The error appears while running the contract mentioned in [link](https://polkadot.js.org/docs/api-contract/start/contract.read/)" CreationDate="2022-12-14T13:27:59.697" UserId="3440" />
  <row Id="6304" PostId="6346" Score="0" Text="yes, you are right. I got :        &#xA;`error[E0463]: can't find crate for `panic_abort` `&#xA;and      &#xA;` error[E0152]: duplicate lang item in crate `std` (which `blst` depends on): `panic_impl`. `&#xA;&#xA;Is there a solution trough link you sent me?" CreationDate="2022-12-14T13:33:23.000" UserId="3241" />
  <row Id="6305" PostId="6346" Score="0" Text="for solution they have suggested to [`write or update crate which support no_std`](https://stackoverflow.com/a/59389341/14311968)" CreationDate="2022-12-14T13:41:26.483" UserId="2844" />
  <row Id="6306" PostId="6346" Score="0" Text="hmm.. i dont like that.. i hope there might be some other solution..." CreationDate="2022-12-14T13:44:47.163" UserId="3241" />
  <row Id="6307" PostId="6286" Score="0" Text="few steps would be great" CreationDate="2022-12-14T15:20:37.577" UserId="298" />
  <row Id="6308" PostId="6337" Score="0" Text="I've updated the post, it seems that the issue was that the node ran out of disk" CreationDate="2022-12-14T20:20:51.783" UserId="3598" />
  <row Id="6309" PostId="6337" Score="0" Text="That is great that you figured out the issue. Can you describe how you were able to figure out what the issue was? This can be helpful for others." CreationDate="2022-12-14T20:23:31.513" UserId="29" />
  <row Id="6316" PostId="6360" Score="0" Text="Do you mean I should add `--sync fast-unsafe` in the command to run node?" CreationDate="2022-12-15T11:36:02.563" UserId="3437" />
  <row Id="6317" PostId="4706" Score="0" Text="Hey @rob, following up on this. Is that confirmed a bug? I'm still unable to deregister the paraID" CreationDate="2022-12-15T13:00:25.713" UserId="2011" />
  <row Id="6318" PostId="6360" Score="0" Text="Yes, that would make it a bit faster. But it could be that it is already fast enough with normal sync." CreationDate="2022-12-15T13:34:20.937" UserId="94" />
  <row Id="6319" PostId="6308" Score="1" Text="That would be so cool. Then you would need less things natively installed on your machine to get started." CreationDate="2022-12-15T14:26:27.987" UserId="85" />
  <row Id="6320" PostId="6367" Score="0" Text="This error is just when you add the nicks pallet? or without the nick pallet you have it too" CreationDate="2022-12-15T14:59:19.653" UserId="2762" />
  <row Id="6321" PostId="6367" Score="0" Text="Only upon adding the nicks pallet." CreationDate="2022-12-15T15:01:50.380" UserId="3607" />
  <row Id="6322" PostId="6345" Score="0" Text="What did you change in the spec?" CreationDate="2022-12-15T16:20:35.603" UserId="3317" />
  <row Id="6323" PostId="6367" Score="0" Text="Does this answer your question? [How to resolve duplicate lang item error?](https://substrate.stackexchange.com/questions/1307/how-to-resolve-duplicate-lang-item-error)" CreationDate="2022-12-15T16:54:33.167" UserId="94" />
  <row Id="6324" PostId="5181" Score="0" Text="Is there any way to get nominator reward from nominator address during selected era?&#xA;I think browsing events is too time consuming." CreationDate="2022-12-15T16:58:40.547" UserId="2581" />
  <row Id="6325" PostId="6367" Score="0" Text="I have tried the suggestions solutions but could not resolve the error. In my case, the error goes away if I comment out the code related to the nicks pallet from the lib.rs file." CreationDate="2022-12-15T17:47:53.200" UserId="3607" />
  <row Id="6326" PostId="6175" Score="0" Text="Were you able to resolve this? I am getting a similar error." CreationDate="2022-12-15T18:56:40.990" UserId="3607" />
  <row Id="6327" PostId="6370" Score="1" Text="I think the benchmarking bypasses the call-filter anyway, so in that case it would not need to be whitelisted.  &#xA;The effort will then be accounted for in the `ExtrinsicBaseWeight`." CreationDate="2022-12-15T20:28:54.333" UserId="94" />
  <row Id="6328" PostId="6370" Score="2" Text="Yes that is right. I wanted to give some broader explanation around possible other questions." CreationDate="2022-12-15T23:20:58.313" UserId="73" />
  <row Id="6329" PostId="6346" Score="0" Text="sadly there is no other solution @NikolaBozin" CreationDate="2022-12-16T00:25:34.757" UserId="170" />
  <row Id="6330" PostId="6373" Score="0" Text="should I omit `#[ink(message)]` then?" CreationDate="2022-12-16T01:21:35.947" UserId="2844" />
  <row Id="6331" PostId="6371" Score="1" Text="[https://use.ink/basics/events/#event-definition](https://use.ink/basics/events/#event-definition) here `#[ink(topic)]` in the Event are indexed. Does that means are they searchable, if so, then where and how one can search?" CreationDate="2022-12-16T01:39:16.050" UserId="2844" />
  <row Id="6333" PostId="6270" Score="1" Text="@Decentration `So in this instead pure primitive tuple would be to just do (Vec&lt;ProposalState&gt;, u32) and leave out the RpcResult struct?`  --- Yeah" CreationDate="2022-12-16T03:55:58.700" UserId="393" />
  <row Id="6334" PostId="6270" Score="1" Text="@Decentration &quot;what do you mean by this can you give an example? Do you mean to add it into the runtime/lib.rs amongst the rpc functions, not outside the runtime?&quot; -- Yes, define it in runtime instead of rpc, and then call it with state_call in the frontend. You can take https://github.com/coderfengyun/local-node-scripts/blob/93d380cac64ee6e826c361a2c2f527f986be9837/index.ts#L71 as the frontend example. And take https://github.com/parami-foundation/parami-blockchain/pull/41 as the substrate example." CreationDate="2022-12-16T04:01:37.997" UserId="393" />
  <row Id="6335" PostId="6270" Score="1" Text="@Decentration 1) how does the ui know where to get the custom rpc from, is not on a per chain basis, or can it apply to rpc method on any chain? -- First, you can find your new rpc methods in polkadot.js &quot;rpc calls -&gt; rpc -&gt; methods&quot;. Second, you should define the rpc method in frontend's code, refer to polkadot.js.org/docs/api/start/rpc.custom" CreationDate="2022-12-16T04:02:18.567" UserId="393" />
  <row Id="6336" PostId="6362" Score="0" Text="What are you trying to do more specifically? why do you need it?" CreationDate="2022-12-16T06:36:12.540" UserId="34" />
  <row Id="6337" PostId="6362" Score="0" Text="For example: perhaps you want to have only _specific origins_ to successfully pass an ensure origin check otherwise the call fails, and although not &quot;hidden&quot; (or not actually included in the runtime) it could be non-functional for anyone but specific (or no) origins." CreationDate="2022-12-16T06:40:57.673" UserId="34" />
  <row Id="6338" PostId="6360" Score="0" Text="Well don't you need to sync a collator to connect to rococo? specifically the embedded relay chain node. Perhaps these would be good to request be made available  for more rapid testing there... especially once parathreads are possible there." CreationDate="2022-12-16T06:45:56.320" UserId="34" />
  <row Id="6339" PostId="6367" Score="0" Text="I was able to resolve this error by using version: polkadot-v0.9.31 instead of polkadot-v0.9.35" CreationDate="2022-12-16T06:54:36.373" UserId="3607" />
  <row Id="6340" PostId="6373" Score="0" Text="I updated my answer)" CreationDate="2022-12-16T10:02:08.997" UserId="170" />
  <row Id="6341" PostId="6360" Score="1" Text="The OP did not mention what they actually want to do. With the node splitting you can just use a trusted remote node instead of syncing a relay node." CreationDate="2022-12-16T10:53:17.520" UserId="94" />
  <row Id="6342" PostId="6373" Score="0" Text="thanks for help I need to define `pub fn delegate(&amp;mut self, to: AccountId)` to as `mut`, I have only found to use `&amp;mut` as  `pub fn delegate(&amp;mut self, to: &amp;mut AccountId)` but #[ink(message)] doesn't use references." CreationDate="2022-12-16T11:30:38.153" UserId="2844" />
  <row Id="6343" PostId="2946" Score="0" Text="what if i want to pass an empty option into `api.query.system.account()`, which then produces an array of all addresses rather than info on just one? https://substrate.stackexchange.com/questions/6377/how-to-produce-empty-paramter-in-an-option" CreationDate="2022-12-16T11:44:30.050" UserId="298" />
  <row Id="6344" PostId="2795" Score="0" Text="what if i want to pass an empty option into api.query.system.account(), which then produces an array of all addresses rather than info on just one? https://substrate.stackexchange.com/questions/6377/how-to-produce-empty-paramter-in-an-option" CreationDate="2022-12-16T11:47:03.287" UserId="298" />
  <row Id="6345" PostId="6373" Score="0" Text="the `&amp;mut self` or `&amp;self` part is necessary for a message.  `mut self` means that the message will mutate the contract storage, while `self` is only a view function" CreationDate="2022-12-16T12:28:53.047" UserId="170" />
  <row Id="6346" PostId="6354" Score="0" Text="cargo --help , -v  its ok for verbosity. both toolchain and environment are ok  , though the environment for arch based is incomplete . you must set two env OPENSSL_LIB_DIR and OPENSSL_INCLUDE_DIR . i think recently for arch based need to have another env variables." CreationDate="2022-12-16T14:23:21.780" UserId="3559" />
  <row Id="6347" PostId="6383" Score="0" Text="What do you mean you have uploaded &quot;string&quot; in that block? Have you executed an extrinsic and you want to see the storage? Please add more info." CreationDate="2022-12-16T19:47:28.283" UserId="29" />
  <row Id="6348" PostId="6383" Score="0" Text="&quot;string&quot; is any value stored in the transaction. Consider that i store &quot;abcd&quot; in a trasaction and i have transaction hash and block hash. How can i retrieve data stored using them?" CreationDate="2022-12-16T21:40:04.180" UserId="3440" />
  <row Id="6349" PostId="6357" Score="1" Text="To complete this answer:&#xA;&#xA;```const entries = await api.query.staking.validators.entries();&#xA;const validators = entries.map(([key]) =&gt; {&#xA;    return key.args.map((k) =&gt; k.toHuman());&#xA;});```" CreationDate="2022-12-17T05:32:00.763" UserId="3225" />
  <row Id="6350" PostId="4952" Score="0" Text="What is the fix? I got same issue and reported here https://substrate.stackexchange.com/questions/6391/problem-in-syncing-with-rococo-getting-database-block-import-error" CreationDate="2022-12-18T10:27:24.550" UserId="3437" />
  <row Id="6354" PostId="6383" Score="0" Text="So, what you have is basically a `system::remark` extrinsic? in that case you can iterate and find the right extrinsic via `signedBlock.block.extrinsics`." CreationDate="2022-12-18T14:17:47.577" UserId="167" />
  <row Id="6355" PostId="6392" Score="0" Text="Can you please write down [specific instructions](https://stackoverflow.com/help/minimal-reproducible-example) to duplicate your error" CreationDate="2022-12-19T03:35:55.333" UserId="28" />
  <row Id="6356" PostId="6387" Score="0" Text="Please [provide steps](https://stackoverflow.com/help/minimal-reproducible-example) to reproduce this problem." CreationDate="2022-12-19T04:06:18.090" UserId="28" />
  <row Id="6358" PostId="2965" Score="0" Text="Hi @joepetrowski. How can I check the block height of the era N?" CreationDate="2022-12-19T09:11:19.653" UserId="2581" />
  <row Id="6359" PostId="6396" Score="0" Text="I think it's fine substrate don't handle nested delegation, but we should correct fronted implementation and make users know it. I have another doubt, does nested delegation work in history runtime versions? I guess current polkadot/api implementation must have its reasons." CreationDate="2022-12-19T09:25:49.680" UserId="409" />
  <row Id="6360" PostId="6392" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2022-12-19T11:23:06.597" UserId="-1" />
  <row Id="6362" PostId="2965" Score="0" Text="An era will map to a range of blocks. For past blocks/eras, you will need to index the `EraPaid` events and block height at which each is emitted. For future eras, the best you can do is predict a maximum block number for the start of a future era. Since block production slots may be skipped, the actual block number when that future era starts could be lower." CreationDate="2022-12-19T12:35:38.267" UserId="620" />
  <row Id="6363" PostId="6345" Score="0" Text="these are two different specs. one is the `westend-local` that i set in the polkadot-launch config file. other is this: https://raw.githubusercontent.com/PureStake/moonbeam/runtime-1103/specs/alphanet/parachain-embedded-specs-v8.json" CreationDate="2022-12-19T15:35:04.787" UserId="3602" />
  <row Id="6364" PostId="4952" Score="0" Text="Hi, I found a way to fix it here: https://github.com/paritytech/substrate/issues/10103" CreationDate="2022-12-19T16:24:40.203" UserId="379" />
  <row Id="6365" PostId="6345" Score="0" Text="Could you provide more information and the steps required to reproduce your situation. I am not able to help you atm" CreationDate="2022-12-19T16:33:50.930" UserId="3317" />
  <row Id="6366" PostId="6410" Score="0" Text="I'd have a look at this and please let us know if there is still something unclear: https://substrate.stackexchange.com/questions/6103/calculating-actual-weights-for-extrinsics" CreationDate="2022-12-19T16:40:14.730" UserId="3317" />
  <row Id="6367" PostId="6411" Score="0" Text="Thanks, in the your referenced code the function get the lenght directly from the provided encoded extrinsic, which makes sense. Wondering why in polkadot-js you need to provide it as a different parameter.  As a side note, you can pass 0 as the `len` param to `api.call.transactionPaymentApi.queryInfo` and still get the same response." CreationDate="2022-12-19T17:24:18.810" UserId="321" />
  <row Id="6368" PostId="2965" Score="0" Text="How can I index ```EraPaid``` events for past eras? Actually, I am going to index events for selected past era, so I need to know start, end block number of selected era. Could you explain in detail?" CreationDate="2022-12-19T17:26:56.190" UserId="2581" />
  <row Id="6370" PostId="2965" Score="0" Text="Any idea @joepetrowski?" CreationDate="2022-12-20T01:41:26.343" UserId="2581" />
  <row Id="6371" PostId="5159" Score="0" Text="I Guess not the trait `Decode` is not implemented for `sp_runtime::BoundedVec&lt;&lt;T as frame_system::Config&gt;::AccountId, u32&gt;`" CreationDate="2022-12-20T02:21:08.987" UserId="1950" />
  <row Id="6372" PostId="6415" Score="0" Text="I am using rustc 1.64.0 (a55dd71d5 2022-09-19), rustc 1.66.0-nightly (c97d02cdb 2022-10-05)" CreationDate="2022-12-20T08:18:18.377" UserId="1891" />
  <row Id="6373" PostId="6398" Score="0" Text="Thanks for the reply!  &#xA;I'm having a hard time figuring out if the data is multiple or types (string, int, etc) in the polkadot.js documentation.  &#xA;Is there any documentation or other documentation that shows this?  &#xA;Should I try to run it or check with the execution results?" CreationDate="2022-12-20T08:30:04.780" UserId="3474" />
  <row Id="6374" PostId="6415" Score="0" Text="I see. The log is a warning, not an error. Could you put the full log here? Or could you push your branch? I'll take a look." CreationDate="2022-12-20T08:41:52.910" UserId="251" />
  <row Id="6375" PostId="6411" Score="0" Text="Updated my answer which might help. When you pass 0 the fees that are calculated are incorrect" CreationDate="2022-12-20T08:47:01.133" UserId="3317" />
  <row Id="6376" PostId="6415" Score="0" Text="Thank you, i have pushed the code here https://github.com/ArnoldTumukunde/pallet-did/tree/upgrade-to-substrate-v4" CreationDate="2022-12-20T08:50:28.197" UserId="1891" />
  <row Id="6377" PostId="6411" Score="0" Text="Thanks for the detailed answer and the references!" CreationDate="2022-12-20T09:22:08.713" UserId="321" />
  <row Id="6378" PostId="6415" Score="0" Text="I didn't see any update. It still uses decl macro." CreationDate="2022-12-20T09:24:58.510" UserId="251" />
  <row Id="6379" PostId="6415" Score="0" Text="Checkout the branch `upgrade-to-substrate-v4`" CreationDate="2022-12-20T09:43:23.883" UserId="1891" />
  <row Id="6380" PostId="6415" Score="0" Text="Updated my answer." CreationDate="2022-12-20T09:49:18.983" UserId="251" />
  <row Id="6381" PostId="6275" Score="0" Text="just need it in logic" CreationDate="2022-12-20T09:59:01.723" UserId="3571" />
  <row Id="6382" PostId="6415" Score="0" Text="Thank you, i can't believe i didn't catch that." CreationDate="2022-12-20T10:17:33.943" UserId="1891" />
  <row Id="6383" PostId="6410" Score="0" Text="I looked into it and the concepts are quite clear to me, however, it doesn't address the question - can one report the actual weight used but charge fee on a different weight to disincentivize spamming extrinsics with a higher weight hint to maliciously trick the tx pool?" CreationDate="2022-12-20T11:22:10.980" UserId="2759" />
  <row Id="6384" PostId="2965" Score="0" Text="Fetch every block and store the events in your own database." CreationDate="2022-12-20T11:37:57.983" UserId="620" />
  <row Id="6385" PostId="2965" Score="0" Text="To get past era start block, I need to fetch every block? That is too difficult?" CreationDate="2022-12-20T11:59:21.593" UserId="2581" />
  <row Id="6387" PostId="2639" Score="0" Text="This doesn't include the tip though right? where would you query that?" CreationDate="2022-12-20T14:16:49.040" UserId="480" />
  <row Id="6388" PostId="6410" Score="1" Text="I don't fully understand your reasoning, but yes you can. You could write your own pallet where you implement the post-dispatch logic differently." CreationDate="2022-12-20T14:27:28.367" UserId="3317" />
  <row Id="6391" PostId="6424" Score="0" Text="My system specification is same as yours and I just created fresh project by using `cargo-contracts 2.0 beta` and uploaded but haven't faced any issue. [there is same issue as yours `contracts.CodeRejected`](https://substrate.stackexchange.com/questions/6131/coderejected-when-trying-to-deploy-ink-smart-contract-using-m1-pro) but it's on ink 3.3.0" CreationDate="2022-12-21T01:35:29.140" UserId="2844" />
  <row Id="6392" PostId="6412" Score="0" Text="It's a little bit hard to diagnose this long context. If there is a code link that would be better." CreationDate="2022-12-21T03:22:24.887" UserId="251" />
  <row Id="6393" PostId="6433" Score="0" Text="It has to be bounded , that's the issue I am facing" CreationDate="2022-12-21T07:13:07.653" UserId="1950" />
  <row Id="6394" PostId="6433" Score="0" Text="Then, you should use `BoundedVec`." CreationDate="2022-12-21T07:38:56.587" UserId="251" />
  <row Id="6395" PostId="6430" Score="0" Text="No I did not want to selectively migrate data but move an entire parachain with all of its state and history to another relay. For production chains, one can use the cumulus pallet [solo-to-para](https://github.com/paritytech/cumulus/tree/master/pallets/solo-to-para) as [KILT have already done](https://polkadot.network/blog/first-parachain-successfully-migrates-from-kusama-to-polkadot) when moving from Kusama to Polkadot.&#xA;&#xA;However, since this is a testnet, we have full control of the relay and can just force stuff. My question basically boils down to the correct usage of `codeSubstitutes`." CreationDate="2022-12-21T07:44:24.623" UserId="280" />
  <row Id="6396" PostId="6421" Score="0" Text="On a note: We managed to build blocks after resynching a collator from scratch after step 8. Would love to know why the parachain was stuck on the last finalized block and not able to prune it automatically." CreationDate="2022-12-21T07:45:44.790" UserId="280" />
  <row Id="6397" PostId="6430" Score="1" Text="The thing you are trying to do will be difficult as the previous state of R is on P, and you want to move it to a new relay chain which have its own validators that need to verify the data. So, that you can achieve through data migration, also you can migrate your whole data but to a new parachain on the relay chain that you want to move it to. Kilt has also done the same thing when moving from Kusama to Polkadot, it started its parachain with genesis block on Polkadot." CreationDate="2022-12-21T08:10:12.690" UserId="354" />
  <row Id="6398" PostId="6409" Score="1" Text="Thanks Its working when changed the types." CreationDate="2022-12-21T08:44:34.200" UserId="3623" />
  <row Id="6399" PostId="6316" Score="0" Text="Thanks for the help. Seems like newer substrate -node-template has warp mode configured as well but i am not sure if this can be configured on parachain." CreationDate="2022-12-21T09:08:22.790" UserId="1947" />
  <row Id="6400" PostId="6424" Score="0" Text="Mind sharing your compile command?" CreationDate="2022-12-21T09:57:39.247" UserId="496" />
  <row Id="6401" PostId="6437" Score="0" Text="There you go: `0x90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22` :)" CreationDate="2022-12-21T10:25:45.470" UserId="2673" />
  <row Id="6402" PostId="6436" Score="1" Text="How about adding a constant with minimum reward and requiring it to be no less than existential deposit?" CreationDate="2022-12-21T10:40:34.590" UserId="2673" />
  <row Id="6403" PostId="6436" Score="0" Text="This can be a good way to solve it. However this is not a change in the pallet itself no? Requiring it to be no less than existential deposit is something that has to be done in the parachain node when integrating the pallet?" CreationDate="2022-12-21T10:48:16.523" UserId="2762" />
  <row Id="6404" PostId="6410" Score="0" Text="Yeah seems I'd either need to modify `transaction-payment` or write my own payment pallet to take into account the `DispatchInfo` &amp; `PostDispatchInfo` weights for charging fees." CreationDate="2022-12-21T11:02:03.373" UserId="2759" />
  <row Id="6405" PostId="6436" Score="0" Text="Yes, I believe the requirement should apply to how the pallet is configured in the runtime." CreationDate="2022-12-21T11:17:56.533" UserId="2673" />
  <row Id="6407" PostId="6355" Score="0" Text="How about the private key? It should be possible to somehow recover it from the json. Do you know a way?" CreationDate="2022-12-21T14:50:52.353" UserId="3577" />
  <row Id="6408" PostId="6355" Score="0" Text="You can get the KeyPair and with that sign: https://polkadot.js.org/docs/keyring/start/basics#keypair-types But not the private key directly" CreationDate="2022-12-21T15:22:26.070" UserId="2762" />
  <row Id="6409" PostId="6355" Score="0" Text="Doesnt &quot;keyPair&quot; mean the private and public key?" CreationDate="2022-12-21T15:37:45.737" UserId="3577" />
  <row Id="6410" PostId="6355" Score="0" Text="The private Key is on it, but you can not &quot;extract&quot; the raw private key. Check this answer where is explained in more detail: https://substrate.stackexchange.com/a/3286/2762" CreationDate="2022-12-21T15:49:37.553" UserId="2762" />
  <row Id="6411" PostId="6441" Score="1" Text="Can you share the XCM here you used for this?" CreationDate="2022-12-21T16:44:42.927" UserId="34" />
  <row Id="6413" PostId="4425" Score="0" Text="Any news about how you find the solution?" CreationDate="2022-12-21T16:50:48.593" UserId="2762" />
  <row Id="6415" PostId="6443" Score="1" Text="Thanks this solved this problem 100% I added a screen shot of the solution to the post." CreationDate="2022-12-22T02:00:18.477" UserId="116" />
  <row Id="6417" PostId="6441" Score="1" Text="I`ve used the polkadot xcm of version 0.9.32" CreationDate="2022-12-22T05:26:43.567" UserId="2372" />
  <row Id="6418" PostId="6437" Score="0" Text="@AdamWierzbicki, I need sample code in golang to do this. I can convert this using online tool." CreationDate="2022-12-22T05:53:34.247" UserId="3623" />
  <row Id="6419" PostId="6452" Score="0" Text="But in my example, 10UNITS in the pot and 2 UNITS the ED, if is trying to send the prize to player A first (9 UNITS) it will success but the account will be reaped and the second will fail, no?." CreationDate="2022-12-22T08:10:34.173" UserId="2762" />
  <row Id="6420" PostId="6439" Score="0" Text="Dont we have another way to expose our private key from raw seed/mnemonic phrase?" CreationDate="2022-12-22T08:28:39.713" UserId="445" />
  <row Id="6421" PostId="6437" Score="0" Text="Alright, got you. Please check out the answer below." CreationDate="2022-12-22T09:22:37.637" UserId="2673" />
  <row Id="6422" PostId="6452" Score="0" Text="I see. You can reserve 2 UNIT for it. IIRC, Acala or Phala did that in this way before." CreationDate="2022-12-22T10:25:13.460" UserId="251" />
  <row Id="6423" PostId="6452" Score="0" Text="Exactly! This was my original question how I can fund the pallet with this 2 UNITS? ." CreationDate="2022-12-22T10:50:45.550" UserId="2762" />
  <row Id="6424" PostId="6454" Score="0" Text="[This](https://github.com/paritytech/ink/pull/967#issuecomment-949361227) might help." CreationDate="2022-12-22T11:38:59.917" UserId="380" />
  <row Id="6425" PostId="6399" Score="0" Text="yes it worked some where closer. I can see the data that  i am looking for and ican extract it" CreationDate="2022-12-22T12:32:29.067" UserId="3440" />
  <row Id="6426" PostId="6460" Score="0" Text="Have you tried setting it to the workspace directory, as the message suggests? (that would be `/root/code/darwinia-network/darwinia-2.0` in your case)." CreationDate="2022-12-22T12:41:57.707" UserId="2673" />
  <row Id="6427" PostId="2906" Score="0" Text="[Parameterizing over database accesses](https://docs.substrate.io/v3/runtime/weights-and-fees/#parameterizing-over-database-accesses) is now a broken link" CreationDate="2022-12-22T13:39:32.090" UserId="83" />
  <row Id="6428" PostId="6446" Score="0" Text="It is impossible to extract the Private Key from the Public Key, otherwise it would not be secure." CreationDate="2022-12-22T15:51:36.150" UserId="94" />
  <row Id="6429" PostId="6464" Score="0" Text="Does this answer your question? [Substrate Rust generate key pair using sp\_core::crypto::Pair](https://substrate.stackexchange.com/a/2285/94)" CreationDate="2022-12-22T15:53:17.483" UserId="94" />
  <row Id="6430" PostId="6465" Score="0" Text="I want to use subkey generate in my rust code, so that I can get accountId, seedphrase https://github.com/paritytech/substrate/tree/master/bin/utils/subkey#json-output" CreationDate="2022-12-22T16:31:11.667" UserId="213" />
  <row Id="6431" PostId="6465" Score="0" Text="subkey is a command line tool, not sure how to use in my rust code." CreationDate="2022-12-22T16:31:46.467" UserId="213" />
  <row Id="6432" PostId="6441" Score="1" Text="I mean the xcm message itself, in full." CreationDate="2022-12-22T18:05:51.247" UserId="34" />
  <row Id="6433" PostId="3404" Score="0" Text="i tried doing that. running `lscpu` said my architecture was `x86_64` but when i ran `RUSTFLAGS=&quot;-C target-cpu=x86_64 -C codegen-units=1&quot; cargo build --release --target-dir ./target` it output `'x86_64' is not a recognized processor for this target (ignoring processor)` `LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!`, and when i added `-C codegen-units=1` too, it output `error: options '-C embed-bitcode=no' and '-C lto' are incompatible`" CreationDate="2022-12-22T20:33:08.263" UserId="83" />
  <row Id="6434" PostId="6463" Score="0" Text="I'd certainly like to help if there's some existing work to build upon." CreationDate="2022-12-22T20:40:08.983" UserId="2759" />
  <row Id="6435" PostId="5181" Score="0" Text="Hello @AlexBean I can get stash account and reward amount from event. How can I get validator account address and era number? So, this reward is which era's reward and which validator rewarded." CreationDate="2022-12-23T04:36:24.463" UserId="2581" />
  <row Id="6437" PostId="6465" Score="0" Text="Ya, used tiny-bip39 to generate the seed. https://crates.io/crates/tiny-bip39" CreationDate="2022-12-23T06:09:41.577" UserId="213" />
  <row Id="6439" PostId="6470" Score="0" Text="Thanks. I'll take a look at that option." CreationDate="2022-12-23T09:03:48.103" UserId="2136" />
  <row Id="6440" PostId="6419" Score="0" Text="Is there more documentation for the ParachainInclusion CandidateBacked event about when its triggered?" CreationDate="2022-12-23T09:17:16.743" UserId="3438" />
  <row Id="6441" PostId="5181" Score="0" Text="Check this to get the era: https://polkadot.js.org/docs/api/start/api.query.other/#map-keys--entries" CreationDate="2022-12-23T09:37:58.303" UserId="2762" />
  <row Id="6442" PostId="5181" Score="0" Text="For a different question, I recommend you to open a new Question in the forum instead of asking in the comments. Would benefit people from the community too" CreationDate="2022-12-23T09:39:02.053" UserId="2762" />
  <row Id="6443" PostId="6451" Score="0" Text="The extrinsic didn't show an error? Your ump.ExecutedUpward event shows  an error: FailedToTransactAssets" CreationDate="2022-12-23T11:19:22.413" UserId="2762" />
  <row Id="6444" PostId="5181" Score="0" Text="https://substrate.stackexchange.com/questions/6475/get-era-and-validator-address-from-rewarded-event. I am not sure how to get era from above comment. Could you check new question and answer there @AlexBean?" CreationDate="2022-12-23T11:57:10.683" UserId="2581" />
  <row Id="6445" PostId="5323" Score="0" Text="Sounds like scale decoding fun. If there was a byte (eight bits) then that would shift things 8 times leading to * 256. Could one be using compressed encoding and the other not?" CreationDate="2022-12-23T12:38:22.233" UserId="85" />
  <row Id="6446" PostId="6454" Score="0" Text="could you show your Cargo.toml file?" CreationDate="2022-12-23T12:45:54.317" UserId="170" />
  <row Id="6447" PostId="6392" Score="0" Text="@polkadot/util has multiple versions, ensure that there is only one installed.&#xA;Either remove and explicitly install matching versions or dedupe using your package manager.&#xA;The following conflicting packages were found:&#xA;	cjs 10.2.1 	node_modules/@astar-network/swanky-cli/node_modules/@polkadot/util-crypto/node_modules/@polkadot/util/cjs&#xA;	cjs 10.1.13	node_modules/@astar-network/swanky-cli/node_modules/@polkadot/util/cjs" CreationDate="2022-12-23T13:22:19.660" UserId="79" />
  <row Id="6448" PostId="3348" Score="0" Text="@junyuanwei did you discover what the issue was?" CreationDate="2022-12-23T13:50:08.473" UserId="179" />
  <row Id="6451" PostId="6483" Score="0" Text="I know in which era event is produced. What I want to know is, which era's reward is triggered. According to my example, this reward event is produced in 4576. And 4575 era's reward is given to nominator. I want to get this 4575 value from event." CreationDate="2022-12-23T18:35:29.283" UserId="2581" />
  <row Id="6452" PostId="6483" Score="0" Text="Would you like to join https://chat.stackexchange.com/rooms/133964/substrate-and-polkadot? @alexbean" CreationDate="2022-12-23T19:19:59.767" UserId="2581" />
  <row Id="6453" PostId="6475" Score="0" Text="What have you tried? How did you *get the event*? What technology are you coding in? E.g. What do you get when you `console.debug(event.toJSON())`." CreationDate="2022-12-23T15:30:39.200" UserId="2344" />
  <row Id="6454" PostId="6475" Score="0" Text="Using PolkadotJS, it says in the question is using this code example to get the event: https://substrate.stackexchange.com/a/5181/2762" CreationDate="2022-12-23T15:45:39.507" UserId="2762" />
  <row Id="6455" PostId="6475" Score="0" Text="I got events from ```api.query.system.events()``` and when I log event, ```{&quot;phase&quot;:{&quot;applyExtrinsic&quot;:2},&quot;event&quot;:{&quot;index&quot;:&quot;0x0601&quot;,&quot;data&quot;:[&quot;HALCY1MaPw6e2TeBjFg8DuABy9aWef6udFPdFnHiwXLkK2U&quot;,874758234]},&quot;topics&quot;:[]}```.&#xA;There are two things in data, one is stash address, the other one is reward amount." CreationDate="2022-12-23T15:59:03.860" UserId="2581" />
  <row Id="6456" PostId="6452" Score="0" Text="I updated my answer, please check." CreationDate="2022-12-24T02:17:17.777" UserId="251" />
  <row Id="6457" PostId="2785" Score="0" Text="I noticed this only works with the right order. `let deposit = T::DepositFee::get() * value;` works, but `let deposit = value * T::DepositFee::get();` works not. Do you have any reason for that?" CreationDate="2022-12-24T10:50:21.743" UserId="2484" />
  <row Id="6458" PostId="6485" Score="0" Text="Got it! Do you know where in the runtime code one would adjust the fees?" CreationDate="2022-12-24T15:09:53.880" UserId="3346" />
  <row Id="6459" PostId="6485" Score="1" Text="Runtimes are unique for each chain, but see my answer below for a general answer. Please include some source links into future questions for easier answering." CreationDate="2022-12-25T10:47:07.407" UserId="94" />
  <row Id="6460" PostId="6487" Score="0" Text="Thank you, Oliver!" CreationDate="2022-12-25T15:02:09.870" UserId="3346" />
  <row Id="6461" PostId="6460" Score="0" Text="Great. You are right." CreationDate="2022-12-25T15:18:35.510" UserId="251" />
  <row Id="6462" PostId="6474" Score="2" Text="I advise you to use http://openbrush.io. amazing framework for smart contract development with ink!" CreationDate="2022-12-25T17:30:01.490" UserId="3171" />
  <row Id="6463" PostId="6488" Score="0" Text="Please add more details about your errors. Which substrate versions(branch) do you use? Which repo do you refer?" CreationDate="2022-12-26T05:55:02.430" UserId="445" />
  <row Id="6464" PostId="5323" Score="0" Text="@Squirrel except compressed encoding, which one should i select to escape this issue ?" CreationDate="2022-12-26T09:53:28.620" UserId="393" />
  <row Id="6465" PostId="5323" Score="0" Text="@Squirrel shall i create a pull request to fix this issue on compressed encoding?" CreationDate="2022-12-26T09:54:25.927" UserId="393" />
  <row Id="6467" PostId="6488" Score="0" Text="Repository is substrate package" CreationDate="2022-12-26T17:17:09.487" UserId="3109" />
  <row Id="6468" PostId="6424" Score="0" Text="`cargo  contract build`" CreationDate="2022-12-27T01:29:49.040" UserId="2844" />
  <row Id="6469" PostId="6454" Score="0" Text="[have a look this issue](https://stackoverflow.com/q/59388952/14311968)" CreationDate="2022-12-27T01:55:16.667" UserId="2844" />
  <row Id="6470" PostId="6489" Score="0" Text="I don't know what's the reason but this specific error can be omit by using `# ink = { version = &quot;4.0.0-beta&quot;, default-features = false }` instead `ink = { version = &quot;https://github.com/paritytech/ink&quot;, commit = &quot;4655a8b4413cb50cbc38d1b7c173ad426ab06cde&quot;, default-features = false }`" CreationDate="2022-12-27T02:07:38.413" UserId="2844" />
  <row Id="6472" PostId="6491" Score="0" Text="Can you share the full Cargo.toml? This error can be an issue with versions" CreationDate="2022-12-27T08:30:58.437" UserId="2762" />
  <row Id="6473" PostId="6488" Score="0" Text="Please give the link that you fork/clone" CreationDate="2022-12-27T09:10:46.443" UserId="445" />
  <row Id="6474" PostId="6491" Score="0" Text="Just did @AlexBean" CreationDate="2022-12-27T09:23:54.070" UserId="3646" />
  <row Id="6475" PostId="2369" Score="0" Text="Can you please elaborate on the substrate answer? I get an function or associated item not found in `AccountId32`." CreationDate="2022-12-27T09:55:25.797" UserId="3265" />
  <row Id="6476" PostId="6491" Score="0" Text="@AlexBean - I tried to change polkadot branch from 9.35 to 34 and 33 but didn't solve it" CreationDate="2022-12-27T10:44:12.653" UserId="3646" />
  <row Id="6477" PostId="6483" Score="0" Text="Sorry, not sure I get it. In your example you have the era event 4576 and you want to get the 4575 era's reward ?" CreationDate="2022-12-27T11:35:35.943" UserId="2762" />
  <row Id="6478" PostId="6492" Score="0" Text="If you are doing this through polkadot UI, then there is a possibility that it is due to new upgrades to the UI. So just try it with the older version of polkadot js." CreationDate="2022-12-27T11:38:18.077" UserId="354" />
  <row Id="6479" PostId="6483" Score="0" Text="My example Rewarded event was created in Era 4576. And this is 4575 era's reward. &#xA;So, 4575 era's reward is paid to nominator in 4576 era. https://kusama.subscan.io/reward?address=HALCY1MaPw6e2TeBjFg8DuABy9aWef6udFPdFnHiwXLkK2U&amp;page=2&amp;role=account. Please check top row. Era shows 4575, and event ID is 15836105-348. This block number is created in 4576," CreationDate="2022-12-27T11:42:05.210" UserId="2581" />
  <row Id="6480" PostId="2639" Score="0" Text="It is part of the signed extension in the extrinsic. But as @jsdw said, there is now an event with the fee details that makes it easier." CreationDate="2022-12-27T12:13:26.237" UserId="620" />
  <row Id="6481" PostId="6452" Score="0" Text="Thanks! That can work, but is ok to define the UNITs value in the pallet instead of in the node?" CreationDate="2022-12-27T12:40:46.803" UserId="2762" />
  <row Id="6482" PostId="6453" Score="0" Text="Thanks very much for the answer. For Method 1, I don´t understand how to keep the current chain state. I just have the glitch_runtime.compact.wasm for the forkless upgrade. If I change it in the customSpeckRaw.json the chain history will be lost right?&#xA;Thanks!" CreationDate="2022-12-27T13:51:09.373" UserId="2635" />
  <row Id="6483" PostId="6489" Score="0" Text="instead of branch in openbrush dependency you can use tag=&quot;3.0.0-beta&quot;, also scale dependency should be 2.3, and try to remove target and `Cargo.lock`, clean build the contract" CreationDate="2022-12-27T14:08:51.950" UserId="170" />
  <row Id="6484" PostId="6453" Score="0" Text="Sorry, and the 'you need to do the changes in the new version' what means, if you please can elaborate on this. Thanks very much." CreationDate="2022-12-27T14:15:30.373" UserId="2635" />
  <row Id="6485" PostId="6488" Score="0" Text="https://github.com/substrate-developer-hub/substrate-node-template/tree/tutorials/solutions/kitties" CreationDate="2022-12-27T17:50:16.680" UserId="3109" />
  <row Id="6487" PostId="6470" Score="0" Text="@jpataylor you're welcome... FYI I updated the answer with some extra info" CreationDate="2022-12-27T18:15:23.787" UserId="494" />
  <row Id="6489" PostId="6499" Score="0" Text="It is not relevant, even if it is not needed.         I just add this pallet to test it too and it creates the same problem. I also tried to build without it and the issue still exists." CreationDate="2022-12-27T18:55:44.147" UserId="3646" />
  <row Id="6490" PostId="6499" Score="0" Text="BTW: I tried it on 2 separate machine and the issue returned on itself.  (Linux and mac)" CreationDate="2022-12-27T19:01:45.593" UserId="3646" />
  <row Id="6492" PostId="5259" Score="0" Text="I am getting the exact same error. I worked through this tutorial a few weeks ago and it worked fine, but re-doing it today gives me the `tokio-runtime-worker runtime::contracts: Execution finished with debug buffer: panicked at 'dispatching ink! constructor failed: could not read input', /home/bosr/rust/flipper/lib.rs:8:5` Here are the first 15 lines of the lib.rs file: ```#![cfg_attr(not(feature = &quot;std&quot;), no_std)] use ink_lang as ink; #[ink::contract]&#xA;pub mod flipper { /// Defines the storage of your contract. /// Add new fields to the below struct in order /// to add new static storage fiel" CreationDate="2022-12-21T00:51:37.040" UserId="716" />
  <row Id="6493" PostId="5259" Score="0" Text="I am also getting same error. Can anyone please help? I would also reward with a bounty if someone resolves the issue. ```&#xA;Thread 'tokio-runtime-worker' panicked at 'Bad input data provided to validate_transaction: Could not decode `MultiAddress`, variant doesn't exist', runtime/src/lib.rs:410 This is a bug. Please report it at: https://github.com/paritytech/substrate-contracts-node/issues/new 2022-12-23 09:54:15.467 WARN tokio-runtime-worker wasm-runtime: Evicting failed runtime instance error=Runtime panicked: Bad input data provided to validate_transaction: Could not decode `MultiAddress`," CreationDate="2022-12-26T18:08:38.167" UserId="3647" />
  <row Id="6494" PostId="6452" Score="1" Text="It is just an example. You could pass the value to genesis config. `T::Currency::reserve(&amp;pallet_account(), self.ed);`" CreationDate="2022-12-28T02:59:14.040" UserId="251" />
  <row Id="6495" PostId="6453" Score="0" Text="For method one you don't need to change the `customSpecRaw.json`, just do the runtime upgrade and replace the `client` or in other words the `binary` of the new version with old, you don't need to run the chain again just use the old `--base-path` where the db, keystore and network are already present, with old `customSpecRaw.json`. Hope this explains how to do it." CreationDate="2022-12-28T05:04:14.093" UserId="354" />
  <row Id="6496" PostId="6452" Score="0" Text="Thanks,I extend a bit the response" CreationDate="2022-12-28T13:00:04.527" UserId="2762" />
  <row Id="6497" PostId="6516" Score="2" Text="ink! is written in rust and rust provides `overflow/underflow protection`, that's why by default ink! support overflow protection. May be `AssemblyScript` which is used by Ask! doesn't support `overflow protection`." CreationDate="2022-12-29T01:21:15.170" UserId="2844" />
  <row Id="6500" PostId="6499" Score="0" Text="@PazDiamant&#xA;As I said, in most of the cases,  not having std feature of any dependency in cargo.toml could be the reason. There might be other reasons as well. I can also see wrong versions in your `Cargo.toml`.&#xA;&#xA;Can you correct versions in your `Cargo.toml`? For ex: In your `Cargo.toml`, you have used `7.0.0` for `sp-core`. Ideally it should be 6.0.0 according to this https://github.com/paritytech/substrate/blob/polkadot-v0.9.33/primitives/core/Cargo.toml#L3 same for `sp-runtime`. Please check for other dependencies too" CreationDate="2022-12-29T06:46:01.993" UserId="140" />
  <row Id="6501" PostId="6524" Score="0" Text="Is that &quot;yes&quot; for a topic question or post question? From the description of sufficient and non-sufficient assets [here](https://support.polkadot.network/support/solutions/articles/65000181800-what-is-statemint-and-statemine-and-how-do-i-use-them-) i assume there is no ED when I hold only USDT and transfer it somewhere, is that correct?" CreationDate="2022-12-29T10:15:02.210" UserId="2632" />
  <row Id="6502" PostId="6524" Score="0" Text="Sorry for a incomplete answer! I have edited my answer to clarify the two points" CreationDate="2022-12-29T10:29:47.740" UserId="2762" />
  <row Id="6503" PostId="6524" Score="0" Text="Actually, polkadot.js UI shows 0.7 USDT and if balance after transfer is less than that the XCM transaction fails silently, so I guess there is one. Just figured it out empirically." CreationDate="2022-12-29T11:14:59.847" UserId="2632" />
  <row Id="6504" PostId="6524" Score="0" Text="What is the error? https://substrate.stackexchange.com/questions/4982/failedtotransactasset-when-sending-usdt-from-statemint-to-another-parachain" CreationDate="2022-12-29T11:32:26.703" UserId="2762" />
  <row Id="6509" PostId="6530" Score="0" Text="while testing your code, did you get any error?" CreationDate="2022-12-30T02:43:00.683" UserId="2844" />
  <row Id="6510" PostId="6530" Score="0" Text="Hello  @Ganesh11 yes, my tests were failed" CreationDate="2022-12-30T04:06:15.587" UserId="3553" />
  <row Id="6511" PostId="6530" Score="0" Text="can you please show you error?" CreationDate="2022-12-30T05:01:59.447" UserId="2844" />
  <row Id="6513" PostId="6530" Score="0" Text="Hi @Ganesh11 I've updated with errors, cheers" CreationDate="2022-12-30T06:39:58.297" UserId="3553" />
  <row Id="6514" PostId="6499" Score="0" Text="thanks @Ayush-Mishra, this is not the culprit, i just tried it with 9.33 , 9.34, 9.35 (see changes in the above code) and in 9.35 the sp-core should be v 7.0.0(if I'm not mistaken). I also do not see any missing std feature. Wil be great if you can please give me one. Thanks in advance" CreationDate="2022-12-30T08:11:57.297" UserId="3646" />
  <row Id="6516" PostId="6539" Score="0" Text="did you try to add `--force --locked` while installing?" CreationDate="2022-12-31T04:38:57.837" UserId="2844" />
  <row Id="6517" PostId="6539" Score="0" Text="After the comment I was trying &quot;cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git --force --locked&quot;, got same result (error)." CreationDate="2022-12-31T04:54:30.803" UserId="19" />
  <row Id="6518" PostId="6539" Score="0" Text="I just use `cargo install contracts-node --force --git https://github.com/paritytech/substrate-contracts-node.git` command by omitting --locked flag and it works for me. [you can view image in link](https://drive.google.com/file/d/17kfil0V9T3jBqHqj0_ZHM7bV6mTsV8sI/view?usp=sharing)" CreationDate="2022-12-31T05:27:11.023" UserId="2844" />
  <row Id="6519" PostId="6539" Score="0" Text="Thanks for trying, no idea why I got this." CreationDate="2022-12-31T05:57:31.383" UserId="19" />
  <row Id="6520" PostId="4072" Score="0" Text="@yoyo Could you share some links what you have made exactly?" CreationDate="2022-12-31T07:39:49.663" UserId="19" />
  <row Id="6521" PostId="6542" Score="1" Text="Maybe this helps: https://github.com/paritytech/cumulus/issues/1737" CreationDate="2023-01-02T08:50:10.887" UserId="3317" />
  <row Id="6522" PostId="6539" Score="1" Text="@TomaszWaszczyk  Could you make it work? I faced the same issue, also saw your issue on the repo link in GitHub." CreationDate="2023-01-02T09:14:54.423" UserId="3668" />
  <row Id="6523" PostId="6539" Score="1" Text="@Ganesh11 Are you sure it works? It throws the same error when I do it" CreationDate="2023-01-02T09:15:28.123" UserId="3668" />
  <row Id="6524" PostId="6542" Score="0" Text="@DaanvanderPlas issue is that the parachain is not able to produce any block at the starting of the network, it hasn't even produced a single block so there is no state to revert to" CreationDate="2023-01-02T10:02:34.150" UserId="354" />
  <row Id="6525" PostId="6539" Score="1" Text="Nope, I still face the issue. I know that on Apple's machines the error does not occur, but on Linux compilation does not work. Probably something bad is with linking libraries, but I do not understand details. Amount of magic is too much for me." CreationDate="2023-01-02T10:13:44.710" UserId="19" />
  <row Id="6526" PostId="6542" Score="0" Text="@ShubhamGupta Did you purge the data before starting new network? Could you please share the codebase(github link)?" CreationDate="2023-01-02T10:58:58.860" UserId="140" />
  <row Id="6527" PostId="6542" Score="0" Text="@AyushMishra yes I did purge the old data and i am using https://github.com/paritytech/polkadot/tree/v0.9.32  for relay chain and for parachain https://github.com/substrate-developer-hub/substrate-parachain-template/tree/polkadot-v0.9.32" CreationDate="2023-01-02T11:18:55.070" UserId="354" />
  <row Id="6528" PostId="6530" Score="0" Text="From just an overview it seems the main issue is you didnt specify which ink enviroment are u  using. Just use the DefaultEnviroment" CreationDate="2023-01-02T13:40:31.400" UserId="351" />
  <row Id="6529" PostId="6539" Score="1" Text="@TomaszWaszczyk Sure thanks, if you do get something, post it as a solution." CreationDate="2023-01-02T14:19:35.920" UserId="3668" />
  <row Id="6530" PostId="6545" Score="0" Text="Please provide the source code of your node explicitly. If connecting with rococo using a forked relay node is likely to cause issues. What network are you trying?" CreationDate="2023-01-02T15:13:16.493" UserId="34" />
  <row Id="6531" PostId="6545" Score="0" Text="The nodes are simply using Polkadot client from which we change chain specs, the client code is not forked.&#xA;Chain specs are available here: https://github.com/AstarNetwork/Astar/blob/master/bin/collator/res/tokyo.json&#xA;&#xA;We deployed a bunch of test relay with this method previously, never encountered this error before." CreationDate="2023-01-02T15:20:09.407" UserId="1732" />
  <row Id="6532" PostId="6545" Score="2" Text="This is an issue for Substrate, not a question. Please do not hesitate to click the button here https://github.com/paritytech/substrate/issues/new/choose" CreationDate="2023-01-02T17:47:41.963" UserId="94" />
  <row Id="6533" PostId="6547" Score="0" Text="I have created it like this but wen i want to use transfer in pallet assets it only accept origin from dont accept account id" CreationDate="2023-01-02T18:57:47.533" UserId="3468" />
  <row Id="6534" PostId="6547" Score="1" Text="I see your point. Perhaps consider using `frame_system::RawOrigin::Signed(account_id)`. Take a look at this [example](https://github.com/paritytech/substrate/blob/b3d9f3c57e7f799d49442e3456614431f2d0e51a/frame/proxy/src/lib.rs#L783)." CreationDate="2023-01-02T19:29:35.773" UserId="29" />
  <row Id="6535" PostId="6547" Score="1" Text="Thanks you.worked like magic" CreationDate="2023-01-02T20:36:19.203" UserId="3468" />
  <row Id="6536" PostId="6548" Score="0" Text="I've asked some more questions about this on github: https://github.com/paritytech/substrate/pull/3692#issuecomment-1369332887. I'll report back here if I learn something useful." CreationDate="2023-01-03T02:33:33.667" UserId="372" />
  <row Id="6537" PostId="6542" Score="0" Text="@ShubhamGupta could you please share info regarding the changes you made to these codebases? The more the better." CreationDate="2023-01-03T09:09:13.127" UserId="3317" />
  <row Id="6538" PostId="6542" Score="0" Text="@DaanvanderPlas didn't changed much, just changed `&quot;forceEra&quot;: &quot;ForceNone&quot;` to `&quot;forceEra&quot;: &quot;NotForcing&quot;` in westend customSpec and on parachain I added `features = [&quot;westend-native&quot;]` in its node's `cargo.toml`" CreationDate="2023-01-03T09:28:39.030" UserId="354" />
  <row Id="6540" PostId="6560" Score="0" Text="iiuc does that mean there are normal accounts and then there are asset accounts, and to have an asset account I must either reserve the `AssetAccountDeposit` from my native account and/or own the asset by a mint/transfer?" CreationDate="2023-01-03T15:06:31.890" UserId="3667" />
  <row Id="6541" PostId="379" Score="0" Text="@Purple_Turtle That sounds roughly right, but I don't know the required list off the top of my head." CreationDate="2023-01-03T16:05:57.927" UserId="361" />
  <row Id="6542" PostId="379" Score="0" Text="@ImmanuelJohn It is possible in principle but can be difficult in practice. If you started out with Aura, one way would be to change how the Aura validator set is determined (i.e. change that to PoS). This will not change block production, though." CreationDate="2023-01-03T16:06:01.173" UserId="361" />
  <row Id="6543" PostId="5643" Score="1" Text="Off the top of my head I see two ways to approach this:&#xA; 1. Create a dummy pallet that exposes this constant.&#xA; 2. Create a custom runtime api." CreationDate="2023-01-03T16:24:12.653" UserId="361" />
  <row Id="6545" PostId="6539" Score="1" Text="this was due to a missing branch in the obce repo, I fixed it pls lmk if the issue still persists" CreationDate="2023-01-03T22:33:25.527" UserId="170" />
  <row Id="6546" PostId="6539" Score="1" Text="It works, thanks!" CreationDate="2023-01-03T22:48:27.450" UserId="19" />
  <row Id="6548" PostId="6545" Score="1" Text="I’m voting to close this question because this is a bug in Substrate that is now fixed." CreationDate="2023-01-04T06:48:45.460" UserId="73" />
  <row Id="6550" PostId="6542" Score="0" Text="Please, run your collators with -lparachain::validator-discovery=trace and -lparachain::collator-protocol=trace for having some logs with more context." CreationDate="2023-01-04T13:15:36.863" UserId="3317" />
  <row Id="6552" PostId="5643" Score="0" Text="Thanks for the ideas. By the way, I cross-posted here and suggested the same ones: https://github.com/paritytech/substrate/issues/12948" CreationDate="2023-01-04T17:23:22.103" UserId="2441" />
  <row Id="6553" PostId="6570" Score="0" Text="Thank you, I didn't see this function." CreationDate="2023-01-04T23:59:30.390" UserId="2873" />
  <row Id="6554" PostId="6569" Score="0" Text="Oh nice, take is clever, thanks!" CreationDate="2023-01-04T23:59:59.027" UserId="2873" />
  <row Id="6555" PostId="6169" Score="0" Text="to resolve this i had to put my decorated methods in typeBundles.js file manually. I am sure there is a command to run but this at least gave me the sanity of the ability to test it works correctly." CreationDate="2023-01-05T08:43:42.990" UserId="298" />
  <row Id="6556" PostId="2210" Score="0" Text="i am sure there is a command to run but you can add the the custom rpc types in spec/typeBundle.js in polkadot Apps directory" CreationDate="2023-01-05T08:47:20.677" UserId="298" />
  <row Id="6557" PostId="6590" Score="0" Text="if the contract return `Err(Error::VestingAmountTooLow)`, does it still say `CalleTrapped`?" CreationDate="2023-01-05T10:12:55.950" UserId="170" />
  <row Id="6558" PostId="6590" Score="0" Text="Yep. It still says the same error for every error that I throw on the contract" CreationDate="2023-01-05T10:59:26.853" UserId="371" />
  <row Id="6559" PostId="2185" Score="0" Text="hey @afm i tried using your solution but in my case the transction fee keeps on decreasing ... supoose for 1st traction its 100 milli then for 2 second traction it becomes 100 micro them pico nano and them famto..it keeps on decreasing how can i fix this???" CreationDate="2023-01-05T11:33:13.560" UserId="2281" />
  <row Id="6560" PostId="6577" Score="0" Text="Not super familiar with Frontier, but in your chain spec, when substituting the account for SUDO, have you also include that account in he vec of pre-funded accounts ?&#xA;https://github.com/substrate-developer-hub/frontier-node-template/blob/1b6bff4e88e6d0345887c0ecbd63401f9474aa91/node/src/chain_spec.rs#L99-L113" CreationDate="2023-01-05T11:38:19.090" UserId="165" />
  <row Id="6561" PostId="3589" Score="1" Text="hi @Shawn   i tried using this solution but in my case the gas fee is reduced after every transaction suppose if i have done 1st transaction and fees in 10 milli then for 2nd transaction the fee is reduced to 10 micro ,then nano then femto and it keeps on reducing .. how can i fix this..." CreationDate="2023-01-05T11:41:40.880" UserId="2281" />
  <row Id="6562" PostId="6577" Score="0" Text="So, for what I can see this error happens either when the gas price is too low, the accounts don't have enough funds, or when there is an [invalid payment input](https://github.com/paritytech/frontier/blob/e3ee95ab59d4ce04ec23110abe56ea69af8e79e1/primitives/evm/src/validation.rs#L170)" CreationDate="2023-01-05T11:58:35.807" UserId="165" />
  <row Id="6563" PostId="5024" Score="1" Text="thanks, the version was on 2.3.1 not 8.13.1, that resolved this issue." CreationDate="2023-01-05T12:46:59.250" UserId="298" />
  <row Id="6564" PostId="6577" Score="0" Text="@AlejandroMartínez Yes I added this account to the pre-funded accounts list and its balance is very high (0xffffffffffffffffffffffffffffffff). The account has been created with the command line `./target/release/frontier-template-node key generate` with a password and I wonder if it could be the reason to the problem. It looks like the `privateKey` I passed to the transaction is not properly linked to the account. Could it be the problem and i there a way to give the password in order to fix this issue?" CreationDate="2023-01-05T13:05:03.067" UserId="3676" />
  <row Id="6565" PostId="6592" Score="0" Text="What kind of integration tests? Multiple pallets within Rust code? Or spinning up a node and connecting to it?" CreationDate="2023-01-05T13:31:52.730" UserId="94" />
  <row Id="6566" PostId="6577" Score="0" Text="Have you also changed the accounts set for the [EVM compatibilty](https://github.com/paritytech/frontier/blob/73e6223e8bc26bf8e57cd9b212f1bc2fd288c5ca/template/node/src/chain_spec.rs#L176-L196) ?" CreationDate="2023-01-05T17:24:11.100" UserId="165" />
  <row Id="6567" PostId="6430" Score="0" Text="Your statement of KILT's migration is incorrect. They have seamlessly moved their entire state and history from Kusama to Polkadot without any special hacks. That includes keeping block history! Please check out the linked medium article above for details. Overall keeping history is not a problem when moving to another relay chain, especially on a private network when you control all collators and can even force the parachains header. Regard my steps above as a guide. Eventually it worked out after resyching a collator." CreationDate="2023-01-05T18:14:13.340" UserId="280" />
  <row Id="6569" PostId="6592" Score="0" Text="My question is about multiple pallets within rust code. 1. Any example/ samples of integration tests in this cases 2. Any guideline/ industry standard in case of  substrate pallets" CreationDate="2023-01-05T23:45:31.170" UserId="3327" />
  <row Id="6570" PostId="6603" Score="1" Text="One big one: very easy to DOS and thus stop all activities for the chain. If no other nodes exist, and the database of your collator is lost, your chain history is gone, and if recent state is lost, your chain is briked." CreationDate="2023-01-06T01:55:08.483" UserId="34" />
  <row Id="6571" PostId="6603" Score="1" Text="Remember you are launching a network, not deploying a contract. The role of a parachain is to be a provider, not to be a fire and forget/ managed by someone else affair." CreationDate="2023-01-06T01:57:26.947" UserId="34" />
  <row Id="6572" PostId="6603" Score="0" Text="Updated -- multiple collator nodes could be allocated as well. Meant this more as an architectural question vs. having a single collator node" CreationDate="2023-01-06T02:05:18.333" UserId="3680" />
  <row Id="6573" PostId="6557" Score="0" Text="Thanks.  This is what we hoped to happen.  The parachain should be separate from the relaychain as seen in the database itself.  Now with regards to making the parachain working again after the failure of the relaychain is the magic solution that I would like to do." CreationDate="2023-01-06T02:08:21.830" UserId="2565" />
  <row Id="6574" PostId="6557" Score="0" Text="Can you point me to a documentation as to how to do this please?" CreationDate="2023-01-06T02:08:46.063" UserId="2565" />
  <row Id="6575" PostId="6602" Score="0" Text="Could you elaborate more? Why do you want a cache? What does it use for?" CreationDate="2023-01-06T03:24:39.767" UserId="251" />
  <row Id="6576" PostId="6597" Score="0" Text="Thanks for the answer, but that still doesn't provide the exact error message thrown from the contract to the client side" CreationDate="2023-01-06T07:03:53.703" UserId="371" />
  <row Id="6577" PostId="6577" Score="0" Text="@AlejandroMartínez I have changed accounts directly in the json generated by the command `./target/release/frontier-template-node build-spec --disable-default-bootnode --chain local &gt; customSpec.json` in both sections `balances` and `evm.accounts`. Should I edit the chain_spec.rs before generating the json?" CreationDate="2023-01-06T08:24:32.717" UserId="3676" />
  <row Id="6578" PostId="6530" Score="0" Text="@MrishoLukamba Hi Mrisho, could you please elaborate? How should I specify which ink environment I want to use in ink-4.0.0-beta?" CreationDate="2023-01-06T08:38:24.073" UserId="3553" />
  <row Id="6579" PostId="6606" Score="0" Text="Please add more detailed issue, ex: your package.json, your code that made errors." CreationDate="2023-01-06T08:41:20.343" UserId="445" />
  <row Id="6580" PostId="6602" Score="1" Text="Any storage reads while executing an extrinsic will be cached so if you happen to read the same thing twice in the same transaction then the weight would only be for reading it once." CreationDate="2023-01-06T08:49:34.650" UserId="85" />
  <row Id="6581" PostId="6098" Score="0" Text="What does this exactly mean `it will just do nothing and carry over these old values silently`? Assume this happens, then we have still the old storage structure in the storage item. What happens then, when I query the storage after the faulty migration?" CreationDate="2023-01-06T08:53:30.750" UserId="2484" />
  <row Id="6582" PostId="6098" Score="0" Text="What would you suggest instead of `translate`? Assume you have an old storage structure and want to migrate to a new one. I mean when you use `storage_iter` or `storage_key_iter` you also need to specify how to decode the values. You could also have a wrong storage structure specified as the decoding struct." CreationDate="2023-01-06T08:56:24.430" UserId="2484" />
  <row Id="6583" PostId="6590" Score="0" Text="I guess your error doesn't come from your contract but rather from the runtime (mostly pallet-contract). What you can do is get the tx hash of your transaction and in polkadot js UI developer &gt; RPC calls &gt; contracts - call dry-run it to get the proper Error enum variant" CreationDate="2023-01-06T08:57:32.203" UserId="567" />
  <row Id="6584" PostId="6098" Score="0" Text="What is a storage alias and how to use it? EDIT: Look here https://substrate.stackexchange.com/questions/3252/migrate-keytype-of-storagemap-without-breakin-api/3267#3267" CreationDate="2023-01-06T08:57:34.550" UserId="2484" />
  <row Id="6585" PostId="6590" Score="0" Text="BTW I am assuming you are calling a read-only function as query (but the question title said otherwise). If you process as a tx you can do like this: [Best practise](https://docs.astar.network/docs/builder-guides/XVM%20and%20WASM/interact_with_wasm_contract#best-practice)" CreationDate="2023-01-06T09:01:16.807" UserId="567" />
  <row Id="6586" PostId="6597" Score="0" Text="can you post what you get as `println!` result? Error will be number if you made errors es enum" CreationDate="2023-01-06T09:14:28.270" UserId="529" />
  <row Id="6587" PostId="6557" Score="0" Text="I tried: ./target/release/parachain-template export-state --chain parachain-chainspec.json &gt; parachain-init-state" CreationDate="2023-01-06T09:15:53.483" UserId="2565" />
  <row Id="6588" PostId="6557" Score="0" Text="Then registetered it to my relaychain as genesisHead file + wasmFile (validationCode)." CreationDate="2023-01-06T09:17:12.523" UserId="2565" />
  <row Id="6589" PostId="6557" Score="0" Text="I got an error: Could not decode the head data. error=Error" CreationDate="2023-01-06T09:17:39.407" UserId="2565" />
  <row Id="6590" PostId="6098" Score="0" Text="https://github.com/paritytech/substrate/blob/a47f200eebeb88a5bde6f1ed2be9728b82536dde/frame/support/src/storage/generator/map.rs#L199-L200&#xA;&#xA;After the upgrade and faulty migration a new get query to the storage will fail to decode the new storage structure, right? This means, that then you can't access your storage anymore with the wrong decoding and you have to revert the storage structure for your runtime?" CreationDate="2023-01-06T09:18:33.577" UserId="2484" />
  <row Id="6591" PostId="6577" Score="0" Text="That is not necessary if you are specifying that chain spec file you are generating when launching your nodes. I suspect you do." CreationDate="2023-01-06T09:22:09.557" UserId="165" />
  <row Id="6592" PostId="6557" Score="0" Text="Read carefully the doc for that command, `Export the state of a given block into a chain spec`. What you are getting as output is a chain spec, then you can use that one to generate the &quot;genesis&quot; state and wasm." CreationDate="2023-01-06T09:25:09.250" UserId="165" />
  <row Id="6593" PostId="6594" Score="0" Text="It is working fine now, but still I don't understand why it is not working on `&quot;live&quot;`. If you know please do tell." CreationDate="2023-01-06T11:17:59.140" UserId="354" />
  <row Id="6594" PostId="6098" Score="1" Text="Rather iterate manually than use `translate`. Like [this](https://github.com/paritytech/substrate/blob/442394ac0769bf3248e6a3c2f00e0539c5d4ef91/frame/scheduler/src/lib.rs#L567). You can also use `iter_keys` vs `iter_values` to find undecodable values and remove them in the migration like [here](https://github.com/paritytech/substrate/blob/9fe83c5d747b2007bc642607b1756929ba36ce4a/frame/scheduler/src/migration.rs#L104). But be careful not to modify the map while iterating and instead always call `collect()` first. Please ask a new Q about the `storage_alias`." CreationDate="2023-01-06T11:30:53.443" UserId="94" />
  <row Id="6595" PostId="6606" Score="0" Text="@CocDap updated the question" CreationDate="2023-01-06T12:04:47.943" UserId="3682" />
  <row Id="6596" PostId="6611" Score="0" Text="So during weight estimation, one should forgo counting redundant `get()` calls to storage items? I ask it explicitly because one would not do the same with `set()` calls as writing to DB is a unique operation every time unlike a read." CreationDate="2023-01-06T12:53:25.757" UserId="139" />
  <row Id="6597" PostId="6611" Score="0" Text="I think benchmarking already has this caching into account." CreationDate="2023-01-06T12:58:31.887" UserId="165" />
  <row Id="6598" PostId="6557" Score="0" Text="Thanks so much.   I used the chainspec to run the node up again, then I created a new state, using export-genesis-state, the output file is the same with the original genesis state.  I register it anyway, still cannot find blocks.  Is there a special command or utility to generate the &quot;genesis&quot; state from the new chainspec?" CreationDate="2023-01-06T13:41:04.470" UserId="2565" />
  <row Id="6599" PostId="5684" Score="0" Text="i've also shared an answer below" CreationDate="2023-01-06T14:24:36.740" UserId="298" />
  <row Id="6600" PostId="6611" Score="0" Text="I updated the answer." CreationDate="2023-01-06T14:37:53.533" UserId="94" />
  <row Id="6601" PostId="6610" Score="0" Text="do you mean you want to fork the polkadot-js extension? Or do you mean you want to interact with the extension?" CreationDate="2023-01-06T15:47:27.000" UserId="298" />
  <row Id="6602" PostId="6610" Score="0" Text="Have a look at smoldot https://github.com/paritytech/smoldot" CreationDate="2023-01-06T15:51:14.623" UserId="165" />
  <row Id="6603" PostId="6594" Score="0" Text="Because you are running on local machine. https://github.com/paritytech/substrate/blob/4692572ecf8de0f9420972f8bf2f072243cf5a94/client/chain-spec/src/lib.rs#L202" CreationDate="2023-01-06T17:37:03.007" UserId="140" />
  <row Id="6604" PostId="6610" Score="0" Text="@Decentration Actually I want to built my own custom extrinsic with substrate. can I do it ?" CreationDate="2023-01-06T17:54:14.833" UserId="555" />
  <row Id="6605" PostId="6610" Score="0" Text="you can do it for sure, i guess you just need to start somewhere simple to develop the learning and practice to get into a feedback loop. Best place to start is the https://substrate.dev exercises related to setting up local chain. Then to make an extrinsic you would need to create your own pallet. This takes some learning time and practice if you are new to it. Between 6 to 18 months is a rough guess." CreationDate="2023-01-06T18:01:45.810" UserId="298" />
  <row Id="6606" PostId="6577" Score="0" Text="@AlejandroMartínez Do you know what is the right way to create a sudo account which can be used with `web3.eth.accounts.privateKeyToAccount(_privateKey)`? When I use Alice account private key, it returns the right account address, but when I use the private key of an account generated with `./target/release/frontier-template-node key generate` the addresses does not match." CreationDate="2023-01-06T18:05:33.830" UserId="3676" />
  <row Id="6608" PostId="6602" Score="0" Text="Even if this is one read, we are still reading from the overlay. I asked a similar question, and it was recommended to use the in-memory cache still:&#xA;&#xA;https://substrate.stackexchange.com/questions/2574/clarity-on-storage-read-write-caching" CreationDate="2023-01-06T20:16:44.180" UserId="590" />
  <row Id="6609" PostId="6602" Score="1" Text="The overlay is about as performant as caching can get. Of course, when you write code, if you DO NOT use a cache, then it will be fastest. This is what I recommended by reusing an initialized variable, but this is not always possible or convenient. The overlay is in-memory already, so I think you just have a misunderstanding here." CreationDate="2023-01-07T01:35:02.797" UserId="28" />
  <row Id="6610" PostId="936" Score="0" Text="I've tried using export-state ro recreate the chainspec then created the export-genesis-state.  Still couldn't find the head, also the result of the new chainspec is similar to the original genesis-state, so how can we continue to create blocks if for some reason the parachain is disconnected?" CreationDate="2023-01-07T04:13:29.870" UserId="2565" />
  <row Id="6611" PostId="6557" Score="0" Text="I got an error: Could not find the header of the genesis block in the database! block_hash=0x922d43a0606e6c6315c301bcbd7c27ba5c8e88f9665e85b621796c82c81ce780" CreationDate="2023-01-07T04:29:05.883" UserId="2565" />
  <row Id="6612" PostId="5323" Score="0" Text="I think it might well be a feature of the two different routes rather than a bug." CreationDate="2023-01-07T10:31:05.413" UserId="85" />
  <row Id="6613" PostId="6614" Score="0" Text="the answer is to add in the RpcInterface area in a fork off typegen https://github.com/polkadot-js/docs/tree/master/docs/api/examples/promise/typegen. Thereafter import the types into the clone of your polkadot-js/apps." CreationDate="2023-01-07T10:47:58.170" UserId="298" />
  <row Id="6614" PostId="6619" Score="0" Text="can you share github link to your code?" CreationDate="2023-01-07T14:59:10.737" UserId="170" />
  <row Id="6615" PostId="6590" Score="0" Text="good point, if you do not return Err, do you get such error too?" CreationDate="2023-01-07T15:01:47.947" UserId="170" />
  <row Id="6616" PostId="6619" Score="0" Text="I guess you haven't include `commons  = { path = &quot;../../commons&quot;, default-features = false }` inside dependencies of `destination_base ` cargo.toml. also don't forgot to include `&quot;commons/std&quot;` inside std" CreationDate="2023-01-07T15:54:08.943" UserId="2844" />
  <row Id="6617" PostId="6557" Score="0" Text="interesting, check that `paraId` is still matching everywhere" CreationDate="2023-01-07T18:48:43.987" UserId="165" />
  <row Id="6618" PostId="6619" Score="0" Text="Thank you. I tried but The situation remains the same.I made a similar sample and pushed it below, could you check it out?　https://github.com/realtakahashi/trait_test" CreationDate="2023-01-07T23:12:50.320" UserId="3114" />
  <row Id="6619" PostId="6557" Score="0" Text="Should I retain the paraId?  I check the raw chainspec it is 1200, similar to the old one." CreationDate="2023-01-09T02:13:55.127" UserId="2565" />
  <row Id="6620" PostId="6599" Score="0" Text="The pallet is already used in production and the elements under consideration are already part of a quite large storage map. What's an alternative to using child tries?" CreationDate="2023-01-09T07:55:23.353" UserId="1795" />
  <row Id="6621" PostId="2906" Score="0" Text="yep, this question was posted before the recent update of the substrate web page, but I was not able to find the same content there" CreationDate="2023-01-09T08:51:32.463" UserId="2102" />
  <row Id="6622" PostId="6628" Score="0" Text="Thanks. For RPC Node, is 16 GB RAM and SSD drive of 1 TB enough?" CreationDate="2023-01-09T09:25:19.243" UserId="3437" />
  <row Id="6623" PostId="5087" Score="1" Text="This seems to be happening again on `rustc 1.68.0-nightly (cc47b0699 2023-01-08)`.&#xA;&#xA;`sp_trie::recorder::Recorder&lt;H&gt;::as_trie_recorder::{opaque#0}&lt;'_&gt;` does not live long enough" CreationDate="2023-01-09T10:29:41.873" UserId="3002" />
  <row Id="6625" PostId="6628" Score="0" Text="In most cases yes, but as soon as you reach more than 1M requests you're going to want to have several RPCs behind a load balancer." CreationDate="2023-01-09T12:08:58.747" UserId="1732" />
  <row Id="6626" PostId="6599" Score="0" Text="I don't know of another option. You can always migrate the data to the child trie using some custom functions or upgrade." CreationDate="2023-01-09T12:32:14.730" UserId="28" />
  <row Id="6630" PostId="6643" Score="0" Text="what version of rustc are you using? ink 3.3 had an issue where it did not compile with rustc later than 1.64, can you try using ink! 3.4 if you are using newer rustc?" CreationDate="2023-01-10T00:57:50.270" UserId="170" />
  <row Id="6631" PostId="6616" Score="0" Text="I have a requirement where the user can transfer some DOT to our sovereign account on the relay chain, and at the same time, the user can send some extra information (possibly in the form of a transaction) to our parachain. The issue is that we can use the send_xcm() extrinsic to send the transaction, but it doesn't guarantee the DOT transfer by the user on the relay chain. Is there any way to solve this problem?" CreationDate="2023-01-10T05:35:54.423" UserId="458" />
  <row Id="6632" PostId="6632" Score="0" Text="i have already did this to change the unbonding time but after doing this total balacne is not coming to account after releasing  funds and is still showing in locked funds" CreationDate="2023-01-10T07:52:29.690" UserId="2348" />
  <row Id="6633" PostId="6632" Score="0" Text="Just check the time, if it is changed. Your question is about the time.&#xA;&#xA;And I think maybe you want https://github.com/paritytech/substrate/blob/b85246bf1156f9f58825f0be48e6086128cc0bbd/frame/staking/src/pallet/impls.rs#L1628? (to get the balance back)" CreationDate="2023-01-10T08:38:48.450" UserId="251" />
  <row Id="6634" PostId="6617" Score="0" Text="Can you edit you rQ and adding the script you are running your nodes with ?" CreationDate="2023-01-10T09:27:06.293" UserId="165" />
  <row Id="6635" PostId="6644" Score="0" Text="Ganesh11 Many thanks for taking the time to respond&#xA;A: I have followed the suggestions, triple checked everything but I still have an issue at compiling the MyContract. &quot;endowment is not recognised&quot;&#xA;Here is my repo https://github.com/Entity54/ink--cross-contract-calling &#xA;Reminder: I am following tutorial https://use.ink/basics/cross-contract-calling" CreationDate="2023-01-10T09:55:43.027" UserId="1811" />
  <row Id="6636" PostId="6651" Score="0" Text="Did you offboard your parachain first? sudo sub-page, pick parasSudoWrapper &gt; sudoScheduleParaCleanup" CreationDate="2023-01-10T10:04:38.067" UserId="3317" />
  <row Id="6637" PostId="6653" Score="0" Text="you can check this module on Acala network https://github.com/AcalaNetwork/Acala/blob/master/modules/nft/src/lib.rs" CreationDate="2023-01-10T10:18:47.227" UserId="3166" />
  <row Id="6638" PostId="6654" Score="0" Text="But your chains are working right?" CreationDate="2023-01-10T10:19:11.617" UserId="3317" />
  <row Id="6639" PostId="6627" Score="0" Text="oh ok. But, how can I use a relay-chain snapshot to sync parachain?" CreationDate="2023-01-10T10:23:43.110" UserId="3166" />
  <row Id="6640" PostId="6651" Score="0" Text="@DaanvanderPlas I did not (didn't know about this). Will try out this solution thanks." CreationDate="2023-01-10T10:39:04.197" UserId="139" />
  <row Id="6641" PostId="6625" Score="0" Text="Ok, how can I use relaychain snapshot to sync my parachain fresh node ?" CreationDate="2023-01-10T10:43:39.207" UserId="3166" />
  <row Id="6642" PostId="6627" Score="0" Text="Like you use it for a normal relay chain node. `parachain -- --base-path PATH_TO_THE_SNAPSHOT`" CreationDate="2023-01-10T10:48:24.997" UserId="73" />
  <row Id="6643" PostId="6654" Score="0" Text="No. for that time parachain cannot produce new blocks." CreationDate="2023-01-10T10:48:39.423" UserId="377" />
  <row Id="6644" PostId="6644" Score="0" Text="@Sokrates I have fixed your code but it didn't allow me to push updated code" CreationDate="2023-01-10T11:11:10.857" UserId="2844" />
  <row Id="6645" PostId="6654" Score="0" Text="Can you provide as much information as possible about the changes you made to the code and the steps to reproduce it. In addition, please put effort in formulating your sentences :)" CreationDate="2023-01-10T11:19:20.193" UserId="3317" />
  <row Id="6646" PostId="6644" Score="0" Text="@Sokrates anyway I uploaded the code in my account, [you can get it from here](https://github.com/123oli/ink-cross-contract-calling)" CreationDate="2023-01-10T11:20:21.450" UserId="2844" />
  <row Id="6647" PostId="6656" Score="2" Text="I would recommend the new [NFTs pallet](https://github.com/paritytech/substrate/tree/master/frame/nfts) over Uniques." CreationDate="2023-01-10T12:02:57.400" UserId="620" />
  <row Id="6648" PostId="6648" Score="0" Text="Thank you for your proposal of the solution. Your sample can be compiled, but the &quot;execute_function&quot; is not a contract function. I want to call &quot;execute_function&quot; as a contract function like the &quot;flip&quot; function. Is it possible?" CreationDate="2023-01-10T12:30:30.077" UserId="3114" />
  <row Id="6649" PostId="6617" Score="0" Text="Sorry I do not understand what is rQ?" CreationDate="2023-01-10T12:52:49.203" UserId="2565" />
  <row Id="6650" PostId="6632" Score="0" Text="yeah the  balance is not coming back to account after unbonding funds and funds are in locked funds yeah want to to know why funds are still in locked ones and how to get them back" CreationDate="2023-01-10T12:53:54.087" UserId="2348" />
  <row Id="6651" PostId="6654" Score="0" Text="to replicate it you can run relaychain and parachain with version v0.9.36" CreationDate="2023-01-10T13:26:34.500" UserId="377" />
  <row Id="6652" PostId="6648" Score="0" Text="Do you mean `execuate_function` Methods flagged with #[ink(message)] in `impl Base for test {}`?" CreationDate="2023-01-10T14:29:39.040" UserId="2844" />
  <row Id="6653" PostId="6617" Score="0" Text="@hgminerva I think he means question*. &quot;your Q&quot;" CreationDate="2023-01-10T14:44:47.497" UserId="139" />
  <row Id="6654" PostId="6617" Score="0" Text="yeah, I meant your question. Looks like I cannot edit my comment" CreationDate="2023-01-10T14:48:17.297" UserId="165" />
  <row Id="6655" PostId="6625" Score="0" Text="@viveksharmapoudel Click on any snapshot and you will find instructions. For ex: https://dot-rocksdb.polkashots.io/#how-to-use" CreationDate="2023-01-10T14:51:48.303" UserId="140" />
  <row Id="6656" PostId="6616" Score="1" Text="I am not sure how feasible to achieve is this from the relay chain point of view as of now (XCM v2).  But I recommend you to open a new question on Substrate Exchange about this, trying to be as detailed as possible about the concrete cross-chain scenario." CreationDate="2023-01-10T16:09:14.963" UserId="2025" />
  <row Id="6657" PostId="6647" Score="0" Text="Thanks! Should I just follow the instructions in the video to setup my Rust environment and then do something like this to install Substrate. git clone https://github.com/substrate-developer-hub/substrate-node-template" CreationDate="2023-01-10T19:10:15.017" UserId="3679" />
  <row Id="6658" PostId="6644" Score="0" Text="Many thanks Ganesh11 for your prompt assistance. &#xA;Everything has now compiled and working as expected on a local substrate-contracts-node.&#xA;If I may please ask one last thing please. Where can I learn more about the rust syntax  OtherContractRef ,  i.e. what the Ref does instead of using OtherContract. Any good link please on this?" CreationDate="2023-01-10T19:13:28.097" UserId="1811" />
  <row Id="6659" PostId="6643" Score="0" Text="All works well now&#xA;ink! 3.3 &#xA;rustc 1.65.0" CreationDate="2023-01-10T19:16:51.223" UserId="1811" />
  <row Id="6660" PostId="6666" Score="1" Text="Could you please link the tutorial? It is probably out-dated." CreationDate="2023-01-10T20:42:50.023" UserId="94" />
  <row Id="6661" PostId="6667" Score="0" Text="Can you elaborate what you mean by &quot;makes sense in substrate&quot; vs &quot;makes sense in polkadot&quot;? Does this mean standalone vs parachain?&#xA;&#xA;I'm talking about https://docs.substrate.io/reference/how-to-guides/weights/use-custom-weights. To be honest, the entire documentation is an insane mashup of various versions with breaking changes, I think it would already help to delete the entire docs and just tell people to look at source.&#xA;&#xA;I myself cannot even create a `WeightInfo` trait because the benchmark framework generated by exact that tutorial autocreates a struct called `WeightInfo` that clashes." CreationDate="2023-01-10T20:59:24.047" UserId="3265" />
  <row Id="6662" PostId="6667" Score="0" Text="Given your example, why is then this doing this weird duplication between SubstrateWeightInfo and WeightInfo here: https://github.com/paritytech/substrate/blob/master/frame/balances/src/weights.rs? I mean this is the pallet that I download if I add it to my parachain. &#xA;&#xA;Why is the generated weights.rs different? I can adapt that like this, but I fundamentally don't understand why both of those exists.&#xA;&#xA;I know have generated my weights.rs and I need to change it to make it work and I don't understand those changes. I see they use a different template, but why is everyone using that." CreationDate="2023-01-10T21:07:37.203" UserId="3265" />
  <row Id="6663" PostId="6667" Score="0" Text="I think my problem boils down to why is `WeightInfo` a struct in `weights/`. I need to add a trait `WaightInfo` to even add it to my config and for that I already need to delete the struct created." CreationDate="2023-01-10T21:20:46.223" UserId="3265" />
  <row Id="6664" PostId="6648" Score="0" Text="yes,right. When I added &quot;#[ink(message)]&quot; to execute function, I got errors." CreationDate="2023-01-10T22:15:52.110" UserId="3114" />
  <row Id="6666" PostId="6644" Score="1" Text="[have a look here](https://substrate.stackexchange.com/a/4779/2844) and [delegator smart contract](https://github.com/paritytech/ink/tree/master/examples/delegator), may be this could help" CreationDate="2023-01-11T01:57:23.253" UserId="2844" />
  <row Id="6667" PostId="6632" Score="0" Text="Did you check the link? Try making a `withdraw_unbonded` extrinsic." CreationDate="2023-01-11T02:36:02.853" UserId="251" />
  <row Id="6670" PostId="6667" Score="0" Text="Ok, so I gave it another shot today. I'm coming from here https://docs.substrate.io/reference/how-to-guides/weights/add-benchmarks/ and it send me to https://docs.substrate.io/reference/how-to-guides/weights/use-custom-weights/&#xA;&#xA;This is totally incompatible because the latter is referencing a FRAME based pallet with that template. Is there any example of an existing project that using it outside and without that template?" CreationDate="2023-01-11T10:10:43.483" UserId="3265" />
  <row Id="6671" PostId="6460" Score="1" Text="Can you post this as an answer?" CreationDate="2023-01-11T10:49:07.073" UserId="251" />
  <row Id="6672" PostId="6675" Score="0" Text="I got their are different systems, but in the docs: https://docs.substrate.io/tutorials/integrate-with-tools/access-evm-accounts/ are not getting the public key from the Alice account generated with subkey??" CreationDate="2023-01-11T10:54:48.243" UserId="2762" />
  <row Id="6673" PostId="6580" Score="1" Text="Do you need the private key for the &quot;child account&quot; to sign transactions, or are they supposed to be signed with the parent account's key?" CreationDate="2023-01-11T10:56:20.093" UserId="2673" />
  <row Id="6675" PostId="6577" Score="0" Text="You can install in your code Web3 or ethers to see the balance, can you have this line const balanceFrom = web3.utils.fromWei(await web3.eth.getBalance(your-address-here), 'ether'); before and after the transaction, to see if is spending gas" CreationDate="2023-01-11T11:06:25.333" UserId="2762" />
  <row Id="6676" PostId="6675" Score="0" Text="Anyway, try what I said. If it works, it means there are some mistakes." CreationDate="2023-01-11T11:35:49.547" UserId="251" />
  <row Id="6677" PostId="6675" Score="0" Text="Yes, it works generating the account only with web3.account.generate(), I was wondering if with subkey generate you could do it too. Because in the docs it was getting a public key of Alice to use, which means you can control the account too" CreationDate="2023-01-11T11:51:31.350" UserId="2762" />
  <row Id="6678" PostId="6675" Score="0" Text="I voted up, because is a workaround. Thanks!" CreationDate="2023-01-11T11:52:20.257" UserId="2762" />
  <row Id="6679" PostId="6675" Score="0" Text="I found you made a mistake. I updated my answer." CreationDate="2023-01-11T12:43:27.793" UserId="251" />
  <row Id="6687" PostId="6679" Score="0" Text="Your parachain log shows 0 peers. Do you only have 1 node?" CreationDate="2023-01-11T17:59:02.980" UserId="251" />
  <row Id="6688" PostId="6679" Score="0" Text="Yeah. On server we run like we run in local environment so its with single parachain node" CreationDate="2023-01-11T18:06:52.073" UserId="377" />
  <row Id="6689" PostId="2441" Score="0" Text="In my case, I also needed to remember to use the Currency trait. For some reason, it did not error out." CreationDate="2023-01-11T19:52:43.653" UserId="590" />
  <row Id="6693" PostId="6686" Score="0" Text="does the node-key override or conflict with generated custom keys we put in chainspec for validator? &#xA;Can you explain the difference between node-key and keys we put in chain for validators?&#xA;How is peerID derived for a node?" CreationDate="2023-01-12T08:08:48.907" UserId="3690" />
  <row Id="6694" PostId="6686" Score="0" Text="my purpose is not to copy/paste the local node identity from screen when node is run. My purpose is to have command that does it for me and then uses this ID to run 2nd node in another terminal tab. Any different ideas are welcomed." CreationDate="2023-01-12T08:15:34.823" UserId="3690" />
  <row Id="6695" PostId="6686" Score="0" Text="That is one-time job. After that you don't need to do it. If you don't want that, just write some script to generate a node key from the subkey, then use it." CreationDate="2023-01-12T08:38:22.197" UserId="251" />
  <row Id="6696" PostId="6688" Score="0" Text="Hi Alex, thank you for your suggestion. Is there a way to get the number of bonded and unbound funds for certain pool member?" CreationDate="2023-01-12T09:28:36.640" UserId="3696" />
  <row Id="6697" PostId="6688" Score="0" Text="Yes, I have updated the answer" CreationDate="2023-01-12T09:34:56.937" UserId="2762" />
  <row Id="6698" PostId="6577" Score="0" Text="Relevant post https://substrate.stackexchange.com/questions/6674/private-key-for-evm-frontier/6690" CreationDate="2023-01-12T10:29:33.947" UserId="165" />
  <row Id="6699" PostId="6580" Score="0" Text="Any one of them will work" CreationDate="2023-01-12T11:20:40.600" UserId="3468" />
  <row Id="6700" PostId="6693" Score="0" Text="But for this how you generate the private key?" CreationDate="2023-01-12T14:36:44.443" UserId="2762" />
  <row Id="6701" PostId="6693" Score="0" Text="@AlexBean I can generate it in 2 ways : like you with `./target/release/frontier-template-node key generate` or in code this way https://polkadot.js.org/docs/util-crypto/examples/create-mnemonic/" CreationDate="2023-01-12T14:39:33.747" UserId="3676" />
  <row Id="6702" PostId="6685" Score="0" Text="Just FYI automatic pool compound is on the road-map for Staking." CreationDate="2023-01-12T14:59:46.147" UserId="94" />
  <row Id="6703" PostId="6683" Score="0" Text="Any guide/resource how can i launch it to my server?" CreationDate="2023-01-12T18:12:22.507" UserId="377" />
  <row Id="6705" PostId="6683" Score="0" Text="I updated my answer." CreationDate="2023-01-13T04:07:23.007" UserId="251" />
  <row Id="6706" PostId="6705" Score="0" Text="Then I will develop an own pallet, which just does that. Pallet democracy doesn't fit my intention. Thanks a lot! My intention is to have a pallet, which can enact runtime upgrades, but after a review period of 3 months. User can decide, if they want to participate in the protocol any further (3 months to get all funds back and away to another chain)." CreationDate="2023-01-13T05:19:28.657" UserId="2484" />
  <row Id="6707" PostId="6704" Score="0" Text="Is there any existing pallet, which has less power than the sudo pallet, but without token holder votes like in the democracy pallet. So I am searching for a pallet, which has a privileged account, that can do runtime upgrades, but only after a long review period these upgrades get enacted." CreationDate="2023-01-13T05:26:26.483" UserId="2484" />
  <row Id="6708" PostId="6708" Score="0" Text="I get this error `the trait &quot;From&lt;sp_core::H160&gt;&quot; is not implemented for &quot;AccountId32&quot;` when I set `FromH160` as `AddressMapping` type." CreationDate="2023-01-13T05:29:29.810" UserId="3538" />
  <row Id="6709" PostId="6707" Score="0" Text="I used ts-code to do this https://github.com/litentry/litentry-parachain/blob/dev/ts-tests/tests/register-parathread.ts, But just registering as a parathread does not become a parachain." CreationDate="2023-01-13T05:37:00.710" UserId="3303" />
  <row Id="6710" PostId="6708" Score="0" Text="I don't know where did you get this. Some code or link would be helpful." CreationDate="2023-01-13T07:08:41.970" UserId="251" />
  <row Id="6711" PostId="6708" Score="0" Text="I'm getting this error on [this](https://github.com/Ali-Usama/EVM-Node-Template/blob/main/runtime/src/lib.rs#L333) line. Appreciate your help regarding this" CreationDate="2023-01-13T07:21:32.377" UserId="3538" />
  <row Id="6712" PostId="6694" Score="0" Text="Xavier thanks for your response , we want EVM functionality in our chain, and its been more than 1 yr our chain is live so we want to add EVM functionality. we want a solution for token decimals as our native token has 12 decimals.can you tell me something about converter." CreationDate="2023-01-13T07:51:06.873" UserId="2281" />
  <row Id="6713" PostId="6696" Score="0" Text="alex thanks for your response but i don't need this." CreationDate="2023-01-13T07:52:44.330" UserId="2281" />
  <row Id="6714" PostId="6694" Score="1" Text="Answer updated." CreationDate="2023-01-13T08:43:47.383" UserId="251" />
  <row Id="6715" PostId="6708" Score="0" Text="https://github.com/Ali-Usama/EVM-Node-Template/blob/d89811875a9093f1e042785c85a8b2fcc89ed527/runtime/src/lib.rs#L62-L67. You are still using the `AccountId32`. You should change it to `AccountId20` if you follow Moonbeam's solution." CreationDate="2023-01-13T08:50:00.940" UserId="251" />
  <row Id="6716" PostId="6707" Score="0" Text="Code LGTM. Maybe you need to bump the deps version? I'm not sure." CreationDate="2023-01-13T08:52:18.773" UserId="251" />
  <row Id="6717" PostId="6707" Score="0" Text="Sorry, forgot to mention polkadot-js version v9.11.1" CreationDate="2023-01-13T08:56:42.273" UserId="3303" />
  <row Id="6718" PostId="6651" Score="0" Text="did it resolve the issue?" CreationDate="2023-01-13T09:38:58.590" UserId="3317" />
  <row Id="6719" PostId="6705" Score="0" Text="Yea a custom pallet would do well here." CreationDate="2023-01-13T12:09:12.553" UserId="94" />
  <row Id="6720" PostId="6716" Score="0" Text="You can also read about it in the Rust docs [here](https://paritytech.github.io/substrate/master/pallet_nomination_pools/enum.BondExtra.html)." CreationDate="2023-01-13T12:17:23.700" UserId="167" />
  <row Id="6721" PostId="6651" Score="0" Text="@DaanvanderPlas I had forgotten about this. I tried to reproduce this error, but this time I wasn't able to produce that error, I think I am missing something, so I cannot verify that sudoScheduleParaCleanup would've been the correct solution." CreationDate="2023-01-13T12:19:19.380" UserId="139" />
  <row Id="6722" PostId="5475" Score="0" Text="I had the same error, but noted that the previous compile step fails even though it gives green checkmarks: ⠋ Copying artifacts[Error: ENOENT: no such file or directory, copyfile '/home/justin/dev/chocolate-wasm/artifacts/asset.contract' -&gt; '/home/justin/dev/chocolate-wasm/artifacts/asset/1673627007627/asset.wasm'. What version of nodejs worked for you?" CreationDate="2023-01-13T16:29:09.203" UserId="181" />
  <row Id="6723" PostId="6718" Score="1" Text="Thank you for providing the solution. It is working." CreationDate="2023-01-13T17:14:22.757" UserId="1793" />
  <row Id="6724" PostId="6712" Score="0" Text="Thanks, I see your point. The reason for this choice is to let the users decide if they want to take part in the protocol after the runtime upgrade. It is just that I am asking myself if there is any extrinsic call (like in the consensus system for the collators) that need to be dispatched by root to keep the network running? I don't want to end up in the situation, that during the 3 month period the blockchain service goes down." CreationDate="2023-01-13T17:37:51.813" UserId="2484" />
  <row Id="6726" PostId="6722" Score="0" Text="Can you include the entire error message, if too big, the top most error message?" CreationDate="2023-01-13T17:59:49.627" UserId="139" />
  <row Id="6727" PostId="6722" Score="0" Text="@Purple_Turtle questoin is edited , please check the error message" CreationDate="2023-01-13T18:02:02.830" UserId="2722" />
  <row Id="6731" PostId="6721" Score="2" Text="Does this answer your question? [Why is there no \`Default\` implementation for \`T::AccountId\`?](https://substrate.stackexchange.com/questions/1812/why-is-there-no-default-implementation-for-taccountid)  &#xA;You can use `OptionQuery` instead of `ValueQuery`." CreationDate="2023-01-13T21:21:39.397" UserId="94" />
  <row Id="6732" PostId="5475" Score="0" Text="I am using `@astar-network/swanky-cli/1.0.7-jp-workshop.3 darwin-x64 node-v18.12.1`" CreationDate="2023-01-14T01:41:22.813" UserId="2844" />
  <row Id="6733" PostId="6648" Score="1" Text="@s.Takahashi Instead of `#[openbrush::trait_definition]` if you use `[#[ink::trait_defination]]` it solves. I don't know why exactly it doesn't work with openbrush. You can view [changes here](https://github.com/123oli/fix-code/blob/e8b6c837271d8454b6f5285bb5af4746041a36d3/contracts/logics/lib.rs#L7)" CreationDate="2023-01-14T11:29:23.263" UserId="2844" />
  <row Id="6734" PostId="6492" Score="0" Text="You were spot on! This is definitely a Polkadot-JS problem. For anyone else, older releases are found here... https://github.com/polkadot-js/apps/releases" CreationDate="2023-01-14T14:27:27.277" UserId="3346" />
  <row Id="6735" PostId="6648" Score="0" Text="Thank you so much. I understood this code could be compiled with &quot;ink::trait definition&quot;.&#xA;But as you said, I can not solve compile error that I use &quot;open brush::contract&quot;.&#xA;I will try to ask to openbrush team." CreationDate="2023-01-15T04:08:17.127" UserId="3114" />
  <row Id="6736" PostId="6733" Score="0" Text="Could you share the code link?" CreationDate="2023-01-15T07:33:50.740" UserId="251" />
  <row Id="6739" PostId="6734" Score="0" Text="Do I need to tightly couple `cumulus_pallet_parachain_system::Config` to my pallet? Do you have an example? I can't get it working. How to call the `authorize_upgrade` with your Call parameter inside my pallet. How to set the config parameter in the runtime?" CreationDate="2023-01-15T16:44:25.100" UserId="2484" />
  <row Id="6740" PostId="6734" Score="0" Text="Got it with your help. It is exactly as you described, but I didn't know that I can just pass in the whole `Call` struct of the runtime (`type Call = Call;`). I tightly coupled it with `+ cumulus_pallet_parachain_system::Config`. Thanks a lot Bastian!" CreationDate="2023-01-15T16:57:58.357" UserId="2484" />
  <row Id="6741" PostId="6734" Score="0" Text="Good to hear that you made it :)" CreationDate="2023-01-15T22:39:10.817" UserId="73" />
  <row Id="6742" PostId="6647" Score="0" Text="Yes that's a good starting point!" CreationDate="2023-01-16T01:04:39.600" UserId="3077" />
  <row Id="6743" PostId="6648" Score="1" Text="oh wow it fix, thank you @s.Takahashi" CreationDate="2023-01-16T02:08:26.850" UserId="2844" />
  <row Id="6744" PostId="6746" Score="0" Text="Can you share the full code? I guess you are trying to call api.query.system.account before the conexion but I have to see the full code." CreationDate="2023-01-16T12:19:32.787" UserId="2762" />
  <row Id="6745" PostId="6733" Score="0" Text="Unfortunately i can't share the code link but you can share an example of a signature generated in benchmarks that conforms to the Signature type  defined in the config trait." CreationDate="2023-01-16T12:22:25.270" UserId="1891" />
  <row Id="6746" PostId="6746" Score="0" Text="https://pastebin.com/XZpW5AbU - rpcs init" CreationDate="2023-01-16T12:43:25.320" UserId="3707" />
  <row Id="6747" PostId="6746" Score="0" Text="https://pastebin.com/J40qA0kB - index.js" CreationDate="2023-01-16T12:45:46.900" UserId="3707" />
  <row Id="6748" PostId="6748" Score="0" Text="What's the difference between `async chain =&gt; {}` and your async IIFE?" CreationDate="2023-01-16T14:43:06.107" UserId="3707" />
  <row Id="6749" PostId="6748" Score="0" Text="Doesn't work anyways" CreationDate="2023-01-16T14:43:18.487" UserId="3707" />
  <row Id="6750" PostId="6748" Score="0" Text="You didn't have the async there, no?" CreationDate="2023-01-16T15:29:18.750" UserId="2762" />
  <row Id="6751" PostId="6751" Score="0" Text="Thanks @ab-neo for the detailed explanation. Let me check the implementation of these pallets in different reference implementation." CreationDate="2023-01-16T16:55:49.153" UserId="3327" />
  <row Id="6752" PostId="6738" Score="0" Text="Maybe this comment https://github.com/polkadot-js/extension/issues/1025#issuecomment-1066056797 from Jaco (back from March 2022) on a similar error msg is helpful ?" CreationDate="2023-01-16T17:59:16.403" UserId="234" />
  <row Id="6753" PostId="6748" Score="0" Text="I had actually. My bad that I rewritten code wrongly" CreationDate="2023-01-17T00:49:38.237" UserId="3707" />
  <row Id="6754" PostId="6748" Score="0" Text="Thank you man. I figured out what was wrong. I had no `await` lol" CreationDate="2023-01-17T00:50:42.267" UserId="3707" />
  <row Id="6755" PostId="6751" Score="0" Text="Can you please quote an example where treasury pallet is implemented" CreationDate="2023-01-17T10:32:04.597" UserId="3327" />
  <row Id="6756" PostId="6751" Score="0" Text="https://github.com/paritytech/substrate/blob/master/bin/node/runtime/src/lib.rs#L1089" CreationDate="2023-01-17T11:43:56.147" UserId="3667" />
  <row Id="6757" PostId="6751" Score="0" Text="Thanks for the help. I am learning  a lot from these resources. Is there general guide available that explain the bit and pieces of the different macros related to adding a pallet t the runtime like parameter_types!() etc" CreationDate="2023-01-17T12:46:29.290" UserId="3327" />
  <row Id="6758" PostId="6761" Score="0" Text="Can you provide some logs?" CreationDate="2023-01-17T13:55:44.677" UserId="3317" />
  <row Id="6759" PostId="6757" Score="0" Text="how exactly can we get current block hash with call in ink_env? I have found [block_number()](https://docs.rs/ink_env/3.4.0/ink_env/fn.block_number.html) but not function to return block hash." CreationDate="2023-01-17T14:07:24.623" UserId="2844" />
  <row Id="6760" PostId="6757" Score="2" Text="By &quot;add&quot; I mean open a PR in ink to add this feature OR open an issue in ink! repo to ask ink dev to add it" CreationDate="2023-01-17T14:11:39.067" UserId="567" />
  <row Id="6761" PostId="6765" Score="0" Text="you mean if i remove the --alice and create a real chain spec it wouldnt start if keep specifing the rpc and validator options?" CreationDate="2023-01-17T14:12:14.677" UserId="3319" />
  <row Id="6762" PostId="6608" Score="0" Text="It's worth noting perhaps that WASM compat was restored and Subxt is a little more uptodate now with Substrate crates. But what I said still stands; if you keep uptodate with Substrate weekly releases, Subxt will fall behind at times (though it should be fairly trivial for us to update it now or for you to patch those dependencies in the worst case)" CreationDate="2023-01-17T14:30:16.067" UserId="474" />
  <row Id="6763" PostId="6765" Score="1" Text="Misunderstood it the first time, changed my answer" CreationDate="2023-01-17T15:32:15.253" UserId="3317" />
  <row Id="6764" PostId="6760" Score="0" Text="Thanks for the answer!&#xA;I have two more questions:&#xA;1. &quot;... but that is of limited usefulness for cases where you are unsure about the bound, since it will decode anyway.&quot; But this sounds very useful for when we do not know what the bound will be in the future, right? Because then persistent data can still be accessed.&#xA;2. Is there a problem with using `WeakBoundedVec` everywhere instead of `BoundedVec`? Sounds like a nice hack to prevent storage dependent logic from breaking if we forget to perform a storage migration when we decrease the bound." CreationDate="2023-01-17T15:33:00.680" UserId="522" />
  <row Id="6765" PostId="6765" Score="0" Text="how users are able to get the runtime information and create and send extrinsics if all ports are closed?" CreationDate="2023-01-17T15:56:49.963" UserId="3319" />
  <row Id="6766" PostId="6765" Score="0" Text="As a network you need at least one rpc node to be able to query this yes" CreationDate="2023-01-17T16:02:42.710" UserId="3317" />
  <row Id="6767" PostId="6765" Score="0" Text="do you mean as long as that node is not a validator its okey to open the ports and in turn that node will forward the transactions(extrinsics) to the validators, but how so? if all the validator ports are closed, how is this node able to communicate with other validators, in fact how validators will communicate at all?" CreationDate="2023-01-17T16:09:52.060" UserId="3319" />
  <row Id="6769" PostId="6647" Score="0" Text="I realize the original question was about Substrate but I'm looking to build Substrate Pallets. Here is a video showing how to use Swanky. https://www.youtube.com/watch?v=ZyKk5-ynQjc Perhaps this would be a better development environment for me." CreationDate="2023-01-17T21:24:32.453" UserId="3679" />
  <row Id="6770" PostId="6647" Score="0" Text="What about using Ink in Visual Studio Code? Looks like this guy highly recommends it. https://medium.com/block-journal/introducing-substrate-smart-contracts-with-ink-d486289e2b59" CreationDate="2023-01-17T21:26:24.097" UserId="3679" />
  <row Id="6771" PostId="6760" Score="0" Text="I updated the answer." CreationDate="2023-01-18T00:38:47.860" UserId="94" />
  <row Id="6772" PostId="4990" Score="0" Text="Please open an issue on Github w/ all the info / logs you have. Thank you! There's one https://github.com/paritytech/substrate/issues/12704 which I'm investigating right now." CreationDate="2023-01-18T07:00:16.520" UserId="3715" />
  <row Id="6773" PostId="6761" Score="0" Text="@DaanvanderPlas updated the log" CreationDate="2023-01-18T07:07:42.320" UserId="2281" />
  <row Id="6774" PostId="6765" Score="0" Text="First, it is allowed to be a validator and have a RPC interface but just requires a more secure setup. Second, this is through the libp2p network. &#xA;P.S. please comment someone if I'm having it wrong here :)" CreationDate="2023-01-18T08:12:38.617" UserId="3317" />
  <row Id="6775" PostId="6773" Score="0" Text="hey @crypto sahdev you can view this [contract-transfer unit test](https://github.com/paritytech/ink/blob/8c3f65c3368429c607f630920c424cb2004ae8ee/examples/contract-transfer/lib.rs#L64). There is a solution for set caller and pass funds to the call." CreationDate="2023-01-18T09:33:05.417" UserId="2844" />
  <row Id="6776" PostId="6770" Score="1" Text="Is there a reason why you are not using a browser extension for managing accounts?" CreationDate="2023-01-18T10:15:38.283" UserId="380" />
  <row Id="6777" PostId="6766" Score="0" Text="I am really thankful for your detailed explanation. Can you please help me/ point me to some resource for setting up genesis_config for a pallet as well. Since some of the pallets like pallet_treasury and pallet_collective needs some changes in the genesis config too. But I am not very sure, how to grab these changes exactly." CreationDate="2023-01-18T11:17:18.483" UserId="3327" />
  <row Id="6778" PostId="6766" Score="0" Text="Maybe make a different question about it so that other people in the future can find it and learn from it as well :)!" CreationDate="2023-01-18T11:25:49.057" UserId="3317" />
  <row Id="6779" PostId="6777" Score="0" Text="thanks for answer me but still i have a problem with that . you mean i have to create base token for my dex . for exmaple DDD token . and user has to buy for exmaple 100 of DDD token and user has to fill asset_id address which account has the DDD token . also user has to create a token by name UUU and put the owner address into liquidity_token_id . after that in this function : https://github.com/paritytech/substrate-dex/blob/master/src/lib.rs#L977 , transfer currency_amount of UUU token to pallet address ni this line https://github.com/paritytech/substrate-dex/blob/master/src/lib.rs#L993" CreationDate="2023-01-18T12:22:29.077" UserId="2722" />
  <row Id="6780" PostId="6777" Score="0" Text="also in this line we have currency_reserve and token_reservev , what are that ? https://github.com/paritytech/substrate-dex/blob/master/src/lib.rs#L1001" CreationDate="2023-01-18T12:23:09.787" UserId="2722" />
  <row Id="6781" PostId="6777" Score="0" Text="Is it curecct? ." CreationDate="2023-01-18T12:30:39.633" UserId="2722" />
  <row Id="6783" PostId="2321" Score="0" Text="Did you found out how to receive such messages ?" CreationDate="2023-01-18T13:00:52.247" UserId="3319" />
  <row Id="6784" PostId="6747" Score="0" Text="It looks like a type mismatch and that a different amount of parameters from what you are giving are expected. The reason might be `...any[]` ? You can also submit an issue in the corresponding repo https://github.com/polkadot-js/apps if you think you are making the correct use of the call but still getting an error." CreationDate="2023-01-18T13:11:02.197" UserId="234" />
  <row Id="6785" PostId="6770" Score="0" Text="Good point, I'm using. Didn't look the documentation yet, thanks :)" CreationDate="2023-01-18T13:16:24.527" UserId="3331" />
  <row Id="6786" PostId="6785" Score="0" Text="What is the upper limit for the contract wasm build?" CreationDate="2023-01-18T13:56:20.130" UserId="3281" />
  <row Id="6787" PostId="6766" Score="0" Text="Oky. I will. Thank you very much" CreationDate="2023-01-18T14:06:07.580" UserId="3327" />
  <row Id="6788" PostId="6785" Score="0" Text="Depends on the network. In shiden it's 128kb&#xA;https://github.com/AstarNetwork/Astar/blob/4017adef515772f84aa97320cd7f38dc9be2fdb7/runtime/shiden/src/lib.rs#L632" CreationDate="2023-01-18T14:44:24.470" UserId="567" />
  <row Id="6789" PostId="6791" Score="0" Text="the whole pallet will become a struct by the macros, thats why when you see Currency=Balances it works" CreationDate="2023-01-18T15:48:54.713" UserId="3319" />
  <row Id="6790" PostId="6791" Score="0" Text="check this for an example: https://docs.substrate.io/build/pallet-coupling/ and this to understand the effect of the various macros: https://docs.substrate.io/reference/frame-macros/" CreationDate="2023-01-18T15:50:55.087" UserId="3319" />
  <row Id="6791" PostId="951" Score="0" Text="Can you read all events for a specific block (perhaps in an offchain worker)?" CreationDate="2023-01-18T18:20:09.457" UserId="3142" />
  <row Id="6793" PostId="6791" Score="0" Text="Alright this gives me a direction to dig into, thank you!" CreationDate="2023-01-19T07:37:42.053" UserId="3317" />
  <row Id="6794" PostId="4225" Score="1" Text="Damn! Why? Can Jaco answer this? `&lt;Bytes&gt;` is really really tricky." CreationDate="2023-01-19T08:37:14.710" UserId="251" />
  <row Id="6795" PostId="6757" Score="1" Text="I understand why you might use previous block hash. How can the current block hash be known during the contract operation? I thought the hash was finalised after completion of all operations." CreationDate="2023-01-19T09:24:54.300" UserId="380" />
  <row Id="6796" PostId="6805" Score="0" Text="But how is the `Currency` associated type of `pallet-assets` then linked to the `Currency` trait?" CreationDate="2023-01-19T13:19:51.667" UserId="3317" />
  <row Id="6797" PostId="5618" Score="2" Text="ok one pallet didn't have the try-runtime feature enabled inside the runtime cargo toml. thanks for the help here" CreationDate="2023-01-19T14:35:30.737" UserId="2484" />
  <row Id="6798" PostId="6805" Score="0" Text="https://github.com/paritytech/substrate/blob/cba59778aa5207b11f7513e5cbb127ea47dd8924/frame/assets/src/lib.rs#L257 this requires that `Currency` implements `ReservableCurrency` and `ReservableCurrency` requires that any type that implements this trait also implements `Currency`: https://github.com/paritytech/substrate/blob/cba59778aa5207b11f7513e5cbb127ea47dd8924/frame/support/src/traits/tokens/currency/reservable.rs#L30&#xA;&#xA;( this is called super trait)" CreationDate="2023-01-19T15:55:41.137" UserId="73" />
  <row Id="6799" PostId="6805" Score="0" Text="Amazing! Thanks a lot!" CreationDate="2023-01-19T16:04:00.983" UserId="3317" />
  <row Id="6800" PostId="6708" Score="0" Text="I've updated my genesis accounts to the Darwinia style [here](https://github.com/Ali-Usama/substrate-EVM-chain/commit/16ce2be0d317482304b2e610dd6e0557e443323f#diff-f2256017c4e606a30f53708578da46675512cc1300be6542ed5f77e58af0d6dcR79), but on the polkadot explorer there are still accounts with H256 addresses, please check [here](https://ibb.co/k3s1d8P)" CreationDate="2023-01-19T19:17:39.377" UserId="3538" />
  <row Id="6801" PostId="6708" Score="0" Text="A new account is also created with the H256 address from the explorer instead of H160 (EVM) address." CreationDate="2023-01-19T19:19:33.563" UserId="3538" />
  <row Id="6802" PostId="6747" Score="0" Text="thanks, i'm looking for some docs on useCall, but cant seem to find" CreationDate="2023-01-19T19:35:38.420" UserId="298" />
  <row Id="6803" PostId="6809" Score="1" Text="this works. thanks!" CreationDate="2023-01-19T21:05:16.777" UserId="3214" />
  <row Id="6804" PostId="6815" Score="1" Text="Note it is not &quot;necessary&quot;, as in, you could set both the controller and stash as the same account. Long term, probably this is refactored, and the Proxy pallet will handle this abstraction." CreationDate="2023-01-19T22:24:55.933" UserId="28" />
  <row Id="6805" PostId="6662" Score="0" Text="this is for gov 1.0 isn't it?" CreationDate="2023-01-20T05:59:34.743" UserId="344" />
  <row Id="6806" PostId="6662" Score="0" Text="In the Polkadot network is still gov 1.0 yes, but in Kusama gov 2.0 is deployed already" CreationDate="2023-01-20T08:22:02.547" UserId="2762" />
  <row Id="6807" PostId="6708" Score="0" Text="You need to make a PR to that repo. Like this: https://github.com/polkadot-js/apps/pull/8396" CreationDate="2023-01-20T08:35:59.223" UserId="251" />
  <row Id="6808" PostId="6708" Score="0" Text="I'm getting [this](https://ibb.co/CvPNSHB) error on the Accounts tab after adding my chain name in the __ethereumChains.ts__ file. Does it require any accountMappings too?" CreationDate="2023-01-20T09:45:46.457" UserId="3538" />
  <row Id="6809" PostId="6818" Score="0" Text="In this example, I'm using a wallet created by Polkadot UI. This account is already in my browser. Every time I try to make a transaction using the Balance pallet this modal appears asking for my password. I'm trying to simulate this same process using PolkadotJs API." CreationDate="2023-01-20T13:55:07.647" UserId="2984" />
  <row Id="6810" PostId="6823" Score="0" Text="Thanks for the quick answer! &#xA;&gt; AURA also didn't worked with warp syncing until two weeks ago.&#xA;This sounds like the most likely problem, will look into it." CreationDate="2023-01-20T16:07:45.720" UserId="2192" />
  <row Id="6811" PostId="6818" Score="0" Text="I have updated my answer, with more information about how to decrypt this json using polkadotJS or even how to generate your own keys" CreationDate="2023-01-20T16:20:16.620" UserId="2762" />
  <row Id="6812" PostId="6818" Score="0" Text="Thanks, for your answer Alex. So, every time I want to make a new transaction do I have to call keyring.addUri(seed, password, options) in order to sign a transaction? Isn't there an unlock function that only needs the password? Because there is a boolean &quot;unlock for 15 mim&quot; when I enabled this bool I don't have to type my password during this time" CreationDate="2023-01-20T16:51:10.153" UserId="2984" />
  <row Id="6813" PostId="6824" Score="0" Text="I don't think this addresses OP's question which specifically asks on guidance on how to write a &quot;custom consensus algorithm&quot; rather than extending PoA." CreationDate="2023-01-20T16:56:44.730" UserId="272" />
  <row Id="6814" PostId="6662" Score="0" Text="But when I do `await api.query.democracy.referendumInfoOf.entries()` as recommended, I only see the list of gov 1.0 referenda." CreationDate="2023-01-20T16:59:02.163" UserId="344" />
  <row Id="6815" PostId="6818" Score="0" Text="The boolean is only for the PolkadotUI, is on you to decide if for security you want to ask it every time or not ask at all and keep the pair in memory (which I don't recommend)" CreationDate="2023-01-20T17:06:07.447" UserId="2762" />
  <row Id="6816" PostId="6404" Score="0" Text="Thanks but, that too unfortunately, doesnt work universally. The extrinsic doesnt error out in js if it errors out on chain, for example when sending more tokens than you have in a wallet" CreationDate="2023-01-20T18:46:51.067" UserId="3613" />
  <row Id="6818" PostId="6826" Score="0" Text="Can we have some more context? What language are you using? Is this the JavaScript polkadot API or some other API?" CreationDate="2023-01-20T19:33:59.737" UserId="1792" />
  <row Id="6819" PostId="6824" Score="0" Text="I agree, but I also think this suggestion kind of hints that OP can check out AURA and GRANDPA code for ideas. I agree and think it's a good thing to check out. &#xA;AURA: &#xA;https://github.com/paritytech/substrate/tree/master/client/consensus/aura, https://github.com/paritytech/substrate/tree/master/frame/aura. &#xA;GRANDPA:&#xA;https://github.com/paritytech/substrate/tree/master/client/finality-grandpa&#xA;https://github.com/paritytech/substrate/tree/master/frame/grandpa.&#xA; There may be links I'm missing" CreationDate="2023-01-20T19:39:22.270" UserId="181" />
  <row Id="6820" PostId="6826" Score="0" Text="I am referring to vanilla Polkadot.js" CreationDate="2023-01-20T19:57:57.680" UserId="3214" />
  <row Id="6821" PostId="6794" Score="0" Text="We need the chosen `AccountId` to be reasonably hard to predict as we are not running the associated nodes. It's load balancing in the sense that the cost of servicing the network is being farmed out to a network of independent nodes.&#xA;&#xA;We cannot use an oracle as we don't want an additional transaction simply to select a node.&#xA;&#xA;Thanks for the comments on the implementation. It's definitely going to be overhauled!" CreationDate="2023-01-21T10:25:21.987" UserId="380" />
  <row Id="6822" PostId="6826" Score="0" Text="maybe `toHex()`?" CreationDate="2023-01-21T20:49:26.283" UserId="167" />
  <row Id="6824" PostId="6708" Score="0" Text="It looks like you didn't change some storage types. Some accountid are still accountid32." CreationDate="2023-01-22T03:49:01.453" UserId="251" />
  <row Id="6826" PostId="6836" Score="0" Text="Yes I can see that, but what about the generic `Arg` that's on the trait? Can we use it as a check for `AssetId` if yes how? Furthermore, I would like to use the `Contains` implementation of pallet-membership instead to say if try_origin should succeed, this should be possible I hope." CreationDate="2023-01-22T06:24:59.060" UserId="3667" />
  <row Id="6828" PostId="6608" Score="0" Text="The issue is which the re-exportation of crates  (eg, sp_core). So AccountKeyring.pair()  return type is being treated differently,  but in essence they are just same." CreationDate="2023-01-22T14:57:58.557" UserId="351" />
  <row Id="6829" PostId="6838" Score="1" Text="Thanks a lot for taking the time to answer. I'll definitely apply all of that." CreationDate="2023-01-22T15:43:39.783" UserId="2135" />
  <row Id="6830" PostId="6708" Score="0" Text="But I've set the `AccountId` type to `AccountId20` [here](https://github.com/Ali-Usama/substrate-EVM-chain/blob/unified-accounts/runtime/src/lib.rs#L75), and used the same type in the runtime and the outer node as well. I guess I'm missing the spec file for my chain in `polkadot-js/apps/packages/apps-config/src/api/spec`, where the types of of other chains are being set I think." CreationDate="2023-01-22T18:03:51.213" UserId="3538" />
  <row Id="6831" PostId="4422" Score="0" Text="Indeed, those are all correct." CreationDate="2023-01-22T18:33:13.897" UserId="2935" />
  <row Id="6832" PostId="6840" Score="0" Text="Thanks @forgetso - I'm afraid I need to clarify a part of my question. I tried toPrimitive(), but the issue there is that I'm missing some human-readable parts, like section/method information in an extrinsic. In the toPrimitive() variant, it only gives me the method index." CreationDate="2023-01-22T20:35:52.730" UserId="3214" />
  <row Id="6833" PostId="6245" Score="1" Text="I have exactly the same error on Debian machine: https://github.com/rust-rocksdb/rust-rocksdb/issues/707" CreationDate="2023-01-22T23:10:21.403" UserId="19" />
  <row Id="6835" PostId="6836" Score="0" Text="Just take a look at how Polkadot uses this. Here you go: https://github.com/paritytech/polkadot/blob/1c99b3c5434e0232f70b58ae93a7b13ebb7f40a1/xcm/xcm-simulator/example/src/parachain.rs#L142-L163" CreationDate="2023-01-23T02:32:36.627" UserId="251" />
  <row Id="6836" PostId="6841" Score="0" Text="The question is a bit vague, could you try to refine it a bit more" CreationDate="2023-01-23T03:56:24.227" UserId="116" />
  <row Id="6837" PostId="6842" Score="0" Text="can anyone help me in doing so" CreationDate="2023-01-23T07:29:07.057" UserId="3304" />
  <row Id="6838" PostId="6662" Score="0" Text="It should get you for Gov2 too, check https://kusama.polkassembly.io/ where you can switch from Gov1 to Gov2. After run await api.query.democracy.referendumInfoOf.entries() you can see in the list the gov2 too" CreationDate="2023-01-23T08:44:53.503" UserId="2762" />
  <row Id="6839" PostId="6777" Score="0" Text="Yes, when you are adding liquidity into a exchange you have to deposit the value of both token. The lines of code currency_reserve and token_reserve what does is reserve some balance into the exchange." CreationDate="2023-01-23T08:49:50.267" UserId="2762" />
  <row Id="6840" PostId="6777" Score="0" Text="In Uniswap v1 docs you can see a more extend explanation about what add liquidity in a exchange means: https://docs.uniswap.org/contracts/v1/guides/pool-liquidity" CreationDate="2023-01-23T08:50:30.890" UserId="2762" />
  <row Id="6841" PostId="6757" Score="0" Text="you are right @forgetso you can only get the previous block hash" CreationDate="2023-01-23T09:46:29.983" UserId="567" />
  <row Id="6842" PostId="6842" Score="0" Text="Can you provide context as to what cactus is?" CreationDate="2023-01-23T11:03:12.227" UserId="34" />
  <row Id="6843" PostId="6823" Score="0" Text="So - cherry-picking the above-mentioned PR allows the state import to proceed, however now I have another issue:&#xA;` Error importing block 0xd8..62: consensus error: Import failed: Import failed: Incomplete block import pipeline.`. I've accepted the above answer and will investigate further - might raise another question..." CreationDate="2023-01-23T13:18:48.383" UserId="2192" />
  <row Id="6844" PostId="6846" Score="0" Text="I tried to implement it here: https://github.com/achimcc/substrate-arkworks-examples/tree/criterion But the becnhmark results are not meaningful." CreationDate="2023-01-23T13:33:48.763" UserId="1867" />
  <row Id="6845" PostId="6832" Score="0" Text="You mean auto-generated bindings for your contract? Or a library to create them manually?" CreationDate="2023-01-23T15:04:00.227" UserId="94" />
  <row Id="6846" PostId="6823" Score="0" Text="Issue raised https://github.com/paritytech/substrate/issues/13220" CreationDate="2023-01-23T15:16:42.680" UserId="2192" />
  <row Id="6848" PostId="6858" Score="2" Text="Thanks for the detailed explanation! It solved my problem, I was running another node and completely forgot about it" CreationDate="2023-01-23T22:16:54.267" UserId="3632" />
  <row Id="6852" PostId="6860" Score="0" Text="If your chain doesn't already have that pallet-fun pallet then someone could submit an on-chain runtime upgrade proposal to the community who could vote in favour of it" CreationDate="2023-01-24T08:44:55.787" UserId="83" />
  <row Id="6853" PostId="6832" Score="0" Text="Yes, auto generated bindings" CreationDate="2023-01-24T08:55:40.183" UserId="3281" />
  <row Id="6854" PostId="6842" Score="0" Text="Our intern Lilly is writing her Bachelor thesis about Hyperledger(https://www.hyperledger.org/use/cactus) integration. I'll ping her!" CreationDate="2023-01-24T10:02:02.340" UserId="1867" />
  <row Id="6855" PostId="6840" Score="0" Text="Can you edit the question to show your type being formatted? Perhaps sharing the bytes and type may help if it is a common type." CreationDate="2023-01-24T11:08:29.760" UserId="380" />
  <row Id="6857" PostId="6868" Score="1" Text="I already have funds. Also I tried to execute flipper contract's flip function on rococo and local network. On both network I am getting Out of Gas Error. For get() function I am getting &quot;{ Err: { Module: { index: 7 error: 0x02000000 } } }&quot; error" CreationDate="2023-01-24T12:30:37.100" UserId="3281" />
  <row Id="6858" PostId="6868" Score="4" Text="I think you have used polkadot.js yes? [as per this response by @P.Ossun](https://substrate.stackexchange.com/a/6711/2844) he stated that weightV2 isn't merged yet. So you can use [this one](https://polkadotjs-apps.web.app/#/explorer). However, I have used [contracts ui](https://github.com/paritytech/contracts-ui)" CreationDate="2023-01-24T13:17:22.067" UserId="2844" />
  <row Id="6859" PostId="6850" Score="0" Text="Thanks! I do it here now: https://github.com/achimcc/substrate-arkworks-examples&#xA;&#xA;These are my benchmark results, the most optimized functions are slower: https://github.com/achimcc/substrate-arkworks-examples/blob/gh-pages/BENCHMARKS.md&#xA;&#xA;Do I have to pass extra paramaeters to `cargo criterion` to benchmark for WASM?" CreationDate="2023-01-24T16:18:31.357" UserId="1867" />
  <row Id="6860" PostId="6849" Score="0" Text="Thank you for the answer.&#xA;&#xA;Okay, and how is this resolved to the node regarding the RPC call(s) from PolkadotJS? Is it just wrapped in multiple RPC calls? Since I'm trying to find out how I can replicate this function via RPC over our C# Substrate API?" CreationDate="2023-01-24T21:34:08.323" UserId="707" />
  <row Id="6861" PostId="6879" Score="0" Text="Did you go through [this offical documentation of Cross-Contract Calling] (https://use.ink/4.0.0-alpha.1/basics/cross-contract-calling) ? However you can also [view this code](https://github.com/123oli/ink-cross-contract-calling)" CreationDate="2023-01-25T05:47:08.293" UserId="2844" />
  <row Id="6862" PostId="6878" Score="1" Text="Indeed, you would need something like `fn slash` with a `SlashOrigin`. Then in the runtime of the chain on which you want the slashing to occur, you will set that origin to `MultiLocation { parents: 2, interior: X*(PathToSlashAuthority) }`. There will indeed be some examples in the next 6 months using Bridge Hub." CreationDate="2023-01-25T06:25:05.213" UserId="620" />
  <row Id="6863" PostId="6841" Score="0" Text="Ok well noted, You can close this particular question. The content of the question has been elaborated upon in the following link: https://substrate.stackexchange.com/questions/6869/best-practices-for-generating-and-monitoring-transactions" CreationDate="2023-01-25T08:48:53.070" UserId="2909" />
  <row Id="6864" PostId="6876" Score="0" Text="Have a look at this question and let me know if there is still anything uncertain.&#xA;https://substrate.stackexchange.com/questions/5385/deciphering-a-complex-type-declaration-for-accountid/5388#5388" CreationDate="2023-01-25T09:09:03.510" UserId="3317" />
  <row Id="6865" PostId="6879" Score="0" Text="What if I am calling the self Contract (re-entrancy), Do i need to import self contract or what? What if i only have the selector information and the arguments that function is taking?" CreationDate="2023-01-25T10:04:06.197" UserId="3281" />
  <row Id="6866" PostId="6876" Score="0" Text="@DaanvanderPlas This is helpful but I don't feel it addresses my question. Where in the code do I tell my chain what crypto from `MultiSignature` am I using for keypairs?" CreationDate="2023-01-25T10:48:31.783" UserId="272" />
  <row Id="6867" PostId="6876" Score="0" Text="Or is it the case that substrate by default supports all three crypto signatures (ECDSA, ed25519, sr25519) and that an account may be represented by any crypto pair as long as the pubkey is SS58 encodable?" CreationDate="2023-01-25T10:55:41.693" UserId="272" />
  <row Id="6868" PostId="6873" Score="0" Text="Try running the same call from polkadot apps and the error will be correctly formatted for you using [this](https://github.com/polkadot-js/apps/blob/ceff524588715933585844228c6841f2e6e54076/packages/react-components/src/Status/checks.ts#L81-L95) code." CreationDate="2023-01-25T11:06:07.963" UserId="380" />
  <row Id="6869" PostId="6849" Score="0" Text="I have edit my answer to have how to recover with RPC calls, but the best way is how you mention with the state.getKeys" CreationDate="2023-01-25T12:08:20.553" UserId="2762" />
  <row Id="6870" PostId="6879" Score="0" Text="No you don't have to import, you can simply call by its name, along with necessary arguments." CreationDate="2023-01-25T12:20:32.943" UserId="2844" />
  <row Id="6871" PostId="6884" Score="1" Text="Thanks for the answer! This is useful to listen to referenda on Polkadot (Gov1.0), but what about referenda created on Kusama (OpenGov)? What pallet/event is the relevant in that case? Note that this will be the case for Polkadot soon too." CreationDate="2023-01-25T12:37:21.600" UserId="2025" />
  <row Id="6872" PostId="6885" Score="0" Text="Just to reiterate, you're saying I can have two accounts, alice using ecdsa and bob using sr25519 on the same runtime?" CreationDate="2023-01-25T14:53:29.593" UserId="272" />
  <row Id="6873" PostId="6879" Score="0" Text="But My requirement is I need to update my contract states even if my sub-contract call failed or reverted. That is why i was using cross-contract invocation for own contract function itself. The way we perform `.call()` low level contract execution in solidity." CreationDate="2023-01-25T15:05:33.087" UserId="3281" />
  <row Id="6874" PostId="6875" Score="0" Text="have you tried to interact via extrinsic? https://docs.substrate.io/tutorials/integrate-with-tools/access-evm-accounts/" CreationDate="2023-01-25T15:17:33.280" UserId="2762" />
  <row Id="6875" PostId="6885" Score="0" Text="Correct that is possible" CreationDate="2023-01-25T15:52:41.267" UserId="3317" />
  <row Id="6876" PostId="6608" Score="0" Text="The issue is that Subxt depended on (and re-exported; it doesn't now but that's not really the point) different versions than you were using, so the types appeare the same but were not :)" CreationDate="2023-01-25T16:15:15.507" UserId="474" />
  <row Id="6878" PostId="6878" Score="1" Text="This has been discussed in the Polkadot forum here: https://forum.polkadot.network/t/allow-restaking-of-relay-chain-stake-through-custom-slashing-privileges/347" CreationDate="2023-01-25T16:40:55.393" UserId="167" />
  <row Id="6879" PostId="6890" Score="1" Text="I think we need more info to properly answer this question: Are you explicitly storing the hash of the transactions in the storage of your custom pallet? or is your question more about how to identify the transactions associated with the stored certificates?" CreationDate="2023-01-25T17:31:02.467" UserId="2025" />
  <row Id="6880" PostId="6898" Score="0" Text="I see a 502 Bad Gateway error when I try to access the url https://koabd.rocks directly. I cannot see any log or error files for my nginx (probably just don't know where to look). I tried adding &quot;ssl on;&quot; to my server block and got an error saying that &quot;server on;&quot; was deprecated and it could not run the nginx that way. I also tried setting ipv6only=off but the nginx server would not run with that either." CreationDate="2023-01-25T19:03:57.363" UserId="3346" />
  <row Id="6881" PostId="6898" Score="0" Text="normally you can find the logs under /var/log/nginx/* . Check if you can find some info there." CreationDate="2023-01-25T19:05:13.363" UserId="3748" />
  <row Id="6882" PostId="6898" Score="0" Text="Thanks! I found the logs and took a look at them. There is nothing obvious. In the access logs I see lots of GET and POST. In the error logs there are only a few lines: 2023/01/22 23:20:01 [notice] 103646#103646: using inherited sockets from &quot;6;7;&quot;&#xA;2023/01/23 00:22:12 [notice] 104666#104666: signal process started&#xA;2023/01/23 00:22:18 [notice] 104669#104669: signal process started" CreationDate="2023-01-25T19:15:04.900" UserId="3346" />
  <row Id="6883" PostId="6898" Score="0" Text="I find it strange that there are no entries from today in either file." CreationDate="2023-01-25T19:15:47.920" UserId="3346" />
  <row Id="6884" PostId="6898" Score="0" Text="Yeah, thats strange. You should see something because https://koabd.rocks is accessible over the internet.." CreationDate="2023-01-25T19:37:34.780" UserId="3748" />
  <row Id="6885" PostId="6608" Score="0" Text="Also the issue of crate compatibility is a big deal as it introduces breaking changes" CreationDate="2023-01-25T19:39:53.877" UserId="351" />
  <row Id="6886" PostId="6898" Score="0" Text="I think I see the error you are talking about... if I type koabd.rocks into the browser directly I get &quot;{&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;error&quot;:{&quot;code&quot;:-32700,&quot;message&quot;:&quot;Parse error&quot;},&quot;id&quot;:null}&quot; could that have anything to do with it?" CreationDate="2023-01-25T19:51:38.343" UserId="3346" />
  <row Id="6887" PostId="6897" Score="0" Text="This is not actually an answer, please use comments on the question to clarify and/or update the original question." CreationDate="2023-01-25T21:30:13.503" UserId="34" />
  <row Id="6888" PostId="6890" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2023-01-25T21:31:39.950" UserId="-1" />
  <row Id="6889" PostId="6883" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2023-01-25T21:32:01.593" UserId="-1" />
  <row Id="6890" PostId="6883" Score="0" Text="if you want to author and finalise blocks on the local testnet of a Substrate-based chain like Polkadot then you need at least three validators, not just two. so add a third Docker container called polkadot3 and use &quot;well known&quot; pre-funded account `--charlie`" CreationDate="2023-01-25T21:40:58.737" UserId="83" />
  <row Id="6891" PostId="6897" Score="0" Text="Please let me know as follwing. 1. swanky --version 2. node --version 3. yarn --version 4. Whether have you set &quot;git config&quot; 5. OS version" CreationDate="2023-01-25T22:28:27.033" UserId="3114" />
  <row Id="6893" PostId="6897" Score="0" Text="1. swanky --version: @astar-network/swanky-cli/1.0.7 win32-x64 node-v18.13.0 2. node --version: v18.13.0 3. yarn --version: 1.22.10 4. Windows 10 Home 22H2" CreationDate="2023-01-25T23:02:36.130" UserId="3748" />
  <row Id="6894" PostId="6901" Score="0" Text="https://github.com/swanky-dapps/marketplace/issues/3" CreationDate="2023-01-26T02:58:08.467" UserId="2844" />
  <row Id="6895" PostId="6278" Score="0" Text="It would seem to me that this is an issue that is best filed at the substrate docs repo [here](https://github.com/substrate-developer-hub/substrate-docs/issues/new/choose)" CreationDate="2023-01-26T03:23:13.297" UserId="104" />
  <row Id="6896" PostId="6755" Score="0" Text="For what purpose is this question being asked for? If it is used for some kind of synchronous operation, then this is an anti-pattern in XCM." CreationDate="2023-01-26T04:07:01.410" UserId="104" />
  <row Id="6897" PostId="6891" Score="0" Text="That link seems to be dead tho :(" CreationDate="2023-01-26T05:50:35.850" UserId="371" />
  <row Id="6898" PostId="6886" Score="0" Text="That seems really tedious task to do. I was looking for something like `eth_estimateGas` on the EVM side" CreationDate="2023-01-26T05:51:56.353" UserId="371" />
  <row Id="6899" PostId="6890" Score="0" Text="@Iker I add more info, and regarding your questions yes I am looking how to identify the transactions associated with the stored certificates?" CreationDate="2023-01-26T05:55:02.687" UserId="3442" />
  <row Id="6900" PostId="6899" Score="0" Text="So I have to wait for result after sending the transaction since otherwise I actually cannot uniquely identify the transaction? What if the chain is super congested? This can take X amount of time?&#xA;&#xA;And for sending multiple transactions one after the other this can be really slow always waiting for the transaction to get included into a block?" CreationDate="2023-01-26T08:19:20.320" UserId="325" />
  <row Id="6902" PostId="6899" Score="0" Text="If you want another option to not wait for the transaction, you need another process  to find it &quot;later on&quot;. You can query the last blocks and check in the list of extrinsics of the block to find your extrinsic and  generate the transaction identifier" CreationDate="2023-01-26T08:33:40.470" UserId="2762" />
  <row Id="6903" PostId="6899" Score="0" Text="or have another service that is listening the events like in this answer https://substrate.stackexchange.com/questions/6075/retrieve-block-index-after-transaction-is-sent/" CreationDate="2023-01-26T08:38:47.687" UserId="2762" />
  <row Id="6904" PostId="6897" Score="0" Text="Can you use wsl ubutsu 20.04?" CreationDate="2023-01-26T10:12:42.057" UserId="3114" />
  <row Id="6905" PostId="6899" Score="0" Text="But this would mean querying every single block on multiple parachains. Would like to avoid that if possible. The question would be what do you suggest for lets say processing 1000 transactions per hour. Would you suggest just using signAndSend and batch transactions(https://polkadot.js.org/docs/api/cookbook/tx/#how-can-i-batch-transactions)?" CreationDate="2023-01-26T10:40:06.740" UserId="325" />
  <row Id="6906" PostId="6899" Score="1" Text="If you can batch the transactions that is perfect for your use case, because you can get the block where all of them are included just waiting once and construct the transaction identifier for each one" CreationDate="2023-01-26T10:51:22.417" UserId="2762" />
  <row Id="6907" PostId="6899" Score="0" Text="Ok This would still allow me to sign transactions on one end, and just send a batch and wait for results in another call correct? Instead of using sign and send." CreationDate="2023-01-26T11:36:59.597" UserId="325" />
  <row Id="6908" PostId="6850" Score="0" Text="I have not yet use criterion with WASM, no idea…" CreationDate="2023-01-26T12:42:17.610" UserId="94" />
  <row Id="6909" PostId="6832" Score="0" Text="There are currently no automatic contract bindings generators. Lets keep it unanswered, maybe there will be at one point." CreationDate="2023-01-26T12:43:16.247" UserId="94" />
  <row Id="6910" PostId="6899" Score="0" Text="Exactly! you can sign and then submit an extrinsic, see https://stackoverflow.com/questions/69991415/can-i-send-transactions-async-using-polkadot-js" CreationDate="2023-01-26T13:22:13.603" UserId="2762" />
  <row Id="6911" PostId="6882" Score="0" Text="Salt is simply to avoid hitting the duplicate contract error. You can put `0x00`. Try putting the `.wasm` as the data. You'll get a gas output in the result" CreationDate="2023-01-26T16:36:16.930" UserId="380" />
  <row Id="6913" PostId="6909" Score="0" Text="Thanks @AurevoirXavier - this is interesting.  But, AFAICT, it's not documented that multiple identities can &quot;do stuff&quot; by default.  Nor is it explained what you can do or not do." CreationDate="2023-01-26T19:19:02.250" UserId="3753" />
  <row Id="6914" PostId="6909" Score="0" Text="What is a dev to do?" CreationDate="2023-01-26T19:20:55.087" UserId="3753" />
  <row Id="6915" PostId="6918" Score="0" Text="Where did you get that &quot;hex encoded metadata&quot; file from? What encoding is it actually? Just Hex UTF-8 or hex SCALE?" CreationDate="2023-01-26T19:46:28.030" UserId="94" />
  <row Id="6916" PostId="6913" Score="0" Text="You can and should edit your original post :)" CreationDate="2023-01-26T19:50:19.527" UserId="34" />
  <row Id="6917" PostId="6913" Score="1" Text="Please include the error code thrown specifically as well above" CreationDate="2023-01-26T19:50:44.550" UserId="34" />
  <row Id="6918" PostId="6918" Score="0" Text="hex SCALE.  I got it from `cargo run metadata`" CreationDate="2023-01-26T19:59:07.613" UserId="3142" />
  <row Id="6919" PostId="6918" Score="0" Text="e.g.  it looks like this&#xA; {&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;result&quot;:&quot;0x6d6574610e3904000c1c73705f636f72651863727970746f2c4163636f756e7449643332000004000401205b75383b2033325d0000040000032000000008000800000503000c08306672616d655f73797374656d2c4163636f756e74496e666f0814496e64657801102c4163636f756e74446174610114001401146e6f6e6365100114496e646578000124636f6e73756d657273100120........." CreationDate="2023-01-26T20:00:40.100" UserId="3142" />
  <row Id="6920" PostId="6882" Score="0" Text="Got it about the `salt`.  I assume something different than the contract wasm needs to go into the `data` field tho, since the wasm is already provided for `code:CodeSource`" CreationDate="2023-01-27T08:28:35.253" UserId="371" />
  <row Id="6921" PostId="6926" Score="0" Text="(sorry I did not get back earlier - was coding)" CreationDate="2023-01-27T12:21:09.517" UserId="85" />
  <row Id="6922" PostId="6921" Score="0" Text="Thank you for your answer. So, if I want to start an isolated parachain node in CI, should I be passing both `--reserved-only -- --reserved-only`? I only need this node temporarily to read metadata." CreationDate="2023-01-27T17:07:59.293" UserId="3054" />
  <row Id="6923" PostId="6921" Score="1" Text="@demisx If you plan to completely isolate the node, i.e. neither the parachain nor the relaychain should connect to other peers, than this combination of command options is suitable." CreationDate="2023-01-27T17:22:25.200" UserId="49" />
  <row Id="6924" PostId="6923" Score="0" Text="Thanks, Alex. I've already done that before (sudoUncheckedWeight method) and it worked. &#xA;I wasn't precise, the question was specifically about the second part of the tutorial where they use Scheduler pallet to schedule a runtime upgrade.&#xA;That part involve sudo query and cause block exhaustion." CreationDate="2023-01-27T19:23:07.843" UserId="3755" />
  <row Id="6925" PostId="6923" Score="0" Text="If it is like you say, does it mean that runtime upgrade may need more than one block to be executed?&#xA;How would I schedule that?" CreationDate="2023-01-27T19:24:08.517" UserId="3755" />
  <row Id="6928" PostId="6917" Score="0" Text="You only created one extrinsic with that, how do you want to examine &quot;all the extrinsics created by this command&quot;? There is only one." CreationDate="2023-01-27T23:30:42.177" UserId="94" />
  <row Id="6929" PostId="6910" Score="0" Text="Where do you want to decode this? The `peek` function already decodes it for you. And what are `storage view call on the client side`? Means that the value will not be in the preimages storage, but directly stored in the `Bounded`." CreationDate="2023-01-27T23:34:46.280" UserId="94" />
  <row Id="6930" PostId="6882" Score="0" Text="Good point. I have no idea what data is then! :(" CreationDate="2023-01-28T10:23:49.917" UserId="380" />
  <row Id="6931" PostId="6500" Score="0" Text="Do you want to know the amount that they have bonded, or the amount of nomination that they have received and is contributing to them being elected? The below answer is about the former, not the latter." CreationDate="2023-01-28T13:01:00.393" UserId="167" />
  <row Id="6932" PostId="6938" Score="0" Text="Ah so `-l&lt;target&gt;` is equivalent to `RUST_LOG=target`. Strange I've never seen it mentioned before in either `log` or `env_logger` docs." CreationDate="2023-01-28T16:34:26.543" UserId="139" />
  <row Id="6933" PostId="6938" Score="1" Text="That is a substrate feature not any generic feature (the `-l`)" CreationDate="2023-01-28T17:26:20.937" UserId="73" />
  <row Id="6935" PostId="6950" Score="0" Text="Yeah, that helps but if you look at the full code I use #[derive(TypeInfo)], which doesn't let me apply your solution in particular. But it did help, thanks!" CreationDate="2023-01-28T21:44:27.853" UserId="1961" />
  <row Id="6936" PostId="6950" Score="1" Text="My rep doesn't allow me to vote yet, but you helped so you got a spiritual upvote from me" CreationDate="2023-01-28T21:48:09.217" UserId="1961" />
  <row Id="6937" PostId="6879" Score="0" Text="the contract state isn't changed if calling failed." CreationDate="2023-01-29T03:05:48.837" UserId="2844" />
  <row Id="6938" PostId="6917" Score="0" Text="Yes. You are right. Let me re phrase my question" CreationDate="2023-01-29T19:11:45.567" UserId="3327" />
  <row Id="6939" PostId="6958" Score="0" Text="Hi Harry, are you getting the `raw` version after you update the `genesis` file?" CreationDate="2023-01-29T20:53:13.270" UserId="279" />
  <row Id="6940" PostId="6960" Score="0" Text="Everything you store in the blockchain is publicly visible to anyone, so you need a way to obfuscate sensitive data in a way that allows only you to see it clearly. Encryption is usually the way to go. Although practically unbreakable (&quot;practically&quot; because it takes too long), at some point in time advancements in technology and research could lead to practically relevant solution to break the encryption. Should this happen, your data can be encrypted and since it stored and replicated on a public ledger, you won't just be able to delete it." CreationDate="2023-01-29T22:47:52.533" UserId="49" />
  <row Id="6941" PostId="6959" Score="1" Text="All the storage is public in the blockchain. And I think you'd better ask this question on https://crypto.stackexchange.com" CreationDate="2023-01-30T03:04:48.960" UserId="251" />
  <row Id="6942" PostId="6945" Score="0" Text="Thanks. It's working perfectly fine. But, I'm still curious how does it relate to inflation and staking rate, mentioned [here](https://research.web3.foundation/en/latest/polkadot/overview/2-token-economics.html#inflation-model) ?" CreationDate="2023-01-30T05:43:01.557" UserId="3538" />
  <row Id="6943" PostId="6912" Score="0" Text="This error does nothing in the latest code. What's your Substrate version?" CreationDate="2023-01-30T09:33:54.637" UserId="251" />
  <row Id="6944" PostId="6912" Score="0" Text="I found this: https://github.com/paritytech/substrate/blame/59494855205374e8f27fb131425dfd78897a9298/frame/contracts/src/lib.rs#LL530-L530C5" CreationDate="2023-01-30T09:34:11.633" UserId="251" />
  <row Id="6945" PostId="6910" Score="0" Text="@OliverTale-Yazdi&#xA;&#xA;Thanks for your comment!&#xA;&#xA;The idea is to decode it on the frontend side.&#xA;&#xA;By 'storage view call' I mean the storage getter macro:&#xA;&#xA;#[pallet::storage]&#xA;#[pallet::getter(fn proposal_of)]&#xA;&#xA;If you use Bounded as a storage item, on the client side you will see the following item:&#xA;&#xA;Inline: “0x30000000000090b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22&quot;" CreationDate="2023-01-30T10:13:40.553" UserId="3371" />
  <row Id="6946" PostId="6961" Score="0" Text="Did you follow this steps: https://github.com/polkadot-js/apps#development ?" CreationDate="2023-01-30T10:19:16.473" UserId="2762" />
  <row Id="6947" PostId="6912" Score="0" Text="Thanks, I'm using substrate-contracts-node 0.23.0-ac615c91892" CreationDate="2023-01-30T10:25:14.543" UserId="380" />
  <row Id="6948" PostId="6912" Score="0" Text="Sorry that was wrong. I'm on the most recent substrate-contracts-node 0.23.0-430873a4fbe" CreationDate="2023-01-30T10:50:19.097" UserId="380" />
  <row Id="6949" PostId="6957" Score="0" Text="We are also seeing this build error in the CI. No idea yet what it is." CreationDate="2023-01-30T11:22:30.163" UserId="94" />
  <row Id="6950" PostId="6884" Score="0" Text="thanks for updating the answer with the complete info :)" CreationDate="2023-01-30T12:17:55.107" UserId="2025" />
  <row Id="6951" PostId="6632" Score="0" Text="yes i have did this also but locked funds are  not getting back into account" CreationDate="2023-01-30T12:19:50.833" UserId="2348" />
  <row Id="6952" PostId="6948" Score="0" Text="Its not quite that, though regarding formulating accounts from a concatenation of addresses, this code snippet in the same page is more relevant hexToAccount https://github.com/shawntabrizi/substrate-js-utilities/blob/6062b9b5c69e6c384a773c9fac940fd461a8b845/utilities.js#L76. &#xA;&#xA;What i wanted to check if there was already a method i could use which would add zeroes and truncating them so it fits the correct length, before embarking on doing it manually. for now appending a fixed length of zeroes works for me." CreationDate="2023-01-30T12:41:04.607" UserId="298" />
  <row Id="6953" PostId="6957" Score="0" Text="I just encountered the same error" CreationDate="2023-01-30T12:47:50.357" UserId="135" />
  <row Id="6954" PostId="6957" Score="0" Text="https://github.com/mcginty/snow/issues/146 this an is upstream issue it seems" CreationDate="2023-01-30T13:57:33.163" UserId="34" />
  <row Id="6955" PostId="6755" Score="0" Text="@KeithYeung For the sake of curiosity. I assume then you dont require a response from the receiving chain?" CreationDate="2023-01-30T14:23:06.483" UserId="3030" />
  <row Id="6956" PostId="6964" Score="0" Text="Please, add the versions you are using to your post." CreationDate="2023-01-30T14:28:47.243" UserId="165" />
  <row Id="6957" PostId="6964" Score="0" Text="check this issue: https://github.com/paritytech/substrate/issues/10583" CreationDate="2023-01-30T14:51:13.750" UserId="2762" />
  <row Id="6958" PostId="6961" Score="0" Text="Yes. Those were the exact instructions I was following. Those caused a problem on Ubuntu in that you have to install yarn in just the right ways using this command: curl -o- -L https://yarnpkg.com/install.sh | bash&#xA;(Don’t use the ususal yarn install command or ubuntu will install cmdtest instead and you will have to remove it using “sudo apt remove cmdtest” and start the installation of yarn again) But otherwise, I was following the directions at that link." CreationDate="2023-01-30T15:04:48.063" UserId="3346" />
  <row Id="6959" PostId="6964" Score="0" Text="That doesn't solve my problem unfortunately. I should have an output confirming that 1 block has been reverted which is not happening right now. Any other ideas?" CreationDate="2023-01-30T15:06:38.597" UserId="2792" />
  <row Id="6964" PostId="6970" Score="2" Text="I have implemented this thing but in the second parachain, I got an event of untrusted teleport location. So, how should the untrusted teleport location be resolved?" CreationDate="2023-01-31T04:49:50.283" UserId="3690" />
  <row Id="6965" PostId="6983" Score="0" Text="I think we could set the logo in a Token's metadata for other chains, but there's no metadata file for the substrate native token. Any idea how can we set that?" CreationDate="2023-01-31T06:16:30.043" UserId="3538" />
  <row Id="6966" PostId="6976" Score="0" Text="Even if the user wants to encrypt data on chain using an extrinsic, isn't encryption a taxing process for a 2 second transaction process time ?" CreationDate="2023-01-31T06:28:50.130" UserId="3667" />
  <row Id="6967" PostId="6985" Score="0" Text="would it be visible in metamask too?" CreationDate="2023-01-31T06:35:43.840" UserId="3538" />
  <row Id="6968" PostId="6970" Score="1" Text="Do you have this line type IsTeleporter = TrustedTeleporters; where you define your parachain as one of the trusted teleports?" CreationDate="2023-01-31T08:24:55.853" UserId="2762" />
  <row Id="6969" PostId="6976" Score="0" Text="If you do it on-chain through and extrinsic everyone will be able to see the input of the extrinsic (the data you want to encrypt)" CreationDate="2023-01-31T08:33:35.150" UserId="2762" />
  <row Id="6970" PostId="6984" Score="1" Text="can you send the config of the pallet_contract in the runtime of your node? or where are you deploying the smart contract" CreationDate="2023-01-31T09:16:11.903" UserId="2762" />
  <row Id="6971" PostId="6972" Score="0" Text="That looks an issue with the versions, are you running polkadotJS locally? And what version of Frontier?" CreationDate="2023-01-31T09:21:57.283" UserId="2762" />
  <row Id="6972" PostId="6987" Score="0" Text="Failing at the above bc `staking::validators(who)` requires me knowing that `who` mapping key. I'm trying to do this with `@polkadot/api`." CreationDate="2023-01-31T09:29:53.003" UserId="1813" />
  <row Id="6973" PostId="6984" Score="1" Text="@AlexBean i have updated the question." CreationDate="2023-01-31T09:30:55.313" UserId="2281" />
  <row Id="6974" PostId="6987" Score="0" Text="There should be a method to iterate this map." CreationDate="2023-01-31T09:31:39.370" UserId="251" />
  <row Id="6975" PostId="6976" Score="1" Text="Yes, but I am asking if encryption is a heavy process (in terms of weight consumed)" CreationDate="2023-01-31T09:32:18.763" UserId="3667" />
  <row Id="6976" PostId="6987" Score="0" Text="https://github.com/polkadot-js/api/issues/1737#issuecomment-577047986" CreationDate="2023-01-31T09:32:53.490" UserId="251" />
  <row Id="6977" PostId="6972" Score="1" Text="Frontier is on `polkadot-v0.9.30` and I am running this is from the webapp." CreationDate="2023-01-31T09:33:11.113" UserId="3667" />
  <row Id="6979" PostId="6987" Score="0" Text="Thanks a lot, i got it. To get all validators: `await api.query.staking.validators.entries().then(r =&gt; r.map(v =&gt; v[0].toHuman()[0]))`" CreationDate="2023-01-31T10:00:49.530" UserId="1813" />
  <row Id="6980" PostId="6970" Score="0" Text="yes, I have this line" CreationDate="2023-01-31T10:14:52.313" UserId="3690" />
  <row Id="6982" PostId="6970" Score="0" Text="with your Parachain defined there too? pub const Statemine: MultiLocation = Parachain(1000).into_location();" CreationDate="2023-01-31T11:18:02.190" UserId="2762" />
  <row Id="6983" PostId="6976" Score="0" Text="This is true too, will consume more resources to do it onchain" CreationDate="2023-01-31T11:19:25.683" UserId="2762" />
  <row Id="6985" PostId="6912" Score="0" Text="The raw error data is `{ Module: { index: '19', error: '0x02000000' } }`. Do you know where I can find the corresponding error the substrate code?" CreationDate="2023-01-31T12:30:22.167" UserId="380" />
  <row Id="6986" PostId="6912" Score="0" Text="Ok, looks like its `OutOfGas` but for some reason polkadot JS is passing back the wrong error message" CreationDate="2023-01-31T12:36:15.937" UserId="380" />
  <row Id="6987" PostId="6966" Score="0" Text="Thanks a lot ! I didn't realized the metadata utility :)" CreationDate="2023-01-31T13:01:45.943" UserId="1864" />
  <row Id="6989" PostId="6996" Score="0" Text="So for now if I just remove call to `force_delayed_canonicalize`, in case of finalization stall db would become slower, but not slower then `archive-all` db? And when the finalization catches up, states will be pruned and it will once again be as fast as before?" CreationDate="2023-01-31T15:37:33.113" UserId="3776" />
  <row Id="6990" PostId="6996" Score="0" Text="Yes, this removal happened when using `number`, not `archive-canonical`. I should have made it clear. Still, theoretically if there is a fork of size 4096, and another branch is finalized, this might happen in `archive-canonical` too." CreationDate="2023-01-31T15:41:03.840" UserId="3776" />
  <row Id="6991" PostId="6402" Score="0" Text="What should the initial values of `refTime` and `proofSize` be? Whenever I run a query like this I get `{ refTime: '0', proofSize: '0' }` returned as `gasRequired`." CreationDate="2023-01-31T15:49:50.773" UserId="380" />
  <row Id="6992" PostId="6996" Score="0" Text="If you use the pin logic I posted above, the block would be pruned but you could still access it as long as it is pinned. But be aware that this may increase the memory usage when the block is pinned and then pruned. Regarding the the removal of the forced canonicalization, I would need to check the code again to tell you about the exact impact." CreationDate="2023-01-31T15:50:34.223" UserId="73" />
  <row Id="6993" PostId="6993" Score="1" Text="Thanks for the direction, I got this working" CreationDate="2023-01-31T15:55:48.013" UserId="698" />
  <row Id="6994" PostId="6996" Score="0" Text="I'm not sure that pin logic solves my problem. If the node is restarted, memory would be lost. What I need is to access state of last finalized block, even if the node crashed/exited. This is needed for our finalization gadget. Solution I found thus far was somehow changing pruning logic. Alternatively maybe we could use `AuxStore` similarly to Grandpa, but this seems like a lot of work." CreationDate="2023-01-31T16:00:55.450" UserId="3776" />
  <row Id="6995" PostId="6996" Score="0" Text="Can you create some issue for Substrate about the forced canonicalization. Maybe we can remove it. But I get what you problem is." CreationDate="2023-01-31T18:50:59.623" UserId="73" />
  <row Id="6996" PostId="6999" Score="1" Text="for parachains it appears to be 5MB as mentioned here https://substrate.stackexchange.com/a/5239/83" CreationDate="2023-01-31T21:10:14.093" UserId="83" />
  <row Id="6997" PostId="6940" Score="0" Text="Thanks, Oliver! How can I run Utility::with_weight in Polkadot.JS Substrate portal? (https://polkadot.js.org/apps/#/sudo interface connected to local node)" CreationDate="2023-02-01T03:49:18.827" UserId="3755" />
  <row Id="6999" PostId="6212" Score="1" Text="Calling terminate did transfer all the funds from the `contract` to the user who called `terminate`. However the funds that got reserved on the wallet while deploying the contract, are still reserved.&#xA;Do you know how that can be moved back to free balance?" CreationDate="2023-02-01T09:39:53.037" UserId="371" />
  <row Id="7000" PostId="7011" Score="0" Text="Once the deployed contract is terminated, shouldn't the funds be unreserved and moved to free balance?" CreationDate="2023-02-01T09:40:45.323" UserId="371" />
  <row Id="7001" PostId="6996" Score="0" Text="Sure, here is the issue I created https://github.com/paritytech/substrate/issues/13290. Thank you for a fast answer to my question." CreationDate="2023-02-01T10:01:43.187" UserId="3776" />
  <row Id="7002" PostId="6970" Score="3" Text="yes, I`ve defined it. It is showing UNTRUSTED TELEPORT LOCATION" CreationDate="2023-02-01T10:59:28.353" UserId="2372" />
  <row Id="7003" PostId="7017" Score="1" Text="When do you get this panic? After inserting a key to the keystore? From the offchain worker?" CreationDate="2023-02-01T13:31:55.113" UserId="73" />
  <row Id="7005" PostId="7017" Score="0" Text="@bkchr I actually saw that the code that causes the panic is inside the unsigned extrinsic, where I validate the payload signature" CreationDate="2023-02-01T14:02:49.487" UserId="2442" />
  <row Id="7006" PostId="6697" Score="0" Text="Anyone has any advice on this topic?" CreationDate="2023-02-01T14:10:15.130" UserId="2747" />
  <row Id="7007" PostId="7010" Score="0" Text="Error decodes to `27` if you [remove the 6 trailing zeroes](https://substrate.stackexchange.com/a/6995/380). This is the 27th error in whatever module `70` refers to. Which chain are you using? I can't find a module with index 70 in my default substrate node." CreationDate="2023-02-01T15:10:46.603" UserId="380" />
  <row Id="7008" PostId="7003" Score="0" Text="Did you strip the trailing zeroes from the `0x02000000` before encoding it as a number? e.g. use `0x02`. The other zeroes are for [extra error data](https://substrate.stackexchange.com/a/1983/380)." CreationDate="2023-02-01T15:14:25.097" UserId="380" />
  <row Id="7009" PostId="7010" Score="0" Text="Additonal info [here](https://substrate.stackexchange.com/questions/1972/0x02000000-being-returned-in-extrinsic-receipt-and-failing-error-module-indexing?noredirect=1&amp;lq=1)" CreationDate="2023-02-01T15:16:02.220" UserId="380" />
  <row Id="7010" PostId="6760" Score="0" Text="Thank you! @Oliver Tale-Yazdi" CreationDate="2023-02-01T15:26:45.697" UserId="522" />
  <row Id="7011" PostId="6940" Score="0" Text="Just select `Utility` and `with_weight` in the link that you posted. Or compose it manually in the `Developer -&gt; Extrinsics` tab In the `Developer::Extrinsic` tab, which needs a running PolkadotJS browser extension. https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.pinknode.io%2Fwestend%2Fexplorer#/extrinsics/decode/0x15001005000204002828" CreationDate="2023-02-01T17:06:06.583" UserId="94" />
  <row Id="7012" PostId="7020" Score="0" Text="Dont know if that is what is causing the issue; but the return type looks different." CreationDate="2023-02-01T17:14:47.673" UserId="94" />
  <row Id="7013" PostId="7016" Score="0" Text="To understand it better, you want to migrate all the data that this contract has produced in your new chain?" CreationDate="2023-02-01T17:53:57.813" UserId="2762" />
  <row Id="7014" PostId="7028" Score="0" Text="it show me this error : `^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Weight`, found `u64``" CreationDate="2023-02-01T18:03:30.737" UserId="2722" />
  <row Id="7015" PostId="7028" Score="1" Text="You can construct a two-dimensional `Weight` with `Weight::from_parts` by passing in the ref-time and proof size. So for example `Weight::from_parts(2 * WEIGHT_REF_TIME_PER_SECOND, 5 * WEIGHT_PROOF_SIZE_PER_MB)`." CreationDate="2023-02-01T18:10:04.133" UserId="94" />
  <row Id="7016" PostId="7020" Score="0" Text="changing it makes no difference to error - used this one from one of similar questions as this seem to work for other folks." CreationDate="2023-02-01T18:12:53.770" UserId="157" />
  <row Id="7017" PostId="7016" Score="0" Text="Yes, I want to migrate all data." CreationDate="2023-02-01T18:29:48.670" UserId="377" />
  <row Id="7021" PostId="7038" Score="0" Text="What's your polkadot node version?" CreationDate="2023-02-02T07:42:14.537" UserId="251" />
  <row Id="7022" PostId="7012" Score="1" Text="L1 is parachain. Every parachain will have its own set of chain-extensions" CreationDate="2023-02-02T07:55:16.330" UserId="567" />
  <row Id="7023" PostId="7038" Score="0" Text="Thank your reply:) , the node\Cargo.toml file show &quot;release-v0.9.37&quot;, &quot;polkadot-v0.9.37&quot;" CreationDate="2023-02-02T08:53:07.520" UserId="2888" />
  <row Id="7024" PostId="7038" Score="0" Text="run command:&#xA;./target/release/parachain-template-node \&#xA;--collator \&#xA;--chain raw-parachain-chainspec.json \&#xA;--base-path data \&#xA;--port 50333 \&#xA;--ws-port 8855 \&#xA;-lparachain=debug \&#xA;-- \&#xA;--execution wasm \&#xA;--chain rococo \&#xA;--port 50343 \&#xA;--ws-port 9988" CreationDate="2023-02-02T08:54:25.837" UserId="2888" />
  <row Id="7025" PostId="7036" Score="0" Text="Glad you got it sorted. If you're getting TS errors like `x` doesn't exist on `Codec` you can use [this guide](https://polkadot.js.org/docs/api/FAQ/#since-upgrading-to-the-7x-series-typescript-augmentation-is-missing)." CreationDate="2023-02-02T09:28:36.043" UserId="380" />
  <row Id="7026" PostId="7020" Score="0" Text="tried changing it to `Vec&lt;u8&gt;` and getting this error on it's construction: `Error: createType(Vec&lt;u8&gt;):: Bytes: required length less than remainder, expected at least 14281, found 32`" CreationDate="2023-02-02T09:30:32.773" UserId="157" />
  <row Id="7027" PostId="7020" Score="1" Text="Could you please share the code? Its always difficult to debug such things remotely." CreationDate="2023-02-02T10:16:51.437" UserId="94" />
  <row Id="7028" PostId="7043" Score="0" Text="take a look into this examples for another question: https://substrate.stackexchange.com/a/7026/2762" CreationDate="2023-02-02T10:36:40.897" UserId="2762" />
  <row Id="7029" PostId="7041" Score="0" Text="Like what I said in https://substrate.stackexchange.com/questions/6699/unified-accounts-with-aura. I think there are some mistakes in your code. Our chain works perfectly. It lives on Rococo https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpangolin2-rpc.darwinia.network#/explorer." CreationDate="2023-02-02T10:37:06.293" UserId="251" />
  <row Id="7030" PostId="7016" Score="2" Text="They are a lot of details. This might help you https://medium.com/darwinianetwork/first-successfully-merge-of-substrate-solo-chain-and-polkadot-parachain-2da40069b6a7." CreationDate="2023-02-02T10:43:40.183" UserId="251" />
  <row Id="7031" PostId="6896" Score="0" Text="There seems to be problems with running swanky installed this way since v.1.0.9 at least for me: `swanky-v1.0.9/dist/commands/init/index.js: Cannot find module 'tslib'`" CreationDate="2023-02-02T12:28:18.427" UserId="257" />
  <row Id="7033" PostId="7054" Score="0" Text="Ok thanks, have you an idea how to select keys randomly out of a StorageMap?" CreationDate="2023-02-02T14:05:42.210" UserId="2484" />
  <row Id="7034" PostId="6896" Score="0" Text="Yes, there was a problem with the packager that caused issues in 1.0.9. Please use a newer version that fixes it." CreationDate="2023-02-02T14:12:21.823" UserId="1876" />
  <row Id="7035" PostId="6896" Score="0" Text="Just to let you know the same problem exists in v1.0.10 - the newest release up to date." CreationDate="2023-02-02T14:17:07.643" UserId="257" />
  <row Id="7036" PostId="6896" Score="1" Text="thanks for the report, we're checking it out." CreationDate="2023-02-02T14:18:03.427" UserId="1876" />
  <row Id="7037" PostId="7056" Score="0" Text="Thanks. Touching swanky.config seems risky for me, but on the other hand development process produces lot of artifacts and deployment especially to local swanky node which lefts mess and these deployments cannot be visible across dev envs (local swanky nodes). I'm just trying to figure out best possible way for handling things out." CreationDate="2023-02-02T14:29:56.577" UserId="257" />
  <row Id="7038" PostId="7043" Score="0" Text="Yeah, I got it. but i how we will get the contributors details for which we will calculate the rewards? @AlexBean" CreationDate="2023-02-02T14:37:04.887" UserId="377" />
  <row Id="7039" PostId="7056" Score="0" Text="Let's put it this way: if you're not gonna use the previously compiled versions, or the address parameter to call the previously deployed contracts (tx and query commands default to latest), you can freely remove the artifacts with older timestamps, and older items from swanky.config's builds and deployments fields. If that turns out to a common pattern, we can consider changing how old artifacts are saved." CreationDate="2023-02-02T15:36:42.670" UserId="1876" />
  <row Id="7041" PostId="4772" Score="1" Text="How is that not an issue? Who's job is it?" CreationDate="2023-02-02T16:11:13.853" UserId="3265" />
  <row Id="7042" PostId="7062" Score="0" Text="Good thought. I would like to have an unlimited number of AccountId's. So there should be for example a million and more juror account ids." CreationDate="2023-02-02T16:24:42.973" UserId="2484" />
  <row Id="7043" PostId="7062" Score="0" Text="How many elements in this vector could be possible? I mean there is some weight limitation with this operation, right? As soon as I access the content of the `StorageValue` I need to decode a large vector." CreationDate="2023-02-02T16:27:58.907" UserId="2484" />
  <row Id="7044" PostId="7062" Score="0" Text="How about my second option?" CreationDate="2023-02-02T16:36:29.927" UserId="251" />
  <row Id="7045" PostId="7059" Score="0" Text="thanks for answer but i want to use my substrate node , not using the substrate-contract-node ." CreationDate="2023-02-02T16:39:19.050" UserId="2722" />
  <row Id="7046" PostId="7062" Score="0" Text="That's better. The interesting part is to swap and deleting the element from the tail. I mean at the moment when removing from the middle all indices need to shift (minus one for following elements)." CreationDate="2023-02-02T16:41:10.773" UserId="2484" />
  <row Id="7047" PostId="7059" Score="1" Text="Yes, it was just to test. With your node as I said in the response try to upload your contract in  https://weightv1--contracts-ui.netlify.app/ or update the version of your node." CreationDate="2023-02-02T16:42:57.567" UserId="2762" />
  <row Id="7048" PostId="7062" Score="0" Text="You shouldn't remove it. You need to use a new account to swap the account you want to remove." CreationDate="2023-02-02T16:43:10.107" UserId="251" />
  <row Id="7049" PostId="7062" Score="0" Text="Anyway, the question is how to build a relationship between `u128` and `AccountId`. LOL" CreationDate="2023-02-02T16:45:16.813" UserId="251" />
  <row Id="7050" PostId="7062" Score="0" Text="I see, but what if I don't have an account in place for that. So assume our list contains 100 elements of accounts. Now one account decides to get removed (in the middle of all indices). (This should be allowed for a juror in a court.)" CreationDate="2023-02-02T16:47:30.343" UserId="2484" />
  <row Id="7051" PostId="3826" Score="0" Text="Just wondering if you could update us on this solution? Thx!" CreationDate="2023-02-02T13:04:47.380" UserId="3789" />
  <row Id="7052" PostId="7062" Score="0" Text="You might need another storage to cache the empty slot... And what about letting users or offchain worker provide the `u128 -&gt; AccountId`.(Just a immature ideas)" CreationDate="2023-02-02T16:50:33.400" UserId="251" />
  <row Id="7053" PostId="7062" Score="0" Text="Caching empty slots is really intelligent. Let me think about this... Off chain worker is interesting too, but always as I used this path I run into trouble of centralised parts." CreationDate="2023-02-02T16:53:12.777" UserId="2484" />
  <row Id="7054" PostId="7062" Score="0" Text="When I hit an empty slot with my random number then I could just use an existing index to the left. But this increases the probability for certain indices which are surrounded by many empty slots..." CreationDate="2023-02-02T17:05:05.460" UserId="2484" />
  <row Id="7055" PostId="7059" Score="0" Text="man sorry for this but i still dont undrestand . let me explain my project . i want to implement `dex` in substrate . user can upload them smart contract and add that contract address into the my dex . know if i use ` substrate-contracts-node` for upload the smart contract , can i access to that smart contract for transfer token or any thing in my substrate node or not ?" CreationDate="2023-02-02T17:06:56.220" UserId="2722" />
  <row Id="7056" PostId="7059" Score="0" Text="Your issue here is that the next button isn't active, so you can not deploy the smart contract, isn't it? Try to upload using the link I mention before instead of the  https://contracts-ui.substrate.io/" CreationDate="2023-02-02T17:11:11.017" UserId="2762" />
  <row Id="7057" PostId="7066" Score="0" Text="do you have the source code public?" CreationDate="2023-02-02T18:28:18.580" UserId="560" />
  <row Id="7058" PostId="7030" Score="1" Text="Understood, thank you taking the time to answer." CreationDate="2023-02-02T19:09:44.747" UserId="2135" />
  <row Id="7059" PostId="7066" Score="0" Text="Why would you do that? Parachain blocks should not take that long or they can get their' chain stuck. Are you trying to do a migration or what?" CreationDate="2023-02-02T19:55:51.683" UserId="94" />
  <row Id="7060" PostId="7069" Score="0" Text="ah shoot. How obvious, ty." CreationDate="2023-02-02T21:17:06.070" UserId="3673" />
  <row Id="7061" PostId="7058" Score="0" Text="this did it. thank you.&#xA;import * as Sc from &quot;@substrate/connect&quot;;&#xA;then use the Sc in new ScProvider(Sc, spec);" CreationDate="2023-02-02T21:31:14.030" UserId="3070" />
  <row Id="7062" PostId="5068" Score="0" Text="In my case I also had to add a benchmark where clause `where_clause { where T::Public : From&lt;sp_core::ecdsa::Public&gt; }` in order to use that key in place where `T::Public` is expected" CreationDate="2023-02-03T00:35:53.910" UserId="2442" />
  <row Id="7063" PostId="5816" Score="0" Text="``` The point of heartbeats is to send them when you are not being able to produce a block, to show that you were online. When you are producing a block, you can don't need to send a heartbeat.``` I think this was the answer I was looking for. An inherent is only meant to be included when authoring a block while a utx can be sent regardless. Thanks." CreationDate="2023-02-03T07:10:08.410" UserId="139" />
  <row Id="7064" PostId="7076" Score="0" Text="You didn't say how its balance  operated?" CreationDate="2023-02-03T09:19:29.817" UserId="3795" />
  <row Id="7065" PostId="7076" Score="0" Text="Let's see an example to compare SovereignAccount and Native： ParaA send XCM to relay_chain, transact call hrmp.hrmpCloseChannelRequests.&#xA;&#xA;If you use SovereignAccount and send it to relay_chain, it will failed because ensure_parachain needs to make sure the account have sender chain privileges and is Origin::Parachain(paraId).&#xA;&#xA;Then we should use Native and send it to relay_chain, converted by ChildParachainAsNative, it will be Origin::Parachain(paraId), and can pass the ensure_parachain.  from https://substrate.stackexchange.com/questions/5066/originkind-in-xcms-transact" CreationDate="2023-02-03T09:20:08.360" UserId="3795" />
  <row Id="7066" PostId="7076" Score="0" Text="Wouldn't above be applied for opening the channel too?" CreationDate="2023-02-03T09:20:58.097" UserId="3795" />
  <row Id="7067" PostId="7077" Score="0" Text="How are you getting the type MultiLocation?" CreationDate="2023-02-03T09:25:43.533" UserId="2762" />
  <row Id="7069" PostId="7076" Score="0" Text="You need to transfer some tokens to this account first. Then use the sudo/governance to manage this account." CreationDate="2023-02-03T10:11:17.600" UserId="251" />
  <row Id="7070" PostId="5068" Score="0" Text="You can also require that your public type implements the `RuntimePublic` trait." CreationDate="2023-02-03T10:15:56.370" UserId="73" />
  <row Id="7071" PostId="7022" Score="0" Text="Well in Ethereum, the transaction nonce updates when a contract instantiates another contract.&#xA;&#xA;However, on ink, the nonce of a contract stays at zero even if instantiates another contract." CreationDate="2023-02-03T11:05:47.540" UserId="371" />
  <row Id="7072" PostId="7077" Score="0" Text="I updated my question." CreationDate="2023-02-03T12:36:16.960" UserId="1793" />
  <row Id="7074" PostId="7073" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2023-02-03T13:46:14.593" UserId="-1" />
  <row Id="7075" PostId="7073" Score="0" Text="Which node are you running ?" CreationDate="2023-02-03T13:46:58.750" UserId="567" />
  <row Id="7076" PostId="7071" Score="0" Text="You should charge a read. Check this question and the code link:&#xA;https://substrate.stackexchange.com/questions/6867/charge-weight-and-weight-info-in-chain-extension" CreationDate="2023-02-03T13:55:47.197" UserId="567" />
  <row Id="7077" PostId="7037" Score="0" Text="Thank you very much. @aurevoir" CreationDate="2023-02-03T14:07:05.850" UserId="3327" />
  <row Id="7078" PostId="7054" Score="1" Text="given hash of key should be rather evenly distributed over the 32 byte of the hash used internally by the map (unless some key where target of hash collision which is often a possibility), then just get a random hash and use the next value using storage next_key host function.&#xA;But the big question is how to get this random hash (especially onchain random: most way to get some random data from a runtime are seen as unsecure, usually stuff as use the hash of past block infos (I remember discussion about some design that could help, but not really sure it is doable yet)." CreationDate="2023-02-03T15:10:38.933" UserId="225" />
  <row Id="7079" PostId="7074" Score="0" Text="Ah right, we did not update the specs file yet. Thanks for the hint! https://github.com/paritytech/substrate/issues/13308" CreationDate="2023-02-03T15:35:17.810" UserId="94" />
  <row Id="7081" PostId="6940" Score="0" Text="@OliverTale-Yazdi, I'm going to test your workaround solution and update the tutorial. However, it isn't clear whether I should remove the scheduler portion altogether for now (**replace** with the utility pallet) or keep the scheduler but **add** the utility pallet as a wrapper around the System `set_code` call.&#xA;Can you clarify?" CreationDate="2023-02-03T18:37:00.813" UserId="284" />
  <row Id="7082" PostId="6940" Score="0" Text="The `Utility` does not replace the `Scheduler` here. It just wraps around the call to be scheduled. So it is an additive change. Thanks for updating :)" CreationDate="2023-02-03T20:32:37.010" UserId="94" />
  <row Id="7083" PostId="7073" Score="0" Text="I am running swanky node" CreationDate="2023-02-04T00:22:59.727" UserId="3794" />
  <row Id="7084" PostId="7088" Score="1" Text="Many thanks. This has been very helpful" CreationDate="2023-02-04T07:04:09.877" UserId="1811" />
  <row Id="7087" PostId="7074" Score="0" Text="So, what is the configuration now?" CreationDate="2023-02-04T10:09:39.613" UserId="299" />
  <row Id="7088" PostId="7090" Score="0" Text="I really appreciate the valuable comments and add-ons" CreationDate="2023-02-04T15:30:31.913" UserId="1811" />
  <row Id="7089" PostId="7038" Score="0" Text="Did you try and purge your chain? Running with a specific base path can corrupt things when testing things out" CreationDate="2023-02-05T10:46:51.097" UserId="34" />
  <row Id="7091" PostId="6958" Score="0" Text="For future readers: we attempted to create a `raw` version from the edited, and still ran into the same issue. Will follow up if/when it's resolved." CreationDate="2023-02-05T21:04:18.527" UserId="630" />
  <row Id="7092" PostId="7096" Score="0" Text="This is probably not related to either subxt nor the parachain system, but we need a starting point. Feel free to add some better tags and/or help me edit and improve the question" CreationDate="2023-02-06T01:31:59.123" UserId="116" />
  <row Id="7093" PostId="7038" Score="0" Text="@DanShields Yes, I have tried this many times. Thank you for your reply!" CreationDate="2023-02-06T09:20:34.647" UserId="2888" />
  <row Id="7094" PostId="7063" Score="0" Text="Thanks for reply but it doesn't quite answear the question. However the direction is absolutely correct. Please see my answear below - that's exactly what I needed. I've also attached link to the offline decode solution." CreationDate="2023-02-06T10:45:07.473" UserId="3371" />
  <row Id="7095" PostId="7098" Score="0" Text="I think it has something to do with the mappings of  the types. The `Address` type should be mapped to the `EthereumAccountId` type no?" CreationDate="2023-02-06T11:52:59.950" UserId="575" />
  <row Id="7096" PostId="7082" Score="1" Text="Thank you Tarik for your help." CreationDate="2023-02-06T12:32:07.110" UserId="1793" />
  <row Id="7097" PostId="7098" Score="0" Text="same issue with that as well @Abdulbee" CreationDate="2023-02-06T12:34:54.143" UserId="3538" />
  <row Id="7098" PostId="6945" Score="0" Text="That is the specific staking rate adopted by Polkadot, which can be implemented using this API. Substrate is end of the day more generic and beyond &quot;just Polkadot&quot;." CreationDate="2023-02-06T13:17:19.503" UserId="167" />
  <row Id="7099" PostId="6608" Score="1" Text="Indeed; if you update your substrate dependencies and subxt has not, then you will run into incompatibility issues here since substrate crates don't follow semver. Substrate crate releases will start to align with polkadot releases soon, and at that point subxt can endeavour to keep up to date with those, and we can track which subxt version corresponds to which substrate/polkadot release." CreationDate="2023-02-06T13:35:06.997" UserId="474" />
  <row Id="7100" PostId="7107" Score="0" Text="I tried to look for the code where a polkadot validator &quot;makes&quot; a block but I couldn't find it. Can someone help us by sharing a link to the relevant code?" CreationDate="2023-02-06T15:31:33.393" UserId="3317" />
  <row Id="7101" PostId="7106" Score="0" Text="Does this answer your question? [\`let...else\` statements are unstable when i need to use pallet-contract](https://substrate.stackexchange.com/questions/6946/let-else-statements-are-unstable-when-i-need-to-use-pallet-contract)" CreationDate="2023-02-06T15:32:49.507" UserId="94" />
  <row Id="7102" PostId="7106" Score="0" Text="no, but i notice my rustc -V is not changing when i use rustup default stable. Its stuck at 1.64.0" CreationDate="2023-02-06T15:43:35.713" UserId="298" />
  <row Id="7103" PostId="7001" Score="0" Text="What is meant by the &quot;maximum network package size&quot;?" CreationDate="2023-02-06T17:08:11.437" UserId="139" />
  <row Id="7104" PostId="7106" Score="0" Text="Any chance you have a rust toolchain file in your repo?" CreationDate="2023-02-06T17:12:58.603" UserId="139" />
  <row Id="7105" PostId="7107" Score="2" Text="you might be interested in looking at the BlockBuilder runtime Api and https://paritytech.github.io/substrate/master/sc_block_builder/struct.BlockBuilder.html" CreationDate="2023-02-06T17:15:51.680" UserId="139" />
  <row Id="7106" PostId="7069" Score="0" Text="Thanks! You really help!" CreationDate="2023-02-06T20:37:19.633" UserId="3171" />
  <row Id="7107" PostId="7108" Score="0" Text="&quot;using the chain state&quot; what kind of chain? Do you mean a live chain like Polkadot or just the state of your test?" CreationDate="2023-02-06T21:06:41.457" UserId="94" />
  <row Id="7108" PostId="7105" Score="0" Text="Thanks these are valuable clues to the root souce, there is no runtime upgrade going on at this time so I think the tx-pool is where we should focus." CreationDate="2023-02-07T00:23:34.840" UserId="116" />
  <row Id="7109" PostId="7100" Score="0" Text="I think this might help you [questions link](https://substrate.stackexchange.com/a/6402/2844), there is code for gas estimation for Weight v2 of contract transaction" CreationDate="2023-02-07T03:42:14.283" UserId="2844" />
  <row Id="7110" PostId="7100" Score="0" Text="[this is example code](https://github.com/AstarNetwork/wasm-flipper/blob/e8aeaca1a2b7736e6aa53430f552dd9f9e686273/ui/components/app.tsx#L70)" CreationDate="2023-02-07T05:59:30.987" UserId="2844" />
  <row Id="7111" PostId="6886" Score="0" Text="@Bukks I think this might help you [link](https://github.com/AstarNetwork/wasm-flipper/blob/e8aeaca1a2b7736e6aa53430f552dd9f9e686273/ui/components/app.tsx#L70)" CreationDate="2023-02-07T06:05:00.343" UserId="2844" />
  <row Id="7113" PostId="5338" Score="0" Text="@bkchr I suppose you recommend the `SessionManager` over the `OneSessionHandler` since `SessionManager::new_session` returns the upcoming validator set which can be compared against the current before the new session starts? Also, `OneSessionHandler` works with the session keys of the validators, not their AccountIds. Just wondering about the decision for going with this trait." CreationDate="2023-02-07T07:28:39.687" UserId="280" />
  <row Id="7114" PostId="7020" Score="0" Text="Can't share code. From latest findings - if sending u16...u64 it works. if sending u8 - it considers as a string. `polkadot-v0.9.30` if that helps. `Vec&lt;u8&gt;` works with 10 bytes at most, and then error..." CreationDate="2023-02-07T08:01:33.740" UserId="157" />
  <row Id="7115" PostId="7001" Score="0" Text="There is a maximum size one network message can be, that is what I wrongly named &quot;maximum network package size&quot;" CreationDate="2023-02-07T08:35:33.203" UserId="73" />
  <row Id="7116" PostId="6581" Score="0" Text="Can you explain how did you use it? facing the same issue, I've generated the types using `typegen` and now I want them to use in the `polkadot-js/apps`" CreationDate="2023-02-07T09:02:01.330" UserId="3538" />
  <row Id="7119" PostId="7106" Score="0" Text="@Purple_Turtle no, but maybe its the way i installed rustc initially, which i doubt was anything other than via substrate.io docs, so i am confused as to what it could be, i am asking the Rust element channel to find out because theres no simple breadcrumbs when searching" CreationDate="2023-02-07T09:19:11.530" UserId="298" />
  <row Id="7121" PostId="7106" Score="0" Text="i had multiple installations on the same machines : )" CreationDate="2023-02-07T09:48:45.703" UserId="298" />
  <row Id="7122" PostId="7105" Score="0" Text="To add; I think the `Invalid` state is probably some custom logic that the parachain will choose in order to decide whether some transaction makes sense or not at that time, so perhaps it's also worth reaching out / tagging the specific parachain team in question as well to ask; an example with the extrinsic you tried submitting might help them also :)" CreationDate="2023-02-07T10:35:43.903" UserId="474" />
  <row Id="7123" PostId="7105" Score="0" Text="@jsdw that would be me then;-)" CreationDate="2023-02-07T11:53:38.220" UserId="116" />
  <row Id="7124" PostId="7001" Score="0" Text="Is that a libp2p limit? Given the numbers 16 MiB I doubt you're talking about a limit of the underlying protocols (http/tcp/ip)" CreationDate="2023-02-07T13:36:19.977" UserId="139" />
  <row Id="7125" PostId="6754" Score="0" Text="It worked. Thak you a lot" CreationDate="2023-02-07T15:27:45.363" UserId="3708" />
  <row Id="7126" PostId="7118" Score="0" Text="Thank you for your answer. I've already known about Phat Contract but it is not the thing that I am finding as my data may be exposed to the world I think." CreationDate="2023-02-07T16:55:33.497" UserId="3770" />
  <row Id="7127" PostId="7128" Score="0" Text="Thanks, kianenigma!" CreationDate="2023-02-07T18:01:22.013" UserId="3736" />
  <row Id="7128" PostId="7108" Score="0" Text="I found a better and different method for the unit test which was to call Council::function directly." CreationDate="2023-02-07T22:04:37.870" UserId="3142" />
  <row Id="7129" PostId="7001" Score="0" Text="That is the limit for the block response protocol and is set in Substrate." CreationDate="2023-02-07T22:26:42.093" UserId="73" />
  <row Id="7130" PostId="7126" Score="0" Text="What exactly is the problem? Please be more concrete and clear here" CreationDate="2023-02-07T23:48:38.160" UserId="34" />
  <row Id="7131" PostId="7131" Score="0" Text="Thank you for your detailed answer. But, I'd want the types generated from `typegen` to be used in the `polkadot-js/apps/packages/apps-config/src/api/typesBundle.ts` instead of the `Developer` tab on explorer. Can you please explain how would I do that?" CreationDate="2023-02-08T05:49:12.553" UserId="3538" />
  <row Id="7132" PostId="7047" Score="0" Text="facing the same issue with the `apps` master branch" CreationDate="2023-02-08T05:50:53.640" UserId="3538" />
  <row Id="7133" PostId="7133" Score="0" Text="are you importing the pallet and implementing its `Configs` before adding it to `construct_runtime`?" CreationDate="2023-02-08T07:24:35.783" UserId="3538" />
  <row Id="7134" PostId="7129" Score="0" Text="thanks but i could not find it! is there a specific way to retreive that enum? currently i created a runtime api that returns the unckedextrinsic unsigned extrinsic that i want" CreationDate="2023-02-08T07:41:44.567" UserId="3319" />
  <row Id="7135" PostId="7136" Score="0" Text="I have to run parachain and do these step on that or i can do them on substrate node ?" CreationDate="2023-02-08T09:16:12.297" UserId="2722" />
  <row Id="7136" PostId="7047" Score="0" Text="What's the version number at the top right?" CreationDate="2023-02-08T09:21:03.933" UserId="380" />
  <row Id="7137" PostId="7136" Score="0" Text="You can write these codes in any Substrate chain's `chain_spec`. Relaychain and parachain, are all Substrate chains." CreationDate="2023-02-08T09:35:40.423" UserId="251" />
  <row Id="7138" PostId="7131" Score="0" Text="There are example PRs with &quot;custom types&quot; here: https://github.com/polkadot-js/apps/pulls?q=is%3Apr+custom+types" CreationDate="2023-02-08T09:50:25.710" UserId="83" />
  <row Id="7139" PostId="7131" Score="0" Text="At that link the best PR is by InterBTC https://github.com/polkadot-js/apps/pull/6779/files where they import custom types from NPM https://www.npmjs.com/package/@interlay/interbtc-types. PRs by Spartan, Subspace, KILT, and BitCountry are also good. You can't fetch from external json file like I did in this PR here https://github.com/polkadot-js/apps/pull/3084. Specify `minmax` for the metadata `OverrideVersionedType` (i.e. where min (v &gt;= min) and max (v &lt;= max)). Note that typesBundle.ts file is automatically generated by running `yarn run build:extra`" CreationDate="2023-02-08T10:10:25.417" UserId="83" />
  <row Id="7140" PostId="7108" Score="0" Text="Yea, that is the way its supposed to be done :P" CreationDate="2023-02-08T10:15:09.783" UserId="94" />
  <row Id="7141" PostId="7047" Score="0" Text="`apps v0.124.2-49`&#xA;   [Here](https://ibb.co/CbmB0bH) is the screenshot" CreationDate="2023-02-08T10:34:19.927" UserId="3538" />
  <row Id="7142" PostId="7131" Score="0" Text="How did you get [this](https://raw.githubusercontent.com/DataHighway-DHX/node/master/custom_types.json) json file for your chain?" CreationDate="2023-02-08T10:44:37.683" UserId="3538" />
  <row Id="7143" PostId="6886" Score="0" Text="Don't think this holds for deployment" CreationDate="2023-02-08T10:54:40.147" UserId="371" />
  <row Id="7147" PostId="7047" Score="0" Text="Well, seems like you'll have this bug fix in your version then. Did you create your chain spec in `polkadot-js/apps/packages/apps-config/src/api/spec` yet? I don't have any other suggestions, sorry." CreationDate="2023-02-08T11:13:01.820" UserId="380" />
  <row Id="7150" PostId="7079" Score="0" Text="so if we read a query a single key in a `StorageMap` - are we supposed to charge this weight manually by doing `env.charge_weight(T::DbWeight::get().reads(1))?`? Thanks" CreationDate="2023-02-08T11:38:26.653" UserId="684" />
  <row Id="7151" PostId="7079" Score="0" Text="Furthermore, I noticed that it says here that we can benchmark our chain extension functions on Substrate: &quot;In order to be able to charge the correct weight for the functions defined by a chain extension benchmarks must be written, too&quot; (https://crates.parity.io/pallet_contracts/chain_extension/index.html#benchmarking and https://substrate.stackexchange.com/a/1910/684)? Is this true? I thought we could only benchmark pallets calls in Substrate currently?" CreationDate="2023-02-08T11:39:31.163" UserId="684" />
  <row Id="7152" PostId="7047" Score="0" Text="yeah, I'm struggling with generating that spec types for my chain. I've tried using the specs for another chain that implements the same evm accounts as in my chain, but that didn't work either" CreationDate="2023-02-08T12:02:38.783" UserId="3538" />
  <row Id="7153" PostId="7141" Score="0" Text="I didn't write this method because `from_ss58check` requires `std`. So, I think he can not use this in the pallet.  :)" CreationDate="2023-02-08T12:53:04.157" UserId="251" />
  <row Id="7154" PostId="7141" Score="0" Text="And `hex_literal::hex!` requires a string literal. I prefer to use `array-bytes`. :)" CreationDate="2023-02-08T12:55:04.133" UserId="251" />
  <row Id="7155" PostId="7141" Score="0" Text="True, for the pallet your response makes more sense than the from_ss58check" CreationDate="2023-02-08T13:27:26.063" UserId="2762" />
  <row Id="7156" PostId="7114" Score="0" Text="This is a tutorial on how to make the transition here: https://docs.substrate.io/tutorials/connect-relay-and-parachains/connect-a-local-parachain/" CreationDate="2023-02-08T16:11:49.377" UserId="85" />
  <row Id="7157" PostId="7140" Score="0" Text="But this is an AccountId32, not an AccountId" CreationDate="2023-02-08T16:12:20.720" UserId="3744" />
  <row Id="7158" PostId="7140" Score="0" Text="Updated my answer." CreationDate="2023-02-08T16:29:44.897" UserId="251" />
  <row Id="7159" PostId="7114" Score="1" Text="I need to migrate existing solo chain data to relay chain, not the communication part between relay chain and parachain" CreationDate="2023-02-08T16:56:30.073" UserId="2372" />
  <row Id="7161" PostId="7140" Score="0" Text="Do you know any method to transform an ss58 to pubkey in runtime?" CreationDate="2023-02-08T18:57:46.213" UserId="3744" />
  <row Id="7162" PostId="7131" Score="0" Text="I wrote it manually" CreationDate="2023-02-08T23:14:07.237" UserId="83" />
  <row Id="7163" PostId="7041" Score="0" Text="I guess the link to your chain is broken. Can you please specify the `types` that you have to use in the `polkadot-js/apps/packages/apps-config/src/api/spec` ?" CreationDate="2023-02-09T04:35:41.870" UserId="3538" />
  <row Id="7164" PostId="7041" Score="0" Text="Use this one https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpangolin-rpc.darwinia.network#/explorer" CreationDate="2023-02-09T05:06:40.140" UserId="251" />
  <row Id="7165" PostId="7041" Score="0" Text="Yes, it looks good. And how can I generate my spec types to be used in `polkadot-js/apps/packages/apps-config/src/api/spec` ?" CreationDate="2023-02-09T05:27:49.100" UserId="3538" />
  <row Id="7166" PostId="7041" Score="0" Text="Can you execute any extrinsic from your chain on `polkadot-js/apps`? I'm getting `UnknownTransaction::CannotLookup` on each extrinsic" CreationDate="2023-02-09T05:48:43.063" UserId="3538" />
  <row Id="7167" PostId="7041" Score="0" Text="IIUC, you don't need to do that. That's why we need `scale-info` in the Rust code." CreationDate="2023-02-09T05:49:18.090" UserId="251" />
  <row Id="7168" PostId="7041" Score="0" Text="Sure. That's a public testnet. We've already deployed a lot of Dapps there." CreationDate="2023-02-09T05:50:27.830" UserId="251" />
  <row Id="7169" PostId="7041" Score="0" Text="Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/142726/discussion-between-discardo-and-aurevoirxavier)." CreationDate="2023-02-09T05:50:45.343" UserId="3538" />
  <row Id="7170" PostId="7079" Score="0" Text="You can basically benchmark any kind of code." CreationDate="2023-02-09T11:27:46.313" UserId="73" />
  <row Id="7171" PostId="7146" Score="0" Text="Hi Hugo, please write your question here instead of linking to it. Try to boil down your problem to the smallest possible unit and phrase it as a question." CreationDate="2023-02-09T14:17:25.270" UserId="116" />
  <row Id="7172" PostId="7146" Score="0" Text="usually we do not introduce ourselfs in the question" CreationDate="2023-02-09T14:18:07.527" UserId="116" />
  <row Id="7173" PostId="7105" Score="1" Text="Aha, perfect :)" CreationDate="2023-02-09T17:11:24.697" UserId="474" />
  <row Id="7174" PostId="7157" Score="0" Text="I was looking at doing it using rust, fetching raw storage data of desired format from rpc and feeding it to any database I like.  If possible can this feature be build on subxt?" CreationDate="2023-02-09T19:52:00.240" UserId="213" />
  <row Id="7175" PostId="7157" Score="0" Text="I don't need the index of older entries that has been updated, only storage map data during latest block . But the problem is when blockchain goes to next block I have to refetch all data again to check if any data is updated, if it would be possible to only add new data based on subscribed event." CreationDate="2023-02-09T20:28:30.673" UserId="213" />
  <row Id="7176" PostId="7157" Score="0" Text="Block events will be enough I think to get the id of storage map, and knowing data update, delete or new data entry." CreationDate="2023-02-09T20:39:51.103" UserId="213" />
  <row Id="7177" PostId="7158" Score="1" Text="There's actually a PR in flight right now to allow this using the `call_runtime` API exposed by `pallet-contracts`: https://github.com/paritytech/ink/pull/1641.&#xA;&#xA;Otherwise you have to use Chain Extensions as Justin mentioned" CreationDate="2023-02-09T20:55:29.473" UserId="1824" />
  <row Id="7178" PostId="7107" Score="1" Text="@DaanvanderPlas I wanted to know about the particular part of code where a validator forms a blocks and adds to their local version of the chain and then broadcasts it. Basically I want to modify the empty-block production logic and kinda a build a mixture of instant-seal + BABE." CreationDate="2023-02-10T08:12:06.470" UserId="3798" />
  <row Id="7179" PostId="5980" Score="0" Text="Basically every GRANDPA round, to update the finality of the chain." CreationDate="2023-02-10T09:44:51.707" UserId="3317" />
  <row Id="7180" PostId="7162" Score="3" Text="I’m voting to close this question because it should be an issue of Polkadot repository." CreationDate="2023-02-10T09:50:23.923" UserId="251" />
  <row Id="7182" PostId="7162" Score="1" Text="Please open an *issue* here, thanks https://github.com/paritytech/substrate/issues/new" CreationDate="2023-02-10T14:39:00.793" UserId="94" />
  <row Id="7184" PostId="6899" Score="0" Text="@AlexBean as a followup question: As mentioned that the transaction hash is not unique, does that mean that transaction hash does not include nonce?  Is there a way to retrieve a transaction via address and nonce?" CreationDate="2023-02-11T04:52:43.627" UserId="2909" />
  <row Id="7185" PostId="7165" Score="0" Text="By looking at your link (noise.rs) code, it seems that the ephemeral noise key needs private/public libp2p keys to initiate, and the ephemeral noise keys are not persistent. Where is the libp2p keys coming from? If I want to develop an app on the smoldot/Subrate connect, I need a persistent key to identify the user/node, In the tutorials of full nodes, it seems that keys needs to be generated before connected to the chain network. Could you please explain the difference and the best way to identify users on light client node" CreationDate="2023-02-11T21:13:16.613" UserId="3814" />
  <row Id="7186" PostId="7177" Score="0" Text="I could solve the issue by deleting node_modules and install again" CreationDate="2023-02-13T05:11:11.803" UserId="3254" />
  <row Id="7187" PostId="7165" Score="0" Text="First, I edit my answer maybe it is more clear now. Second, there is a difference between identifying the user (e.g. who wants to send a transaction) and the node (required to join the network). Identifying the light client shouldn't be a concern to you if you want to build an app." CreationDate="2023-02-13T07:52:10.283" UserId="3317" />
  <row Id="7188" PostId="7177" Score="0" Text="If deleting your node_modules and installing again worked it was probably a version issue. You can create an answer to your question an mark it as solved" CreationDate="2023-02-13T09:08:31.247" UserId="2762" />
  <row Id="7189" PostId="6899" Score="1" Text="I have update my answer @Josh" CreationDate="2023-02-13T10:17:11.323" UserId="2762" />
  <row Id="7190" PostId="7100" Score="1" Text="The linked question was answered by me and the linked repo code was created by me. I am looking for an official solution." CreationDate="2023-02-13T10:18:54.163" UserId="2478" />
  <row Id="7191" PostId="7182" Score="0" Text="Take a look at what polkadot apps does in [valueToText](https://github.com/polkadot-js/apps/blob/c80b14e620ca42f97055ca572da52ae1eceaa91b/packages/react-params/src/valueToText.tsx). These are the functions used to display the call outcomes." CreationDate="2023-02-13T12:15:39.213" UserId="380" />
  <row Id="7192" PostId="7182" Score="0" Text="Are you calling from the same account when you run the code in your own UI?" CreationDate="2023-02-13T12:26:20.457" UserId="380" />
  <row Id="7193" PostId="7184" Score="0" Text="How large is &quot;larger files&quot;? And why are you trying to store files on chain? You should only store the hash of the file on chain." CreationDate="2023-02-13T12:58:52.600" UserId="73" />
  <row Id="7194" PostId="7184" Score="0" Text="larger than the max block size, so everything &gt; 3,4MB (give or take)" CreationDate="2023-02-13T13:08:39.670" UserId="3826" />
  <row Id="7195" PostId="7184" Score="0" Text="@bkchr I don't want to store these bytes onchain, they supposed to be processed by the offchain worker. I was hoping to do so by offchain indexing, but still it fails, if the byte size is larger than the block limit. The result of the offchain worker byte procession is supposed be stored onchain afterwards. This is basically just a hash." CreationDate="2023-02-13T13:11:48.603" UserId="3826" />
  <row Id="7196" PostId="7182" Score="0" Text="yeah I am using same account" CreationDate="2023-02-13T13:22:53.800" UserId="2844" />
  <row Id="7197" PostId="7182" Score="0" Text="Are you definitely calling the same contract in each case?" CreationDate="2023-02-13T14:34:11.023" UserId="380" />
  <row Id="7198" PostId="7182" Score="0" Text="Yeah you can view in this code https://github.com/substrate-dapps/todo-dapp/tree/main/ui" CreationDate="2023-02-13T14:41:50.397" UserId="2844" />
  <row Id="7199" PostId="5598" Score="0" Text="It looks to me like you found the correct substrate issue." CreationDate="2023-02-13T15:40:07.010" UserId="361" />
  <row Id="7200" PostId="6402" Score="0" Text="any call with `{ value: 0, gasLimit: -1 }` fails after deploying with Shibuya, any way to fix this?" CreationDate="2023-02-13T16:15:26.897" UserId="2394" />
  <row Id="7201" PostId="7126" Score="0" Text="The thing is I made some examples using Dali. The first milestone was evaluated using those examples,  now I have to delete them.&#xA;It's not a big problem, I only wanted to know if Dali will be in Rococo again. We will send milestone 2 soon and I wanted to use those examples again. Rockmine and Dali was the only parachains combination that worked for me using xcm transfers." CreationDate="2023-02-13T22:46:08.803" UserId="3708" />
  <row Id="7202" PostId="7146" Score="0" Text="Thanks, updated it!" CreationDate="2023-02-14T00:16:23.983" UserId="3732" />
  <row Id="7203" PostId="7194" Score="0" Text="Duplicate with https://substrate.stackexchange.com/questions/7146/weightlimitreached-error-occured-when-executing-reservetransferassets-with-xcm" CreationDate="2023-02-14T07:56:13.143" UserId="1959" />
  <row Id="7204" PostId="7192" Score="0" Text="Where are you deploying the Smart Contract (chain)? Do you have  enough Balance in the account you are using?" CreationDate="2023-02-14T08:21:48.343" UserId="2762" />
  <row Id="7205" PostId="7192" Score="1" Text="Can you try in: https://contracts-ui.substrate.io/&#xA;polkadot js UI is not updated to WeightV2 ( &gt; polkadot v0.9.33)" CreationDate="2023-02-14T08:22:14.587" UserId="567" />
  <row Id="7206" PostId="7191" Score="1" Text="Agreed, but talking with Tomaka he said that there's lots of fun and games that smoldot does to make it work well in the browser and that for now it's a much better idea to do rust to js to smoldot (you will have a lot less pain). For desktop you can use smoldot as a crate - that has worked ok for me: https://github.com/gilescope/polkapipe/blob/main/src/smoldot_std.rs" CreationDate="2023-02-14T09:40:04.603" UserId="85" />
  <row Id="7207" PostId="7190" Score="0" Text="If you get rust-js-rust working with smoldot then please post a link to your code so we can see it. I find rust to js can be a bit fiddly at times." CreationDate="2023-02-14T09:42:04.627" UserId="85" />
  <row Id="7208" PostId="7192" Score="0" Text="@AlexBean i created solochain with substrate also  i want upload this in polkadot.js local test ." CreationDate="2023-02-14T09:42:22.063" UserId="2722" />
  <row Id="7209" PostId="7192" Score="0" Text="@P.Ossun I tried to use contract-ui in it works , but i want to know hiw can i solve this problem ." CreationDate="2023-02-14T09:43:41.123" UserId="2722" />
  <row Id="7210" PostId="7192" Score="0" Text="@MrCoder Having polkadot js apps team fixing the issue: https://github.com/polkadot-js/apps/pull/8538 =)" CreationDate="2023-02-14T11:12:48.483" UserId="567" />
  <row Id="7211" PostId="7192" Score="0" Text="@P.Ossun which way is better for production ? Contract-ui or polkadot.js ?" CreationDate="2023-02-14T11:42:07.457" UserId="2722" />
  <row Id="7212" PostId="7184" Score="0" Text="But you are sending them to the chain, which essentially means that they are part of a block." CreationDate="2023-02-14T12:27:56.143" UserId="73" />
  <row Id="7213" PostId="7184" Score="0" Text="@bkchr Yes I know and my question is, how to avoid that. The offchain worker of my pallet should receive large amount  of data  ([u8], &gt; 3MB) to process it and the result is a hash that I want to store on-chain. So how can I pass pass large amount of data  to the offchain worker without writing that onchain.&#xA;&#xA;These bytes are passed through an attached web interface to the pallet and I cannot bypass that, so I need to use these bytes ." CreationDate="2023-02-14T13:13:36.363" UserId="3826" />
  <row Id="7214" PostId="7206" Score="0" Text="Thank you, kianenigma! :-)" CreationDate="2023-02-14T13:55:02.697" UserId="3736" />
  <row Id="7215" PostId="7194" Score="0" Text="I saw it, I think he's running a local network too. We're not using any parachain on kusama, so the parachain with id 3000 exists." CreationDate="2023-02-14T14:19:52.570" UserId="3708" />
  <row Id="7216" PostId="7208" Score="0" Text="There are only 2 PRs with this label: https://github.com/paritytech/substrate/pulls?q=is%3Apr+label%3AE0-runtime_migration+&#xA;Does it mean that this information for older PRs is now lost?" CreationDate="2023-02-14T15:06:31.650" UserId="3832" />
  <row Id="7217" PostId="7210" Score="0" Text="Duplicating is the way I'd like to go, but it means each Runtime needs it's own ChainSpec, Executor, Service, Client etc, which seems excessive and requires lots of boilerplate code.&#xA;Take this macro for example: https://github.com/darwinia-network/darwinia-parachain/blob/a9531a83b73d1c07d9a30df554f3034265ea5bc4/src/command.rs#L200 . Do you happen to know where it comes from originally? Is it the recommended best-practice? I also worry about licensing, as I've seen this exact code in multiple projects." CreationDate="2023-02-14T15:15:20.673" UserId="3832" />
  <row Id="7218" PostId="6617" Score="0" Text="So the steps you have followed so far are correct. Though I would like to know some extra info. Like the version of your nodes, if you are using warp sync. I assume the chain specs would be correct, but will be a plus if you could post the script you are using for launching your nodes, at least your collators.&#xA;I would be interested in seeing the launch scripts before and after the whole export, to check your db parameters." CreationDate="2023-02-14T15:43:56.733" UserId="165" />
  <row Id="7219" PostId="7208" Score="0" Text="Will ask in chat, thanks for reporting." CreationDate="2023-02-14T16:35:06.810" UserId="94" />
  <row Id="7220" PostId="7204" Score="0" Text="Hi! Yes, this is exactly the right place to ask this kind of questions. Not sure I understand the question, can you try to rephrase it or use an example of what you are looking for" CreationDate="2023-02-14T17:05:46.477" UserId="2762" />
  <row Id="7221" PostId="7208" Score="0" Text="Yes. https://github.com/paritytech/substrate/pull/13009 this one had a label a few days ago." CreationDate="2023-02-14T18:32:53.030" UserId="251" />
  <row Id="7223" PostId="7215" Score="0" Text="Still not clear how Rust goes from bytes to T::AccountId. Is there an implicit conversion?" CreationDate="2023-02-14T21:26:53.053" UserId="29" />
  <row Id="7224" PostId="328" Score="1" Text="Reference for the mentioned `claims` pallet: polkadot's [runtime/common/src/claims.rs#L532](https://github.com/paritytech/polkadot/blob/dfa8c5ae321e0523f88fdc43afc6d743812ee49e/runtime/common/src/claims.rs#L532)" CreationDate="2023-02-14T21:54:32.347" UserId="14" />
  <row Id="7225" PostId="6831" Score="0" Text="Great question.  I am trying to wire `IBC` protocol with `trait ExportXcm`. ` in order and in a timely fashion` are very unclear. Just as real example which requires an answer." CreationDate="2023-02-14T22:52:11.893" UserId="484" />
  <row Id="7226" PostId="7215" Score="1" Text="Updated my answer. This is just a Rust question." CreationDate="2023-02-15T03:26:00.670" UserId="251" />
  <row Id="7227" PostId="7210" Score="0" Text="I think it comes from the cumulus repo. You could use it." CreationDate="2023-02-15T05:36:23.180" UserId="251" />
  <row Id="7228" PostId="7204" Score="0" Text="@AlexBean I have edited the description. Please let me know if you need any other detail" CreationDate="2023-02-15T05:43:09.363" UserId="3437" />
  <row Id="7231" PostId="7204" Score="0" Text="it sounds like you just need to convert the extrinsic forms into &quot;editable&quot; extrinsic forms using a technique similar to that described here https://stackoverflow.com/a/66415622/3208553. read official docs about controlled components here https://reactjs.org/docs/forms.html#controlled-components" CreationDate="2023-02-15T06:39:59.020" UserId="83" />
  <row Id="7232" PostId="7197" Score="1" Text="I left out the details. I worked on the local testnet and used the reserveTransferAsset to transfer the asset from statemine to trappist para. After that, this question is about transfering the asset which reserved at stamine, from the trappist to another parachain. &#xA;&#xA;And It was a weight setting problem in statemine and I solved it. Thank you for your help!" CreationDate="2023-02-15T06:43:48.647" UserId="3732" />
  <row Id="7233" PostId="7223" Score="0" Text="ink! smart contract or Solidity smart contract?" CreationDate="2023-02-15T09:14:57.833" UserId="2762" />
  <row Id="7234" PostId="7228" Score="1" Text="To expand, data is an encoded `message` or `constructor` selector (because you can have multiple constructors) with input for it (if needed)." CreationDate="2023-02-15T09:32:13.313" UserId="3317" />
  <row Id="7235" PostId="7228" Score="0" Text="Well in my case the function signature looks like this:&#xA;`pub fn new(init_value: bool) -&gt; Self `&#xA;I believe I initialized it with `false`.&#xA;Can you elaborate what encoding or other mechanism led it to be `0x9bae9d5e00`?" CreationDate="2023-02-15T09:37:02.013" UserId="371" />
  <row Id="7236" PostId="7223" Score="0" Text="@AlexBean ink! smart contract" CreationDate="2023-02-15T10:09:50.707" UserId="3469" />
  <row Id="7237" PostId="7227" Score="1" Text="This answers HRMP specifically, so not XCM and XCVM in general. Parity works on bridges and lite channels.  So may be author asked specifically about HRMP or HRPM can be example of ordering." CreationDate="2023-02-15T10:23:01.113" UserId="484" />
  <row Id="7238" PostId="7230" Score="0" Text="Perhaps related to [this](https://github.com/paritytech/substrate/pull/195)" CreationDate="2023-02-15T10:34:01.450" UserId="380" />
  <row Id="7239" PostId="7217" Score="0" Text="A bit tedious but maybe you can comment some of the external pallets you have add to see with one is the one making your node fail" CreationDate="2023-02-15T10:39:23.533" UserId="2762" />
  <row Id="7240" PostId="7219" Score="0" Text="I now facing different error: ```#[derive(scale::Encode)] the trait WrapperTypeEncode is not implemented for ink::storage::Mapping&lt;ink::ink_primitives::AccountId, u128&gt;```" CreationDate="2023-02-15T10:42:56.750" UserId="496" />
  <row Id="7241" PostId="7235" Score="0" Text="I already using this subalfred feature but still I have this error." CreationDate="2023-02-15T11:25:22.513" UserId="1793" />
  <row Id="7242" PostId="7219" Score="0" Text="would it be possible to share your code?" CreationDate="2023-02-15T11:41:15.120" UserId="2844" />
  <row Id="7247" PostId="7219" Score="0" Text="```#[derive(scale::Decode, scale::Encode)]&#xA;    #[cfg_attr(feature = “std”,derive(scale_info::TypeInfo, &#xA;     ink::storage::traits::StorageLayout))]&#xA;     pub struct Transaction {&#xA;&#xA;        creator:AccountId,&#xA;        approvers: Mapping&lt;AccountId, Balance&gt;,&#xA;        number_of_approvals:Balance,&#xA;        psp22_token_to_transfer:AccountId,&#xA;        recipient:AccountId,&#xA;        transaction_number:Balance&#xA;&#xA;    }``` I've implemented the derives and macros just like you suggested, or do you see the whole file?" CreationDate="2023-02-15T11:49:56.933" UserId="496" />
  <row Id="7248" PostId="7235" Score="0" Text="Could you share your project?" CreationDate="2023-02-15T11:58:56.843" UserId="251" />
  <row Id="7249" PostId="7231" Score="2" Text="also, 28 eras is relevant for long-range attacks." CreationDate="2023-02-15T12:00:59.477" UserId="167" />
  <row Id="7250" PostId="7129" Score="0" Text="Did you see the link I posted? https://paritytech.github.io/substrate/master/kitchensink_runtime/enum.RuntimeCall.html Any file has `construct_runtime` has `enum RuntimeCall`." CreationDate="2023-02-15T12:03:07.933" UserId="167" />
  <row Id="7251" PostId="7227" Score="1" Text="XCM works with VMP, HRMP, XCVM, etc. It is meaningless to only talk about XCM or XCVM." CreationDate="2023-02-15T13:59:36.953" UserId="1959" />
  <row Id="7253" PostId="7214" Score="0" Text="Thanks, works perfectly after adding **tuples-96** feature like this:&#xA;`frame-support = { default-features = false, git = &quot;https://github.com/paritytech/substrate&quot;, branch = &quot;polkadot-v0.9.36&quot;, features = [&quot;tuples-96&quot;] }`" CreationDate="2023-02-15T14:44:17.907" UserId="3014" />
  <row Id="7254" PostId="7227" Score="0" Text="Lite channels and bridges. You may look into `ExportXcm`. How bridges will enforce `absolutes`? I have several ideas, but would better want `absolutes` relaxed or RFCed so that can put XCM on top of arbitrary bridge. So that may be not what quetion is aboud so." CreationDate="2023-02-15T17:10:23.770" UserId="484" />
  <row Id="7255" PostId="7238" Score="0" Text="Additionally, to get the reward of a specific user, you can use this runtime API: https://polkadot.js.org/docs/substrate/runtime#pendingrewardsmember-accountid-balance" CreationDate="2023-02-15T17:47:23.287" UserId="167" />
  <row Id="7256" PostId="7236" Score="0" Text="Could you please share more details here? Like what rust version using, also anything which may impact indexing or searching of packages ?" CreationDate="2023-02-16T05:18:11.487" UserId="2010" />
  <row Id="7257" PostId="7129" Score="0" Text="yes i saw the link you posted and i wanted to know how to retreive that enum in my own substrate node, i tried to run cargo docs to open all the generated enums and i didn't find it" CreationDate="2023-02-16T06:37:08.860" UserId="3319" />
  <row Id="7258" PostId="7129" Score="0" Text="and i think a runtime api is better to be honest" CreationDate="2023-02-16T06:37:53.607" UserId="3319" />
  <row Id="7259" PostId="7230" Score="0" Text="heyy @forgetso... thanks!! that is!!!" CreationDate="2023-02-16T06:46:24.043" UserId="2449" />
  <row Id="7260" PostId="7236" Score="0" Text="nightly version. But you failed at the searching step. I think it is not related to the compiler. I think you should check your network." CreationDate="2023-02-16T08:21:47.980" UserId="251" />
  <row Id="7261" PostId="7228" Score="0" Text="first 4 bytes is the selector (`9bae9d5e`) then you have the args (00 = false in your case)" CreationDate="2023-02-16T09:17:17.070" UserId="170" />
  <row Id="7262" PostId="7231" Score="0" Text="thanks a lot for answering that question, it's helpful to know the number should be divisible by 7, meantime I just can't stop thinking about why is 28, and why other options like 35 days (5 weeks) are too long for that." CreationDate="2023-02-16T10:12:10.277" UserId="3775" />
  <row Id="7263" PostId="7246" Score="0" Text="Please check if the .contract file exists in the following directory. &quot;contracts/todo_list/target/ink&quot;. If it doesn't exist, please tell us the result of executing the compile command with &quot;-v&quot;." CreationDate="2023-02-16T10:22:42.510" UserId="3114" />
  <row Id="7264" PostId="7246" Score="0" Text="Which swnky-cli version are you using? There was an issue with copying artifacts some older versions. (latest one being 1.0.11)&#xA;Also, the swanky dev container is available now, it has a full environment set up with latest swanky version, and removes that warning from polkadot/util&#xA;https://github.com/AstarNetwork/swanky-dev-container" CreationDate="2023-02-16T10:53:08.120" UserId="1876" />
  <row Id="7265" PostId="7246" Score="0" Text="@s.Takahashi contract doesn't compile so no .contract file exists and result of executing compile command is 1st image" CreationDate="2023-02-16T11:32:59.017" UserId="2844" />
  <row Id="7266" PostId="7246" Score="0" Text="@codespool I am using `@astar-network/swanky-cli/1.0.10 darwin-x64 node-v18.2.0` I use [this precompiled binaries](https://docs.astar.network/docs/build/wasm/swanky#recommended-method-download-the-precompiled-binaries)" CreationDate="2023-02-16T11:34:56.423" UserId="2844" />
  <row Id="7267" PostId="3625" Score="0" Text="have you found a way my dear friend?" CreationDate="2023-02-16T11:40:43.317" UserId="3319" />
  <row Id="7268" PostId="7222" Score="0" Text="What exactly are the ones I need to change and what version of cumulus are you using?" CreationDate="2023-02-16T12:20:39.237" UserId="3708" />
  <row Id="7269" PostId="7256" Score="0" Text="Sorry i have edited the question my question was how to let anyone to register in the authority pallet so he can be able to create or finish block" CreationDate="2023-02-16T17:23:59.800" UserId="3468" />
  <row Id="7270" PostId="7217" Score="0" Text="Hey Alex, I did comment every deps one by one, until I've found the one causing this: cumulus-pallet-session-benchmarking... I'm gonna investigate a little bit, but I think this is really weird that this pallet is causing the error.." CreationDate="2023-02-16T18:14:54.327" UserId="2355" />
  <row Id="7271" PostId="7248" Score="1" Text="I can't thank you enough for this answer. You solved my issue without making any code chance. Previous solution is still knowledgeful  " CreationDate="2023-02-17T02:32:50.670" UserId="3437" />
  <row Id="7272" PostId="7227" Score="4" Text="It is accurate to say XCM is &quot;designed around&quot; these 4 As, as XCM is a language independent from the data transport layer. It is &quot;designed around&quot; Absoluteness in the sense that it can only be expected to function properly when used atop a transport and execution layer which provides that guarantee." CreationDate="2023-02-17T04:00:07.610" UserId="283" />
  <row Id="7273" PostId="7257" Score="1" Text="A realistic reason. Small teams don't have enough backing assets to be a parachain(win the auction)." CreationDate="2023-02-17T06:00:15.683" UserId="251" />
  <row Id="7276" PostId="7222" Score="0" Text="In the image attached above, all the weights in all the file names in yellow were changed to 1. All versions I use are v0.9.36." CreationDate="2023-02-17T07:39:23.270" UserId="3732" />
  <row Id="7278" PostId="6531" Score="0" Text="The documentation has been revamped, so hopefully that will make the usage more clear: https://polkascan.github.io/py-substrate-interface/usage/#query-a-mapped-storage-function" CreationDate="2023-02-17T12:17:22.830" UserId="276" />
  <row Id="7279" PostId="7227" Score="0" Text="Worth adding to xcm-format spec. So it feels that strict follow of these absolutes leads to slowness or queue stoppage. And one XCM message can Export/SendXcm over many transports at once, so not sure how far absolutes can reach." CreationDate="2023-02-17T12:17:47.843" UserId="484" />
  <row Id="7280" PostId="7255" Score="0" Text="Thank you Alex, how we can sign this data inside a pallet ? you think it is a good idea to sign and store some data regarding some busniss logic or it is a bad idea to do so ?" CreationDate="2023-02-17T12:28:25.187" UserId="3838" />
  <row Id="7281" PostId="7255" Score="0" Text="you can verify it on the pallet, see this old question https://substrate.stackexchange.com/questions/305/how-to-verify-a-signature-in-a-pallet" CreationDate="2023-02-17T12:30:27.533" UserId="2762" />
  <row Id="7282" PostId="7255" Score="0" Text="the sign has to be done offchain" CreationDate="2023-02-17T12:30:54.460" UserId="2762" />
  <row Id="7283" PostId="7261" Score="0" Text="I dont undrestand as well , what you mean about stop the node ? If i stop the node , my service will go down . Its not good for my bussines . Could you tell me what shoud i do more clear?" CreationDate="2023-02-17T12:45:19.163" UserId="2722" />
  <row Id="7284" PostId="7255" Score="0" Text="Thanks, still dont know how i can sign a bunch of data inside a pallet ?" CreationDate="2023-02-17T13:21:51.010" UserId="3838" />
  <row Id="7285" PostId="7255" Score="0" Text="Ok thank you Alex i got the idea" CreationDate="2023-02-17T13:27:00.703" UserId="3838" />
  <row Id="7286" PostId="7222" Score="0" Text="It worked, thank you." CreationDate="2023-02-17T13:28:00.437" UserId="3708" />
  <row Id="7287" PostId="7264" Score="0" Text="iterating over a Mapping is not supported:&#xA;https://substrate.stackexchange.com/questions/2562/how-to-iterate-over-mappingk-v" CreationDate="2023-02-17T13:38:15.217" UserId="567" />
  <row Id="7288" PostId="7264" Score="0" Text="It is almost 9 months back and it is mentioned that the feature will be added soon. I just want to know if anything has come already." CreationDate="2023-02-17T14:19:48.380" UserId="3440" />
  <row Id="7290" PostId="7261" Score="0" Text="You have to stop the node. You can't copy the data if it is in used. if you don't want your service go down for a few mins. Buy a large hard drive. And run 2 nodes. Apply the backing action on one of them." CreationDate="2023-02-17T14:51:20.023" UserId="251" />
  <row Id="7291" PostId="7255" Score="0" Text="Not sure if sign is the best idea, as you need the private key." CreationDate="2023-02-17T14:59:30.157" UserId="2762" />
  <row Id="7292" PostId="7255" Score="0" Text="You can mark the answer as accepted if it solved your issue" CreationDate="2023-02-17T15:01:21.743" UserId="2762" />
  <row Id="7293" PostId="7265" Score="0" Text="This is a good alternative except in cases where the mapping key is a string and the cost of storing it would be costly" CreationDate="2023-02-17T15:23:54.417" UserId="3440" />
  <row Id="7294" PostId="7254" Score="0" Text="Did you change anything about the code?" CreationDate="2023-02-17T16:04:44.033" UserId="94" />
  <row Id="7295" PostId="7261" Score="0" Text="how much space i need for start ?" CreationDate="2023-02-17T17:55:01.833" UserId="2722" />
  <row Id="7296" PostId="7261" Score="0" Text="It depends on your chain size. Just check your node's db folder size." CreationDate="2023-02-17T18:41:41.637" UserId="251" />
  <row Id="7298" PostId="7265" Score="0" Text="yes if key is string then it may not be iterable" CreationDate="2023-02-18T01:45:10.763" UserId="2844" />
  <row Id="7299" PostId="7269" Score="0" Text="Thanks so much, it worked" CreationDate="2023-02-18T03:30:06.830" UserId="3845" />
  <row Id="7300" PostId="7269" Score="0" Text="considered make it as answer then! @VincentGitonga" CreationDate="2023-02-18T05:45:12.363" UserId="2844" />
  <row Id="7301" PostId="7146" Score="0" Text="Are you running a local network with zombienet o maybe running local nodes?.&#xA;I tried to do the same following [this example](https://github.com/paritytech/trappist/blob/master/xcm-simulator/src/tests/xcm_use_cases.rs#L224-L358), the weight from there are different, for example the amount in ByExecution is 65000000000 and not 1000000000000, but I get the same errors using those amounts." CreationDate="2023-02-14T14:19:43.100" UserId="3708" />
  <row Id="7302" PostId="7146" Score="0" Text="yes, exactly, I run the local testnet using zombienet. Could you tell me the exact function name and error code? I solved this problem." CreationDate="2023-02-15T06:33:18.787" UserId="3732" />
  <row Id="7303" PostId="7257" Score="0" Text="@AurevoirXavier Yeah that is a valid gap for very small budget teams. With parathreads and new potential ways to commit proof-of-validity blocks on the relay chain (Polkadot) in the future, the barrier for backing assets can come down dramatically." CreationDate="2023-02-19T08:26:39.993" UserId="2909" />
  <row Id="7304" PostId="7273" Score="0" Text="Is it good pallet for production?" CreationDate="2023-02-20T07:39:54.273" UserId="2722" />
  <row Id="7305" PostId="7228" Score="0" Text="I need to pass the data field through my code using polkadot-js/api library.&#xA;So can you tell me how I can get the first 4 bytes i.e. the selector, given the function signature and the params passed during the contract instantiation?" CreationDate="2023-02-20T08:13:13.607" UserId="371" />
  <row Id="7307" PostId="7246" Score="0" Text="can you try https://github.com/AstarNetwork/swanky-cli/releases/tag/v1.0.11" CreationDate="2023-02-20T08:46:34.650" UserId="1876" />
  <row Id="7308" PostId="7282" Score="0" Text="It depends on a deleted git branch `gav-xcm-v3`. I suggest opening an issue in the repository." CreationDate="2023-02-20T09:30:53.407" UserId="2673" />
  <row Id="7309" PostId="7282" Score="0" Text="Yes, it is because of the deleted dependent git branch.&#xA;I'm working on it. &#xA;@cuteolaf I'll update you once done." CreationDate="2023-02-20T10:46:47.210" UserId="429" />
  <row Id="7310" PostId="7284" Score="0" Text="Thanks! I have even built my entire tool for that during the weekend you can check it out here https://github.com/KowalewskiPawel/Substrate-Polkadot-Smart-Contracts-Caller However the problem is that I am still looking for a Rust oriented tool :)" CreationDate="2023-02-20T11:39:39.197" UserId="3843" />
  <row Id="7311" PostId="7291" Score="1" Text="I think contract accounts are randomly generated by the chain and therefore have no known private keys." CreationDate="2023-02-20T12:18:55.907" UserId="167" />
  <row Id="7312" PostId="7282" Score="0" Text="Issues are not enabled for this repo.&#xA;https://github.com/paritytech/solo-para-bridge-poc" CreationDate="2023-02-20T12:22:43.580" UserId="3016" />
  <row Id="7314" PostId="7282" Score="0" Text="@PawanBisht &#xA;Please let me know if I can pair with you to fix the issue." CreationDate="2023-02-20T12:25:11.537" UserId="3016" />
  <row Id="7317" PostId="7282" Score="0" Text="Hi @cuteolaf, it is building for me, but let me make it up to date with the latest polkadot version. Then we'll look if your issue persists or not." CreationDate="2023-02-20T13:09:22.103" UserId="429" />
  <row Id="7318" PostId="7289" Score="0" Text="Where can I found what chains use `FixedWeightBounds` for the weight? What other types exists except `FixedWeightBounds`? Where can  I found `Transact weight`?" CreationDate="2023-02-20T13:35:00.350" UserId="3852" />
  <row Id="7319" PostId="7282" Score="0" Text="Did you try to build it after `cargo clean`? I think it might not work." CreationDate="2023-02-20T13:45:43.090" UserId="3016" />
  <row Id="7321" PostId="7293" Score="2" Text="The returning `T::AccountId` *is the public key*." CreationDate="2023-02-21T00:59:38.857" UserId="167" />
  <row Id="7323" PostId="7257" Score="0" Text="@AurevoirXavier i need the consensus DPOS and EVM Compatibility with Unified accounts. That's why i wanted to implement MoonBeam para chain as Solo Chain." CreationDate="2023-02-21T06:01:38.093" UserId="3752" />
  <row Id="7324" PostId="7289" Score="0" Text="@VitalyPeryatin It was too long to reply to your comment, so I updated the answer" CreationDate="2023-02-21T08:28:45.870" UserId="1959" />
  <row Id="7326" PostId="7254" Score="0" Text="If the context is Substrate node template, yes it has changed quite a lot." CreationDate="2023-02-21T09:17:31.467" UserId="135" />
  <row Id="7327" PostId="7301" Score="0" Text="Indeed, the team is now aware and working on it. Will post a comment shortly once its up again." CreationDate="2023-02-21T09:54:30.973" UserId="165" />
  <row Id="7328" PostId="7309" Score="0" Text="That's neat. Where do I put my `host_my_number()` though? :)" CreationDate="2023-02-21T14:16:51.087" UserId="3667" />
  <row Id="7329" PostId="7309" Score="0" Text="Anywhere that this code could access." CreationDate="2023-02-21T14:19:01.377" UserId="251" />
  <row Id="7330" PostId="7309" Score="0" Text="That's actually a part of my question. I do not know how to talk to host functions from the runtime as I assume I can't have a direct dependency on my `node` on my `runtime` crate. Am I wrong about that?" CreationDate="2023-02-21T14:23:57.010" UserId="3667" />
  <row Id="7331" PostId="7309" Score="0" Text="What's your use case? Maybe you just need to write a `fn random() -&gt; u32 { Timestamp::now() as _ }` here." CreationDate="2023-02-21T14:28:38.067" UserId="251" />
  <row Id="7332" PostId="7309" Score="0" Text="As I mentioned in my question : I want to be able to make a host function, that keeps track of a number, either fed through the CLI or maybe use randomness, and from there I want to call that function in my runtime. How can I do that? I am not asking for the entire code logic, just how do I call any outer node function from my wasm runtime?" CreationDate="2023-02-21T14:36:05.287" UserId="3667" />
  <row Id="7333" PostId="7300" Score="0" Text="It works. Thank you!&#xA;This is how I check for the owner using the functions that you post.&#xA;&#xA;let asset_owner = &lt;pallet_assets::Pallet&lt;T&gt;&gt;::owner(asset_id);" CreationDate="2023-02-21T14:59:57.293" UserId="3857" />
  <row Id="7335" PostId="7322" Score="0" Text="Did you mean using pallet-a to call pallet-b's calls?" CreationDate="2023-02-22T06:10:26.163" UserId="251" />
  <row Id="7336" PostId="7322" Score="0" Text="You mention `pallet-1` twice. Please correct that." CreationDate="2023-02-22T06:46:14.187" UserId="3667" />
  <row Id="7337" PostId="7291" Score="0" Text="Added my comment to a follow up [question](https://substrate.stackexchange.com/questions/7303/is-it-possible-to-prove-that-an-account-deployed-contract-a-from-within-contract)" CreationDate="2023-02-22T08:59:59.547" UserId="380" />
  <row Id="7338" PostId="6617" Score="0" Text="Relay chain alice: ./target/release/polkadot \&#xA;--alice \&#xA;--chain rococo-local-cfd2.json \&#xA;--base-path /tmp/relay/validator1 \&#xA;--port 30333 \&#xA;--ws-port 9944 \&#xA;--rpc-external \&#xA;--rpc-methods Unsafe \&#xA;--rpc-cors all \&#xA;--ws-external \&#xA;--node-key 0000000000000000000000000000000000000000000000000000000000000001" CreationDate="2023-02-22T09:02:37.620" UserId="2565" />
  <row Id="7339" PostId="6617" Score="0" Text="Relay chain bob: ./target/release/polkadot \&#xA;--bob \&#xA;--chain rococo-local-cfd2.json \&#xA;--base-path /tmp/relay/validator2 \&#xA;--port 30334 \&#xA;--ws-port 9945 \&#xA;--rpc-external \&#xA;--rpc-methods Unsafe \&#xA;--rpc-cors all \&#xA;--ws-external" CreationDate="2023-02-22T09:03:03.653" UserId="2565" />
  <row Id="7340" PostId="6617" Score="0" Text="Colator: ./target/release/huminary-node \&#xA;--name Huminary \&#xA;--collator \&#xA;--force-authoring \&#xA;--chain raw-huminary-chainspec-v2.json \&#xA;--base-path /tmp/huminary/collator1 \&#xA;--port 30335 \&#xA;--ws-port 9946 \&#xA;--rpc-external \&#xA;--rpc-methods Unsafe \&#xA;--rpc-cors all \&#xA;-- \&#xA;--execution wasm \&#xA;--chain rococo-local-cfd2.json \&#xA;--port 30343 \&#xA;--ws-port 9977 \" CreationDate="2023-02-22T09:03:33.487" UserId="2565" />
  <row Id="7341" PostId="6617" Score="0" Text="Sorry for the delay in responding.  Thanks" CreationDate="2023-02-22T09:04:00.690" UserId="2565" />
  <row Id="7342" PostId="4131" Score="0" Text="I've the same issue" CreationDate="2023-02-22T15:01:04.747" UserId="501" />
  <row Id="7343" PostId="7328" Score="0" Text="Thanks for the response! but I don't think this is the case, I am correctly calling the contract B when contract A is being deployed. I actually just ran some tests on how many times contract a calls the function b before there is an error, and it happens on the 408th time the function is called. I will leave a more in depth follow up above!" CreationDate="2023-02-22T15:26:21.453" UserId="2961" />
  <row Id="7344" PostId="7328" Score="0" Text="if possible can you please send code link?" CreationDate="2023-02-22T15:34:46.337" UserId="2844" />
  <row Id="7347" PostId="7322" Score="0" Text="I mean if I expose do_things() for other pallets to use, does it make do_things() callable(dispatchable) anyhow? I can hardcode a call `pallet1::Pallet::&lt;T&gt;::do_things(args)` inside new palletX when I'm writing it. Are there other ways to dispatch do_things()?" CreationDate="2023-02-22T22:01:10.140" UserId="3862" />
  <row Id="7348" PostId="7282" Score="0" Text="@cuteolaf, while I'm working on it. I'd suggest you use the same Cargo.lock file for building your project.&#xA;Here is my telegram:@pawanbisht62" CreationDate="2023-02-23T06:49:32.183" UserId="429" />
  <row Id="7349" PostId="7332" Score="0" Text="I added my chain to the Ethereum network list, but then I get [this](https://substrate.stackexchange.com/questions/7098/unknowntransactioncannotlookup-error-on-each-extrinsic) error on each extrinsic. :(" CreationDate="2023-02-23T08:39:21.730" UserId="3538" />
  <row Id="7350" PostId="7332" Score="0" Text="Did you update the library?" CreationDate="2023-02-23T08:39:55.253" UserId="251" />
  <row Id="7351" PostId="7332" Score="0" Text="Which library? I ran the `polkadot-js` explorer locally, added my chain types in the `apps-config/src/api/spec` and added my chain name in the `EthereumChains` list. That's all. Is there anything more to this that I'm missing?" CreationDate="2023-02-23T08:42:27.330" UserId="3538" />
  <row Id="7352" PostId="7313" Score="0" Text="Corresponding issue https://github.com/polkadot-js/api/issues/5503 opened in polkadot-js/api" CreationDate="2023-02-23T09:23:12.357" UserId="234" />
  <row Id="7354" PostId="7324" Score="0" Text="are you calling the function with different caller every time? Or what is the type of the `end_date` field?" CreationDate="2023-02-23T09:31:42.550" UserId="170" />
  <row Id="7355" PostId="7272" Score="0" Text="in addition of the answers below, check out https://www.manta.network/ as they are doing a ZK parachain." CreationDate="2023-02-23T10:49:23.943" UserId="85" />
  <row Id="7356" PostId="7324" Score="0" Text="@kriko727, I am not individually calling the set_end_date, rather I am deploying a smart contract, which in its constructor calls the set_end_date function. So the caller of the set_end_date is the deployed contract! That said I have after the fact also called it with various different accounts and this issue persists!&#xA;&#xA;the end_date field is as follows:&#xA;&#xA;        end_date: BTreeMap&lt;AccountId, u64&gt;,&#xA;&#xA;Simply a mapping of an address to a timestamp!" CreationDate="2023-02-23T12:05:02.767" UserId="2961" />
  <row Id="7357" PostId="7335" Score="0" Text="Indeed the transaction is not gossiped, thanks for pointing this out." CreationDate="2023-02-23T12:21:18.050" UserId="379" />
  <row Id="7358" PostId="2008" Score="0" Text="What factors might be hindering the development of the nested relay chain? @shawn-tabrizi" CreationDate="2023-02-23T12:39:59.783" UserId="135" />
  <row Id="7359" PostId="7336" Score="0" Text="what's the difference between this and cross contract calling? Instead of this you can do cross contract calling." CreationDate="2023-02-23T12:42:02.243" UserId="2844" />
  <row Id="7360" PostId="7302" Score="0" Text="Thank you for this detailed report! We are looking into it. Please keep us posted on new discoveries on your end!" CreationDate="2023-02-21T16:05:02.797" UserId="1842" />
  <row Id="7361" PostId="7324" Score="0" Text="okay, so you deploy a contract, the contract calls B::set_end_date right? And you deploy 408 contracts, is that correct?" CreationDate="2023-02-23T15:54:00.220" UserId="170" />
  <row Id="7362" PostId="5101" Score="0" Text="what about `if let pallet_contracts::Event::Instantiated { .. }`" CreationDate="2023-02-23T15:57:00.423" UserId="3317" />
  <row Id="7363" PostId="5101" Score="0" Text="Please paste it into a new question - in case Daan's comment did not answer it. Otherwise it is not as helpful to others who may come across the same hardship." CreationDate="2023-02-23T16:56:10.637" UserId="94" />
  <row Id="7364" PostId="7327" Score="0" Text="Thank you. Although I looked at the normal transfer from there, I completely forgot about the existence of the example part. Still missing staking tho." CreationDate="2023-02-23T17:05:02.883" UserId="3861" />
  <row Id="7366" PostId="6868" Score="0" Text="use.ink docs now has a convenient webpage getting faucet tokens: https://use.ink/faucet/" CreationDate="2023-02-23T20:04:49.640" UserId="3098" />
  <row Id="7367" PostId="6866" Score="0" Text="What version of ink!, cargo-contract are you running? If your code fails on local chain too, what is the version of substrate-contracts-node?" CreationDate="2023-02-23T20:08:42.280" UserId="3098" />
  <row Id="7368" PostId="7342" Score="1" Text="What is your extrinsic doing? Can you share the code?" CreationDate="2023-02-23T22:23:43.437" UserId="29" />
  <row Id="7369" PostId="7342" Score="1" Text="Did you benchmark it appropriately?" CreationDate="2023-02-23T22:24:14.367" UserId="29" />
  <row Id="7370" PostId="7330" Score="0" Text="No luck, tried from sudo section and running it as regular extrinsic ( with sudo account )&#xA;Attached pics on description." CreationDate="2023-02-24T08:47:53.960" UserId="357" />
  <row Id="7371" PostId="7342" Score="0" Text="This one&#xA;https://github.com/pendulum-chain/oracle-pallet/blob/master/pallets/dia-oracle/src/lib.rs#L374-L386&#xA;@Bruno" CreationDate="2023-02-24T09:11:45.737" UserId="3171" />
  <row Id="7372" PostId="7342" Score="0" Text="@Bruno what is the reason of 1010 error in my case?" CreationDate="2023-02-24T09:12:31.153" UserId="3171" />
  <row Id="7374" PostId="7327" Score="0" Text="What do you mean when you say &quot;missing staking&quot;? If it is not very closely related to this question maybe you would like to create another question ?" CreationDate="2023-02-24T09:29:50.730" UserId="234" />
  <row Id="7375" PostId="7268" Score="0" Text="Use https://contracts-ui.substrate.io/ until polkadot.js is not fixed" CreationDate="2023-02-24T14:52:59.870" UserId="529" />
  <row Id="7376" PostId="7358" Score="0" Text="difficult to identify the exact cause if you have enough balance. Can you please share the code link so that I can compile and deploy in my system if possible" CreationDate="2023-02-25T14:31:08.043" UserId="2844" />
  <row Id="7378" PostId="7358" Score="1" Text="yeah weight v2 hasn't merged there so you may face bug there in the mean time you can use https://polkadotjs-apps.web.app/#/contracts" CreationDate="2023-02-25T14:53:09.153" UserId="2844" />
  <row Id="7379" PostId="7358" Score="0" Text="https://github.com/polkadot-js/apps/pull/8538 still not merged so you faced bug" CreationDate="2023-02-25T15:00:09.993" UserId="2844" />
  <row Id="7380" PostId="7268" Score="0" Text="Yeah. Since it's currently working at the moment" CreationDate="2023-02-25T15:03:37.867" UserId="3845" />
  <row Id="7381" PostId="7358" Score="2" Text="Contracts UI is also available which is compatible with weight V2&#xA;https://contracts-ui.substrate.io/" CreationDate="2023-02-25T16:01:06.763" UserId="275" />
  <row Id="7382" PostId="7361" Score="0" Text="Is `substrate-contracts-node` running in the background?" CreationDate="2023-02-26T09:27:52.210" UserId="2844" />
  <row Id="7383" PostId="7329" Score="0" Text="Why do you explicitly need unbounded complete history of everything in state at all times? It is likely you need to avoid the need for this patter completely instead of finding a way to make it work." CreationDate="2023-02-26T10:51:46.037" UserId="34" />
  <row Id="7384" PostId="7160" Score="0" Text="your example returns a 404" CreationDate="2023-02-26T15:14:00.280" UserId="3030" />
  <row Id="7385" PostId="7038" Score="0" Text="I have seen the exact same error after upgrading based on polkadot-v0.9.37. My observation is the finalization proceeds for the relay chain even after this error is repeatedly thrown. However my own issue is it gets stuck when it stats to finalize the parachain with no good logs to indicate anything." CreationDate="2023-02-27T02:51:07.980" UserId="318" />
  <row Id="7386" PostId="7328" Score="0" Text="@BRNHINLT [here is the possible reason why contract trapped error occurs](https://use.ink/faq/#why-am-i-getting-a-contracttrapped-error-when-interacting-with-a-contract)" CreationDate="2023-02-27T06:30:07.767" UserId="2844" />
  <row Id="7387" PostId="7361" Score="1" Text="update to latest version now working well, thanks" CreationDate="2023-02-27T06:41:19.043" UserId="576" />
  <row Id="7388" PostId="7369" Score="0" Text="is there any error you are facing while adding the 9th node?" CreationDate="2023-02-27T08:58:58.533" UserId="427" />
  <row Id="7389" PostId="7325" Score="0" Text="tried everything, including `Array.from(U8Array)` to make sure it's array. I assume problem might be somewhere at Codec::encode() -&gt; RPC method, which does not Vec&lt;u8&gt;::decode()." CreationDate="2023-02-27T09:02:21.430" UserId="157" />
  <row Id="7391" PostId="7369" Score="0" Text="@ImmanuelJohn There are no errors, but node sync is not happening for the 9th node. I could find some suggestions like adding max-peers flag to the configuration but not able to identify the exact file to update this flag." CreationDate="2023-02-27T09:18:32.140" UserId="3418" />
  <row Id="7392" PostId="7369" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2023-02-27T10:30:07.893" UserId="-1" />
  <row Id="7394" PostId="7325" Score="0" Text="It worked for me like this, without Polkakdot JS where you able to request the RPC some_submitData succesfully?" CreationDate="2023-02-27T11:23:09.333" UserId="2762" />
  <row Id="7395" PostId="7322" Score="0" Text="Not sure I understand propertly what are you trying to do, if you want to make do_things callable externaly why don't turn into an extrinsic?" CreationDate="2023-02-27T11:51:27.443" UserId="2762" />
  <row Id="7396" PostId="6088" Score="0" Text="use this command this works for me for exact same issue `brew install openssl cmake llvm`" CreationDate="2023-02-27T11:58:19.347" UserId="2844" />
  <row Id="7397" PostId="4072" Score="0" Text="use this command this works for me for exact same issue `brew install openssl cmake llvm`" CreationDate="2023-02-27T11:59:54.577" UserId="2844" />
  <row Id="7398" PostId="7328" Score="0" Text="Thank you guys, But the issue was me using BTreeMap!" CreationDate="2023-02-27T13:27:49.457" UserId="2961" />
  <row Id="7399" PostId="7343" Score="0" Text="Thanks Kriko, It was indeed this, made my week!" CreationDate="2023-02-27T13:28:18.830" UserId="2961" />
  <row Id="7400" PostId="7378" Score="0" Text="I am aware of the ```signAndSend``` method that returns these details. In such cases, we have to store the information in off-chain databases. I want to know whether we can get that information from on-chain. I came across an option called ```createdAtHash``` while using polkadot-js. But not sure how to use it." CreationDate="2023-02-27T15:06:04.403" UserId="3440" />
  <row Id="7402" PostId="7322" Score="0" Text="@AlexBean Just started learning substrate. One of the tutorials says &quot;using internal functions you don't need to do any kind of authorization for the operations performed because the internal functions are only accessible to you as the runtime developer.&quot;&#xA;However this tutorial deals with one pallet only and does not consider coupling. Tryna understand if I need access control in do_things(). I found another question that contradicts tutorial info but cant comment on it because of low rep here https://stackoverflow.com/q/70974061/21294431" CreationDate="2023-02-27T15:47:27.097" UserId="3862" />
  <row Id="7403" PostId="7370" Score="0" Text="Sure. But what if we still do not want them? What if we do not want deterministic finally from genesis?" CreationDate="2023-02-27T17:12:43.417" UserId="3235" />
  <row Id="7404" PostId="2917" Score="1" Text="You can also get here if you're accidentally referencing two versions of substrate at the same time." CreationDate="2023-02-27T21:10:59.840" UserId="85" />
  <row Id="7405" PostId="7388" Score="1" Text="This post may help: https://substrate.stackexchange.com/questions/5726/offchain-worker-not-initializing-cumulus-parachain-template" CreationDate="2023-02-27T21:29:43.793" UserId="29" />
  <row Id="7406" PostId="5586" Score="0" Text="This post may help: https://substrate.stackexchange.com/questions/5726/offchain-worker-not-initializing-cumulus-parachain-template" CreationDate="2023-02-27T21:29:52.223" UserId="29" />
  <row Id="7407" PostId="7372" Score="1" Text="thanks for the info Alex! Youre the man." CreationDate="2023-02-27T22:01:25.957" UserId="3030" />
  <row Id="7408" PostId="7370" Score="0" Text="Substrate requires is currently build around the assumptions that there is finality. This could be changed in the future, but currently this doesn't work. But you could also write some finality &quot;gadget&quot; that just finalizes every 1000th block or something like this." CreationDate="2023-02-27T22:09:03.790" UserId="73" />
  <row Id="7409" PostId="7390" Score="1" Text="Try setting `MaximumWeight` to `Weight::max_value()` by adding a new `parameter_type!` for it like `MaxSchedulerWeight`." CreationDate="2023-02-27T23:19:08.627" UserId="94" />
  <row Id="7410" PostId="7390" Score="1" Text="@OliverTale-Yazdi It worked. Thanks a lot. Do you know what was happening? type MaximumWeight = () means to give no weight to the execution or something like that?" CreationDate="2023-02-27T23:38:05.397" UserId="3881" />
  <row Id="7411" PostId="7393" Score="0" Text="Make sure you imported your precompile there https://github.com/PureStake/moonbeam/blob/master/runtime/moonbeam/src/precompiles.rs" CreationDate="2023-02-28T01:53:06.587" UserId="1777" />
  <row Id="7412" PostId="7389" Score="0" Text="When a smart contract call function of another smart contract, then it can read the state of another contract but modify state is not possible because smart contract operates on sandbox environment." CreationDate="2023-02-28T06:40:13.220" UserId="2844" />
  <row Id="7413" PostId="7375" Score="0" Text="thank you for the answer" CreationDate="2023-02-28T07:05:08.030" UserId="576" />
  <row Id="7414" PostId="7387" Score="0" Text="It is confirmed that `SubmissionDeposit` is and was always set to 1 unit at the time of this proposal submission" CreationDate="2023-02-28T09:31:28.257" UserId="2384" />
  <row Id="7416" PostId="7389" Score="0" Text="what do you mean by access the values? you can not access contract's fields directly, in this case you can get it with `get()` and increase it with `inc()` methods. The contract's state is encapsulated and only the contract can change its state via external calls" CreationDate="2023-02-28T12:29:16.357" UserId="170" />
  <row Id="7417" PostId="7389" Score="0" Text="what i meant by accessing values is as follows: The accumulator contract increase the value using the ```inc``` function by 5. Hence the value is 5 if you use ```get``` function in accumulator. When i access the ```get``` function from delegator, it retruns zero and not 5. Is it possible to get the value set by accumulator contract in delegator contract?" CreationDate="2023-02-28T13:43:08.790" UserId="3440" />
  <row Id="7418" PostId="7387" Score="0" Text="And you are still seeing 0 in the Subscan UI? If so, can you provide the link to the page where you see 0?" CreationDate="2023-02-28T13:57:22.807" UserId="29" />
  <row Id="7420" PostId="7395" Score="0" Text="If you run the e2e tests with your example it gives the same error" CreationDate="2023-02-28T15:17:02.023" UserId="3317" />
  <row Id="7421" PostId="7395" Score="0" Text="but I am not getting error look in this image https://github.com/ganesh1233456/decode-ink-events/blob/main/Screenshot%202023-02-28%20at%2021.50.10.png" CreationDate="2023-02-28T16:07:20.500" UserId="2844" />
  <row Id="7424" PostId="7395" Score="0" Text="@Ganesh11 you're running test with stable contract channel. I have to use `+nightly` because they use this `#![feature(min_specialization)]`. Your example will pass the same error running with `+nightly` unfortunately.&#xA;&#xA;Also, @DaanvanderPlas, I followed your example to the letter and no luck, same error. I also stripped out everything in the test to that it was just a naked `#[ink_e2e::test]` instance.&#xA;&#xA;I wonder if it is something to do the the `+nightly` toolchain? My version is `1.69.0-nightly`. What are yours'?" CreationDate="2023-02-28T20:48:03.930" UserId="3358" />
  <row Id="7425" PostId="3625" Score="0" Text="I forgot about this, but may be worth looking into `mock_impl_runtime_apis` https://docs.rs/sp-api-proc-macro/latest/sp_api_proc_macro/macro.mock_impl_runtime_apis.html" CreationDate="2023-03-01T01:01:28.277" UserId="181" />
  <row Id="7426" PostId="7366" Score="0" Text="I was about to post the same issue here. So it's only related to the UI and not the contract itself." CreationDate="2023-03-01T01:39:24.980" UserId="2586" />
  <row Id="7427" PostId="7395" Score="0" Text="@blairmunroakusa `rustc 1.69.0-nightly (c5c7d2b37 2023-02-24)`" CreationDate="2023-03-01T05:35:05.133" UserId="2844" />
  <row Id="7428" PostId="7325" Score="0" Text="apparently there's some `compactFromU8aLim` function called before sending, which produces my error." CreationDate="2023-03-01T08:33:06.523" UserId="157" />
  <row Id="7429" PostId="7325" Score="0" Text="Then it needs the Uint8Array type as an input: https://github.com/polkadot-js/common/blob/master/packages/util/src/compact/fromU8a.ts#L72" CreationDate="2023-03-01T09:32:09.847" UserId="2762" />
  <row Id="7430" PostId="7325" Score="0" Text="How you discover this is the method that throws the error?" CreationDate="2023-03-01T09:32:25.320" UserId="2762" />
  <row Id="7432" PostId="6730" Score="1" Text="Excellent! Thank you for your answer. I also have implemented these including the zk verify(groth16) pallet in the last year. We can use the existing curve to adapt the substrate. That's right!" CreationDate="2023-03-01T15:29:32.377" UserId="489" />
  <row Id="7433" PostId="7419" Score="0" Text="Hi Denis, zombienet run this command in order to validate the access to the provider `kubectl cluster-info`. Can you run that command in your terminal?&#xA;Thanks!" CreationDate="2023-03-01T16:52:54.713" UserId="279" />
  <row Id="7434" PostId="7419" Score="0" Text="kubectl cluster-info&#xA;Kubernetes control plane is running at https://kubernetes.docker.internal:6443&#xA;CoreDNS is running at https://kubernetes.docker.internal:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy&#xA;&#xA;To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'." CreationDate="2023-03-01T17:10:04.300" UserId="2149" />
  <row Id="7435" PostId="7375" Score="0" Text="I'm facing the same issue while running latest version, how did you resolve it?" CreationDate="2023-03-01T18:33:57.407" UserId="3317" />
  <row Id="7436" PostId="7421" Score="1" Text="Thanks. `ink!` [can provide the `code_hash` of a contract at an `AccountId`](https://github.com/paritytech/ink/blob/7cf12afc65781aa8a3c473b876a04c30aaa4afc5/crates/env/src/api.rs#L561-L574) without chain extensions. I'm looking to prove contract deployment by an account without the use of chain extensions, which are not guaranteed to exist." CreationDate="2023-03-01T19:41:34.680" UserId="380" />
  <row Id="7437" PostId="7418" Score="0" Text="thanks for the answer! as a follow up question: since it's not defined in the Solidity `totalSupply()` API, where is `asset_id` coming from?" CreationDate="2023-03-01T20:27:15.443" UserId="494" />
  <row Id="7438" PostId="7414" Score="0" Text="Thanks Alex, another question. What about the identifier in the &quot;authority_id&quot; of Im_online module events? Is the stash' im_online identifier of the current epoch or of the next epoch?" CreationDate="2023-03-01T22:02:11.930" UserId="3738" />
  <row Id="7439" PostId="7427" Score="0" Text="There are some other work going on on this computer. And I see variations from 1G down to 20 M. But the question is what is happening when there are no prints for several hours." CreationDate="2023-03-02T07:17:39.763" UserId="116" />
  <row Id="7440" PostId="7427" Score="0" Text="AFAIK, it was loading the latest state from the DB. You can set `RUST_LOG=db`." CreationDate="2023-03-02T07:53:51.847" UserId="251" />
  <row Id="7441" PostId="7329" Score="0" Text="@DanShields, you're probably right, but I've been asked to implement something like that solidity code I linked. You're welcome to interpret the question to ask for the closest reasonable thing to do instead." CreationDate="2023-03-02T09:05:33.210" UserId="3865" />
  <row Id="7442" PostId="7375" Score="0" Text="updated the answer!" CreationDate="2023-03-02T09:51:14.327" UserId="2762" />
  <row Id="7443" PostId="7414" Score="0" Text="updated response! hope it answers this second question too" CreationDate="2023-03-02T10:04:46.033" UserId="2762" />
  <row Id="7444" PostId="6730" Score="0" Text="You are welcome! Feel free to flag my post as answer ;)" CreationDate="2023-03-02T10:06:41.150" UserId="1867" />
  <row Id="7445" PostId="6730" Score="0" Text="We have also a more up to date repo now, which contains example implementations for all curves: https://github.com/achimcc/substrate-arkworks-examples.&#xA;&#xA;It also has a comparison of various benchmarking results: https://github.com/achimcc/substrate-arkworks-examples/blob/main/benchmarks-comparison.md" CreationDate="2023-03-02T10:08:10.773" UserId="1867" />
  <row Id="7446" PostId="7431" Score="1" Text="Thanks! I have added contract pallets in to my template-node." CreationDate="2023-03-02T11:23:22.687" UserId="3545" />
  <row Id="7447" PostId="7431" Score="0" Text="but when I deploy flipper contract and execute flip() function, it returns ‘contracts.OutOfGas‘，do you know how to fix it?" CreationDate="2023-03-02T11:25:01.817" UserId="3545" />
  <row Id="7448" PostId="7431" Score="0" Text="That's related to the  Weights v2, how are you interacting with flipper? Check this reponse https://substrate.stackexchange.com/a/7275/2762" CreationDate="2023-03-02T12:32:03.547" UserId="2762" />
  <row Id="7449" PostId="7431" Score="0" Text="or this previous SE answer: https://substrate.stackexchange.com/a/7368/2762" CreationDate="2023-03-02T12:32:49.833" UserId="2762" />
  <row Id="7450" PostId="7419" Score="0" Text="Can you also check this file ` more ~/.kube/config` to see if you have other clusters in there?" CreationDate="2023-03-02T12:39:19.853" UserId="279" />
  <row Id="7451" PostId="7429" Score="1" Text="I'm using the latest `pallet-contracts` at 0.9.37, `ink` version 4. E2E tests don't work yet because of [this](https://github.com/paritytech/ink/issues/1672) issue :)" CreationDate="2023-03-02T13:20:36.270" UserId="1951" />
  <row Id="7454" PostId="3738" Score="0" Text="if you have hardcoupled pallet_balances and already have `Balance` type defined - use this call for transfer instead `&lt;pallet_balances::Pallet&lt;T&gt; as Currency&lt;_&gt;&gt;::transfer()`" CreationDate="2023-03-02T14:36:48.440" UserId="157" />
  <row Id="7460" PostId="7433" Score="0" Text="thank you so much. yes" CreationDate="2023-03-02T16:50:12.440" UserId="3171" />
  <row Id="7461" PostId="7415" Score="0" Text="This worked. Thank you !" CreationDate="2023-03-02T17:31:12.623" UserId="2416" />
  <row Id="7462" PostId="7302" Score="1" Text="This issue may be related: https://github.com/paritytech/polkadot/issues/6758" CreationDate="2023-03-02T19:08:54.900" UserId="29" />
  <row Id="7463" PostId="7417" Score="0" Text="Ok yeah, the double-save method works for me. Thanks! Apparently the issue has been fixed though? I do not understand how to make their fix apply to my usecase." CreationDate="2023-03-02T21:57:32.497" UserId="3358" />
  <row Id="7464" PostId="7427" Score="0" Text="No logs from `RUST_LOG`=db in this section" CreationDate="2023-03-03T01:01:12.997" UserId="116" />
  <row Id="7465" PostId="7431" Score="0" Text="flip() returns ‘contracts.OutOfGas‘ and read() doesn't response. I have tried contract-UI. Using https://contracts-ui.substrate.io, I can't click &quot;next&quot; button，and using weightv1--contracts-ui.netlify.app and when I click &quot;upload and instantiate&quot; button, it returns &quot;InstantiateWithCode error&quot;. I install local contract-ui and it still don't work. I have to use my local node template rather than contracts-node, maybe there are other methods? Thanks a lot!" CreationDate="2023-03-03T02:02:56.070" UserId="3545" />
  <row Id="7466" PostId="7426" Score="0" Text="Please post the cli flags you are using." CreationDate="2023-03-03T05:54:50.257" UserId="73" />
  <row Id="7467" PostId="7115" Score="0" Text="`which` is standard on MacOS, but `which` and in particular `which -a` is not portable. The proper portable solution is `type`; if you are using Zsh or Windows, try `whence`" CreationDate="2023-03-03T06:27:38.100" UserId="2526" />
  <row Id="7468" PostId="7419" Score="0" Text="apiVersion: v1&#xA;clusters:&#xA;- cluster:&#xA;    certificate-authority-data: LS0(long string here)&#xA;    server: https://kubernetes.docker.internal:6443&#xA;  name: docker-desktop&#xA;contexts:&#xA;- context:&#xA;    cluster: docker-desktop&#xA;    user: docker-desktop&#xA;  name: docker-desktop&#xA;current-context: docker-desktop&#xA;kind: Config&#xA;preferences: {}&#xA;users:&#xA;- name: docker-desktop&#xA;  user:&#xA;    client-certificate-data: LS0(long string here)&#xA;    client-key-data: LS0(long string here)" CreationDate="2023-03-03T07:14:27.563" UserId="2149" />
  <row Id="7469" PostId="3030" Score="0" Text="Hi Shawn! Can you update a parachain version?" CreationDate="2023-03-03T08:42:22.453" UserId="251" />
  <row Id="7470" PostId="4028" Score="0" Text="Can you give a working example how to put the randomness source inside a custom pallet? Can you give examples how all of these https://github.com/paritytech/substrate/blob/5abf6c8a015fac28d33967800da7c5c8d53002e3/frame/babe/src/randomness.rs#L27-L121 are used?" CreationDate="2023-03-03T09:41:17.783" UserId="2484" />
  <row Id="7471" PostId="7309" Score="0" Text="For host function, you can check https://substrate.stackexchange.com/questions/2713/how-might-we-introduce-a-new-host-function-into-the-polkadot-ecosystem." CreationDate="2023-03-03T10:11:45.290" UserId="251" />
  <row Id="7472" PostId="4028" Score="0" Text="How can I include `schnorrkel` in my runtime?" CreationDate="2023-03-03T10:15:06.140" UserId="2484" />
  <row Id="7473" PostId="7387" Score="1" Text="No, now the problem is sloved. Seems more like subscan issue" CreationDate="2023-03-03T10:33:08.050" UserId="2384" />
  <row Id="7474" PostId="7431" Score="0" Text="To see if is a problem with your contract. Does it work if you deploy/interact using cargo-contract? take a look how to interact here: https://docs.substrate.io/tutorials/smart-contracts/develop-a-smart-contract/#deploy-and-test-the-smart-contract" CreationDate="2023-03-03T10:42:55.110" UserId="2762" />
  <row Id="7475" PostId="7418" Score="1" Text="I was basing my answer based on your Rust total_supply function.&#xA;If you want something compatible with ERC20 you're probably looking for declaring a precompile set, in which case you can derive the asset_id from the address called. &#xA;&#xA;You can find more information about that here:&#xA;https://github.com/PureStake/moonbeam/blob/master/precompiles/utils/macro/docs/precompile_macro.md#precompileset&#xA;&#xA;You can also check our assets ERC20 precompile set:&#xA;https://github.com/PureStake/moonbeam/blob/master/precompiles/assets-erc20/src/lib.rs#L140" CreationDate="2023-03-03T10:47:50.057" UserId="3889" />
  <row Id="7476" PostId="7419" Score="0" Text="That looks ok, I will add more debug to the next version of zombienet so we can debug why you get this error. I will ping you to test it. Thanks!" CreationDate="2023-03-03T12:57:31.290" UserId="279" />
  <row Id="7477" PostId="7416" Score="0" Text="I see, however my question is regarding calling other &quot;extrinsics&quot; meaning from PalletA::Call to PalletB::Call." CreationDate="2023-03-03T13:30:51.723" UserId="3667" />
  <row Id="7479" PostId="7416" Score="0" Text="Pallet calls should not call each other. That is what traits are for." CreationDate="2023-03-03T14:33:24.370" UserId="94" />
  <row Id="7480" PostId="6431" Score="0" Text="replace your `Vec&lt;u8&gt;` with `[u8; 20]`" CreationDate="2023-03-03T16:54:46.567" UserId="1789" />
  <row Id="7481" PostId="1142" Score="0" Text="BoundedVec does not work with many struct macros. Use arrays instead." CreationDate="2023-03-03T19:23:55.030" UserId="1789" />
  <row Id="7482" PostId="5618" Score="0" Text="So all pallets which have upgrades, also must enable try-runtime to compile. If pallet has not upgrade, it will be ok?" CreationDate="2023-03-03T19:29:55.883" UserId="484" />
  <row Id="7483" PostId="4028" Score="1" Text="Check the answer below by Sacha." CreationDate="2023-03-03T19:44:50.827" UserId="73" />
  <row Id="7484" PostId="7452" Score="0" Text="&quot;Sometimes you might forget to fix the index&quot;, FRAME prints a warning if you forget it " CreationDate="2023-03-03T19:49:46.710" UserId="94" />
  <row Id="7485" PostId="5618" Score="0" Text="Rust features must always be propagated to all pallets that expose them. Otherwise there will be issues. So just forward the try-runtime feature to all pallets that have it and you should be fine." CreationDate="2023-03-03T19:51:17.847" UserId="94" />
  <row Id="7486" PostId="7452" Score="0" Text="But `construct_runtime!` not IIRC." CreationDate="2023-03-03T19:55:40.043" UserId="251" />
  <row Id="7487" PostId="7452" Score="0" Text="Yes… explicit pallet indices are not enforced." CreationDate="2023-03-03T20:48:50.483" UserId="94" />
  <row Id="7488" PostId="7417" Score="0" Text="yes can confirm, now is fixed ." CreationDate="2023-03-03T22:18:45.310" UserId="3888" />
  <row Id="7489" PostId="7417" Score="0" Text="to apply the fix just use the new ink release :)" CreationDate="2023-03-03T22:49:05.813" UserId="3888" />
  <row Id="7490" PostId="7391" Score="0" Text="Can you give a more concrete example of what you are looking for?" CreationDate="2023-03-04T00:55:22.283" UserId="29" />
  <row Id="7491" PostId="7114" Score="0" Text="What kind of data do you want to migrate?" CreationDate="2023-03-04T00:56:21.957" UserId="29" />
  <row Id="7492" PostId="7417" Score="0" Text="`cargo clean` works for me" CreationDate="2023-03-04T05:03:27.407" UserId="2844" />
  <row Id="7493" PostId="7454" Score="0" Text="I think we can also use `Hash` instead of `Vec&lt;u8&gt;`" CreationDate="2023-03-04T05:16:40.023" UserId="2844" />
  <row Id="7494" PostId="7458" Score="0" Text="I have confirmed my pallet tight coupling is working and is calling batch by using a line in a test extrinsic : `pallet_utility::Pallet::&lt;T&gt;::batch(origin, call);` where origin and call are supplied directly from the front end template parameters." CreationDate="2023-03-04T10:56:03.177" UserId="2975" />
  <row Id="7496" PostId="7419" Score="0" Text="Thank you very much! I will look forward it." CreationDate="2023-03-04T19:58:28.403" UserId="2149" />
  <row Id="7497" PostId="7459" Score="1" Text="[her you can find your answer](https://substrate.stackexchange.com/questions/7358/how-to-design-ink-storage-to-prevent-outofgas). It's basically [WeightsV2 support for contracts pallet hasn't merged ](https://github.com/polkadot-js/apps/pull/8538) on polkadotjs." CreationDate="2023-03-05T02:50:37.507" UserId="2844" />
  <row Id="7498" PostId="7448" Score="0" Text="Thank you so much! I try to use Blake for hashing!&#xA;I think current implementation compressed public key is output of the `ecdsa_recover` function. https://github.com/paritytech/ink/blob/4e566173dcaf57f67b3cfc2204d0e5dbe10a7bd2/crates/ink/src/env_access.rs#L791&#xA;&#xA;ink_env crate doc is old I guess, after ink! 4.0, we can check ink::env instead" CreationDate="2023-03-06T02:37:08.520" UserId="275" />
  <row Id="7499" PostId="7065" Score="0" Text="I think this only works with solo babe + staking." CreationDate="2023-03-06T04:02:17.823" UserId="251" />
  <row Id="7500" PostId="7302" Score="0" Text="Yes it is related to this issue thanks." CreationDate="2023-03-06T06:37:42.873" UserId="1732" />
  <row Id="7501" PostId="7448" Score="0" Text="yes you're correct, I will update my answer)" CreationDate="2023-03-06T10:28:15.580" UserId="170" />
  <row Id="7502" PostId="7466" Score="1" Text="Is your node running on a server with open ports? Maybe some bots try to connect to it." CreationDate="2023-03-06T10:45:01.463" UserId="94" />
  <row Id="7503" PostId="5188" Score="0" Text="Putting `unwrap` in your code puts you at a huge risk. See  https://substrate.stackexchange.com/questions/317/" CreationDate="2023-03-06T10:47:54.433" UserId="94" />
  <row Id="7504" PostId="4420" Score="1" Text="Can you provide a small repo reproducer, so I can play around and see what works?" CreationDate="2023-03-06T10:53:49.493" UserId="3098" />
  <row Id="7505" PostId="7464" Score="0" Text="Great!, please post any other question you have. Thanks!" CreationDate="2023-03-06T11:17:32.667" UserId="279" />
  <row Id="7507" PostId="7375" Score="0" Text="hi Daan Sorry for the delay in getting back to you. I have reinstalled all involved libraries and nodes and rebuilt. I put in the latest versions of everything. Then it was fixed." CreationDate="2023-03-06T13:46:04.490" UserId="576" />
  <row Id="7508" PostId="7479" Score="0" Text="Thanks for the help. I'm calling the batch function with the tight coupling ok when I use a coded call via the front-end template.  Where the &quot;RuntimeCall&quot; comes in is the batch function takes type: Vec&lt;&lt;T as Config&gt;::RuntimeCall &gt; as an argument.  I want to construct this Vec of specific balance transfer calls in my pallet." CreationDate="2023-03-06T15:34:15.323" UserId="2975" />
  <row Id="7509" PostId="7482" Score="0" Text="Does this have any advantage over using `BoundedVec` and `binary_search_by_key`? Because you say that `BoundedBTreeMap` has also `O(log_n)` complexity (best case)." CreationDate="2023-03-06T15:37:29.823" UserId="2484" />
  <row Id="7510" PostId="7482" Score="0" Text="Account id has `Ord` implemented. Is this the reason why the key of the `BoundedBTreeMap` is allowed to be an account id?" CreationDate="2023-03-06T15:39:46.070" UserId="2484" />
  <row Id="7511" PostId="7479" Score="0" Text="True! Sorry, I think I have misread your question, my answer still holds true, but is not very applicable for what you were asking for. I'll post a more relevant answer :)" CreationDate="2023-03-06T15:54:01.107" UserId="165" />
  <row Id="7512" PostId="7479" Score="0" Text="Thank you.   This is similar - I'm trying to apply it to my case. https://substrate.stackexchange.com/questions/3360/using-scheduler-pallet-to-schedule-contract-pallet-call" CreationDate="2023-03-06T16:04:41.523" UserId="2975" />
  <row Id="7514" PostId="7458" Score="0" Text="What is the exact use case that makes you choose batching calls withing the runtime ? I'm trying to understand the scenario." CreationDate="2023-03-06T16:51:48.083" UserId="165" />
  <row Id="7515" PostId="7458" Score="0" Text="I'm creating a pallet that does something similar to the lottery pallet - However unlike the lottery pallet, rather than paying one winner the whole pot, I'm making a prediction market - &quot;bets&quot; are placed and paid to winners in relevant proportions." CreationDate="2023-03-06T17:49:06.527" UserId="2975" />
  <row Id="7516" PostId="5554" Score="0" Text="Thank you so much, that helped a lot! May I ask what is the trick to expose the RPC to the pallet interactor in the frontend? So far I was able to add the RPC call and do something, but I would like to use it from the ffronted ratehr than curl/Postman. Thanks again :)" CreationDate="2023-03-06T14:06:04.890" UserId="3826" />
  <row Id="7517" PostId="7458" Score="1" Text="Why do you need the Utility pallet at all? You can just call the `transfer` function of your underlying `Currency` just like in the [Lottery](https://github.com/paritytech/substrate/blob/e374a33fe1d99d59eb24a08981090bdb4503e81b/frame/lottery/src/lib.rs#L253)." CreationDate="2023-03-06T19:00:28.247" UserId="94" />
  <row Id="7518" PostId="7484" Score="0" Text="Can you include logs from when you start your collator node as well as the flags that you have used to start your node?" CreationDate="2023-03-06T19:11:36.673" UserId="29" />
  <row Id="7519" PostId="7484" Score="1" Text="Please start by reviewing this checklist: https://substrate.stackexchange.com/questions/1394/our-parachain-doesnt-produce-blocks-checklist/1395#1395" CreationDate="2023-03-06T19:17:57.233" UserId="29" />
  <row Id="7520" PostId="7484" Score="0" Text="Make sure you have inserted your keys. Looks like your `aura.authorities` keys are empty in your chain spec." CreationDate="2023-03-06T19:39:56.220" UserId="29" />
  <row Id="7521" PostId="4580" Score="0" Text="the parity link is broken. here is the correct link.&#xA;https://github.com/paritytech/ink-examples/tree/main/multisig" CreationDate="2023-03-06T19:51:19.280" UserId="3070" />
  <row Id="7522" PostId="7485" Score="1" Text="This issue may be related: https://github.com/paritytech/polkadot/issues/6461" CreationDate="2023-03-06T20:28:10.873" UserId="29" />
  <row Id="7523" PostId="7227" Score="0" Text="I second Rob's comment; the four A's mentioned here are more accurately understood as design assumptions, rather than guarantees that XCM provides." CreationDate="2023-03-06T21:00:55.610" UserId="104" />
  <row Id="7524" PostId="987" Score="0" Text="An amusing trick, you could give each user their own burn point if `input = &quot;reason_for_burn&quot; ++ user_id` so then the user can claim some benefits from their burn later using chain state instead of blocks.  After Beefy this gives less benefit though I guess since you can relocatably prove the block contents from the beefy proof." CreationDate="2023-03-06T22:06:42.937" UserId="1810" />
  <row Id="7526" PostId="7458" Score="0" Text="When the prediction market rewards are distributed, say I had a couple of hundred transfers to do, would it not be reasonable to use the utility pallet batch function to handle a large batch of transactions?  Yes there are other ways, for example to get each user to claim their reward. But I'd like the option to do it this way." CreationDate="2023-03-07T01:56:24.480" UserId="2975" />
  <row Id="7527" PostId="7485" Score="0" Text="Unfortunately no, this issue is pointing a bad termination of WS connection. We also have this message on WS endpoints but it is not a big deal, most probably the client that ends connection on its side.&#xA;My errors are related to HTTP endpoint and we have a lot of them." CreationDate="2023-03-07T07:28:50.730" UserId="1732" />
  <row Id="7528" PostId="7485" Score="0" Text="I have edited the description to make difference of both errors clear" CreationDate="2023-03-07T07:35:11.050" UserId="1732" />
  <row Id="7529" PostId="7377" Score="1" Text="My initial problem from the top post was indeed about the weights v2 not being merged, but I found a link back here to my own question while searching for a different OutOfGas problem and your solution works! Thank you :)" CreationDate="2023-03-07T08:25:18.973" UserId="1956" />
  <row Id="7530" PostId="7484" Score="0" Text="Hey Bruno, with regard to authorities, we never set it because we had pallet-session enabled. This could definitely have been our downfall. Lemme get back to you on here with the right info." CreationDate="2023-03-07T09:14:10.453" UserId="2156" />
  <row Id="7531" PostId="7448" Score="0" Text="Although code is messy, here's how I could recover AccountId.&#xA;https://github.com/shunsukew/verifier/blob/main/contract/lib.rs&#xA;&#xA;And TS side to call verify message&#xA;https://github.com/shunsukew/verifier/blob/main/ts/index.ts" CreationDate="2023-03-07T09:19:56.210" UserId="275" />
  <row Id="7532" PostId="5554" Score="0" Text="Do you mean to interact with it using the polkadotJS UI: polkadot.js.org/apps/#/explorer or just do a RPC call with a frontend in JS?" CreationDate="2023-03-07T10:35:08.903" UserId="2762" />
  <row Id="7533" PostId="7498" Score="0" Text="Great resource, thanks for sharing here!" CreationDate="2023-03-07T11:54:51.777" UserId="2762" />
  <row Id="7534" PostId="7356" Score="0" Text="Does the calling account (test2) have enough funds?" CreationDate="2023-03-07T12:02:44.040" UserId="380" />
  <row Id="7535" PostId="7500" Score="2" Text="Check you are using the same versions of substrate in all your repository, check the version in the runtime/Cargo.toml , pallets/template/Cargo.toml and node/Cargo.toml" CreationDate="2023-03-07T12:19:12.317" UserId="2762" />
  <row Id="7536" PostId="7377" Score="0" Text="Super happy it worked!" CreationDate="2023-03-07T13:06:26.707" UserId="2961" />
  <row Id="7537" PostId="7494" Score="0" Text="Thanks, the thing is nothing has been changed on our side, the error only appears when switching from an older version to Astar v4.47.1 which contains Polkadot v0.9.36 uplift.&#xA;I can't help but think this is coming from this one much probably.&#xA;https://github.com/paritytech/substrate/pull/12663" CreationDate="2023-03-07T13:50:04.647" UserId="1732" />
  <row Id="7538" PostId="7478" Score="0" Text="&quot;But I also need to iterate over all account ids in a reasonable amount of computation time.&quot; for what?" CreationDate="2023-03-07T14:59:06.550" UserId="94" />
  <row Id="7539" PostId="7484" Score="2" Text="Looks like your chain is now running. Congrats! Please update here with an answer as to what the issue was as this could be beneficial to others " CreationDate="2023-03-07T17:22:31.927" UserId="29" />
  <row Id="7540" PostId="7503" Score="0" Text="thanks for replay, I was using Rosetta it was issue :)" CreationDate="2023-03-07T18:15:50.170" UserId="3886" />
  <row Id="7541" PostId="7500" Score="0" Text="thanks for replying" CreationDate="2023-03-07T18:16:04.857" UserId="3886" />
  <row Id="7543" PostId="7515" Score="0" Text="Please include: `rustup show` and `rustup +nightly show`" CreationDate="2023-03-07T19:41:52.037" UserId="29" />
  <row Id="7545" PostId="7517" Score="0" Text="Yep, now i tried to [fork](https://github.com/brano-hozza/valico) the repo and fix some dependencies but it looks like now that it is missing some traits (i will include them in edit of post)" CreationDate="2023-03-07T19:54:33.577" UserId="3931" />
  <row Id="7546" PostId="7515" Score="0" Text="I just built the Substrate Node Template (`polkadot-v0.9.37`) on my Mac M1 using the same command and it worked fine. Please include more info for debugging purposes." CreationDate="2023-03-07T19:56:22.317" UserId="29" />
  <row Id="7547" PostId="7515" Score="0" Text="@Bruno rustup +nightly show added" CreationDate="2023-03-07T20:16:39.237" UserId="2960" />
  <row Id="7548" PostId="7515" Score="0" Text="the error occurs when I run cargo build --release --features runtime-benchmarks i.e with the --feature  the runtime-benchmarks" CreationDate="2023-03-07T20:19:48.623" UserId="2960" />
  <row Id="7550" PostId="7515" Score="0" Text="Yes I have it works on my machine with `cargo build --release --features runtime-benchmarks. Please also include the `rustup show`" CreationDate="2023-03-07T20:38:24.233" UserId="29" />
  <row Id="7551" PostId="7515" Score="0" Text="Try building with the tag `polkadot-v0.9.37` and see if you have the same issue." CreationDate="2023-03-07T20:38:58.297" UserId="29" />
  <row Id="7552" PostId="7466" Score="1" Text="This is an error that occurred while handling an HTTP stream, specifically a [parse error](https://docs.rs/hyper/latest/hyper/struct.Error.html). Most likely, it is a custom setup you have on your machine and not something that has to do with the node-template." CreationDate="2023-03-07T20:52:25.600" UserId="29" />
  <row Id="7554" PostId="7494" Score="0" Text="Yes, it does but this is not necessarily an issue in the server for instance it could be client the dropped the socket prematurely or something. So again, if you find a way to reproduce it would help and create an issue in substrate or jsonrpsee. Thus, the error is really that hyper couldn't upgrade the socket to a service...." CreationDate="2023-03-07T22:28:18.297" UserId="1780" />
  <row Id="7556" PostId="4792" Score="0" Text="type AccountData = pallet_balances::AccountData&lt;Balance&gt;;" CreationDate="2023-03-08T03:52:16.530" UserId="1789" />
  <row Id="7557" PostId="7504" Score="0" Text="Thx for your quick answer. What's about using the randomness hash of the BABE protocol as described in the example? If I read your answer correctly, a bridge or oracle has even more secure randomness than the BABE protocol?" CreationDate="2023-03-08T08:27:34.143" UserId="2484" />
  <row Id="7558" PostId="7504" Score="1" Text="The BABE session randomness is not *cryptographically secure*. It can be influenced by validators in various ways to gain an advantage. Ultimately it boils down to economic security since the validators get penalized for it; you can probably still use it for a 5$ lottery, but not a 5000$. But in the long run yes, having some oracle or interactive protocols are the only *secure* ways of doing it." CreationDate="2023-03-08T12:08:58.990" UserId="94" />
  <row Id="7559" PostId="5568" Score="0" Text="@ДанилаАлексеев is that implementation done for parathread?" CreationDate="2023-03-08T12:29:31.503" UserId="377" />
  <row Id="7560" PostId="5568" Score="0" Text="@Paryaverse As I know it is not implemented yet. A few days ago i were trying to know the current status but have not found any related information" CreationDate="2023-03-08T14:24:46.200" UserId="3088" />
  <row Id="7561" PostId="4827" Score="0" Text="I've the exact same question than you, how did you solved it in the end ?" CreationDate="2023-03-08T15:39:25.413" UserId="501" />
  <row Id="7562" PostId="7505" Score="0" Text="The account_id you are using to query is the account_id of the multisig? which addresses are the list of address of the multisig?" CreationDate="2023-03-08T16:08:02.860" UserId="2762" />
  <row Id="7563" PostId="7325" Score="0" Text="Only working way for me is json encode arrays into strings, and decode on RPC side. Everything else I've tried delivers data in incorrect formats..." CreationDate="2023-03-08T16:12:46.497" UserId="157" />
  <row Id="7564" PostId="7505" Score="0" Text="Yes it's a multisig composed of 2/3 by&#xA;- 5DqVySMC366P8NRjdyp948TJj64hAvg17eaiEn4ZbuKCNZHc&#xA;- 5DqgU9eK7Jdtc4wfozYMdy5pFtyupnfethvLZ15fgiTZDnkM&#xA;- 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY" CreationDate="2023-03-08T16:42:57.483" UserId="341" />
  <row Id="7565" PostId="7107" Score="0" Text="@Purple_Turtle's suggestion is more on point. Look into. https://github.com/paritytech/substrate/blob/a08862c0127a41f561c8fdb5bac41bbf72d863d7/client/basic-authorship/src/basic_authorship.rs#L23" CreationDate="2023-03-08T16:58:34.703" UserId="167" />
  <row Id="7567" PostId="3769" Score="0" Text="how to register for next session?" CreationDate="2023-03-08T21:37:36.997" UserId="484" />
  <row Id="7569" PostId="7522" Score="0" Text="appreciate the insight!" CreationDate="2023-03-08T23:34:45.603" UserId="2830" />
  <row Id="7570" PostId="4827" Score="0" Text="not solved yet. what you see here is what I have so far... :(" CreationDate="2023-03-09T07:31:03.970" UserId="1789" />
  <row Id="7571" PostId="7534" Score="3" Text="Little context why this has been removed: https://github.com/paritytech/ink/pull/1255" CreationDate="2023-03-09T09:55:16.883" UserId="3098" />
  <row Id="7572" PostId="7482" Score="0" Text="I am asking myself if we have a map that queries a value behind one key in O(1) time." CreationDate="2023-03-09T15:29:11.433" UserId="2484" />
  <row Id="7573" PostId="995" Score="0" Text="ConstU16&lt;100&gt; cannot do. Only ConstU32&lt;100&gt; works. Thanks" CreationDate="2023-03-10T07:38:33.677" UserId="1789" />
  <row Id="7574" PostId="1005" Score="0" Text="type MaxSize: Get&lt;u16&gt; cannot work. only Get&lt;u32&gt; works. Thanks" CreationDate="2023-03-10T07:43:26.257" UserId="1789" />
  <row Id="7575" PostId="3949" Score="0" Text="Can you give an example for complex types like this: https://github.com/paritytech/ink-examples/blob/main/erc1155/lib.rs#L492&#xA;&#xA;Am i passing still encoded ints and vecs or do I have to deal with the complex types in substrate?" CreationDate="2023-03-10T08:03:41.083" UserId="3265" />
  <row Id="7576" PostId="6735" Score="0" Text="Would it be possible to reach a parity developer to ask further questions?" CreationDate="2023-03-10T08:18:53.280" UserId="3235" />
  <row Id="7577" PostId="7554" Score="0" Text="Thank you for the reply. Yes, I understand the polkadot consensus is a hybrid consensus where BABE/Aura is a block production and GRANDPA is finality. So the blockchain I am working on is using a different block production mechanism, but for finality it still uses the GRANDPA. The question is if I can use the custom block production to become parachain. As mentioned above the two documents have some contradiction at the moment." CreationDate="2023-03-10T08:25:41.637" UserId="2586" />
  <row Id="7578" PostId="7554" Score="0" Text="With &quot;it still uses GRANDPA&quot; you mean it uses GRANDPA of Polkadot?" CreationDate="2023-03-10T08:27:20.737" UserId="3317" />
  <row Id="7579" PostId="7554" Score="0" Text="Yes, the finality is the same as the GRANDPA from polkadot consesus." CreationDate="2023-03-10T08:28:07.933" UserId="2586" />
  <row Id="7580" PostId="7554" Score="0" Text="You can't implement GRANDPA on the parachain side" CreationDate="2023-03-10T08:30:40.317" UserId="3317" />
  <row Id="7581" PostId="7554" Score="0" Text="By &quot;can't implement GRANDPA&quot; do you mean I have to remove the current implementation of  GRANDPA and use the finality consensus provided by Cumulus? Currently the blockchain I am working on is in the testnet phase and is a full blockchain with its own Block Production, but we left the block finality (GRANDPA) as is which is default from substrate. We are now exploring the idea to become a parachain." CreationDate="2023-03-10T08:34:41.917" UserId="2586" />
  <row Id="7582" PostId="7554" Score="1" Text="*use the finality provided by the relay chain." CreationDate="2023-03-10T08:44:35.373" UserId="3317" />
  <row Id="7583" PostId="7554" Score="0" Text="Understood, Thank you" CreationDate="2023-03-10T08:55:51.947" UserId="2586" />
  <row Id="7584" PostId="7556" Score="0" Text="thank you @CocDap" CreationDate="2023-03-10T09:56:23.950" UserId="2372" />
  <row Id="7585" PostId="4342" Score="0" Text="Did you solved the issue ?" CreationDate="2023-03-10T14:51:52.807" UserId="501" />
  <row Id="7587" PostId="7566" Score="1" Text="Thank you man. This is the answer!" CreationDate="2023-03-10T19:01:00.857" UserId="1789" />
  <row Id="7588" PostId="7559" Score="0" Text="You're correct. So yeah, i will let it down the has method and do as you said. thanks a lot." CreationDate="2023-03-10T19:15:45.500" UserId="3946" />
  <row Id="7590" PostId="7570" Score="0" Text="Once i add more than one element into the array, i throws errors." CreationDate="2023-03-10T19:46:35.927" UserId="2446" />
  <row Id="7591" PostId="7570" Score="0" Text="Actually, i'm thinking it's the sclae-encoding that should be submitted, instead of the raw thing" CreationDate="2023-03-10T19:49:05.510" UserId="2446" />
  <row Id="7592" PostId="6735" Score="0" Text="Further questions about what? You can always open an issue on github." CreationDate="2023-03-10T21:23:52.753" UserId="73" />
  <row Id="7593" PostId="7529" Score="0" Text="Thank you, will check this out over the weekend" CreationDate="2023-03-10T23:17:03.010" UserId="2565" />
  <row Id="7594" PostId="7526" Score="0" Text="Thanks so much, I'll have a look" CreationDate="2023-03-10T23:17:24.957" UserId="2565" />
  <row Id="7596" PostId="6735" Score="0" Text="Further questions on how to modify substrate so the initial validators aren't required. Perhaps a guideline" CreationDate="2023-03-11T07:40:13.263" UserId="3235" />
  <row Id="7597" PostId="6735" Score="0" Text="That is not possible. You need at genesis validators. How would you otherwise want to produce blocks etc. I think you are putting too much thinking into something that isn't really any problem." CreationDate="2023-03-11T16:06:14.873" UserId="73" />
  <row Id="7598" PostId="6658" Score="0" Text="adding the parachain session keys to relaychain? that doesn't sound right" CreationDate="2023-03-11T16:50:08.030" UserId="473" />
  <row Id="7599" PostId="7578" Score="0" Text="createRegistry sounds quite good since otherwise I would need to do manually add types for each parachain. This would mean I could directly use the type definitions from each parachain right?" CreationDate="2023-03-12T16:28:55.360" UserId="325" />
  <row Id="7600" PostId="7576" Score="0" Text="thank you. So when you say added to your service instantiation. is there docs on this?" CreationDate="2023-03-12T17:20:26.220" UserId="3070" />
  <row Id="7601" PostId="7579" Score="0" Text="`what is the appropriate Rust syntax to set MockPrecompiles/PrecompilesValue in this Runtime configuration?`&#xA;&#xA;your question is not completely understandable. Rust aside, what should `PrecompilesValue` be, just when thinking about it conceptually?" CreationDate="2023-03-12T22:36:56.803" UserId="167" />
  <row Id="7602" PostId="7579" Score="1" Text="`pub MockPrecompiles: crate::Pallet&lt;Test&gt; = crate::Pallet(PhantomData::&lt;Test&gt;);` pallet structs are never meant to be instantiated, I find it hardly that you will be able to find a way around this." CreationDate="2023-03-12T22:39:17.973" UserId="167" />
  <row Id="7603" PostId="7579" Score="0" Text="as defined in `pallet-evm`: `type PrecompilesValue: Get&lt;Self::PrecompilesType&gt;`, and I set `type PrecompilesType = crate::Pallet&lt;Test&gt;`" CreationDate="2023-03-12T22:41:08.397" UserId="494" />
  <row Id="7605" PostId="7578" Score="0" Text="@TadejVengust Yes, exactly. Injecting the `TypeRegistry` with a types-bundle for a specific chain will allow you to build any of the types available in that given metadata." CreationDate="2023-03-13T01:04:34.017" UserId="1786" />
  <row Id="7606" PostId="7572" Score="0" Text="refTime is used by parachain. proofSize is used by relaychain. Both are synonymous to gas used by contract." CreationDate="2023-03-13T04:08:12.367" UserId="2478" />
  <row Id="7608" PostId="2182" Score="0" Text="Do you know where in the code base encoded bytes are decoded to MultiSignature based on the scheme type?" CreationDate="2023-03-13T08:22:05.243" UserId="275" />
  <row Id="7609" PostId="7586" Score="0" Text="so what you're suggesting is maybe to get the blockhash of the rewarded event and look into the storage data of this specific block ?" CreationDate="2023-03-13T09:28:57.087" UserId="3946" />
  <row Id="7610" PostId="7577" Score="0" Text="Hi Nagaraj! Sorry to hear about the issue you're getting. Does your node produce blocks after the first time you launch it? It may be that your machine doesn't have any memory left to run the node." CreationDate="2023-03-13T10:58:03.157" UserId="172" />
  <row Id="7611" PostId="7491" Score="0" Text="Looks like you already found the best place to post this issue: https://github.com/Zondax/ledger-polkadot/issues/175. Hopefully the Zondax team will get back to you." CreationDate="2023-03-13T11:08:52.160" UserId="172" />
  <row Id="7612" PostId="7576" Score="1" Text="No docs yet. Best is source is the code currently: https://github.com/paritytech/substrate/blob/db71f778e6ce7d7e3f11d936d6c46ac6affbbf19/bin/node/cli/src/service.rs#L571-L576" CreationDate="2023-03-13T11:28:23.117" UserId="73" />
  <row Id="7613" PostId="7577" Score="0" Text="Hi @SachaLansky, `node-template` works well, when I run for first time and it creates blocks too but Incase if I stop the node and try to start again or after using the `purge-chain` command, it throws the above error." CreationDate="2023-03-13T11:32:50.870" UserId="3886" />
  <row Id="7614" PostId="7508" Score="0" Text="Agreed; I do have plans to do a proper documentation pass over Subxt in general; I think a bunch of stuff here and there is lacking; the `subxt` macro is linked from the main crate but not documented by the looks of it! (There is an example in the examples folder for substitute types, but you'd have to know to look there, and the need for them is fairly common so should be highlighted better!)" CreationDate="2023-03-13T14:44:32.287" UserId="474" />
  <row Id="7615" PostId="7578" Score="1" Text="Issue oppened https://github.com/paritytech/txwrapper-core/issues/286" CreationDate="2023-03-13T14:52:01.110" UserId="325" />
  <row Id="7616" PostId="7584" Score="0" Text="Thank you very much for the tip! I'm still getting the same error unfortunately -- I doubled the ram consumption to 16GB. At this point I either need a new computer / upgrade this machine or there is some issue with the C++ dependencies" CreationDate="2023-03-13T15:16:58.827" UserId="3953" />
  <row Id="7617" PostId="5475" Score="0" Text="@Ganesh11 Can you mark the question as solved?" CreationDate="2023-03-13T17:38:53.540" UserId="227" />
  <row Id="7618" PostId="7576" Score="0" Text="Cool. thanks. I see that it is part of the cli of substrate but i dont see how to add that to our substrate based node." CreationDate="2023-03-13T19:03:25.773" UserId="3070" />
  <row Id="7619" PostId="7576" Score="1" Text="You need to add the crate and then initialize it as shown above." CreationDate="2023-03-13T21:33:50.077" UserId="73" />
  <row Id="7620" PostId="7584" Score="0" Text="Try increasing the swap. And what's your build command?" CreationDate="2023-03-14T02:18:36.893" UserId="251" />
  <row Id="7621" PostId="7577" Score="0" Text="@SachaLansky is their any solution to fix this issue." CreationDate="2023-03-14T05:46:29.353" UserId="3886" />
  <row Id="7622" PostId="7596" Score="1" Text="I see, thank you so much for the detailed explanation!" CreationDate="2023-03-14T06:46:09.470" UserId="275" />
  <row Id="7623" PostId="7577" Score="0" Text="I found out that in runtime folder  `build.rs` line number 7 which use wasm builder import the memory but not clearing previous build `.import_memory()`" CreationDate="2023-03-14T07:33:24.210" UserId="3886" />
  <row Id="7624" PostId="7416" Score="0" Text="could you elaborate a bit more with the context behind &quot;traits&quot;. I understand you can have a trait that's implemented by some pallet, and we can thus make use of foreign pallet code via the trait methods, but what happens with the weight calculation? If for instance the other pallet expects a signed origin, and our pallet received a signed call, we can maybe bypass the requirement in the other pallet, but what about the total weight calculation?" CreationDate="2023-03-14T09:09:48.803" UserId="3667" />
  <row Id="7625" PostId="7034" Score="1" Text="It's not yet possible, but we can implement it. I've created this issue for it: https://github.com/paritytech/ink/issues/1713." CreationDate="2023-03-14T10:03:34.860" UserId="227" />
  <row Id="7626" PostId="7416" Score="0" Text="The weight of the `do_function` will be included in the call itself, no need to pass it around explicetly." CreationDate="2023-03-14T12:25:30.837" UserId="94" />
  <row Id="7627" PostId="7034" Score="1" Text="Wow, thanks a lot. If I have some time to spare, I'll definitly open a PR with an implementation for it." CreationDate="2023-03-14T12:26:47.397" UserId="151" />
  <row Id="7628" PostId="7577" Score="0" Text="Please share a link to your node and maybe I can see what the problem is. With this information, the issue you're reporting doesn't make sense." CreationDate="2023-03-14T12:29:21.757" UserId="172" />
  <row Id="7629" PostId="7192" Score="0" Text="@MrCoder Contracts UI, it's better maintained for contracts." CreationDate="2023-03-14T12:46:22.403" UserId="227" />
  <row Id="7630" PostId="7223" Score="0" Text="@Kianoush Which wallet are you referring to?" CreationDate="2023-03-14T12:47:43.567" UserId="227" />
  <row Id="7631" PostId="7067" Score="0" Text="Where are you trying to fill it in? In tests? In your browser PolkadotJS? Are there even any assets?" CreationDate="2023-03-14T13:53:40.357" UserId="94" />
  <row Id="7632" PostId="7246" Score="0" Text="@Ganesh11 Did it work with the latest release?" CreationDate="2023-03-14T14:00:44.500" UserId="227" />
  <row Id="7633" PostId="7617" Score="0" Text="Yep, I agree with this. I want to write a &quot;Rust&quot; benchmark without any Substrate deps. Sure, I can use the criterion. But how can I the WASM performance? I don't want the native host benchmarking result. Then I can find some ways to transform that performance result to weight." CreationDate="2023-03-14T15:52:57.447" UserId="251" />
  <row Id="7634" PostId="7579" Score="0" Text="&quot;as defined in pallet-evm..&quot; Rephrasing what I said, I am asking what this type should be all Rust details aside, at a conceptual level. What does it mean and where should it come from?" CreationDate="2023-03-14T15:53:29.853" UserId="167" />
  <row Id="7635" PostId="7573" Score="0" Text="I agree on the above that `Gas = Weight = (refTime, proofSize)`&#xA;But I have a different definition of `proofSize`:&#xA;For me `proofSize` is the size of the PoV (witness + extrinsics). The witness will incorporate all compressed contracts blob in bytes. It represent the size in bytes to send to relay chain via network for verification.&#xA;The amount of storage space that will be used is storage rent and storage deposit (where caller balance will be reserved not transferred)." CreationDate="2023-03-14T16:42:58.713" UserId="567" />
  <row Id="7636" PostId="7617" Score="0" Text="AFAIK criterion has first class WASM support. I have not used it so far, but it should be possible to compile it to WASM. There is a readme for [wasi](https://github.com/bheisler/criterion.rs/blob/2f5360737807cbe90d149db6199783236f0ef634/book/src/user_guide/wasi.md), maybe that helps. Note that Substrate uses wasmtime." CreationDate="2023-03-14T17:00:36.097" UserId="94" />
  <row Id="7637" PostId="2417" Score="0" Text="@PabloBuitrago you could try compiling Substrate with only `parity-db`  using this commit https://github.com/paritytech/substrate/issues/13177#issuecomment-1465505579" CreationDate="2023-03-15T06:14:27.970" UserId="83" />
  <row Id="7638" PostId="7635" Score="0" Text="Do you have some details on how listening for events on the RPC is happening? Via `polkadot-js/api` or some other library (`subxt`, etc.)?" CreationDate="2023-03-15T07:07:17.007" UserId="227" />
  <row Id="7640" PostId="7601" Score="0" Text="Which script are you following from terminal?" CreationDate="2023-03-15T09:07:12.067" UserId="429" />
  <row Id="7641" PostId="7073" Score="0" Text="if your blockchain has updated to use WeightsV2 then polkadot.js.org/apps may not work. you can look at this PR https://github.com/polkadot-js/apps/pull/8538.&#xA;instead try using the https://contracts-ui.substrate.io/ or https://github.com/paritytech/contracts-ui" CreationDate="2023-03-15T09:56:58.260" UserId="2586" />
  <row Id="7642" PostId="7646" Score="0" Text="Then how i can give instruction to transfer assets from one chain to another chain ? Can you please tell ? It is showing unreachable" CreationDate="2023-03-15T10:00:04.717" UserId="2372" />
  <row Id="7643" PostId="7647" Score="0" Text="Can i send any custom message rather than the raw 020419ac?" CreationDate="2023-03-15T10:06:40.797" UserId="2372" />
  <row Id="7644" PostId="7651" Score="0" Text="It appears that doesn't give the history: `const e = era.toHuman().MortalEra.period; const historyStaked = await api.query.staking.erasTotalStake(e);` returns `&lt;BN: 0&gt;`" CreationDate="2023-03-15T11:11:01.533" UserId="3344" />
  <row Id="7645" PostId="7577" Score="0" Text="please find the link for repo : https://github.com/nagarajmanjunath/substrate_pallet_contract first time it works well but stop and run again throw above error. I am using Mac M1 pro, I need to comment `import_memory()`  to run it properly." CreationDate="2023-03-15T11:42:10.267" UserId="3886" />
  <row Id="7646" PostId="7652" Score="0" Text="Interesting, I think would be a nice feature because it can be useful for some use cases. But I understand now why is not possible to support all options." CreationDate="2023-03-15T14:48:30.270" UserId="2762" />
  <row Id="7647" PostId="7647" Score="0" Text="Yes, you can.&#xA;&#xA;you can get the encoded byte with the help of polakdot.js" CreationDate="2023-03-15T14:55:09.457" UserId="429" />
  <row Id="7648" PostId="7646" Score="0" Text="Unfortunately, parity-common-bridges repo is not configured to perform this operation for now. You need to configure it in order to achieve this functionality." CreationDate="2023-03-15T14:56:21.730" UserId="429" />
  <row Id="7652" PostId="7573" Score="0" Text="@P.Ossun The accessed storage is part of the proof as well, so in addition to the contract blob. This is necessary so that the validator can execute the code for the contract call with the storage it touches." CreationDate="2023-03-15T15:33:21.120" UserId="227" />
  <row Id="7653" PostId="7633" Score="0" Text="This is correct. I ran: `cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git --tag v0.24.0` and re-ran the e2e tests and it worked." CreationDate="2023-03-15T15:53:17.460" UserId="29" />
  <row Id="7654" PostId="7067" Score="0" Text="@OliverTale-Yazdi i using the contract ui and use the substrate frontend ." CreationDate="2023-03-15T19:31:12.017" UserId="2722" />
  <row Id="7656" PostId="7662" Score="0" Text="How many validators are you running? Try running one more!" CreationDate="2023-03-15T21:30:19.650" UserId="29" />
  <row Id="7657" PostId="7579" Score="0" Text="this type represents the set of precompiles that `pallet-evm` will be able to execute... it is meant to be a custom implementation for each runtime https://github.com/paritytech/frontier/blob/8a5492f23925b0d7d2607e943982d90da017c3f2/template/runtime/src/precompiles.rs#L30" CreationDate="2023-03-15T21:59:58.530" UserId="494" />
  <row Id="7658" PostId="7649" Score="0" Text="Thank you so much for the detailed explanation.&#xA;My understanding is that Substrate itself doesn't enforce deposit fee for all storage usage in palletes, but for economic security, Polkadot employs it in all pallets. And this is desired not only for Polkadot." CreationDate="2023-03-16T04:35:12.907" UserId="275" />
  <row Id="7659" PostId="7510" Score="0" Text="will users be able to claim their crowdloan stake when the parachain has been deregistered?" CreationDate="2023-03-16T04:52:38.970" UserId="1947" />
  <row Id="7660" PostId="7663" Score="0" Text="Tidy up your device in terms of memory and try it again, I think you don't have enough memory space." CreationDate="2023-03-16T09:17:52.210" UserId="3317" />
  <row Id="7661" PostId="7656" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2023-03-16T09:28:35.793" UserId="-1" />
  <row Id="7663" PostId="7663" Score="0" Text="Hi, yes looks like a resource issues. can you try in another device with more memory? Thanks!" CreationDate="2023-03-16T09:55:15.133" UserId="279" />
  <row Id="7664" PostId="7663" Score="0" Text="I am using M1 MBP with 32GB memory. Is not enough?" CreationDate="2023-03-16T10:02:56.160" UserId="3966" />
  <row Id="7665" PostId="7667" Score="0" Text="Can you update your question? How to reproduce this?" CreationDate="2023-03-16T10:03:34.270" UserId="251" />
  <row Id="7666" PostId="4427" Score="0" Text="What do you mean in the first para when you say : &quot; add that additional weight to on_initialize.&quot; ?" CreationDate="2023-03-16T10:37:15.567" UserId="139" />
  <row Id="7667" PostId="7667" Score="0" Text="oh, this problem solve" CreationDate="2023-03-16T11:07:47.777" UserId="3252" />
  <row Id="7670" PostId="7656" Score="0" Text="the question there is any private key rotation internally speaking or not ?" CreationDate="2023-03-16T13:51:00.157" UserId="3838" />
  <row Id="7671" PostId="2696" Score="0" Text="Do you solve the problem? I need also decoder to parse extrinsics ,can you help me ?" CreationDate="2023-03-16T12:17:33.687" UserId="3252" />
  <row Id="7672" PostId="7662" Score="0" Text="I run two validators for the local Rococo relaychain and one collator on my local parachain. Thanks for the tip! I will try this." CreationDate="2023-03-16T18:53:21.383" UserId="2484" />
  <row Id="7673" PostId="4427" Score="0" Text="I meant that you would need to calculate the weight of on_finalize and reserve that beforehand with on_initialize. (So that you have enough space for the execution of on_finalize)" CreationDate="2023-03-16T18:57:27.000" UserId="2484" />
  <row Id="7674" PostId="7667" Score="0" Text="@Rose if this was the answer to your question, you can mark it as the solution. Otherwise, please post the answer to your problem yourself." CreationDate="2023-03-16T19:02:39.870" UserId="28" />
  <row Id="7675" PostId="7634" Score="0" Text="I'm gonna try and write a better answer soon, but you should take a look at the &quot;try&quot; methods from the CallBuilder: https://docs.rs/ink_env/4.0.1/ink_env/call/struct.CallBuilder.html#method.try_invoke-2.&#xA;&#xA;Basically there are three types of errors to handle: Environment errors, Language errors, and Contract errors. Storage changes aren't as big a hassle as in Substrate" CreationDate="2023-03-17T03:17:38.447" UserId="1824" />
  <row Id="7676" PostId="7627" Score="0" Text="Thank you so much" CreationDate="2023-03-17T03:37:56.347" UserId="576" />
  <row Id="7677" PostId="4427" Score="1" Text="Okay that makes sense. Thanks!" CreationDate="2023-03-17T06:46:55.437" UserId="139" />
  <row Id="7678" PostId="7673" Score="0" Text="Very good. Thanks" CreationDate="2023-03-17T08:26:46.680" UserId="1789" />
  <row Id="7679" PostId="419" Score="0" Text="If I use `fn iter_keys_from` for a non-dynamic `StorageMap` this seems great. But if I add additional keys, then I can't be sure that I miss some keys which were inserted before `iter_keys_from(starting_raw_key)`, right? Example, where assert fails: https://github.com/zeitgeistpm/zeitgeist/blob/f81d03da05f1c3ab75b27af6964594df2dfee6d8/zrml/court/src/tests.rs#L429-L473" CreationDate="2023-03-17T08:48:49.607" UserId="2484" />
  <row Id="7680" PostId="7662" Score="1" Text="Thanks, two collators fixed the problem!" CreationDate="2023-03-17T10:38:33.197" UserId="2484" />
  <row Id="7682" PostId="7591" Score="0" Text="[balance inside GenesisConfig](https://github.com/NodleCode/chain/blob/7e038437f5d31cdc567ff78712d3a9a7d7946437/node/src/chain_spec.rs#L116) of chain_spec.rs what is this for? Shouldn't we considered as `total_insuance`?" CreationDate="2023-03-17T12:48:59.057" UserId="2844" />
  <row Id="7684" PostId="7693" Score="0" Text="sometimes I get `4.9517 P XCAV` or `4.9517 E XCAV` as well. What does P and E indicate?" CreationDate="2023-03-17T16:07:37.580" UserId="2844" />
  <row Id="7685" PostId="7696" Score="0" Text="If the mnemonic is hashed to produce the private key then you can't." CreationDate="2023-03-17T16:47:55.863" UserId="298" />
  <row Id="7686" PostId="7629" Score="1" Text="I must be doing something wrong or skipped a step. I updated my question with steps to reproduce. If you can help that would be great!" CreationDate="2023-03-17T20:27:25.897" UserId="29" />
  <row Id="7687" PostId="7699" Score="0" Text="You may want to open an issue on there Github." CreationDate="2023-03-17T23:58:27.520" UserId="29" />
  <row Id="7689" PostId="7693" Score="0" Text="I don't know much about `P` or `E`. But I think this question is solved, and that's another question. Your token symbol setting is working as expected." CreationDate="2023-03-18T04:26:36.007" UserId="251" />
  <row Id="7690" PostId="7699" Score="0" Text="@Bruno thanks ,will ask this in discord before creating an issue in appropriate Phala Repo" CreationDate="2023-03-18T04:34:16.823" UserId="2510" />
  <row Id="7691" PostId="7705" Score="0" Text="thank you so much" CreationDate="2023-03-18T16:50:14.147" UserId="2089" />
  <row Id="7692" PostId="7706" Score="1" Text="Need more context. Which pallets are you using? Please include the repo for your code. Ideally also include steps to reproduce the error." CreationDate="2023-03-18T21:14:38.863" UserId="29" />
  <row Id="7693" PostId="7637" Score="0" Text="Why does the `VAnchorInterface` trait depend on the instance of the implementing pallet? Sure you can inject an instance into your pallets config like `type VaInstance: 'static;` but it seems odd to me. Could you post the full code please? Tight coupling normally means to directly call into another pallet and bypass any config to configure which or how." CreationDate="2023-03-18T23:42:41.273" UserId="94" />
  <row Id="7695" PostId="7710" Score="0" Text="why not use a simple mock runtime?" CreationDate="2023-03-19T12:36:26.177" UserId="3319" />
  <row Id="7696" PostId="7710" Score="0" Text="I still feel it isn't very easy." CreationDate="2023-03-19T12:38:29.020" UserId="251" />
  <row Id="7697" PostId="7483" Score="0" Text="This does not work in the runtime / no-std." CreationDate="2023-03-19T13:35:26.057" UserId="94" />
  <row Id="7701" PostId="7608" Score="0" Text="https://github.com/paritytech/substrate/issues/13644" CreationDate="2023-03-19T18:18:17.700" UserId="16" />
  <row Id="7702" PostId="7703" Score="0" Text="Great explanation, but would you happen to know where on the substrate-node-template you can increase this allowed storage deposit limit? What I find is when I deploy a variety of contracts with one address (400-600) contracts, I get this error." CreationDate="2023-03-19T20:54:52.967" UserId="2961" />
  <row Id="7703" PostId="7710" Score="0" Text="The command you posted should work. What kind of error did you get?" CreationDate="2023-03-19T21:18:18.453" UserId="73" />
  <row Id="7704" PostId="7710" Score="0" Text="@bkchr updated my question." CreationDate="2023-03-20T03:02:09.497" UserId="251" />
  <row Id="7705" PostId="7701" Score="0" Text="I still think there are too many sub-questions in this question. Can you make it more clear? Maybe you can open a single question to ask why the subxt can not decode metadata." CreationDate="2023-03-20T03:34:58.867" UserId="251" />
  <row Id="7706" PostId="7683" Score="0" Text="Can someone please help me?" CreationDate="2023-03-20T03:41:06.843" UserId="3437" />
  <row Id="7707" PostId="7701" Score="0" Text="Ok,bro.Thank you" CreationDate="2023-03-20T03:55:41.173" UserId="3971" />
  <row Id="7708" PostId="7717" Score="0" Text="Please include more details. What is the exact XCM message you sent?What does your xcm_config look like? How do you have your barriers set up?" CreationDate="2023-03-20T07:00:10.047" UserId="29" />
  <row Id="7710" PostId="7686" Score="0" Text="I am thinking about a child trie here. Or is there another way of creating a state hash out of a storage map?" CreationDate="2023-03-20T07:39:07.820" UserId="2484" />
  <row Id="7711" PostId="7716" Score="0" Text="by changing the features to `subxt = { version = &quot;0.27.0&quot;, default-features = false, features = [&quot;jsonrpsee-ws&quot;] }` and adding `parity-scale-codec = { version = &quot;3.4.0&quot;, default-features = false }` to the Cargo.toml I can build the project, however, when I try to run I get an error `thread 'main' panicked at 'cannot call wasm-bindgen imported functions on non-wasm targets'`. I am not familiar with yew or wasm_bindgen so I can't answer futher." CreationDate="2023-03-20T09:07:56.920" UserId="2586" />
  <row Id="7712" PostId="7721" Score="1" Text="Use `rustup default` to set your default toolchain. I think your default toolchain is `nightly`." CreationDate="2023-03-20T10:19:03.290" UserId="251" />
  <row Id="7713" PostId="7688" Score="1" Text="a) I cannot add accounts to the extension from seed phrases as those are private to the users of my system.&#xA;b) this does sr25519 signing using signRaw. I cannot verify that as I only have access to ECDSA" CreationDate="2023-03-20T10:23:27.120" UserId="3711" />
  <row Id="7714" PostId="7701" Score="0" Text="Can you share your github repo? I bet lots of others would like to see this working too (who doesn't love more rust?)." CreationDate="2023-03-20T11:01:12.537" UserId="85" />
  <row Id="7715" PostId="7483" Score="0" Text="Good point. I would say the important part here is the first paragraph in my answer. For proper implementation of the encoding function they can check this other answer for guidance and implement their own in the precompile: https://substrate.stackexchange.com/questions/2311/how-to-create-custom-ss58-address-format" CreationDate="2023-03-20T11:26:22.987" UserId="2025" />
  <row Id="7716" PostId="7688" Score="0" Text="so you want JUST verify ECDSA?" CreationDate="2023-03-20T11:37:02.627" UserId="157" />
  <row Id="7718" PostId="7591" Score="0" Text="Those are the balances that are set at genesis (e.g. ICO of a chain ). Yes you can view this as the total issuance at genesis. You can also query this if you are using [pallet-balances](https://github.com/paritytech/substrate/blob/9795fa31435426137d91936a52cab8e50ebe2f50/frame/balances/src/lib.rs#L348-L352)." CreationDate="2023-03-20T13:59:40.350" UserId="3317" />
  <row Id="7719" PostId="6412" Score="1" Text="Coming back to this as I am facing same issue. Any progress @Mr Coder?" CreationDate="2023-03-20T14:51:18.507" UserId="2384" />
  <row Id="7721" PostId="6824" Score="0" Text="To add to this, here's the issue on github for the new Sassafrass consensus, it should be able to point you in the right direction: https://github.com/paritytech/substrate/issues/11515" CreationDate="2023-03-20T20:30:20.990" UserId="543" />
  <row Id="7722" PostId="7701" Score="1" Text="Sure.Here is my [github repo](https://github.com/GinmusWJQ/yew-subxt-demo)" CreationDate="2023-03-21T02:30:34.867" UserId="3971" />
  <row Id="7723" PostId="7701" Score="0" Text="with `features = [&quot;jsonrpsee-web&quot;]` you won't be able to use the new() or from_url() functions as those only get compiled with `features = [&quot;jsonrpsee-ws&quot;]`. you can check it here https://github.com/paritytech/subxt/blob/b7a29a5efe60f7c21de556f737e486cfcc852cf3/subxt/src/client/online_client.rs#L85" CreationDate="2023-03-21T08:18:02.787" UserId="2586" />
  <row Id="7724" PostId="7726" Score="1" Text="Please provide a little bit more context" CreationDate="2023-03-21T10:21:14.273" UserId="3317" />
  <row Id="7725" PostId="7724" Score="1" Text="What chain are you querying?" CreationDate="2023-03-21T11:38:27.133" UserId="1786" />
  <row Id="7726" PostId="7724" Score="1" Text="which version of polkadot.js are you using?" CreationDate="2023-03-21T11:59:17.653" UserId="279" />
  <row Id="7727" PostId="5582" Score="0" Text="The block author seals the block. The block author (**consensus**) can be determined through protocols like BABE / AURA / Sassafraas (W.I.P). **Finality** is determined through GRANDPA within Polkadot. Unlike other blockchain protocols consensus and finality is seperated (**hybrid consensus**). The article you provided is AURA implemented for consensus and finality." CreationDate="2023-03-21T13:50:05.220" UserId="3317" />
  <row Id="7730" PostId="7732" Score="0" Text="For those curious, discussion about the above issue on github: https://github.com/polkadot-js/api/issues/5555#issuecomment-1479025328" CreationDate="2023-03-22T10:28:35.083" UserId="1786" />
  <row Id="7731" PostId="7688" Score="0" Text="I want to verify sr25519 in ink" CreationDate="2023-03-22T11:32:17.443" UserId="3711" />
  <row Id="7732" PostId="7739" Score="0" Text="You are right about this, but what if I am controlling the nodes, is there a place in the substrate-node-template or what of the frame modules to change this limit?" CreationDate="2023-03-22T17:45:24.180" UserId="2961" />
  <row Id="7733" PostId="7743" Score="0" Text="i'm not sure if it's related but i was recently trying to debug this code with breakpoints https://github.com/ltfschoen/kobold-test/pull/1/files in Visual Studio Code but it uses wasm-bindgen, and i read here that it's not yet possible https://stackoverflow.com/questions/67032785/how-to-debug-rust-and-webassembly-program-with-vscode-and-codelldb" CreationDate="2023-03-22T23:49:35.327" UserId="83" />
  <row Id="7734" PostId="7710" Score="0" Text="could you use `cargo check` https://doc.rust-lang.org/cargo/commands/cargo-check.html instead of `cargo build`?" CreationDate="2023-03-22T23:57:37.767" UserId="83" />
  <row Id="7735" PostId="7710" Score="0" Text="I have already tried that. Same result." CreationDate="2023-03-23T03:06:00.583" UserId="251" />
  <row Id="7736" PostId="7721" Score="2" Text="i use `rustup override`" CreationDate="2023-03-23T07:36:29.413" UserId="83" />
  <row Id="7738" PostId="7701" Score="0" Text="why are you using `subxt` version `0.27.0` (in the repo link you shared your using `0.25.0` instead of the latest `0.27.1`? why are you using `wasm-bindgen-futures` version `0.4.32` instead of the latest `0.4.34`? why using `wasm-bindgen` version `0.2.82` instead of the latest `0.2.84`?" CreationDate="2023-03-23T09:33:16.327" UserId="83" />
  <row Id="7739" PostId="7424" Score="0" Text="I tried it, but the `WASM_TARGET_DIRECTORY` was `darwinia/target/release/wbuild-runner/darwinia-runtime`. I haven't seen `wbuild-runner` folder before in any Substrate projects. Any it simply goes to the `else` condiction `cargo build --release -p darwinia-runtime`. IIUC, should this script be called `build-runtime-only`?" CreationDate="2023-03-23T09:48:20.410" UserId="251" />
  <row Id="7741" PostId="7701" Score="0" Text="note: i just replicated your error using the code in your post here running a node using the latest substrate version and latest rust version even with `subxt` `0.27.1`, `wasm-bindgen-futures` `0.4.34`. i got error `Failed to decode metadata: Could not decode RuntimeMetadataPrefixed.0: Not enough data to fill buffer` and error `no function or associated item named 'new' found for struct 'OnlineClient' in the current scope`" CreationDate="2023-03-23T10:17:22.010" UserId="83" />
  <row Id="7742" PostId="7746" Score="0" Text="Thank you very much @Luke for your time and detailed explanation . But can you please tel me: 1.  Why this .local file/folder is needed? 2. Is it Ok to add the .local file/folder?" CreationDate="2023-03-23T11:14:18.643" UserId="3327" />
  <row Id="7743" PostId="7746" Score="1" Text="the folder (not file) .local/ is required because that is where data such as session keys are stored for validators (see https://substrate.stackexchange.com/questions/1429/how-to-generate-keys-for-authorities). in the docker-compose.yml file here https://github.com/substrate-developer-hub/substrate-node-template/blob/main/docker-compose.yml#L15 we bind mount from the container folder /root/.local to the host machine project root folder ./.local. they also create a volume to /chain-data that has a symlink to /node-dev/.local/share/node-template, which is where session keys would be stored" CreationDate="2023-03-23T11:33:15.227" UserId="83" />
  <row Id="7744" PostId="7752" Score="1" Text="I have done all the things right as you said but still getting the same issue." CreationDate="2023-03-23T12:59:58.473" UserId="2281" />
  <row Id="7745" PostId="7752" Score="0" Text="Can you add more detail to the question? How do you check these?" CreationDate="2023-03-23T13:10:30.987" UserId="251" />
  <row Id="7746" PostId="7754" Score="0" Text="thank you. i'm trying that now. https://github.com/polkadot-js/api/pull/5561/commits/40862e3" CreationDate="2023-03-23T15:15:51.393" UserId="265" />
  <row Id="7747" PostId="7746" Score="0" Text="_&quot;cache for chain data in container&quot;_ https://github.com/substrate-developer-hub/substrate-node-template/blob/main/.gitignore#L12" CreationDate="2023-03-23T23:05:34.923" UserId="83" />
  <row Id="7748" PostId="3866" Score="0" Text="where can i find the input/output id for each parachain?" CreationDate="2023-03-23T21:55:16.937" UserId="3738" />
  <row Id="7749" PostId="7749" Score="0" Text="Any plans to? Of so where should people track this? Perhaps an issue?" CreationDate="2023-03-24T01:23:18.250" UserId="34" />
  <row Id="7750" PostId="7749" Score="1" Text="Yes, we have a few issues for tracking:&#xA;- Phat UI: https://github.com/Phala-Network/phat-contract-ui/pull/40&#xA;- Phat Hello Contract: https://github.com/Phala-Network/phat-hello/pull/1&#xA;- We will make an announcement a week before upgrading out testnet to ensure deployed contracts are prepared for the migration." CreationDate="2023-03-24T04:10:08.883" UserId="549" />
  <row Id="7754" PostId="7767" Score="0" Text="I read through that answer yet it makes little sense to me. It states that the `block time` is 500 ms to ensure that a PoV is built, validated and that it would be able to be increased in the future with asyn backing but it doesn't say why specifically 500ms. Is it based on some calculation? Is it done to ensure consitent throughput? I am looking for a why 500ms rather than a statement." CreationDate="2023-03-24T07:29:29.393" UserId="3667" />
  <row Id="7756" PostId="7767" Score="0" Text="https://substrate.stackexchange.com/questions/3028/what-is-the-possible-minimum-block-time" CreationDate="2023-03-24T07:33:08.230" UserId="251" />
  <row Id="7757" PostId="7235" Score="0" Text="I forgot to make this answer correct. Thanks" CreationDate="2023-03-24T12:01:07.747" UserId="1793" />
  <row Id="7758" PostId="7746" Score="0" Text="Sorry but I am unable to relate this with our discussion. I have marked your detailed explanation as answer BTW. Thank you for your time." CreationDate="2023-03-24T17:40:43.647" UserId="3327" />
  <row Id="7760" PostId="7773" Score="1" Text="Works fine when I do it locally, no decoding error. Maybe try to delete your DB snapshot, sometimes it does not clear. Your &quot;failed to decode&quot; probably comes from the `translate` call, I would avoid that at all cost since it very error prone. There is a post [here](https://substrate.stackexchange.com/questions/6188) about the try-runtime CLI but it looks like you got it right. You can also try to [test](https://github.com/paritytech/substrate/blob/e374a33fe1d99d59eb24a08981090bdb4503e81b/frame/preimage/src/migration.rs#L219) it first." CreationDate="2023-03-25T13:05:15.227" UserId="94" />
  <row Id="7761" PostId="7774" Score="2" Text="should be correct, did you run into some problem with this code?" CreationDate="2023-03-25T14:46:11.500" UserId="170" />
  <row Id="7762" PostId="7776" Score="1" Text="Thanks! Getting `isEthereum` got me half way. The other issue was that I had to specify `{&quot;AccountId&quot;: &quot;EthereumAccountId&quot;}` as an extra type or face an `createType(AccountId):: Invalid AccountId provided, expected 32 bytes, found 20` error (and you can't just do that because `isEthereum` overrides `isDevelopment` for some [strange reason](https://github.com/polkadot-js/apps/blob/master/packages/react-api/src/Api.tsx#L190))" CreationDate="2023-03-25T19:24:37.143" UserId="4005" />
  <row Id="7763" PostId="7778" Score="0" Text="I have my own development environment. Where I have deployed the polka dot relaychain up and running. I have my own parachain (that is obviously forked from substrate-node). I wanted to give user a docker command so that they can spin one parachain node that connects to the polka dot relay chain running in my environment.  How can I achieve that, what are the rough steps involved?" CreationDate="2023-03-25T21:38:08.243" UserId="3327" />
  <row Id="7764" PostId="7778" Score="0" Text="On the basis that you want to connect to a polkadot relay-chain node that is already running. I'd suggest using this example dockerfile https://github.com/paritytech/cumulus/blob/master/docker/polkadot-parachain_builder.Containerfile but copying across your your own parachain into the container instead of cumulus. Then you want to build the container similar to scripts  https://github.com/paritytech/cumulus/tree/master/docker/scripts, then to connect to the external relay chain node pass arguments like&#xA;https://github.com/paritytech/cumulus#external-relay-chain-node at the end of `docker run`" CreationDate="2023-03-26T01:21:32.017" UserId="83" />
  <row Id="7765" PostId="7782" Score="2" Text="hey @Tomasz now we can use Mapping in place of HashMap https://paritytech.github.io/ink/ink_storage/index.html" CreationDate="2023-03-26T12:14:47.557" UserId="2844" />
  <row Id="7766" PostId="7760" Score="0" Text="Loading the metadata.json is exactly where we run into trouble. Because our UI is a clone of the Polkadot-JS/apps, we need to get the contract into the list of contracts on the UI &gt; Developer &gt; Contracts page BUT we need to do it in a way that makes it easy for the user. For example, is there a way to have one button that says &quot;Load this app&quot; on our app page in the UI, and when the user clicks that button, the contract is loaded into the UI &gt; Developer &gt; Contracts list?" CreationDate="2023-03-26T13:52:38.240" UserId="3346" />
  <row Id="7767" PostId="7760" Score="0" Text="We have been trying to automate the actions that the Add.tsx file does, but we cannot figure out how to automate the uploading of the metadata.json file without making the user drag and drop or some other action. Is there a way to load the contract (which already exists on chain) into the Developer &gt; Contracts page list of contracts with just one button?" CreationDate="2023-03-26T13:52:43.710" UserId="3346" />
  <row Id="7768" PostId="7760" Score="0" Text="I tried asking my question in a better way (I hope)... see this one: https://substrate.stackexchange.com/questions/7786/auto-upload-contracts-to-ui-or-pre-populate-dropzone-in-modal-for-adding-contrac" CreationDate="2023-03-26T23:53:58.523" UserId="3346" />
  <row Id="7770" PostId="7787" Score="0" Text="What is considered as **considerable amount**, as for now minimum bond amount for nominators is zero so how much should i stake so that it is active for both validators." CreationDate="2023-03-27T04:58:51.027" UserId="354" />
  <row Id="7771" PostId="7787" Score="0" Text="it's not clear how much help you're after to be satisfied with a response. please update your question. have you tried staking considerably more with one account than the other, what did you observe? have you waited for a few eras to see if their active/inactive status changes, and what did you observe?" CreationDate="2023-03-27T06:11:22.987" UserId="83" />
  <row Id="7772" PostId="7774" Score="0" Text="Do you get an error at compile time or at runtime? If at runtime: What does the Contracts UI display as an error?" CreationDate="2023-03-27T06:34:20.947" UserId="227" />
  <row Id="7773" PostId="7787" Score="1" Text="updated the question" CreationDate="2023-03-27T07:00:00.707" UserId="354" />
  <row Id="7774" PostId="7774" Score="0" Text="Code looks ok, but full code would be better to understand your issue. Do you have one `message` call and does your constructor return the contract instance?" CreationDate="2023-03-27T07:34:17.490" UserId="529" />
  <row Id="7775" PostId="7685" Score="1" Text="If it is still the case, you could join the MR conversation or open an issue" CreationDate="2023-03-27T09:18:55.397" UserId="3317" />
  <row Id="7778" PostId="7662" Score="1" Text="Could you provide the answer to your question so this question is useful for others?" CreationDate="2023-03-27T09:27:59.403" UserId="3317" />
  <row Id="7779" PostId="7795" Score="0" Text="This is for normal parachains, I want to add a system parachain. How can we do for system parachains?" CreationDate="2023-03-27T09:54:14.283" UserId="3096" />
  <row Id="7780" PostId="7795" Score="0" Text="What's the differences between normal parachain and system parachain?" CreationDate="2023-03-27T10:00:23.190" UserId="251" />
  <row Id="7782" PostId="7795" Score="0" Text="System parachains are common good parachains(trusted) like statemint is for polkadot and statemine for kusama network. I want to add this system parachain through governance." CreationDate="2023-03-27T10:56:06.327" UserId="3096" />
  <row Id="7783" PostId="7795" Score="0" Text="Statemint and statemine are just some normal parachains in this view. There aren't any differences about how to add it as a parachain.&#xA;&#xA;Check https://polkadot.polkassembly.io/referendum/46.&#xA;&#xA;Just like other parachains. Add the shell chain and upgrade it. Or add this chain directly." CreationDate="2023-03-27T11:28:42.370" UserId="251" />
  <row Id="7784" PostId="7795" Score="0" Text="IIUC, &quot;common good parachain&quot; is just a sort of service/marketing requirement. It doesn't affect the relaychain-parachain protocol. You can make some runtime configurations for those parachains, like zero tx fee, a special para id, ..." CreationDate="2023-03-27T11:33:12.900" UserId="251" />
  <row Id="7785" PostId="7795" Score="0" Text="How can I add a parachain through governance i.e. without sudo?" CreationDate="2023-03-27T12:00:49.210" UserId="3096" />
  <row Id="7786" PostId="7795" Score="0" Text="That's another question. Check https://substrate.stackexchange.com/questions/2281/how-would-someone-go-without-the-sudo-pallet." CreationDate="2023-03-27T12:31:40.820" UserId="251" />
  <row Id="7787" PostId="7804" Score="0" Text="FYI `#[cfg(feature= &quot;feature1&quot;)]` is supported in the `construct_runtime!` macro these days." CreationDate="2023-03-27T12:49:54.570" UserId="85" />
  <row Id="7788" PostId="7799" Score="0" Text="Is there a way to calculate it based on events/calls?" CreationDate="2023-03-27T12:53:55.570" UserId="4002" />
  <row Id="7789" PostId="7804" Score="0" Text="@Squirrel how can i use it? are there any examples? does it solve my problem? any links?" CreationDate="2023-03-27T12:57:25.463" UserId="3319" />
  <row Id="7790" PostId="7806" Score="0" Text="what if feature_two() have diffrent paramters than feature one, in this case it wouldn't work in the first solution? and does it work that way? whats wrong with my implementation?" CreationDate="2023-03-27T13:09:46.877" UserId="3319" />
  <row Id="7791" PostId="7806" Score="0" Text="1_, 2_ From the code in your question, I saw they are the same. It depends on the code, maybe you can leave the optional field empty. e.g. always passing an empty vec to it. 3_ `#[pallet]` not support `cfg` yet." CreationDate="2023-03-27T13:10:32.287" UserId="251" />
  <row Id="7792" PostId="7806" Score="0" Text="yeah true, but what if they are not the same, i forgot to add that sorry" CreationDate="2023-03-27T13:11:55.220" UserId="3319" />
  <row Id="7793" PostId="7806" Score="0" Text="Updated my answer." CreationDate="2023-03-27T13:15:53.453" UserId="251" />
  <row Id="7794" PostId="7806" Score="0" Text="in the first solution, it does not allow duplicate name definitions both are named ff in feature f and feature g" CreationDate="2023-03-27T13:18:52.787" UserId="3319" />
  <row Id="7796" PostId="7799" Score="0" Text="The staking event Rewarded let you know when a nominator has been rewarded: https://polkadot.js.org/docs/substrate/events/#rewardedaccountid32-u128-1 You can query the event and same for nomination pools: https://polkadot.js.org/docs/substrate/events#nominationpools" CreationDate="2023-03-27T13:41:25.940" UserId="2762" />
  <row Id="7797" PostId="7806" Score="0" Text="solution 2 allows to functions to be available at the same time `f()` and `g()` but i want only one function like solution one, also i dont understand what is return not enable?" CreationDate="2023-03-27T13:44:24.473" UserId="3319" />
  <row Id="7798" PostId="7806" Score="0" Text="If you want 1 feature, go for 1.  If you want 2 features, go for 2." CreationDate="2023-03-27T13:49:17.913" UserId="251" />
  <row Id="7799" PostId="7806" Score="0" Text="I don't know anything about your project. `return not enable` is just pseudo code. Return what, when failure it's totally up to you." CreationDate="2023-03-27T13:50:20.910" UserId="251" />
  <row Id="7800" PostId="7806" Score="0" Text="And, one more thing. I don't recommend you use this. If someone already scheduled a call, you change this feature after the runtime upgrade. The scheduled-mistake call might break your chain." CreationDate="2023-03-27T13:52:50.597" UserId="251" />
  <row Id="7801" PostId="7806" Score="0" Text="i suggested the edit which should solve the duplicate name definition, also what do you mean break my chain? wont the new runtime simply reject the call and move on? and also is it because they have diffrent arguments that the call would break?" CreationDate="2023-03-27T14:01:30.503" UserId="3319" />
  <row Id="7802" PostId="7637" Score="0" Text="This PR contained the work leading to this question. We opted to keep everything instanced to continue pushing this work forward: https://github.com/webb-tools/protocol-substrate/pull/303" CreationDate="2023-03-27T14:07:38.203" UserId="74" />
  <row Id="7803" PostId="7806" Score="1" Text="Imagine, `schedule(0x1000000)` means `feature_f(xxx)`. After the runtime upgrade, it was changed to `feature_g(xxx)`. It will try to decode the `0x1000000` into a different call. We don't know what would happen." CreationDate="2023-03-27T14:09:20.443" UserId="251" />
  <row Id="7804" PostId="7806" Score="0" Text="BTW, I'll stop this thread here. You should ask these off-topic things in other questions." CreationDate="2023-03-27T14:10:28.257" UserId="251" />
  <row Id="7805" PostId="7806" Score="0" Text="thank you, learned a lot" CreationDate="2023-03-27T14:12:07.670" UserId="3319" />
  <row Id="7806" PostId="7799" Score="0" Text="Yes, its feasible when he's rewarded, but the question is whether I can estimate unclaimed rewards based on events until he's rewarded, before a payout" CreationDate="2023-03-27T15:13:55.703" UserId="4002" />
  <row Id="7808" PostId="7812" Score="1" Text="This is not something I recommend as a part of the runtime logic. It is very expensive and will certainly brick your chain in most cases." CreationDate="2023-03-27T17:00:36.027" UserId="28" />
  <row Id="7809" PostId="5598" Score="0" Text="Curious if you end up finding some sort of workaround for this." CreationDate="2023-03-28T03:53:26.403" UserId="181" />
  <row Id="7811" PostId="7715" Score="0" Text="Thanks for the response! I'll ping you here when the updated version is ready" CreationDate="2023-03-28T10:08:50.083" UserId="1839" />
  <row Id="7813" PostId="7795" Score="0" Text="Thanks! It was helpful." CreationDate="2023-03-28T12:03:36.513" UserId="3096" />
  <row Id="7814" PostId="7831" Score="0" Text="Mac m2? Please provide more information on your setup." CreationDate="2023-03-28T13:53:31.170" UserId="94" />
  <row Id="7816" PostId="7659" Score="0" Text="Thanks @Just, let me know if there is any questions/feedback you need" CreationDate="2023-03-28T14:05:41.040" UserId="2909" />
  <row Id="7817" PostId="7822" Score="0" Text="The whole time I was thinking it was the RPC endpoint not understanding my params. I never considered that it was my code failing to parse the rpc response. Thank you!" CreationDate="2023-03-28T14:57:13.163" UserId="372" />
  <row Id="7818" PostId="7788" Score="0" Text="The message id is the hash of the message so you can't get it from that. If you have the passed messages then you can hash them and then find the match. With xcm v3, when sending messages they should create a send event with the message hash so that they can be matched up and also topics can be set on the message so that you can uniquely identify them though I've not yet tried this out. Also check out https://polkaholic.io/xcmmessages - they have done a lot of sleuthing to match up pre-xcm v3 messages through heuristics." CreationDate="2023-03-28T15:18:58.093" UserId="85" />
  <row Id="7819" PostId="7822" Score="0" Text="BTW, I hope you can give https://github.com/hack-ink/subalfred/blob/main/substrate-minimal/subrpcer/src/lib.rs a try" CreationDate="2023-03-28T16:01:03.667" UserId="251" />
  <row Id="7821" PostId="7773" Score="0" Text="Would you mind explaining how to delete the DB? I'm using the --dev flag. I tried with the following command `./target/release/node-template purge-chain --dev`, but nothing changed, I still get the same encoded error." CreationDate="2023-03-28T16:33:17.837" UserId="3778" />
  <row Id="7822" PostId="7773" Score="0" Text="A friend tried to reproduce the issue, but he got no error. We thought maybe the error was related to the rust version, so I updated it to the latest version, but then I faced this issue reported here: https://substrate.stackexchange.com/questions/7714/cannot-run-substrate-on-a-fresh-macbook-m2&#xA;I downgraded it to version `1.68.0`  and I was able to run a local node again, but no luck at this point, same encoded error." CreationDate="2023-03-28T16:35:42.750" UserId="3778" />
  <row Id="7823" PostId="7825" Score="0" Text="Please guide me. i want add token in my pallet . for example user wants add `KCC` token and use have to use smart contract address . is it write ?" CreationDate="2023-03-28T16:37:45.570" UserId="2722" />
  <row Id="7824" PostId="7826" Score="0" Text="i have put this screenshot for say to the developers that are trying to help me , i get smart contract address in this step ." CreationDate="2023-03-28T16:40:06.727" UserId="2722" />
  <row Id="7825" PostId="7773" Score="2" Text="@OliverTale-Yazdi Sorry, I uploaded the wrong lib.rs file. There was no difference between the two lib.rs I provided above, that's why you didn't get any error. I've already updated the repository as well as the steps to reproduce the issue. Thank you so much for your attention and participation." CreationDate="2023-03-29T00:13:32.107" UserId="3778" />
  <row Id="7826" PostId="7787" Score="0" Text="I'm not sure what the **considerable amount** is, and I'm also not sure if I've misinterpreted that article and whether it's actually not even possible for a nominator to have two 'active' validators in a single era. Hopefully someone more knowledgeable can chip in with that information or guide us to where we'd find it in the source code, as I couldn't find it" CreationDate="2023-03-29T02:39:29.327" UserId="83" />
  <row Id="7827" PostId="7789" Score="1" Text="Update: I reported your issue to the maintainer of the Polkadot.js API docs and they replied with a more thorough response here https://github.com/polkadot-js/docs/issues/424#issuecomment-1484623983" CreationDate="2023-03-29T02:45:06.533" UserId="83" />
  <row Id="7828" PostId="7831" Score="0" Text="Thanks for your response!&#xA;we are installed rustc version 1.68&#xA;we are installed cargo &#xA;we followed by this reference link -&gt; https://docs.substrate.io/install/linux/&#xA;@OliverTale-Yazdi" CreationDate="2023-03-29T05:20:17.990" UserId="4019" />
  <row Id="7829" PostId="7787" Score="0" Text="Exactly i also didn't find anything in the source code, and got stuck here" CreationDate="2023-03-29T06:09:31.263" UserId="354" />
  <row Id="7830" PostId="7825" Score="0" Text="You can create a token through pallet-assets [here](https://github.com/paritytech/substrate/blob/master/frame/assets/src/lib.rs#L594)." CreationDate="2023-03-29T07:51:00.077" UserId="3317" />
  <row Id="7831" PostId="1176" Score="0" Text="Do you know how much elements / bytes should at maximum be stored inside a BoundedVec?" CreationDate="2023-03-29T07:54:05.140" UserId="2484" />
  <row Id="7832" PostId="7825" Score="0" Text="You mean i dont need use smart contract?" CreationDate="2023-03-29T08:01:24.623" UserId="2722" />
  <row Id="7833" PostId="7825" Score="0" Text="If you want to use this dex-pallet you have to create a token through pallet-assets" CreationDate="2023-03-29T08:10:48.393" UserId="3317" />
  <row Id="7834" PostId="7825" Score="0" Text="What should i do if i want to let user create their tokens by smart contract and allow them to add their tokens in dex-pallet ?" CreationDate="2023-03-29T08:18:17.640" UserId="2722" />
  <row Id="7835" PostId="7825" Score="0" Text="That is a good question, I only suggest to make a separate question about it and mark this question as &quot;answered&quot; if it is the case." CreationDate="2023-03-29T08:21:28.543" UserId="3317" />
  <row Id="7836" PostId="7825" Score="0" Text="Ok , i will create new question" CreationDate="2023-03-29T08:23:00.883" UserId="2722" />
  <row Id="7837" PostId="7845" Score="0" Text="thank you, that worked like a charm" CreationDate="2023-03-29T09:27:47.967" UserId="106" />
  <row Id="7838" PostId="7831" Score="0" Text="You still did not tell me whether you are using a Mac M2 or not. Anyway, the Q got closed as duplicate…" CreationDate="2023-03-29T09:38:55.523" UserId="94" />
  <row Id="7839" PostId="7831" Score="0" Text="Hi @OliverTale-Yazdi Oops we are not using the Mac as a OS we are using ubuntu22.04LTS having the config of 8 GB RAM and 256 GB SSD." CreationDate="2023-03-29T09:45:56.813" UserId="4019" />
  <row Id="7840" PostId="7831" Score="0" Text="Okay that is weird. Can you try again to run the node with `--execution wasm  --wasm-execution compiled`? It should not change anything, but just in case. Otherwise I have no idea what is going on. Seems to be a recent thing. Maybe check that the correct compiler is used with `cargo version` and `cargo +nightly version`." CreationDate="2023-03-29T10:05:24.800" UserId="94" />
  <row Id="7842" PostId="7831" Score="0" Text="Hi @OliverTale-Yazdi Thanks for your response!&#xA;we are using this below version:-&#xA;rustc 1.68.2 (9eb3afe9e 2023-03-27)&#xA;cargo version -&gt; cargo 1.68.2 (6feb7c9cf 2023-03-26)&#xA;cargo +nightly version -&gt; cargo 1.70.0-nightly (145219a9f 2023-03-27)" CreationDate="2023-03-29T10:52:26.857" UserId="4019" />
  <row Id="7843" PostId="7855" Score="0" Text="Please paste the compile error message." CreationDate="2023-03-29T11:34:07.240" UserId="2673" />
  <row Id="7844" PostId="7855" Score="1" Text="use ink::prelude::{string::String, vec::Vec}; add this" CreationDate="2023-03-29T11:36:49.873" UserId="2844" />
  <row Id="7845" PostId="7857" Score="0" Text="You must have entered any parameter wrong can you share your custom spec file here" CreationDate="2023-03-29T13:06:34.517" UserId="354" />
  <row Id="7846" PostId="7857" Score="0" Text="@ShubhamGupta, I have updated my chain-spec." CreationDate="2023-03-29T13:09:59.867" UserId="3886" />
  <row Id="7847" PostId="7857" Score="0" Text="try changing grandpa authority value at line 31 to 1 instead of 10" CreationDate="2023-03-29T13:16:15.317" UserId="354" />
  <row Id="7848" PostId="7855" Score="0" Text="I added this already Ganesh11 but it still complains" CreationDate="2023-03-29T14:37:05.817" UserId="4021" />
  <row Id="7849" PostId="7831" Score="0" Text="Did you read the linked answer? `solved by downgrading nightly from 1.70 to 1.68`. Then this Q is indeed a duplicate." CreationDate="2023-03-29T15:07:25.363" UserId="94" />
  <row Id="7850" PostId="7863" Score="0" Text="Maybe this question's scope is too large? Need more focus? --- (ask chatgpt LOL, no offences, just kidding)" CreationDate="2023-03-29T15:49:17.397" UserId="251" />
  <row Id="7851" PostId="7863" Score="0" Text="@AurevoirXavier i dont know . i need some clue to strat the implement dex by this option ( allow user to upload smart contract on my network and use the smart contract for transfer token to other users )" CreationDate="2023-03-29T15:51:58.887" UserId="2722" />
  <row Id="7852" PostId="7863" Score="0" Text="@AurevoirXavier , i asked , it could not answer me , it have updated from 2021" CreationDate="2023-03-29T15:52:55.233" UserId="2722" />
  <row Id="7853" PostId="7864" Score="0" Text="Edited just now, you don't actually need to derive `Debug`, just import these preludes." CreationDate="2023-03-29T16:26:24.217" UserId="3098" />
  <row Id="7855" PostId="7865" Score="0" Text="why i have to use proof-of-concept ?" CreationDate="2023-03-29T17:53:25.533" UserId="2722" />
  <row Id="7856" PostId="7865" Score="0" Text="You don't have to use it, I recommend you to develop DEX in ink! first before doing in in FRAME." CreationDate="2023-03-29T17:54:51.377" UserId="3098" />
  <row Id="7857" PostId="7865" Score="0" Text="i want implement DEx in substrate pallet , not in the ink! . i want allow user created their token with ink! and deploy that on my chain , also they can add their token into my dex ." CreationDate="2023-03-29T17:56:15.013" UserId="2722" />
  <row Id="7858" PostId="7865" Score="0" Text="You runtime should have `pallet-assets` to allow token creation and `pallet-contracts` for smart contract functionality. The users can create their tokens in ink! by interacting with the `pallet-assets` through chain extensions as illustrated in the example by OpenBrush." CreationDate="2023-03-29T17:59:31.810" UserId="3098" />
  <row Id="7859" PostId="7865" Score="0" Text="i have to use `pallet-assets` ? can i call `pallet-contracts` functions without use `pallet-assets` ?" CreationDate="2023-03-29T18:02:33.073" UserId="2722" />
  <row Id="7860" PostId="7865" Score="0" Text="You call `pallet-assets` functions from your smart contract, not vice-versa. `pallet-assets` is ready-to-use pallet to create tokens. Smart Contracts live in sandboxed and untrusted environment. You either need to expose your DEX functions to smart contracts through chain-extensions or build it as a smart contract." CreationDate="2023-03-29T18:08:24.467" UserId="3098" />
  <row Id="7861" PostId="7865" Score="0" Text="i think we have misunderstanding here . i don't want create index with smart contract . i want to create dex in runtime . users want to create thier token with smart contract ." CreationDate="2023-03-29T18:10:51.017" UserId="2722" />
  <row Id="7862" PostId="7865" Score="0" Text="Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/144953/discussion-between-german-nikolishin-and-mr-coder)." CreationDate="2023-03-29T18:11:29.413" UserId="3098" />
  <row Id="7864" PostId="7859" Score="1" Text="thank you @shubham gupta" CreationDate="2023-03-30T04:34:02.370" UserId="2372" />
  <row Id="7865" PostId="7758" Score="1" Text="I will definitely use it in my tests :)" CreationDate="2023-03-30T08:37:41.377" UserId="151" />
  <row Id="7866" PostId="7873" Score="0" Text="to me, its name shouldn't have been a heartbeat. Here, the node's heart is beating sometimes only and not always, how come the name makes any sense!!. And why do a node need to check if it has authored any block to know if its online because if it's running its code inherently means its online and not down!!." CreationDate="2023-03-30T09:35:44.320" UserId="354" />
  <row Id="7867" PostId="7873" Score="0" Text="I believe that sending a heartbeat is the easiest way to prove it is online. Without any extra afford to the consensus system. Otherwise, to verify you are running some code, what proof should you send?" CreationDate="2023-03-30T10:01:47.873" UserId="251" />
  <row Id="7868" PostId="7874" Score="0" Text="Incase if I want use multiple struct value to be  stored , How to achieve it ?" CreationDate="2023-03-30T10:14:11.157" UserId="3886" />
  <row Id="7869" PostId="7874" Score="0" Text="I suggest going through the [docs](https://use.ink/) first and raise a more specific question when you have it :). In addition, check this answer as &quot;answered&quot; if it did." CreationDate="2023-03-30T10:37:27.673" UserId="3317" />
  <row Id="7870" PostId="7875" Score="0" Text="some messages have a constraint that the caller needs to be the contract account itself. i am talking about those cases. see `addOwner` message on the multisig example i linked in my question" CreationDate="2023-03-30T12:48:18.097" UserId="100" />
  <row Id="7871" PostId="7881" Score="1" Text="Please, remember to mark this question as solved :)" CreationDate="2023-03-30T17:02:50.307" UserId="165" />
  <row Id="7872" PostId="7886" Score="0" Text="But the state of `N` is already there? You are sure that you use the same block import pipeline for import and block production?" CreationDate="2023-03-30T19:37:32.557" UserId="73" />
  <row Id="7873" PostId="7749" Score="0" Text="@DanShields You can track the announcement in our Discord. For the support on UI, as I updated above, it does right now." CreationDate="2023-03-30T20:39:24.753" UserId="3979" />
  <row Id="7874" PostId="7714" Score="0" Text="I tried everything explained here in the above comments but having same error. My machine configuration is: MacBook Pro&#xA;2.3 GHz Dual-Core Intel Core i5&#xA;macOS ventura 13.1 any other step?" CreationDate="2023-03-30T18:56:16.750" UserId="4029" />
  <row Id="7875" PostId="7874" Score="0" Text="Inside docs look in this [link](https://use.ink/datastructures/custom-datastructure#using-custom-types-on-storage)" CreationDate="2023-03-31T01:23:29.113" UserId="2844" />
  <row Id="7876" PostId="7889" Score="0" Text="I am trying to calculate the distance of 2 point coordinates on the screen, something quite common for most game development&#xA;&#xA;Not knowing an alternative solution I am trying to use sp_arithmetic::fixed_point::FixedU64::sqrt from https://crates.io/crates/sp-arithmetic &#xA;&#xA;Even when I simply install the crate to a vanilla Flipper sc classic  example the Flipper no longer compiles" CreationDate="2023-03-31T06:25:05.737" UserId="1811" />
  <row Id="7877" PostId="7882" Score="1" Text="Lots of contracts including OpenBrush PSP22, PSP34 contracts using nightly features such as `#![feature(min_specialization)]`.&#xA;&#xA;This means existing contracts cannot be compiled with nightly toolchain whose rustc version is higher than `1.70.0` (Confirmed `1.68.0` works).&#xA;&#xA;cargo contract is now independent from nightly toolchain but it should still support nightly for compatibility." CreationDate="2023-03-31T07:41:09.560" UserId="275" />
  <row Id="7879" PostId="7886" Score="0" Text="I mean we have a single block import pipeline in the blockchain through which every block goes sooner or later. For locally produced blocks the state is computed during block production, but whether it is already in the state tree (or whatever it is called) or not I'm not sure yet." CreationDate="2023-03-31T08:00:05.613" UserId="25" />
  <row Id="7880" PostId="7875" Score="0" Text="Misunderstood your question, I edited my answer." CreationDate="2023-03-31T08:05:16.040" UserId="3317" />
  <row Id="7881" PostId="7882" Score="2" Text="https://github.com/paritytech/cargo-contract/issues/1058" CreationDate="2023-03-31T10:19:12.957" UserId="275" />
  <row Id="7882" PostId="7879" Score="0" Text="what does the validation pipeline verifies then if it does not verify what the code is actually executing other than signatures and general tx format is respected" CreationDate="2023-03-31T10:26:19.907" UserId="3319" />
  <row Id="7883" PostId="7886" Score="0" Text="No I meant if you really start producing block `n + 1` or again `n` because the block import wasn't not yet finished?" CreationDate="2023-03-31T13:50:17.623" UserId="73" />
  <row Id="7884" PostId="6932" Score="0" Text="So sorry for the delay.... thank you so much for your help.. got it sorted :)" CreationDate="2023-03-31T14:41:18.057" UserId="3604" />
  <row Id="7885" PostId="7739" Score="0" Text="Added this information to the answer." CreationDate="2023-03-31T15:35:42.003" UserId="16" />
  <row Id="7886" PostId="6932" Score="0" Text="If this helps you, please mark this as the answer." CreationDate="2023-03-31T17:05:37.567" UserId="251" />
  <row Id="7887" PostId="7886" Score="0" Text="`sc-consensus-slots` produces blocks in sequence, I suspect it never tries to produce a block before the previous one succeeds. But concurrent blocks can be created by other nodes on the network (and during last reproduction I observed heavy temporary forking)." CreationDate="2023-03-31T17:12:56.417" UserId="25" />
  <row Id="7888" PostId="7898" Score="0" Text="Ah thank you - this helps me pre-empt a possible issue" CreationDate="2023-03-31T19:34:56.973" UserId="181" />
  <row Id="7895" PostId="7898" Score="0" Text="If you want a single contract to work on chains with different environments you could use cargo features. Added an example." CreationDate="2023-03-31T21:25:37.183" UserId="16" />
  <row Id="7898" PostId="7906" Score="0" Text="Could you give more detail?&#xA;&#xA;What's the `EnsureMember`? What's the `ManagerCollective`?" CreationDate="2023-04-01T15:42:19.580" UserId="251" />
  <row Id="7899" PostId="7846" Score="0" Text="Thanks for the answer, but I still seem to experience issues with the trait bounds not satisfied for either of them. &#xA;I have created a GitHub repo if that would help on checking with my code. Appreciate you taking the time with the answer above.&#xA;&#xA;https://github.com/martinloesethjensen/gm-burn-fren-script" CreationDate="2023-04-01T20:06:05.523" UserId="3990" />
  <row Id="7900" PostId="7906" Score="0" Text="@AurevoirXavier EnsureMember is a struct of pallet_collective https://docs.rs/pallet-collective/latest/pallet_collective/index.html. I updated the question." CreationDate="2023-04-02T03:02:46.273" UserId="1777" />
  <row Id="7904" PostId="7916" Score="0" Text="First you say before it gets gossiped and then before it gets produced. These are different stages. Could you also give more examples on what you want to do with this callback?" CreationDate="2023-04-02T21:41:42.900" UserId="73" />
  <row Id="7905" PostId="7886" Score="0" Text="Yeah, but you are saying that it starts building on n, without having finished import of n. Without the state of n you can not build n + 1." CreationDate="2023-04-02T22:03:09.957" UserId="73" />
  <row Id="7906" PostId="7886" Score="0" Text="Right, but state is known before block import if block is local. It is created in the process of block proposing if I understand it correctly. I don't know if it is available for future block production (this is essentially the question), but technically it is already known, hence `StateAction::ApplyChanges`." CreationDate="2023-04-02T23:35:13.650" UserId="25" />
  <row Id="7908" PostId="7828" Score="0" Text="Hmm thanks for spotting this; I just removed it!" CreationDate="2023-04-03T09:24:51.907" UserId="474" />
  <row Id="7909" PostId="7916" Score="0" Text="@bkchr oh sorry i meant right after i produce the block which is supposedly exactly before gossiping, but yeah just before gossiping is what i meant, i want to put a value(a bunch of signatures `Vec&lt;Vec&lt;u8&gt;&gt;` in the [dht](https://paritytech.github.io/substrate/master/sc_network/trait.NetworkDHTProvider.html#tymethod.put_value), (i raised some concerns about the dht [here](https://substrate.stackexchange.com/questions/7913/how-is-the-networkservice-dht-protected-from-dos-attacks-from-a-malicious-valida)" CreationDate="2023-04-03T09:40:16.473" UserId="3319" />
  <row Id="7910" PostId="7188" Score="0" Text="Hi David, the &quot;Hash:: 1010: Invalid Transaction: Transaction has a bad signature&quot; error is just telling us that at least one of the expected inputs for the signature generation is wrong. I think more context and information is needed to get to the root of the error. How long are these delays? which node is broadcasting the extrinsic? which one is including it in the block? do you get any error in the &quot;happy&quot; scenario?" CreationDate="2023-04-03T10:17:56.157" UserId="2025" />
  <row Id="7911" PostId="7773" Score="1" Text="Great way to ask a question, very clear and easy to replicate the problem locally." CreationDate="2023-04-03T10:36:38.110" UserId="2762" />
  <row Id="7913" PostId="7886" Score="1" Text="The state is known to other components when it is imported by the DB, before this point you can not use the state anywhere." CreationDate="2023-04-03T11:13:24.617" UserId="73" />
  <row Id="7914" PostId="6932" Score="0" Text="I actually needed to load protoc then it seemed fine" CreationDate="2023-04-03T17:18:23.883" UserId="3604" />
  <row Id="7915" PostId="7921" Score="0" Text="You already answered this yourself? https://substrate.stackexchange.com/questions/6285/how-to-make-a-main-net-parachain-upgrade-through-democracy/6293#6293" CreationDate="2023-04-03T19:42:15.690" UserId="73" />
  <row Id="7916" PostId="7921" Score="0" Text="But enact this myself would cause a lot of tx fee (the wasm is large). It looks like we don’t have any other ways to avoid that…" CreationDate="2023-04-04T02:02:31.787" UserId="251" />
  <row Id="7917" PostId="7920" Score="1" Text="Thanks Alex, your guidance helped me to solve the encoded error. Now I understand better how to use the [storage_alias] macro. If I want to test a storage migration for a relay chain, Should I only change the `-- uri`?, for example, `wss://test.cat.systems` -&gt; `RUST_LOG=runtime=trace target/release/node- template try-runtime --detailed-log-output --runtime target/release/wbuild/node-template-runtime/node_template_runtime.compact.compressed.wasm on-runtime-upgrade --checks live --uri wss://test.cat.systems`" CreationDate="2023-04-04T02:27:03.400" UserId="3778" />
  <row Id="7918" PostId="7922" Score="0" Text="Understood. Thank you. I must call this from an origin instead of from a specific account." CreationDate="2023-04-04T04:55:44.907" UserId="1777" />
  <row Id="7921" PostId="7928" Score="0" Text="When you run `cargo build`, was there any error? If not than there is no problem with the code might be some problem with rust-analyzer, I also face this sometimes." CreationDate="2023-04-04T09:46:29.487" UserId="354" />
  <row Id="7922" PostId="7928" Score="0" Text="`cargo build` and rust-analyzer worked fine for me on branch `dev-0.8.0`. Here is the version of rust I am using on my M1. And I am using rust-analyzer `v0.4.1462`" CreationDate="2023-04-04T09:48:12.850" UserId="29" />
  <row Id="7926" PostId="7928" Score="0" Text="Hi @Bruno thanks for your effort. I had rust-analyzer v0.3.1463, but I just switched into `rust-analyzer version: 0.4.1462-standalone (e87154017 2023-04-04)` (the pre-release version). But the issue still persists ." CreationDate="2023-04-04T10:39:57.577" UserId="3543" />
  <row Id="7927" PostId="7928" Score="0" Text="@ShubhamGupta how do you solve this type of issues ? Can you show any light?" CreationDate="2023-04-04T10:40:46.500" UserId="3543" />
  <row Id="7928" PostId="7933" Score="0" Text="Review this part of the documentation, to set up your environment: https://docs.substrate.io/install/" CreationDate="2023-04-04T11:05:31.367" UserId="2762" />
  <row Id="7929" PostId="7933" Score="0" Text="Have you searched SE for `UnknownOpcode`? It is the fifth time this Question is asked." CreationDate="2023-04-04T11:09:05.473" UserId="94" />
  <row Id="7930" PostId="7928" Score="0" Text="Are you using any other VS code extensions that could be interfering like caching?" CreationDate="2023-04-04T11:16:05.427" UserId="29" />
  <row Id="7931" PostId="2061" Score="0" Text="Is this issue resolved? If so, please provide the solution :)" CreationDate="2023-04-04T11:19:48.740" UserId="3317" />
  <row Id="7932" PostId="3202" Score="0" Text="Did you find a solution? If so, please provide an answer :)" CreationDate="2023-04-04T11:21:17.813" UserId="3317" />
  <row Id="7933" PostId="7933" Score="0" Text="Came here to ask same question" CreationDate="2023-04-04T11:33:51.967" UserId="2631" />
  <row Id="7934" PostId="7928" Score="0" Text="@Bruno after the fresh installation of vscode, I turned off sync and only installed rust-analyzer version v0.4 (same as yours). Nothing else installed. &#xA;`settings.json` now looks like this:&#xA;```json&#xA;{&#xA;  &quot;rust-analyzer.cargo.target&quot;: &quot;aarch64-apple-darwin&quot;,&#xA;  &quot;rust-analyzer.diagnostics.disabled&quot;: [&#xA;    &quot;unresolved-proc-macro&quot;,&#xA;    &quot;incorrect-try-target&quot;,&#xA;    &quot;unresolved-method&quot;&#xA;  ],&#xA;  &quot;rust-analyzer.server.extraEnv&quot;: {&#xA;    &quot;CHALK_OVERFLOW_DEPTH&quot;: &quot;2000&quot;&#xA;  },&#xA;  &quot;workbench.startupEditor&quot;: &quot;none&quot;,&#xA;}&#xA;```" CreationDate="2023-04-04T11:57:26.427" UserId="3543" />
  <row Id="7935" PostId="7928" Score="0" Text="@Bruno I thought it a problem of either rust-analyzer or Visual Studio Code. So I installed [Zed](https://zed.dev) editor. It automatically downloaded rust-analyzer LSP and I also get the same 85 errors and 8 warnings. So most probably it's rust-analyzer. I'm probably missing some config!" CreationDate="2023-04-04T12:01:34.147" UserId="3543" />
  <row Id="7936" PostId="6989" Score="0" Text="This worked for me. Thanks!" CreationDate="2023-04-04T12:49:12.690" UserId="529" />
  <row Id="7938" PostId="7714" Score="0" Text="Same issues here with rust version 1.68.2 on ubuntu 22.04 linux." CreationDate="2023-04-04T13:48:13.580" UserId="3667" />
  <row Id="7939" PostId="7928" Score="0" Text="Yea looks like it is an issue with the extension. Perhaps look [here](https://rust-analyzer.github.io/manual.html#toolchain) and [here](https://rust-analyzer.github.io/manual.html#troubleshooting). You could also try changing the `rust-analyzer.check.targets` to an x86 nightly:`nightly-x86_64-apple-darwin` and see if that works" CreationDate="2023-04-04T13:59:36.493" UserId="29" />
  <row Id="7941" PostId="7933" Score="0" Text="Hi @AlexBean, Thanks for your response. We have done this environment .we are trying to build parachain in local machine.we have stuck on this cargo build --release command .&#xA;please share any other docs that can help us .&#xA;&#xA;Thanks" CreationDate="2023-04-04T14:06:38.443" UserId="4019" />
  <row Id="7942" PostId="7920" Score="1" Text="Yes! And include the flag —checks=pre-and-post to perform pre- and post-upgrade checks." CreationDate="2023-04-04T15:23:27.377" UserId="2762" />
  <row Id="7945" PostId="7919" Score="0" Text="Thanks! This solved it for me " CreationDate="2023-04-04T17:31:22.287" UserId="3990" />
  <row Id="7946" PostId="7938" Score="0" Text="Can you run with `runtime=debug` and paste the output?" CreationDate="2023-04-04T18:40:01.950" UserId="167" />
  <row Id="7947" PostId="7938" Score="0" Text="The second should also fail, if everything is correct." CreationDate="2023-04-04T18:40:28.493" UserId="167" />
  <row Id="7948" PostId="7916" Score="0" Text="What kind of extra information?" CreationDate="2023-04-04T19:26:39.217" UserId="73" />
  <row Id="7950" PostId="7938" Score="0" Text="@kianenigma I have added the output logs." CreationDate="2023-04-04T19:36:25.977" UserId="2163" />
  <row Id="7951" PostId="7921" Score="1" Text="`enact_authorized_upgrade` currently has a static weight? So, that doesn't change with the size of the wasm file?" CreationDate="2023-04-04T19:59:52.817" UserId="73" />
  <row Id="7952" PostId="7936" Score="0" Text="Removing my comment as @bkchr's answer is correct" CreationDate="2023-04-04T21:14:45.390" UserId="29" />
  <row Id="7953" PostId="7942" Score="0" Text="To your first answer; but why not indicate that with an `Ok(())`? Second and third answer don't answer the question :)" CreationDate="2023-04-05T07:19:52.513" UserId="3317" />
  <row Id="7954" PostId="7945" Score="0" Text="this is done batchAll in the interface. I want to handle errors in code. any example?" CreationDate="2023-04-05T07:27:43.653" UserId="4052" />
  <row Id="7955" PostId="7945" Score="0" Text="The video shows an example where there is an error in the `batch_all`, specifically [here](https://www.youtube.com/watch?v=WzuMCxwOzJM&amp;t=1883s). You will get a `system.ExtrinsicFailed` event with the error of the specific transaction that failed." CreationDate="2023-04-05T07:29:05.727" UserId="29" />
  <row Id="7956" PostId="7940" Score="0" Text="Are justifications only to be found in blocks with authority set changes?" CreationDate="2023-04-05T07:33:51.573" UserId="3317" />
  <row Id="7957" PostId="7945" Score="0" Text="understood that error showing. But I want to ask to handle the error at codes." CreationDate="2023-04-05T07:39:30.733" UserId="4052" />
  <row Id="7958" PostId="7946" Score="0" Text="If I'm not mistaken that is only for normal tests?" CreationDate="2023-04-05T07:40:07.373" UserId="3317" />
  <row Id="7960" PostId="7940" Score="0" Text="When doing a full sync yes. At the tip of the chain we always keep the justification of the latest finalized block as well." CreationDate="2023-04-05T08:13:33.650" UserId="73" />
  <row Id="7961" PostId="7916" Score="0" Text="@bkchr i want to add the author multiaddr, so just a string" CreationDate="2023-04-05T08:39:58.117" UserId="3319" />
  <row Id="7962" PostId="7940" Score="0" Text="Apologies, I missed the context of the question. But to clarify; when a node has to sync with the network it can determine the finality of a block instantly if there were authority set changes in that particular block. Otherwise it will find the justification, that finalizes the block, at a later block (doesn't have to be a block with authority set changes), correct?" CreationDate="2023-04-05T09:05:00.503" UserId="3317" />
  <row Id="7964" PostId="7945" Score="0" Text="Updated with a code example." CreationDate="2023-04-05T09:37:03.053" UserId="29" />
  <row Id="7965" PostId="6785" Score="0" Text="how to deploy on astar ?" CreationDate="2023-04-05T09:37:52.737" UserId="143" />
  <row Id="7966" PostId="7947" Score="0" Text="I really like the idea / suggestion, but [polkadot forum](https://forum.polkadot.network/) is the better platform to have this discussion!" CreationDate="2023-04-05T09:55:34.967" UserId="3317" />
  <row Id="7968" PostId="7947" Score="4" Text="I’m voting to close this question because it is not a technical question. The polkadot forum is the better place for it. But please make a post there!" CreationDate="2023-04-05T09:58:05.813" UserId="3317" />
  <row Id="7969" PostId="2639" Score="1" Text="@joepetrowski to confirm, in order to calculate sum of transaction fees for a given day on Polkadot Relay Chain (at time of writing), one would index `TransactionPayment.TransactionFeePaid` events and parse the balance in position 1 of the list? (Position 2 is the tip?). &#xA;&#xA;Thanks!" CreationDate="2023-04-05T10:05:25.490" UserId="246" />
  <row Id="7970" PostId="7945" Score="0" Text="In your case. Is the method throwing an error and stopping transactions? &#xA;I do exactly your example but in console.log error on chrome. I don't see any throwing error message" CreationDate="2023-04-05T10:21:21.087" UserId="4052" />
  <row Id="7971" PostId="7945" Score="0" Text="If one transaction throws an error, `batch_all` will rollback all transactions and my code shows the error of the transaction it failed on. I am running this on nodeJs and the error shows in the terminal." CreationDate="2023-04-05T11:35:48.520" UserId="29" />
  <row Id="7972" PostId="6424" Score="0" Text="i have same issue while deploying on the rococo" CreationDate="2023-04-05T12:04:10.060" UserId="143" />
  <row Id="7973" PostId="7940" Score="1" Text="When you finalize block X later and Y is an ancestor of it, Y will be finalized as well.&#xA;&#xA;&gt; Otherwise it will find the justification, that finalizes the block, at a later block (doesn't have to be a block with authority set changes), correct?&#xA;&#xA;So, yes!" CreationDate="2023-04-05T14:09:30.823" UserId="73" />
  <row Id="7974" PostId="7916" Score="0" Text="You could use authority discovery to lookup the multiaddr of the validator?" CreationDate="2023-04-05T14:10:32.967" UserId="73" />
  <row Id="7975" PostId="7953" Score="0" Text="Thanks! The `caller`, however, is not the one executing the message, it is a random node. And the node is not passing the return value back to the `caller` (for messages mutating state). So is there a reason for an #[ink(message)] (mutating state) to return a value within Ok(...)?" CreationDate="2023-04-05T16:11:55.693" UserId="3317" />
  <row Id="7976" PostId="7610" Score="0" Text="Hi @cmichi! Thank you for the answer! Could you elaborate a bit more on the underlying reason for it? Is it that `ink_e2e` accounts (`::alice()`) are somehow different? Why the PolkadotConfig?" CreationDate="2023-04-05T20:18:59.417" UserId="266" />
  <row Id="7977" PostId="7714" Score="0" Text="I also had issue on my new `M1 MacBook Pro Ventura 13.3`. Previously I had `stable-1.68.2` and `nightly-1.70`. I had to fallback into `nightly-1.68` Created `rust-toolchain.toml` with ```toml&#xA;[toolchain]&#xA;channel = &quot;nightly-2023-01-01&quot;&#xA;components = [ &quot;rustfmt&quot; ]&#xA;targets = [ &quot;wasm32-unknown-unknown&quot; ]&#xA;profile = &quot;minimal&quot;&#xA;``` Thanks to the community for help. Here is the error message I was getting: ```sh&#xA;./target/release/node-template --dev&#xA;Error: Service(Client(VersionInvalid(&quot;cannot deserialize module: UnknownOpcode(192)&quot;)))&#xA;2023-04-05 16:10:40 Substrate Node&#xA;2023-04-05 16:10:40 ✌️ version 4.0" CreationDate="2023-04-05T11:06:49.270" UserId="3543" />
  <row Id="7978" PostId="7945" Score="0" Text="if it does not throw an error, is it a problem with the provider when creating an API instance?" CreationDate="2023-04-06T04:08:19.210" UserId="4052" />
  <row Id="7979" PostId="7955" Score="0" Text="As a side note, where does the code generated from metadata (#[subxt::subxt(runtime_metadata_path = &quot;...&quot;) end up? Is it possible to configure IDE to go to the definition etc?" CreationDate="2023-04-06T05:21:14.647" UserId="4056" />
  <row Id="7980" PostId="7945" Score="0" Text="It is hard to say without more info to reproduce your issue. I would say, study the `batch_all` code and how PolkadotJs works with events and that should help you. If you have a reproducible problem then I suggest you create a new question on StackExchange where we can debug this with clear and concise details on how to reproduce it" CreationDate="2023-04-06T07:29:43.633" UserId="29" />
  <row Id="7982" PostId="7940" Score="0" Text="so basically the information that a block is finalized is most of the time off-chain and sometimes on-chain with the justification field, so my question is, how would clients (simple users) would know whether a block is finalized or not since they can't rely on justifications" CreationDate="2023-04-06T08:52:29.190" UserId="3319" />
  <row Id="7983" PostId="7938" Score="1" Text="This appears to be a bug. I've created an issue (https://github.com/paritytech/substrate/issues/13837) and will try to resolve it some time this or next week." CreationDate="2023-04-06T09:03:30.803" UserId="3991" />
  <row Id="7984" PostId="7916" Score="0" Text="@bkchr how? it just returns a Vec&lt;AuthorityId&gt; which are just keys?" CreationDate="2023-04-06T09:06:46.790" UserId="3319" />
  <row Id="7985" PostId="7891" Score="0" Text="i need to calculate percentage but having no support for float it is quite restrictive how to i solve it ?" CreationDate="2023-04-06T11:41:44.357" UserId="143" />
  <row Id="7987" PostId="7916" Score="0" Text="@bkchr forget about modifying the block, what about the question of how to execute a task before the block gets gossiped?" CreationDate="2023-04-06T16:15:36.387" UserId="3319" />
  <row Id="7988" PostId="7970" Score="1" Text="Are you starting off a block hash? Or are you just trying to follow the progress of the chain? If its the latter, you can subscribe to the finalized block heads via RPC, which will give you the hashes of every block that *is* definitely included in the canonical chain." CreationDate="2023-04-06T16:55:09.427" UserId="3407" />
  <row Id="7990" PostId="7970" Score="0" Text="I'm not following the chain, it's a general question actually. Basically, you recorded some block hashes at a certain height before and want to perform some actions on this height later, due to the forks, there are potentially multiple block hashes at this height, you want to find one that is on the canonical chain to proceed and ignore the others." CreationDate="2023-04-07T00:07:53.493" UserId="462" />
  <row Id="7991" PostId="4058" Score="0" Text="I have the same issue and I wanted to solve it without removing the data dir (for obvius reason). Is there any other solution possible?" CreationDate="2023-04-07T00:25:56.340" UserId="3327" />
  <row Id="7992" PostId="4058" Score="1" Text="No, that's impossible. Unless you modify the consensus engine. BTW, you can use the latest version. No more `unexpected epoch change` in the future." CreationDate="2023-04-07T03:20:41.333" UserId="251" />
  <row Id="7993" PostId="7968" Score="0" Text="Do you mean in substrate-archive node blocks are there in RocksDb/ParityDb (in opaque format) as well as in postgres??" CreationDate="2023-04-07T05:57:50.427" UserId="3947" />
  <row Id="7994" PostId="7968" Score="0" Text="No, in substrate-archive there is only postgres" CreationDate="2023-04-07T06:44:07.550" UserId="29" />
  <row Id="7995" PostId="7968" Score="0" Text="Make sense. Thank you @Bruno. A followup question : will a new archive node be able to sync from this substrate-archive? I am asking this to confirm that whether its still a blockchain node or its become an explorer backend database !!" CreationDate="2023-04-07T07:20:24.870" UserId="3947" />
  <row Id="7996" PostId="7968" Score="0" Text="No as substrate-archive is not a node its an indexing engine with a postgres database..." CreationDate="2023-04-07T07:24:55.567" UserId="29" />
  <row Id="7997" PostId="7968" Score="0" Text="Okay got it. So we must have one or rather should have at least one substrate node with pruning=archive in the network to serve any upcoming node or archive  to facilitate with sync service? Or in case if re-indexing is required in then also node with pruning=archive will be needed." CreationDate="2023-04-07T07:38:41.527" UserId="3947" />
  <row Id="7998" PostId="7968" Score="0" Text="Yes and if you want to re-index then you will need that synced archive node." CreationDate="2023-04-07T07:44:55.353" UserId="29" />
  <row Id="8000" PostId="7968" Score="1" Text="Got it. Thank you very much!" CreationDate="2023-04-07T07:52:37.130" UserId="3947" />
  <row Id="8001" PostId="7755" Score="0" Text="This PR has been merged into `master` and I can confirm it is now working!" CreationDate="2023-04-07T08:19:00.407" UserId="29" />
  <row Id="8002" PostId="7214" Score="0" Text="Limit has been increased on `master` branch: https://github.com/paritytech/substrate/pull/13760" CreationDate="2023-04-07T11:42:03.170" UserId="29" />
  <row Id="8003" PostId="7214" Score="0" Text="That was done only for the kitchensink runtime - other projects will still need to change their code to avoid it." CreationDate="2023-04-07T14:14:08.747" UserId="94" />
  <row Id="8004" PostId="7214" Score="1" Text="We have also improved the error message that's thrown by `construct_runtime!`: https://github.com/paritytech/substrate/pull/13763.&#xA;It shouldn't be confusing anymore, once the tuple limit needs to be bumped - this should inform us properly from now on." CreationDate="2023-04-07T16:25:09.640" UserId="2935" />
  <row Id="8006" PostId="4485" Score="0" Text="See https://substrate.stackexchange.com/questions/1307/how-to-resolve-duplicate-lang-item-error for some tips." CreationDate="2023-04-07T17:29:23.343" UserId="85" />
  <row Id="8007" PostId="4706" Score="0" Text="has this been fixed? we have a registered paraID that is not showing up and unable to deregister as well." CreationDate="2023-04-06T20:51:55.720" UserId="3704" />
  <row Id="8008" PostId="6384" Score="0" Text="I'm facing an issue that When I'm using tx.utility.batchAll()&#xA;The message error has come. But it has just a message thrown 1-2s after the transaction is successful. I thought the transaction must be blocked and rollback but it didn't." CreationDate="2023-04-07T04:11:15.630" UserId="4052" />
  <row Id="8009" PostId="7970" Score="0" Text="Are you using grandpa? Or other finality mechanism?" CreationDate="2023-04-08T03:42:17.127" UserId="34" />
  <row Id="8010" PostId="171" Score="0" Text="How to specify another different symbol if i have 2 native tokens of different type?" CreationDate="2023-04-08T21:09:30.533" UserId="264" />
  <row Id="8011" PostId="7136" Score="0" Text="@AurevoirXavier if we have 2 native tokens then how do we identify which symbol is assigned to which token e.g if we have different supplies and token specs?" CreationDate="2023-04-08T21:20:19.213" UserId="264" />
  <row Id="8015" PostId="7975" Score="0" Text="1. It is incorrect this way because a block being tracked does not mean it's part of the canonical chain. A fork block also gives you a valid block_number. Say, there are 3 blocks at height 100, 100a, 100b, 100c, 100b is on the canonical chain, but 100a, 100b, 100c all returns 100 when you quey the block number using the corresponding block hash." CreationDate="2023-04-09T00:50:50.047" UserId="462" />
  <row Id="8016" PostId="7975" Score="0" Text="2. I agree relying on the finality is a way since finality implies canonicality https://github.com/subspace/substrate/blob/456cfad45a178617f6886ec400c312f2fea59232/client/db/src/lib.rs#L21, but this question is focusing on checking canonical chain." CreationDate="2023-04-09T01:00:11.100" UserId="462" />
  <row Id="8017" PostId="7970" Score="0" Text="No, we are not using grandpa but using a K-deep confirmation. I know the finality helps find the canonicality to some extent. This question is more about the canonical chain in general, not the finalized chain, more specifically, check whether the block of a given block block is on the same branch with the current tip block." CreationDate="2023-04-09T01:04:01.767" UserId="462" />
  <row Id="8020" PostId="7992" Score="0" Text="This is a better question for the answer in the linked question." CreationDate="2023-04-10T01:08:00.830" UserId="116" />
  <row Id="8021" PostId="7994" Score="0" Text="https://github.com/paritytech/cargo-contract/issues/1058#issuecomment-1501225760" CreationDate="2023-04-10T06:21:30.043" UserId="2844" />
  <row Id="8022" PostId="7975" Score="0" Text="reg point 1. i think node would discard the blocks of non-canonical chain as soon thats detected keeps only the canonical chain in the local store. So from the point of view of node being queried we ll get the block number in reply only if the node believe its in canonical chain .. theoretically.. i hv not tested the code" CreationDate="2023-04-10T06:59:12.543" UserId="3947" />
  <row Id="8023" PostId="171" Score="1" Text="You would need [pallet assets](https://github.com/paritytech/substrate/tree/master/frame/assets) for that." CreationDate="2023-04-10T07:01:24.107" UserId="29" />
  <row Id="8024" PostId="7999" Score="1" Text="Looks like you need to pass in a Vec with a tuple." CreationDate="2023-04-10T08:08:24.683" UserId="29" />
  <row Id="8025" PostId="7989" Score="0" Text="You have ink! smart contracts running that want to interact with a pallet in your node?" CreationDate="2023-04-10T09:12:18.470" UserId="2762" />
  <row Id="8026" PostId="7989" Score="0" Text="@AlexBean I using ink smart contract . But i want to know , can i accept ink! And solidity at the same time ?" CreationDate="2023-04-10T09:51:34.903" UserId="2722" />
  <row Id="8027" PostId="8000" Score="0" Text="I tried this way but still i have error" CreationDate="2023-04-10T09:52:58.280" UserId="2722" />
  <row Id="8028" PostId="8000" Score="0" Text="I want to use Multicurrncy and i import `orlm` in the project . After that i faced this issue" CreationDate="2023-04-10T09:54:18.017" UserId="2722" />
  <row Id="8029" PostId="7989" Score="0" Text="Answered! And about the ink! - solidity, I am not very familiar but take a look into this post: https://forum.polkadot.network/t/introducing-evm-coder-a-library-for-seamless-call-translation-between-rust-and-solidity/2551" CreationDate="2023-04-10T13:08:09.943" UserId="2762" />
  <row Id="8030" PostId="8004" Score="0" Text="Thanks but its nit my answer . I want to transfer token from contract to pallet id , into runtime pallet ." CreationDate="2023-04-10T13:20:18.047" UserId="2722" />
  <row Id="8031" PostId="8004" Score="0" Text="Form example . I want to add XXX token to liqudity and i have to transfer token from owner of contract to pallet id . Transfer XXX token to pallet id ." CreationDate="2023-04-10T13:21:21.993" UserId="2722" />
  <row Id="8032" PostId="8004" Score="0" Text="Transfer from the Smart Contract to pallet account? Updated!" CreationDate="2023-04-10T13:53:28.043" UserId="2762" />
  <row Id="8033" PostId="8011" Score="0" Text="Looks a lot like these other issues: https://substrate.stackexchange.com/search?q=UnknownOpcode%28192%29" CreationDate="2023-04-10T15:08:58.930" UserId="29" />
  <row Id="8034" PostId="8000" Score="0" Text="it show me this error : `There are multiple `syn` packages in your project, and the specification `syn` is ambiguous.&#xA;Please re-run this command with `-p &lt;spec&gt;` where `&lt;spec&gt;` is one of the following:&#xA;  syn@1.0.109&#xA;  syn@2.0.13&#xA;`" CreationDate="2023-04-10T15:32:47.947" UserId="2722" />
  <row Id="8035" PostId="8004" Score="0" Text="i updated the question .  please check it" CreationDate="2023-04-10T15:36:36.653" UserId="2722" />
  <row Id="8036" PostId="7975" Score="0" Text="The blocks on the non-canonical chain won't be pruned until they are too old. If I read the [code](https://github.com/paritytech/substrate/blob/2e94e253950457571e91a5df1e60f82ba7b841dd/client/db/src/lib.rs#L1628) correctly, they will be pruned after [4096 blocks](https://github.com/paritytech/substrate/blob/2e94e253950457571e91a5df1e60f82ba7b841dd/client/service/src/builder.rs#L264) regardless. &#xA;&#xA;After diving into the code, now I think I have my answer to this question." CreationDate="2023-04-10T16:04:40.110" UserId="462" />
  <row Id="8040" PostId="8002" Score="1" Text="Please provide more details on what you are doing and what happens." CreationDate="2023-04-11T08:44:30.107" UserId="73" />
  <row Id="8043" PostId="7955" Score="0" Text="`#[subxt::subxt(runtime_metadata_path = &quot;...&quot;)]` doesn't generate code anywhere (ie like other macros, you can use `cargo expand` to see the generated output, but it's generated during compilation. You can use the CLI tool to generate code instead if preferred (ie run `subxt codegen` after `cargo install subxt-cli`)." CreationDate="2023-04-11T09:34:28.553" UserId="474" />
  <row Id="8045" PostId="538" Score="0" Text="Substrate documentation still says that you need n+1 validators on the relay chain where n is the number of parachains connected/to be connected. Is the docs needs to be updated?" CreationDate="2023-04-11T09:49:41.567" UserId="3327" />
  <row Id="8047" PostId="8029" Score="0" Text="Thanks for your quick reply!&#xA;&#xA;I have gone through the full documentation of `substrate.io`, but attempting to add my own nodes have turned out to be a huge hurdle. I have created keys, initialized keystores, customized chain specifications, and the works. The network is running, but no authoring. In terms of Zombienet, I have not been able to get the Kubernetes provider working and ended up building my own virtual cluster.&#xA;&#xA;I hoped to find something else than source code, but it has been my main source of information so far.&#xA;&#xA;Do you know if the `paras` `GenisisConfig` will work?" CreationDate="2023-04-11T13:12:55.277" UserId="3989" />
  <row Id="8048" PostId="8029" Score="0" Text="&quot;The network is running, but no authoring&quot; - I would focus on this. My recommendation is to create another question with reproducible steps so we can debug your issue. The [tutorial referenced](https://docs.substrate.io/tutorials/build-a-parachain) should have all the steps to setup a Relay chain with parachains. In regards to setting up parachains via modifying the `paras` `GenesisConfig` I will see if I can get more info for you." CreationDate="2023-04-11T13:29:26.760" UserId="29" />
  <row Id="8051" PostId="8006" Score="0" Text="In addition to Sergey's post I have to add that we have validated signature on polkadot.js.org (via Sign &amp; Verify section) and it says that signature is valid, but network responds with 1010 bad signature error. Moreover, we have tested this way: we have generated extrinsic and just submitted it 10 times with 1 second delay (same extrinsic each time) - and it succeeds 7 out of 10 times (3 times - 1010 bad signature). Our internet connection is pretty stable, we tried from different computers, networks - same result." CreationDate="2023-04-11T04:32:07.533" UserId="1738" />
  <row Id="8052" PostId="8029" Score="0" Text="Thanks, I think @pepoviola gave the answer I was looking for, but this was helpful as well. I think the main problem I keep running into is a lack of understanding of Substrate. The tutorials are well-written, but I have felt like they come up short in terms of the nitty-gritty &quot;this is what you will need, and why, in order to start a real network without any training wheels (zombienet, dev accounts, ...)&quot;.&#xA;&#xA;I will most likely ask another question in a couple of days, outlining what I have done, what I expect, and what actually happens. Thank you for your time" CreationDate="2023-04-11T17:30:37.820" UserId="3989" />
  <row Id="8053" PostId="8035" Score="0" Text="Thanks! This was what I suspected and wanted confirmation on/a description of. Is this documented anywhere?" CreationDate="2023-04-11T17:32:57.847" UserId="3989" />
  <row Id="8054" PostId="8035" Score="0" Text="In terms of Zombienet, I spent a month trying to get it running a few months back and ended up not using it. I attempted to use the Kubernetes provider without any luck and ended up learning Kubernetes and setting it up from scratch. (I wanted to learn k8s and the additional control will be useful for what I had planned, so it was not purely due to Zombienet).&#xA;&#xA;**Edit:** I was working on it on and off during that month and it was mainly a couple of hours a week and a lot of thinking and reading in between, while working on other things" CreationDate="2023-04-11T17:38:15.837" UserId="3989" />
  <row Id="8055" PostId="538" Score="0" Text="Yeah it should be updated! Can you post a link?" CreationDate="2023-04-11T18:48:34.043" UserId="73" />
  <row Id="8056" PostId="8035" Score="0" Text="Hey, thanks for your feedback. Zombienet should work easily with k8s (or using a local alternative like `kind`, `docker desktop`). Please open new questions if something doesn't works and I can answer there. Thanks again for your feedback!" CreationDate="2023-04-11T19:05:43.903" UserId="279" />
  <row Id="8057" PostId="7916" Score="0" Text="Left an answer to execute a task before gossiping it." CreationDate="2023-04-11T19:06:49.950" UserId="73" />
  <row Id="8058" PostId="7940" Score="0" Text="You can ask a node what the hash of a block at block.number is. If the returned hash is the same as block.hash(), then you know that it is finalized." CreationDate="2023-04-11T19:10:02.930" UserId="73" />
  <row Id="8059" PostId="8036" Score="0" Text="This sounds like a request to explain the whole dApps stalking. Please take a look at the [docs](https://docs.astar.network/docs/dapp-staking/), [code](https://github.com/AstarNetwork/astar-frame/tree/polkadot-v0.9.39/frame/dapps-staking), [precompile](https://docs.astar.network/docs/build/EVM/precompiles/) first and for discussions please join the Astar Discord" CreationDate="2023-04-11T19:15:13.230" UserId="529" />
  <row Id="8060" PostId="8036" Score="0" Text="this question should be broken into multiple questions. i recently asked a similar question in the Astar Discord dApp Staking channel https://discord.com/channels/644182966574252073/890479283124994048 since the Astar UI currently allows you to claim rewards but doesn't yet display how many rewards are available to be claimed." CreationDate="2023-04-12T04:30:20.950" UserId="83" />
  <row Id="8061" PostId="8029" Score="0" Text="This is fair feedback. If you can post SE questions when you find these &quot;gaps&quot; - this would be helpful for the community. TY." CreationDate="2023-04-12T06:25:48.470" UserId="29" />
  <row Id="8062" PostId="8035" Score="0" Text="**UPDATE**: I saw that you had added a new commit to the Zombienet repo, decided to give it another go, and it works! No changes to my setup from a week ago, where it did not work, so maybe the issue was solved by your commit. Thanks!" CreationDate="2023-04-12T08:38:35.153" UserId="3989" />
  <row Id="8063" PostId="8043" Score="0" Text="Can you share the code of the contract you are calling?" CreationDate="2023-04-12T10:32:38.887" UserId="3317" />
  <row Id="8064" PostId="8043" Score="0" Text="Sure, the exact version of the contract is [here](https://github.com/prosopo/protocol/blob/bd39450fa8794ef385be198d239372a469a73b39/contracts/lib.rs). I build this extrinsics with [this function](https://github.com/prosopo/contract/blob/e817c2f61d584462226ed0ecc573bd885e26e83a/src/contract/interface.ts#L72). The contract function being batched is `dappUserCommit`" CreationDate="2023-04-12T10:34:39.223" UserId="380" />
  <row Id="8065" PostId="8043" Score="0" Text="Could you please share the link to the Polkadot apps? I would like to examine this block." CreationDate="2023-04-12T10:46:08.923" UserId="251" />
  <row Id="8066" PostId="8043" Score="0" Text="Considered that when you transfer to/from a contract (e.g. `#[ink(message, payable)] `/ `self.env().transfer()`), it uses the `balances.Transfer`?" CreationDate="2023-04-12T10:47:13.720" UserId="3317" />
  <row Id="8067" PostId="8043" Score="0" Text="@AurevoirXavier this is a local chain so there is no online block to inspect. Here is the hex encoded call https://pastebin.com/V13ySETn. Let me know if you need any more detail." CreationDate="2023-04-12T11:15:30.960" UserId="380" />
  <row Id="8068" PostId="8043" Score="0" Text="@DaanvanderPlas I don't follow. I'm not sending any value to the contract with this call." CreationDate="2023-04-12T11:17:11.633" UserId="380" />
  <row Id="8069" PostId="8043" Score="0" Text="@AurevoirXavier [here is the full block](https://pastebin.com/xXfepmdA)(I had to create a new one as the state of the other one was discarded but its the same thing happening)." CreationDate="2023-04-12T11:31:55.643" UserId="380" />
  <row Id="8070" PostId="8043" Score="0" Text="@forgetso what about `provider_approve` / `provider_disapprove`?" CreationDate="2023-04-12T11:42:48.033" UserId="3317" />
  <row Id="8071" PostId="8006" Score="0" Text="What would be helpful is if you can link the code where you send this transaction on the mobile side OR a way for us to replicate the error." CreationDate="2023-04-12T12:21:23.200" UserId="29" />
  <row Id="8072" PostId="8043" Score="0" Text="Oh, I see what you mean. Neither of these functions is payable. `provider_approve` can send a balance but it is only ever called from `dapp_user_commit` in my batch tx's, which means that the [refund value is zero](https://github.com/prosopo/protocol/blob/bd39450fa8794ef385be198d239372a469a73b39/contracts/lib.rs#L1158-L1166)" CreationDate="2023-04-12T12:23:56.847" UserId="380" />
  <row Id="8073" PostId="8035" Score="0" Text="Awesome, thanks for your feedback!!" CreationDate="2023-04-12T13:27:25.290" UserId="279" />
  <row Id="8075" PostId="8043" Score="0" Text="`batch` doesn't emit a `transfer` event so it must be in your batched call." CreationDate="2023-04-12T14:22:22.030" UserId="3317" />
  <row Id="8077" PostId="8023" Score="0" Text="Thanks @Kayvan for the quick response.&#xA;&#xA;I am following exactly the same procedure to register my collator with the relay chain but my parachain is not producing any blocks. &#xA;&#xA;When I connect the parachain with the relay chain with the custom collator at work (Alice, bob) it produces blocks but when I generate my own account keys and use these keys as collator, the parachain stop producing blocks. &#xA;&#xA;I am using following command to generate my keys:&#xA;&#xA;./target/release/my-node key generate --scheme Sr25519 --password-interactive" CreationDate="2023-04-12T17:41:59.877" UserId="3327" />
  <row Id="8078" PostId="8049" Score="0" Text="Take a look into the pallet template as an example of the benchmarking function: https://github.com/paritytech/substrate/blob/master/bin/node-template/pallets/template/src/benchmarking.rs .It would be great if you can share more code to try to replicate and see what is happening." CreationDate="2023-04-12T17:53:38.253" UserId="2762" />
  <row Id="8079" PostId="7953" Score="0" Text="Returning values in messages is useful for cross-contract calling, without it, you would need to decode events. Events are useful for notifying frontend and 3rd party tools of any updates within the contract. Sometimes it is more gas efficient to emit the event upon mutation of storage and read it instead of having another message for reading the state." CreationDate="2023-04-12T19:00:11.983" UserId="3098" />
  <row Id="8081" PostId="8023" Score="0" Text="Thank you very much!&#xA;&#xA;It worked. Now the parachain is producing blocks." CreationDate="2023-04-12T21:34:06.100" UserId="3327" />
  <row Id="8082" PostId="8045" Score="0" Text="This is for running the contract node interface. If you want to connect the RPC method ( accessing using the nodeJS interface), I cannot go with this method.  One needs to connect to the polkadot.js.org interface to instantiate the contract and use it in a framework. Substrate-contact-node is for testing purposes only." CreationDate="2023-04-13T05:51:48.903" UserId="3440" />
  <row Id="8083" PostId="8051" Score="0" Text="how can i add to substrate client in which file should i make changes?" CreationDate="2023-04-13T07:02:05.210" UserId="2281" />
  <row Id="8084" PostId="7895" Score="0" Text="Thanks this did help" CreationDate="2023-04-13T07:29:59.787" UserId="2414" />
  <row Id="8085" PostId="8045" Score="0" Text="See edit @StanlyWilson" CreationDate="2023-04-13T07:37:59.417" UserId="3317" />
  <row Id="8086" PostId="8045" Score="0" Text="I don't see any problem with the above answer.&#xA;Please refer to https://use.ink/ for checking how to prepare a node where you can deploy your smart contracts.&#xA;&#xA;In the above documentation you will also find the different options when it comes to the deployment itself, contracts-UI or cargo-contracts being the main ones." CreationDate="2023-04-13T07:39:05.830" UserId="165" />
  <row Id="8087" PostId="8051" Score="0" Text="You can use subxt as documented [here](https://substrate.stackexchange.com/questions/8063/where-do-i-add-a-signedextension-in-a-subxt-call)." CreationDate="2023-04-13T10:08:27.883" UserId="29" />
  <row Id="8088" PostId="3758" Score="0" Text="This post may be helpful: https://substrate.stackexchange.com/questions/8063/where-do-i-add-a-signedextension-in-a-subxt-call" CreationDate="2023-04-13T10:09:02.347" UserId="29" />
  <row Id="8089" PostId="8043" Score="0" Text="This doesn't happen on the substrate contracts node. Only on the dev aura node. I am not sending any transfers." CreationDate="2023-04-13T11:15:14.107" UserId="380" />
  <row Id="8091" PostId="8036" Score="0" Text="may I ask you to join our Astar group chat and discuss about this?&#xA;https://t.me/astar_kr please tag me(@rheeunion) after you join." CreationDate="2023-04-11T16:49:09.530" UserId="2104" />
  <row Id="8092" PostId="8062" Score="1" Text="Could you please provide the exact commit on which this occurred and benchmark command that you ran? And basically everything that helps with re-producing this." CreationDate="2023-04-13T13:55:30.627" UserId="94" />
  <row Id="8093" PostId="8061" Score="0" Text="I didn't manage to find the solutiom to this, so I switched to pink-web3, which supports most of what I need anyways." CreationDate="2023-04-13T14:24:10.113" UserId="4028" />
  <row Id="8094" PostId="8070" Score="0" Text="Switch to `--ws-port` from what? I currently have `--ws-external`, but this needs to stay on top of `--ws-port` right?" CreationDate="2023-04-13T14:35:30.347" UserId="3265" />
  <row Id="8097" PostId="8071" Score="0" Text="The error states `ReadOnlyFilesystem`. Looks like your filesystem does not have write permissions. Is your disk full?" CreationDate="2023-04-13T14:49:14.770" UserId="29" />
  <row Id="8098" PostId="8070" Score="0" Text="Can you update your post with the flags that you are currently using?" CreationDate="2023-04-13T14:57:13.710" UserId="29" />
  <row Id="8099" PostId="8071" Score="0" Text="@Bruno no. As I mentioned above - the validator node itself is working fine and the chain is producing and finalizing blocks correctly." CreationDate="2023-04-13T14:58:58.237" UserId="3371" />
  <row Id="8100" PostId="8075" Score="0" Text="if we do 1, will it give a problem with babe stopping working ?" CreationDate="2023-04-13T15:20:57.680" UserId="464" />
  <row Id="8101" PostId="5509" Score="0" Text="I have several questions:&#xA;&#xA;1. Once we generate a chain_specs of a running parachain and also generate the necessary files (genesis, wasm) than we will have to re start the relay chain as well?&#xA;&#xA;2. We need to De register and register the same parachain with the relacychain again? (using the new files generated)" CreationDate="2023-04-13T17:35:16.727" UserId="3327" />
  <row Id="8102" PostId="8079" Score="1" Text="Have you tried using [chopsticks](https://github.com/AcalaNetwork/chopsticks)? Easy tool to import live chain state for testing purposes." CreationDate="2023-04-14T06:40:46.997" UserId="29" />
  <row Id="8103" PostId="8080" Score="0" Text="Try using `0.4.1-dev`." CreationDate="2023-04-14T06:44:55.743" UserId="29" />
  <row Id="8104" PostId="6039" Score="1" Text="Update or switch your git repo. That's how this is gonna solve" CreationDate="2023-04-14T07:05:44.413" UserId="2372" />
  <row Id="8105" PostId="8079" Score="0" Text="Hey @Bruno, Thank you for the response. &#xA;&#xA;Let me check the tool that you mentioned too. But I am also interested to know if I am doing any thing wrong. Can you please just have a look on my steps and give me feedback, if I am doiing it correctly." CreationDate="2023-04-14T07:11:09.377" UserId="3327" />
  <row Id="8107" PostId="8078" Score="0" Text="It is like you said, `AwaitingPeers` means that it is [Waiting for peers to connect](https://github.com/paritytech/substrate/blob/e155ab8aefbe5831cbd6100767bd111bbad32ee7/client/network/common/src/sync/warp.rs#L71-L75). How long does it get stuck? Does it resume after a while or you need to manually restart every time?" CreationDate="2023-04-14T07:19:13.233" UserId="29" />
  <row Id="8109" PostId="8069" Score="0" Text="Did you perform the registration through an RPC call to the relay chain node connected to the parachain collator?" CreationDate="2023-04-14T07:25:42.993" UserId="3989" />
  <row Id="8110" PostId="8074" Score="0" Text="If this is for development purposes, you could do a [parachain rollback](https://hackmd.io/3BAy3HEzRVO2sBFnUaBVKA)" CreationDate="2023-04-14T07:54:26.607" UserId="29" />
  <row Id="8111" PostId="3752" Score="0" Text="@rustyloaki are you able to change your tx_fee from native to asset(BAT token)?" CreationDate="2023-04-14T07:55:56.590" UserId="2281" />
  <row Id="8113" PostId="8079" Score="2" Text="I wrote a tutorial a while ago: https://hackmd.io/3BAy3HEzRVO2sBFnUaBVKA. But checking your steps I can not see any problem of the way you are doing it. Any errors that can help to debug or just not producing block?" CreationDate="2023-04-14T08:00:34.907" UserId="2762" />
  <row Id="8114" PostId="5509" Score="0" Text="The first question no, you don't have to and to the second one yes, you have to reregister the parachain with the new generated files" CreationDate="2023-04-14T08:10:36.020" UserId="2762" />
  <row Id="8115" PostId="8079" Score="0" Text="Let me run it again and past my log here" CreationDate="2023-04-14T08:41:16.130" UserId="3327" />
  <row Id="8116" PostId="5509" Score="0" Text="Thanks for the help @Alex Bean. &#xA;&#xA;So, to register our parachain with the same relaychain, since the parachain was already registered with the relaychain, we first need to De-Register it. Right? Can you please guide me how to De-Register a parachain?" CreationDate="2023-04-14T08:45:59.633" UserId="3327" />
  <row Id="8117" PostId="5509" Score="0" Text="See this tutorial, to see how to offboard the parachain: https://hackmd.io/3BAy3HEzRVO2sBFnUaBVKA" CreationDate="2023-04-14T08:54:58.573" UserId="2762" />
  <row Id="8118" PostId="8069" Score="0" Text="I used the polkadot-js explorer for the transaction." CreationDate="2023-04-14T09:02:17.287" UserId="354" />
  <row Id="8120" PostId="8080" Score="0" Text="@Bruno i tried to use this version but i t dosent work" CreationDate="2023-04-14T09:46:51.963" UserId="2722" />
  <row Id="8121" PostId="5509" Score="0" Text="Thank you very much for your time and help @Alex" CreationDate="2023-04-14T10:07:30.980" UserId="3327" />
  <row Id="8122" PostId="8079" Score="0" Text="I think we can post any thing in teh comments. The parachian does not show any error message please" CreationDate="2023-04-14T10:08:44.123" UserId="3327" />
  <row Id="8123" PostId="8072" Score="0" Text="What about calling `fn set_members`?" CreationDate="2023-04-14T12:13:45.173" UserId="3317" />
  <row Id="8124" PostId="8072" Score="0" Text="fn set_memebrs will result in a bad origin error since there are no members completely" CreationDate="2023-04-14T12:20:15.813" UserId="1891" />
  <row Id="8125" PostId="8072" Score="0" Text="What did you set as your [`SetMembersOrigin`](https://github.com/paritytech/substrate/blob/b23e52d340f1d8c6405c631e5e836f45966df326/frame/collective/src/lib.rs#L219)?" CreationDate="2023-04-14T12:24:05.920" UserId="3317" />
  <row Id="8126" PostId="8069" Score="0" Text="It turned out to be an issue with the relay chain keystores and some additional keys that had to be added in order for the relay chain to start producing blocks and accept the parachain collators. Thanks for your reply though!" CreationDate="2023-04-14T12:42:41.317" UserId="3989" />
  <row Id="8127" PostId="3737" Score="0" Text="In case someone is not familiar with the binary system/bitwise operations/bit masking, maybe this hackmd [Decoding vote lock up periods](https://hackmd.io/@LwMsxe3-SFmNXxugAXOKgg/SJ0Ulylyh) will be helpful. It explains in more detail the above code." CreationDate="2023-04-14T12:55:02.127" UserId="234" />
  <row Id="8129" PostId="8086" Score="0" Text="I am aware of how to run benchmarks for external pallets in general, using the benchmarks supplied by the pallets themselves. The question is about supplying a custom benchmark for an external pallet, not about running existing benchmarks" CreationDate="2023-04-14T13:47:40.533" UserId="1779" />
  <row Id="8130" PostId="8086" Score="0" Text="Can you be more specific of the pallet and the configuration you are using? to understand better why the benchmarks are not accurate for your case" CreationDate="2023-04-14T14:09:02.093" UserId="2762" />
  <row Id="8131" PostId="8084" Score="0" Text="Actually, I'm using `cumulus_client_service::build_network`.&#xA;&#xA;So, warp_sync_params should be configured inside the function you shared above.&#xA;&#xA;https://github.com/paritytech/cumulus/blob/574f425fa2b9c822a1417af705169ab3a1835e24/client/service/src/lib.rs#L344-L368" CreationDate="2023-04-14T14:20:57.857" UserId="275" />
  <row Id="8132" PostId="8084" Score="0" Text="Thank you for opening Github issue, please let me comment there." CreationDate="2023-04-14T14:23:42.630" UserId="275" />
  <row Id="8133" PostId="8085" Score="0" Text="Please clarify what you mean by external pallet. Are you importing a pallet and want a custom benchmark for that pallet?" CreationDate="2023-04-14T14:25:26.673" UserId="29" />
  <row Id="8134" PostId="8078" Score="0" Text="It's almost over 24hours. and yes, restarting process resumes Downloading state every time so far." CreationDate="2023-04-14T14:29:01.480" UserId="275" />
  <row Id="8135" PostId="8085" Score="0" Text="How does it not account for that? Please provide a link to the code. In general it should not be needed to re-impl a benchmark." CreationDate="2023-04-14T14:35:12.347" UserId="94" />
  <row Id="8136" PostId="8085" Score="0" Text="So for example we specify non-trivial [`CurrencyHooks`](https://github.com/open-web3-stack/open-runtime-module-library/blob/19afb58a300faac6ceb0e6e4e341859282897c53/tokens/src/lib.rs#L221) in the runtime configuration of `orml-tokens` but obviously the upstream benchmarks can't account for those. What is the recommended approach here?" CreationDate="2023-04-14T14:47:12.613" UserId="1989" />
  <row Id="8137" PostId="8086" Score="0" Text="To give an example, orml pallets come without benchmarks: https://github.com/open-web3-stack/open-runtime-module-library/tree/master/tokens/src . You could argue that the project should just add them, but some of these pallets are highly customizable by supplying custom hooks, making generic benchmarks difficult" CreationDate="2023-04-14T14:51:38.927" UserId="1779" />
  <row Id="8138" PostId="8072" Score="0" Text="Am using polkadot-v0.9.37 and the type SetMembersOrigin is not a member of the trait. But i am updating my code to polkadot-v0.9.40 and i will be able to use it." CreationDate="2023-04-14T15:10:49.177" UserId="1891" />
  <row Id="8139" PostId="8093" Score="0" Text="Thanks this is it!&#xA;Hope this post will help next ones who have to problem, I'll edit the title" CreationDate="2023-04-14T16:13:58.583" UserId="1732" />
  <row Id="8140" PostId="8090" Score="0" Text="thanks but actully i can not undrestand what should i do" CreationDate="2023-04-14T20:03:11.870" UserId="2722" />
  <row Id="8141" PostId="5509" Score="0" Text="I used export-state to export the current state of my parachian. When I spin up the parachain collator using the newly generated genesis state and wasm. My parachian was not producing blocks. On checking, it came to my noticed that the authorities that I defined are not there and there is some random account shown as authority, why is this so? and how to solve this issue. (I am checking the authorities by using chainstate → auraExt → authorities)" CreationDate="2023-04-14T22:39:49.560" UserId="3327" />
  <row Id="8142" PostId="8087" Score="0" Text="I don't know what's the content of `pallet_collective::migrations::v4::migrate::`." CreationDate="2023-04-15T00:57:06.073" UserId="251" />
  <row Id="8143" PostId="8091" Score="0" Text="How can I find out where the worker  is going to be spawned? I mean like what’s the default path. I’ve been trying to run validator node with the root account using custom security context but it didn’t help either." CreationDate="2023-04-15T08:05:23.790" UserId="3371" />
  <row Id="8144" PostId="8091" Score="0" Text="I’ve also updated the question adding the eks configuration we’re using. However I’m not sure if it helps since there are no specific restrictions applied - cluster out of the box." CreationDate="2023-04-15T08:36:56.597" UserId="3371" />
  <row Id="8145" PostId="7975" Score="0" Text="make sense .. thanks for putting this up here" CreationDate="2023-04-15T10:34:59.530" UserId="3947" />
  <row Id="8146" PostId="7665" Score="0" Text="Are you suggesting that the only way to add host functions are to add them to substrate itself? Is there no better way (at least for a solo chain) ?" CreationDate="2023-04-15T11:39:43.900" UserId="272" />
  <row Id="8148" PostId="8069" Score="0" Text="Yeah there are gran, babe, imon, audi, para, asgn keys, if using rococo network beef key is also needed, sorry to mention in answer" CreationDate="2023-04-15T18:50:07.120" UserId="354" />
  <row Id="8150" PostId="8096" Score="0" Text="did it build successfully after you cloned those repositoeies and before you made any code changes? do you have enough memory and hard disk space, see https://substrate.stackexchange.com/a/7549/83" CreationDate="2023-04-16T03:59:35.340" UserId="83" />
  <row Id="8151" PostId="8096" Score="0" Text="@LukeSchoen , yes , it did success build before i change any thing ." CreationDate="2023-04-16T06:26:11.257" UserId="2722" />
  <row Id="8156" PostId="5495" Score="0" Text="The export-state produces a chain specs that do not have your orignal collator set. How to get my orignal collator set back, as export-state produces a raw chain specs and we can not add our collator in this raw chain specs as we do in plain chain specs. Can I solve this issues without using &quot;fork_of_substrate&quot;" CreationDate="2023-04-16T18:16:49.070" UserId="3327" />
  <row Id="8157" PostId="5476" Score="0" Text="When you say &quot;the authorities/ validators in the chain-spec propably does not exists &quot;. I have several questions:&#xA;&#xA;1. Does it means, if I am running a a parachian collator with custom collator keys connected with a relay chain. When I apply the export-state command on my parachain binary, the chain spec, it produces will not have my original collator keys?&#xA;&#xA;2. If the answer to the above question is YES, will you please tel me how to inject my collator keys in the chain specs produced by export-state, since it produces a raw chain specs." CreationDate="2023-04-16T20:16:09.340" UserId="3327" />
  <row Id="8158" PostId="8079" Score="0" Text="I figure out one error and that is about the collators keys. What I noticed that the collator keys generated by export-state are not what I have set. What is my guess so far, export-state changes the collator keys  (for security reasons, may be). How can I set my collator keys again to my custom keys?" CreationDate="2023-04-16T20:34:14.367" UserId="3327" />
  <row Id="8159" PostId="7932" Score="1" Text="i upvoted this before trying it, but after trying it with `WASM_BUILD_TOOLCHAIN=nightly-2023-01-01 cargo build --release` in the subtrate-node-template repo i found it doesn't work. it just gives the `Rust WASM toolchain not installed, please install it!` error, and even if you then follow its suggestion and install it with `rustup target add wasm32-unknown-unknown` and then build again it just shows the same error." CreationDate="2023-04-16T23:04:34.873" UserId="83" />
  <row Id="8160" PostId="7721" Score="3" Text="i followed the official substrate installation instructions i was able to solve the issue on substrate-node-template repo by running `rustup override set nightly-2023-01-01 &amp;&amp; rustup target add wasm32-unknown-unknown`. view the override with `rustup toolchain list`. if you want to remove the override and revert back to defaults just run `rustup override unset`." CreationDate="2023-04-16T23:11:08.587" UserId="83" />
  <row Id="8161" PostId="7890" Score="0" Text="i upvoted this before trying it. but this didn't work for me. it just returned error `error[E0786]: found invalid metadata files for crate sp_std` and `error: cannot determine resolution for the derive macro sp_std::hash::Hash`" CreationDate="2023-04-16T23:22:13.867" UserId="83" />
  <row Id="8162" PostId="7830" Score="0" Text="i tried this but doesn't work. i used latest substrate repo master commit 35049b176e49ca23240d1ee3ec6c190804e3b4d1, followed the official substrate installation instructions but when i ran `cargo build --package node-template --release` it gave error `error: unknown --json` option future-incompat` and `error: could not compile ff (lib)`, then i downgraded to 1.68 nightly `rustup override set nightly-2023-01-01 &amp;&amp; rustup target add wasm32-unknown-unknown` and ran `cargo build --package node-template --release` again but gave error `found invalid metadata files for crate proc_macro2`" CreationDate="2023-04-17T01:42:54.340" UserId="83" />
  <row Id="8163" PostId="7830" Score="1" Text="if i use latest substrate repo master commit 35049b176e49ca23240d1ee3ec6c190804e3b4d1, follow official substrate install instructions and build with just `cargo build --release` it compiles successfully and i can run node without error. but if i use latest substrate-node-template repo master commit 700c3a186e55d0d6542c564ccff17260238ed752, follow official substrate installation instructions, then it gives error `cannot deserialize module: UnknownOpcode(192)` unless i run `rustup override set nightly-2023-01-01 &amp;&amp; rustup target add wasm32-unknown-unknown` before running `cargo build --release`" CreationDate="2023-04-17T01:50:06.810" UserId="83" />
  <row Id="8164" PostId="7604" Score="1" Text="Thank you!&#xA;&#xA;Your answer is correct! You're a big help, thank you!" CreationDate="2023-04-17T05:05:55.337" UserId="3875" />
  <row Id="8165" PostId="3546" Score="0" Text="@EricSegall did you solved this??" CreationDate="2023-04-17T06:12:56.840" UserId="2281" />
  <row Id="8166" PostId="8105" Score="0" Text="Can you elaborate a bit more on &quot;it didn't work&quot;?" CreationDate="2023-04-17T07:19:16.083" UserId="3317" />
  <row Id="8167" PostId="8105" Score="0" Text="there was lots of errors,and i am not sure that is it the right way to do that" CreationDate="2023-04-17T07:21:11.037" UserId="2281" />
  <row Id="8168" PostId="4955" Score="1" Text="new url for substrate SS58 docs is at https://docs.substrate.io/reference/address-formats/" CreationDate="2023-04-17T07:57:07.873" UserId="4097" />
  <row Id="8169" PostId="7932" Score="0" Text="Yea the recommendation is not really correct. AFAIK it should be `rustup target add wasm32-unknown-unknown --toolchain nightly`, or whatever exact nightly you are using." CreationDate="2023-04-17T09:03:20.230" UserId="94" />
  <row Id="8171" PostId="8112" Score="0" Text="thanks, that's all very clear - and actually in line with how we've been approaching Lazy thus far - more like a way to arrange storage (with upgrades in mind) than anything else." CreationDate="2023-04-17T11:06:48.937" UserId="425" />
  <row Id="8172" PostId="8111" Score="0" Text="i have implemented all these three points but still when i create a asset using the pallet_assets the fees is getting deducted from the native token only.&#xA;&#xA;for eg. I have created a custom token (PAT) if account A has 100 PAT token and 0 Native token then i am unable to transfer my (PAT) token to another account.Because the fees is deducted from the native token." CreationDate="2023-04-17T11:25:05.473" UserId="2281" />
  <row Id="8173" PostId="8111" Score="0" Text="Have you looked at this post: https://substrate.stackexchange.com/questions/8063/where-do-i-add-a-signedextension-in-a-subxt-call ?" CreationDate="2023-04-17T12:27:19.210" UserId="3317" />
  <row Id="8176" PostId="8111" Score="0" Text="What do you mean?" CreationDate="2023-04-17T12:51:23.453" UserId="3317" />
  <row Id="8177" PostId="8111" Score="0" Text="i am using the substrate client where as in the question its subxt" CreationDate="2023-04-17T12:59:39.430" UserId="2281" />
  <row Id="8178" PostId="8111" Score="0" Text="[subxt](https://github.com/paritytech/subxt): A library to submit extrinsics to a substrate node via RPC." CreationDate="2023-04-17T13:03:16.260" UserId="3317" />
  <row Id="8179" PostId="8111" Score="0" Text="so do i need to add subxt into my substrate code ,can i do it without using subxt ?" CreationDate="2023-04-17T13:04:17.463" UserId="2281" />
  <row Id="8180" PostId="8111" Score="0" Text="Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/145399/discussion-between-daan-van-der-plas-and-amit-kumar-yadav)." CreationDate="2023-04-17T13:06:15.707" UserId="3317" />
  <row Id="8181" PostId="8111" Score="1" Text="This might help as well to make it work in polkadot js: https://substrate.stackexchange.com/questions/5695/informing-polkadot-api-about-additional-signed-extensions" CreationDate="2023-04-17T13:31:03.637" UserId="3317" />
  <row Id="8184" PostId="8103" Score="0" Text="Is the block you are querying the data at (before export) the same one you are actually exporting the state from ?" CreationDate="2023-04-17T15:36:49.500" UserId="165" />
  <row Id="8185" PostId="8103" Score="0" Text="In case you are using collator-selection pallet I would be curious to see what values you have for invulnerables and desiredCandidates" CreationDate="2023-04-17T15:45:35.317" UserId="165" />
  <row Id="8186" PostId="8095" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2023-04-17T16:03:40.387" UserId="-1" />
  <row Id="8187" PostId="8103" Score="0" Text="1. I query the block before exeucting export-state.  2. I am not using selection pallet" CreationDate="2023-04-17T16:43:44.097" UserId="3327" />
  <row Id="8188" PostId="2321" Score="0" Text="sc_network_gossip is deprecated" CreationDate="2023-04-17T17:35:44.350" UserId="3319" />
  <row Id="8189" PostId="8134" Score="0" Text="Thanks @Drew for the quick answer. So, do you mean it is the hex of the actual address. More ever, should we need to change some thing in the collator address so that to make it the original collator address" CreationDate="2023-04-17T22:30:17.217" UserId="3327" />
  <row Id="8190" PostId="8133" Score="0" Text="Thank you very much @Drew. Let me check it in details." CreationDate="2023-04-17T22:31:51.917" UserId="3327" />
  <row Id="8191" PostId="8134" Score="0" Text="If you can please have a look on another of my related question, you may get more insight of what I wanted to ask. I will thankful, if  you can help me on that. &#xA;&#xA;https://substrate.stackexchange.com/questions/8103/export-state-produces-wrong-collators-hex?noredirect=1#comment8185_8103" CreationDate="2023-04-17T23:18:23.690" UserId="3327" />
  <row Id="8192" PostId="8138" Score="0" Text="import in this way @Pierina Ponce `use ink::prelude::{ vec, vec::Vec }`" CreationDate="2023-04-18T01:28:47.790" UserId="2844" />
  <row Id="8194" PostId="3701" Score="0" Text="does slashing the validator removes him from the validator set?" CreationDate="2023-04-18T11:12:04.260" UserId="3319" />
  <row Id="8195" PostId="8151" Score="0" Text="Thank you for several nice links. I look for the next function which generates a **signature** (consisting of all informations in Question 2 above) with the value (concatenating r and s values) returned from [secp256k1Sign function](https://github.com/polkadot-js/common/blob/1f8b573d811ebc00f078cc9ad0a96b0d5476b13d/packages/util-crypto/src/secp256k1/sign.ts#L19). Thanks" CreationDate="2023-04-18T12:01:22.193" UserId="4098" />
  <row Id="8196" PostId="7959" Score="0" Text="I have the same question. https://substrate.stackexchange.com/questions/7710/how-to-check-if-a-pallet-can-be-compiled-to-no-std-wasm" CreationDate="2023-04-18T13:04:32.807" UserId="251" />
  <row Id="8197" PostId="8150" Score="0" Text="so i should i use the old transaction pool everywhere else except when building the network paramters i should i pass my custom pool ? and this way i'll avoid libp2p gossiped messages" CreationDate="2023-04-18T13:55:08.687" UserId="3319" />
  <row Id="8198" PostId="8150" Score="0" Text="Yes exactly that is the way." CreationDate="2023-04-18T13:59:43.147" UserId="73" />
  <row Id="8199" PostId="8153" Score="0" Text="From my understanding you want to call `contract A` which takes as argument another `contract B`. `Contract A` will then transfer its tokens to `contract B`. What kind of token do you want to transfer?" CreationDate="2023-04-18T14:11:52.820" UserId="3317" />
  <row Id="8200" PostId="8153" Score="0" Text="Yes, you understood correctly ! It could be ERC20 but aswell erc721 and erc 1155 ! I want it rather wide ! Does it makes sense ?" CreationDate="2023-04-18T15:12:24.810" UserId="4083" />
  <row Id="8201" PostId="8156" Score="0" Text="Thanks you very Daan ! It is really clear, I will implement that ! I appreciated your time :)" CreationDate="2023-04-18T17:07:18.593" UserId="4083" />
  <row Id="8202" PostId="7804" Score="0" Text="This was the PR that added the functionality: https://github.com/paritytech/substrate/pull/11818" CreationDate="2023-04-18T17:54:14.510" UserId="85" />
  <row Id="8203" PostId="8149" Score="0" Text="Thank you very much for the update @Alex&#xA;&#xA;If the use case is to vote on a proposal, so that, either accept or reject the proposal. Do you think election pallet is suitable in that use case?&#xA;&#xA;Thanks once again for your time and suggestion" CreationDate="2023-04-18T19:08:41.343" UserId="3327" />
  <row Id="8204" PostId="8163" Score="0" Text="Does this answer your question? [Is there any way to convert an ss58 address to the 32 bytes pubkey?](https://substrate.stackexchange.com/questions/7149/is-there-any-way-to-convert-an-ss58-address-to-the-32-bytes-pubkey)" CreationDate="2023-04-19T02:26:45.870" UserId="251" />
  <row Id="8205" PostId="8163" Score="0" Text="No answer yet, but duplicated." CreationDate="2023-04-19T02:28:21.517" UserId="251" />
  <row Id="8206" PostId="8163" Score="0" Text="The question asks the same thing but I think my question is better phrased and more likely to be helpful in the future. Also as you point out there are no answers to it" CreationDate="2023-04-19T03:43:32.987" UserId="116" />
  <row Id="8207" PostId="8163" Score="0" Text="Yep. But I hope we can close one. (maybe that one)" CreationDate="2023-04-19T04:13:07.397" UserId="251" />
  <row Id="8208" PostId="8162" Score="0" Text="Please keep your questions specific, we are not here to help you surf the web ;)" CreationDate="2023-04-19T07:00:06.017" UserId="3317" />
  <row Id="8209" PostId="8167" Score="0" Text="What do you mean by &quot;during runtime upgrade&quot;?" CreationDate="2023-04-19T07:19:35.230" UserId="251" />
  <row Id="8210" PostId="8167" Score="0" Text="when use the system set_code   call to upgrade runtime" CreationDate="2023-04-19T07:24:54.793" UserId="2668" />
  <row Id="8211" PostId="8168" Score="0" Text="you means ,when network runtime is upgrading,  the transfer native token  gas fee weight = system.set_code gas w + Binance transfer ?" CreationDate="2023-04-19T07:54:01.633" UserId="2668" />
  <row Id="8212" PostId="8158" Score="0" Text="This PR may help: https://github.com/paritytech/substrate/pull/3861" CreationDate="2023-04-19T07:54:16.893" UserId="29" />
  <row Id="8213" PostId="8172" Score="1" Text="I don't think there is a straightforward way to accomplish that. Can you tell me more about your specific use case?" CreationDate="2023-04-19T10:18:14.187" UserId="251" />
  <row Id="8214" PostId="8172" Score="0" Text="The use case is to debug a strange problem where grandpa finalization does happen or not depending on the genesis config." CreationDate="2023-04-19T12:26:40.373" UserId="3123" />
  <row Id="8215" PostId="8174" Score="1" Text="Check this part of the Substrate docs, to check if you have the right set up for zombienet: https://docs.substrate.io/test/set-up-a-test-network/#configure-the-test-network-settings" CreationDate="2023-04-19T13:06:25.310" UserId="2762" />
  <row Id="8216" PostId="8174" Score="0" Text="Thank you. I didn't know I had to change de parachaind Id" CreationDate="2023-04-19T13:18:51.897" UserId="3708" />
  <row Id="8217" PostId="8147" Score="0" Text="Thank you for the answer!&#xA;Could you also please tell us if and how a collator can easily know if a certain relaychain block (or even better the relaychain block that contained the candidate receipt for a given parachain block) has been finalized on the relaychain by GRANDPA" CreationDate="2023-04-19T13:26:06.430" UserId="522" />
  <row Id="8218" PostId="8146" Score="0" Text="Thanks a lot!&#xA;Could you also please point out where in the cumulus code this head-data is being read?&#xA;Also, are there apis in the parachain node to easily query relaychain storage?" CreationDate="2023-04-19T13:33:03.297" UserId="522" />
  <row Id="8219" PostId="8178" Score="0" Text="I tried to add&#xA;```impl core::fmt::Debug for GenesisConfig {&#xA;    fn fmt(&amp;self, f: &amp;mut core::fmt::Formatter&lt;'_&gt;) -&gt; core::fmt::Result {&#xA;        f.debug_struct(&quot;GenesisConfig&quot;).finish()&#xA;    }&#xA;}&#xA;```&#xA;after my `construct_runtime!` macro, but `GenesisConfig` is not found in scope. That was the sense of my question: &quot;where&quot; means : &quot;which scope&quot;." CreationDate="2023-04-19T13:57:02.203" UserId="3123" />
  <row Id="8220" PostId="8178" Score="0" Text="For the `serde_json` approach, it would be good if `GenesisConfig` were implementing `Clone` trait, which is not the case. Difficult to implement without, but I'll try :/" CreationDate="2023-04-19T13:58:33.580" UserId="3123" />
  <row Id="8221" PostId="7959" Score="0" Text="Hey, I see your question is trying to compile the runtime without the default features. I am trying to compiling with the std feature, so it's not really the same question..." CreationDate="2023-04-19T14:03:07.977" UserId="1795" />
  <row Id="8222" PostId="8174" Score="1" Text="Great, write your solution as an answer so can benefit other people that might experiment the same issue" CreationDate="2023-04-19T14:04:55.827" UserId="2762" />
  <row Id="8223" PostId="8181" Score="0" Text="This a good idea. Thanks!" CreationDate="2023-04-19T14:09:29.643" UserId="29" />
  <row Id="8224" PostId="8178" Score="1" Text="The genesis config only exists in `std`. So you have to guard your impl for `std` or put it inside a test. (I updated the answer)." CreationDate="2023-04-19T14:33:48.643" UserId="94" />
  <row Id="8225" PostId="8150" Score="0" Text="it does not work, BuildNetworkParams does not require the pool to implement sc_network_transactions::config::TransactionPool, so none of those methods are actually called" CreationDate="2023-04-19T14:59:16.013" UserId="3319" />
  <row Id="8226" PostId="8150" Score="0" Text="sorry i meant build_network() function not BuildNetworkParams" CreationDate="2023-04-19T15:07:11.090" UserId="3319" />
  <row Id="8227" PostId="8183" Score="0" Text="Generally you do not want to run `cargo update` on Substrate or node-template. Maybe describe what you're trying to achieve in your post." CreationDate="2023-04-19T15:12:08.760" UserId="29" />
  <row Id="8228" PostId="8178" Score="0" Text="I'm accepting this answer since it answers the question, but now I'm stuck with deriving `Clone` trait " CreationDate="2023-04-19T15:13:48.883" UserId="3123" />
  <row Id="8229" PostId="8147" Score="0" Text="This information is put in the [justification](https://substrate.stackexchange.com/questions/5922/are-justification-in-the-block-the-actual-votes-cast-by-validators-in-grandpa) which can be found in a new block." CreationDate="2023-04-19T15:35:32.277" UserId="3317" />
  <row Id="8230" PostId="8183" Score="0" Text="@Bruno I am actually trying to build (on Macbook M1) the solo-para-bridges-poc repo/project , however I get the error  &quot;failed to run custom build command for `librocksdb-sys v0.8.0+7.4.4`&quot;" CreationDate="2023-04-19T16:17:36.070" UserId="2960" />
  <row Id="8231" PostId="8144" Score="0" Text="Thank you. Sorry but how is `offchain-indexing` an option? I thought its write-only. Let's say target node has offchain indexing enabled, how do I go about reading some offchain value externally from my machine/app/service? using indexing @AurevoirXavier" CreationDate="2023-04-19T17:47:35.847" UserId="4100" />
  <row Id="8232" PostId="8144" Score="0" Text="I suggest you maintain one and enable the unsafe rpc. Otherwise, I suggest you use subquerry instead of offchain worker. Last year my team switch to subquery from offchain worker. Because there are a lot of issues while interacting with offchain DB." CreationDate="2023-04-19T17:56:12.303" UserId="251" />
  <row Id="8233" PostId="7959" Score="0" Text="The runtime is already a WASM blob, it is located in `target/release/wbuild/polkadot-runtime/polkadot_runtime.wasm`. How is your use-case different?" CreationDate="2023-04-19T17:57:25.637" UserId="94" />
  <row Id="8235" PostId="8165" Score="0" Text="in my senario user want to create token with own smart contract ." CreationDate="2023-04-19T18:24:23.237" UserId="2722" />
  <row Id="8236" PostId="8142" Score="0" Text="Thank you. Can you please see my comment under Xavier's answer. I don't get how to use indexing for reading values. Basically I have a key and I want to read corresponding value through some arbitrary interaction with a node @AlexBean" CreationDate="2023-04-19T18:31:15.643" UserId="4100" />
  <row Id="8237" PostId="8157" Score="1" Text="Swanky dev here. Feel free to add a suggestion on GH with the use case description. We have been thinking in that direction with next iteration planning, and a real-world use case would be a great help. https://github.com/AstarNetwork/swanky-cli/issues" CreationDate="2023-04-19T20:38:27.963" UserId="1876" />
  <row Id="8238" PostId="3546" Score="0" Text="@AmitKumarYadav No :(" CreationDate="2023-04-20T05:26:56.640" UserId="2103" />
  <row Id="8239" PostId="7959" Score="0" Text="`wasm-bindgen` requires `std`, hence the only way to expose the runtime blob to JS is by building a second WASM blob with `std` support that wraps around the runtime blob. So I was wondering wether the runtime itself can already by compiled with `std` support and is hence supported in `wasm-bindgen`." CreationDate="2023-04-20T06:08:02.933" UserId="1795" />
  <row Id="8240" PostId="8165" Score="0" Text="I edited the answer" CreationDate="2023-04-20T07:33:38.403" UserId="3317" />
  <row Id="8241" PostId="8150" Score="0" Text="You are right, the `MaintainedTransactionPool` bound is wrong. `maintained_pool` could be implemented right now by doing nothing. However, I also opened a pr to use the correct bound: https://github.com/paritytech/substrate/pull/13959" CreationDate="2023-04-20T08:22:51.967" UserId="73" />
  <row Id="8242" PostId="8147" Score="0" Text="The collator is trusting the relay chain node. This also means that your collator should not be connected to any random relay chain node as there are no further checks being done. The relay chain node itself is then running grandpa to finalize blocks or by importing justifications when doing a major syncing." CreationDate="2023-04-20T08:24:49.623" UserId="73" />
  <row Id="8243" PostId="8149" Score="0" Text="Personally I'd use the Democracy Pallet as a guide for that" CreationDate="2023-04-20T08:25:41.610" UserId="2762" />
  <row Id="8244" PostId="8150" Score="0" Text="yeah so basically what i did was creating a wrapper around transaction_pool and implemented sc_service::TransactionPool (not to confuse it with config::TransactionPool) and created my custom behaviour (sometimes calling parent_pool whenever needed)" CreationDate="2023-04-20T08:40:28.770" UserId="3319" />
  <row Id="8245" PostId="6443" Score="1" Text="thanks work 100%" CreationDate="2023-04-20T08:47:05.450" UserId="2844" />
  <row Id="8246" PostId="7038" Score="0" Text="I have exactly the same issue with the same message: cannot query the runtime API version: UnknownBlock: State already discarded for 0xb5ca6f77cde65f43b7dc8e2f551b6ff36327126392d08a99409531df0e7c0e1c. Have someone figured what the possible reason could be?" CreationDate="2023-04-20T09:28:52.300" UserId="3371" />
  <row Id="8247" PostId="8163" Score="1" Text="I believe this is not possible. And most probably this is intended to discourage passing ss58-encoded addresses to the runtime. The recommended way of passing data is with scale codec, not any string-based serialization." CreationDate="2023-04-20T09:33:41.410" UserId="2673" />
  <row Id="8249" PostId="8103" Score="0" Text="Should I raise this question again?" CreationDate="2023-04-20T10:12:06.097" UserId="3327" />
  <row Id="8250" PostId="8178" Score="1" Text="Agreed; it should be `Clone`. I will change it. In the mean-time you can again use `serde_json` to encode+decode to &quot;clone&quot; it , since encode only requires a reference (obviously a horrible hack)." CreationDate="2023-04-20T10:21:57.707" UserId="94" />
  <row Id="8251" PostId="8094" Score="0" Text="But the specific `CurrencyHooks` that we use only have a high cost for _some_ of the currencies, and only when the chain is a particular state. So we need the benchmark to setup that state and use that particular currency, otherwise it won't hit the worst-case" CreationDate="2023-04-20T10:45:39.223" UserId="1779" />
  <row Id="8252" PostId="8039" Score="0" Text="It is really works!" CreationDate="2023-04-20T11:10:03.573" UserId="3171" />
  <row Id="8253" PostId="6412" Score="0" Text="It works for me to update jsonrpsee to any version that above 0.16." CreationDate="2023-04-20T11:10:55.677" UserId="3171" />
  <row Id="8254" PostId="8163" Score="0" Text="@AdamWierzbicki this is not intended for the runtime, there are other places where one can run wasm" CreationDate="2023-04-20T11:52:55.010" UserId="116" />
  <row Id="8255" PostId="8163" Score="0" Text="@Simson Okay, got you. Still, I'm afraid it's not possible, but maybe someone else here will come up with an answer..." CreationDate="2023-04-20T12:00:26.693" UserId="2673" />
  <row Id="8256" PostId="8126" Score="0" Text="When logs are not enabled (for mainnet/production), is there zero overhead or does it leave some code in?" CreationDate="2023-04-20T13:16:50.897" UserId="3142" />
  <row Id="8257" PostId="8056" Score="0" Text="Fwiw I see Polkadot reads from storage here: https://github.com/paritytech/polkadot/blob/dbae30efe080a1d41fe54ef4da8af47614c9ca93/runtime/parachains/src/initializer.rs#L215" CreationDate="2023-04-20T13:35:10.703" UserId="1989" />
  <row Id="8258" PostId="8126" Score="0" Text="No any log code gets injected." CreationDate="2023-04-20T13:42:42.413" UserId="251" />
  <row Id="8259" PostId="8157" Score="0" Text="Thank you, @codespool! I just created an issue in your repo: https://github.com/AstarNetwork/swanky-cli/issues/144" CreationDate="2023-04-20T14:38:52.160" UserId="4109" />
  <row Id="8260" PostId="8184" Score="0" Text="Thanks for the detailed answer! Not so obvious to me, but it works :)&#xA;Looking forward to your updates!" CreationDate="2023-04-20T15:39:44.977" UserId="3014" />
  <row Id="8261" PostId="8184" Score="0" Text="Yeah, that feature really requires a more detailed article :) Pls, let me know if you have more questions or ideas on how to improve the flow." CreationDate="2023-04-20T16:32:59.203" UserId="548" />
  <row Id="8263" PostId="8170" Score="0" Text="Let me watch that. Thanks @Lana" CreationDate="2023-04-20T17:47:34.647" UserId="3327" />
  <row Id="8264" PostId="8166" Score="0" Text="Thanks for info" CreationDate="2023-04-20T17:48:29.263" UserId="3327" />
  <row Id="8265" PostId="8182" Score="0" Text="Thanks for the follow up answer :)" CreationDate="2023-04-20T18:18:05.480" UserId="279" />
  <row Id="8266" PostId="8203" Score="0" Text="Does this answer your question? [How do I use the AccountId20 and EthereumSignature Signer with polkadot.js.org?](https://substrate.stackexchange.com/questions/7775/how-do-i-use-the-accountid20-and-ethereumsignature-signer-with-polkadot-js-org)" CreationDate="2023-04-20T19:02:41.833" UserId="251" />
  <row Id="8267" PostId="8203" Score="1" Text="it seems PR 8396 added a few extra chains to ethereumChains.ts, which already contains frontier-template... so unfortunately I think that is not enough" CreationDate="2023-04-20T19:16:44.007" UserId="494" />
  <row Id="8268" PostId="8148" Score="0" Text="Interesting. Thanks for your answer. Would the use of a dedicated system parachain be a one-time upgrade or can multiple system parachains work together to scale balance transactions horizontally? Is the machinery already in place to achieve this, or must we get clever, perhaps by sharding accounts somehow?" CreationDate="2023-04-20T19:27:57.943" UserId="2761" />
  <row Id="8269" PostId="8203" Score="1" Text="I'm adding some updates to this issue https://github.com/polkadot-js/apps/issues/9355" CreationDate="2023-04-20T20:33:27.783" UserId="494" />
  <row Id="8270" PostId="8199" Score="0" Text="Please elaborate on what you try to do, what you see, what was expected to happen and what is happening." CreationDate="2023-04-21T05:35:39.120" UserId="116" />
  <row Id="8272" PostId="8061" Score="0" Text="Phat Contract offers common signature signing and validating feature (secp256k1/ecdsa, sr25519, ed25519). You can use the chain extension in the environment here: https://docs.rs/pink-extension/0.4.1/pink_extension/chain_extension/signing/index.html" CreationDate="2023-04-21T05:53:59.637" UserId="544" />
  <row Id="8273" PostId="8187" Score="0" Text="Yes, that is definitely something to do  But compiling even just a simple crate that only depends on `codec`, `scale-info` and `sp-std` fails if the combination of `--features std` and `target wasm32-unknown-unknown` is used, so I assume by design it's not possible to target WASM with `std` feature on, at least not in a way that I would be able to understand." CreationDate="2023-04-21T06:31:34.597" UserId="1795" />
  <row Id="8274" PostId="8187" Score="0" Text="You can only enable a few std things in the WASM, and you need to tweak it yourself. Because it is WASM, it runs in the browser in the sandbox. For example, there is no `std::io` at all in that envoiroment. So, you can't just enable the std directly." CreationDate="2023-04-21T06:37:44.190" UserId="251" />
  <row Id="8275" PostId="8208" Score="0" Text="Is it technically possibel?" CreationDate="2023-04-21T08:09:00.143" UserId="3327" />
  <row Id="8276" PostId="8204" Score="0" Text="Thanks! Not really what we are looking for, though. swanky is essentially already one level too low-level and typechain is more or less a level below swanky even.&#xA;&#xA;The question is not so much about feasibility of complex deployments, but rather how to do it in a brief, convenient manner without re-inventing the wheel ;)" CreationDate="2023-04-21T08:49:42.457" UserId="4109" />
  <row Id="8277" PostId="8212" Score="0" Text="Check this: https://substrate.stackexchange.com/questions/5287/cannot-run-benchmarking-did-not-find-the-benchmarking-metadata" CreationDate="2023-04-21T10:56:24.800" UserId="2762" />
  <row Id="8278" PostId="8212" Score="0" Text="we already have this code in our chain&#xA;&#xA;impl sc_executor::NativeExecutionDispatch for ExecutorDispatch {&#xA;	/// Only enable the benchmarking host functions when we actually want to benchmark.&#xA;	#[cfg(feature = &quot;runtime-benchmarks&quot;)]&#xA;	type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;&#xA;	/// Otherwise we only use the default Substrate host functions.&#xA;	#[cfg(not(feature = &quot;runtime-benchmarks&quot;))]&#xA;	type ExtendHostFunctions = ();&#xA;}" CreationDate="2023-04-21T11:26:01.970" UserId="377" />
  <row Id="8279" PostId="8212" Score="0" Text="What did you modify about the code of the node? Can you provide a link please?" CreationDate="2023-04-21T12:31:21.627" UserId="94" />
  <row Id="8280" PostId="8187" Score="0" Text="My understanding is that you can decide how much &quot;sandboxed&quot; you want your WASM to be. There could be cases where it makes sense to have `std` capabilities in a WASM executable. But as far as I understand Parity does not support that case in any way." CreationDate="2023-04-21T12:52:01.410" UserId="1795" />
  <row Id="8281" PostId="8201" Score="1" Text="It worked, thank you." CreationDate="2023-04-21T13:10:35.553" UserId="3708" />
  <row Id="8283" PostId="8208" Score="0" Text="Yes, that is its design. Check this also https://wiki.polkadot.network/docs/maintain-guides-democracy." CreationDate="2023-04-21T14:48:09.647" UserId="251" />
  <row Id="8284" PostId="8208" Score="0" Text="https://substrate.stackexchange.com/questions/8162/can-any-one-point-me-to-some-resource-that-explain-pallet-democracy/8171#8171" CreationDate="2023-04-21T14:48:20.670" UserId="251" />
  <row Id="8285" PostId="8187" Score="0" Text="So, you'd better ask this in the Rust WASM community? It looks like it's a general question. Sorry, I have no more idea about this." CreationDate="2023-04-21T14:50:07.573" UserId="251" />
  <row Id="8286" PostId="8217" Score="0" Text="yeah, trying. new commits where added to parithtehc polkadot 0.9.38, so have to patch and align attempts to sync cumulus/polkadot/substrate to work on our fork. in progress testing" CreationDate="2023-04-21T23:27:17.123" UserId="484" />
  <row Id="8287" PostId="8217" Score="0" Text="it worked, but afaik fix was done for Cosmwasm runtime :) Not Parachain." CreationDate="2023-04-22T10:30:40.577" UserId="484" />
  <row Id="8288" PostId="8062" Score="0" Text="i have applied suggested patch from moonbeam about heap pages, was not enough to fix" CreationDate="2023-04-22T11:06:15.537" UserId="484" />
  <row Id="8290" PostId="8223" Score="0" Text="`type CreateOrigin = AsEnsureOriginWithArg&lt;EnsureSigned&lt;AccountId&gt;&gt;;` I have configured this @AurevoirXavier." CreationDate="2023-04-23T03:28:38.977" UserId="2844" />
  <row Id="8291" PostId="8223" Score="0" Text="which means origin is `ALICE` isn't it?" CreationDate="2023-04-23T03:29:19.367" UserId="2844" />
  <row Id="8292" PostId="8223" Score="0" Text="Or should I set origin manually?" CreationDate="2023-04-23T03:36:28.210" UserId="2844" />
  <row Id="8293" PostId="8224" Score="0" Text="Is this on `polkadot-v0.9.37`?" CreationDate="2023-04-23T07:46:43.393" UserId="29" />
  <row Id="8298" PostId="7369" Score="0" Text="You can trying using the `--in-peers` and `--out-peers` flags to set the desired peers count." CreationDate="2023-04-23T13:53:03.880" UserId="279" />
  <row Id="8308" PostId="8224" Score="0" Text="No, on polkadot-v0.9.38" CreationDate="2023-04-23T20:16:25.663" UserId="3598" />
  <row Id="8312" PostId="8224" Score="0" Text="Try upgrading to polkadot-v0.9.39 as noted [here](https://github.com/AstarNetwork/Astar/issues/910#issuecomment-1512536295) and see if the error goes away." CreationDate="2023-04-24T05:54:07.737" UserId="29" />
  <row Id="8314" PostId="8232" Score="0" Text="Your constructor takes `Balance` as an arg, not a boolean.&#xA;What about passing some initial value for e.g. `-a 1000000`?" CreationDate="2023-04-24T06:39:43.607" UserId="275" />
  <row Id="8315" PostId="8232" Score="0" Text="@Shunsuke Thank you so much. The error has been gone." CreationDate="2023-04-24T06:41:58.967" UserId="4120" />
  <row Id="8317" PostId="8232" Score="0" Text="Please provide the answer to your question or close it." CreationDate="2023-04-24T07:20:46.720" UserId="3317" />
  <row Id="8319" PostId="8103" Score="0" Text="Then, what's the value of this key at the same block the one you exported the data from ?" CreationDate="2023-04-24T07:55:04.340" UserId="165" />
  <row Id="8321" PostId="8043" Score="0" Text="Please provide the solution so it can be useful for others too!" CreationDate="2023-04-24T13:48:53.193" UserId="3317" />
  <row Id="8322" PostId="8043" Score="0" Text="I've not worked it out yet but I will post it when I find the answer." CreationDate="2023-04-24T15:23:43.513" UserId="380" />
  <row Id="8323" PostId="3615" Score="0" Text="it seems to be Zeitgeist parachain since the logs mention Battery Station" CreationDate="2023-04-25T04:13:43.557" UserId="83" />
  <row Id="8324" PostId="8240" Score="0" Text="There is no direct way to get waiting validators from runtime, I need to derive it and its not that simple to check if waiting validators are online or not as you answered ,my first thought was also the same as you answered but there are many other factors involved but thanks for the reply." CreationDate="2023-04-25T04:37:42.763" UserId="354" />
  <row Id="8328" PostId="8037" Score="0" Text="what do you mean won't access the queries and transactions? do you get an error? how did you try to access them? for the flip method on the flipper contract you would do `contract.tx[&quot;flip&quot;]` or `contract.tx.flip`" CreationDate="2023-04-25T11:27:25.587" UserId="100" />
  <row Id="8329" PostId="8256" Score="0" Text="if your Substrate chain implements the assets pallet, this post should answer your question: https://substrate.stackexchange.com/questions/3752/how-to-pay-transaction-fees-using-the-custom-token-created-by-using-pallet-asset?rq=1" CreationDate="2023-04-25T12:52:48.783" UserId="2025" />
  <row Id="8330" PostId="8243" Score="0" Text="Thanks for sharing, I just don't understand why with 1.69 it works on my local setup, and on digitalocean, which is the same Ubuntu, it does not work with 1.69 (with 1.68 it seams to works)..." CreationDate="2023-04-25T12:56:21.567" UserId="4083" />
  <row Id="8331" PostId="8037" Score="0" Text="The issue is the query, txn and other objects are marked as private in the api metadata." CreationDate="2023-04-25T12:57:41.927" UserId="351" />
  <row Id="8333" PostId="8256" Score="4" Text="Does this answer your question? [How to pay transaction fees using the custom token created by using pallet\_assets?](https://substrate.stackexchange.com/questions/3752/how-to-pay-transaction-fees-using-the-custom-token-created-by-using-pallet-asset)" CreationDate="2023-04-25T13:20:39.477" UserId="4081" />
  <row Id="8334" PostId="8255" Score="1" Text="Thanks all. I do have a private fork already that I was using for experimenting with, let me use that. For making PRs, the contributing doc is somehow not very clear that patches should go on a private fork." CreationDate="2023-04-25T14:00:50.917" UserId="4135" />
  <row Id="8335" PostId="8253" Score="0" Text="Thanks for your response. I am interested in pay_tips as a solution, though I am not sure how it works completely. Do you know if the tip is awarded to the creator every transfer? Is it voluntary for the buyer each time or is it only voluntary during the creation?" CreationDate="2023-04-25T14:05:06.600" UserId="4132" />
  <row Id="8336" PostId="8253" Score="0" Text="Make a separate question for it and I'll make sure it gets answered!" CreationDate="2023-04-25T14:44:05.813" UserId="3317" />
  <row Id="8337" PostId="5005" Score="0" Text="The link to `lib.rs#L371` is not a permalink. Here is one for the same file at the time when you posted this answer: https://github.com/paritytech/substrate/blob/9476d2157a0d266677dee144a8a7bc44a6b821e1/frame/system/src/lib.rs#L371 (I updated the answer)" CreationDate="2023-04-25T15:00:32.643" UserId="3123" />
  <row Id="8338" PostId="4965" Score="0" Text="That would be useful in this case: https://substrate.stackexchange.com/questions/8215/benchmark-failing-extrinsics with a `#[cfg(feature = &quot;runtime-benchmarks&quot;)]`" CreationDate="2023-04-25T15:04:04.277" UserId="3123" />
  <row Id="8339" PostId="8253" Score="0" Text="Just made the separate question, thanks. https://substrate.stackexchange.com/questions/8263/how-does-the-pay-tips-parameter-work-for-nfts" CreationDate="2023-04-25T15:07:59.147" UserId="4132" />
  <row Id="8341" PostId="8265" Score="0" Text="This is very helpful, thank you. Is there an estimated time frame for the coupled pallet  royalties a requirement of NFT sales?" CreationDate="2023-04-25T15:57:04.263" UserId="4132" />
  <row Id="8342" PostId="8265" Score="0" Text="It is actively being developed upon stay close." CreationDate="2023-04-25T16:01:50.607" UserId="29" />
  <row Id="8343" PostId="8259" Score="0" Text="I am getting the output `2023-04-25 18:42:36 Building chain spec `. Am I missing anything?" CreationDate="2023-04-25T16:43:20.777" UserId="3437" />
  <row Id="8344" PostId="8259" Score="0" Text="That is the first line. You can debug it by removing the `jq` pipe. Otherwise please extend your Q about what binary you are using." CreationDate="2023-04-25T17:11:25.900" UserId="94" />
  <row Id="8345" PostId="8259" Score="1" Text="I got the issue. Thanks. The path is '.genesis.runtime.palletBalances.balances'" CreationDate="2023-04-25T17:24:08.133" UserId="3437" />
  <row Id="8346" PostId="8262" Score="0" Text="Hi Ruben, I don't think this error is related to zombienet but I will try to reproduce." CreationDate="2023-04-25T17:25:58.550" UserId="279" />
  <row Id="8347" PostId="8260" Score="0" Text="Please review this: https://substrate.stackexchange.com/questions/6042/substrate-change-node-template-from-poa-to-pos" CreationDate="2023-04-25T17:31:33.907" UserId="29" />
  <row Id="8348" PostId="8267" Score="0" Text="I see, thank you. I was able to create assets with assetManager pallet" CreationDate="2023-04-25T19:57:16.637" UserId="3708" />
  <row Id="8349" PostId="8103" Score="0" Text="I have attached the screenshot. That shows collator adress before export-state and after export-state" CreationDate="2023-04-25T20:17:25.353" UserId="3327" />
  <row Id="8350" PostId="1423" Score="0" Text="@Squirrel the link doesn't work anymore." CreationDate="2023-04-26T04:45:07.520" UserId="139" />
  <row Id="8351" PostId="1428" Score="0" Text="While this answer does make sense I have a follow up question, why not entirely skip trait bounds by default when deriving `TypeInfo`? Are there cases where we actually need this ?" CreationDate="2023-04-26T04:53:23.003" UserId="139" />
  <row Id="8352" PostId="8268" Score="0" Text="Do you require randomness in contract execution or within a pallet?" CreationDate="2023-04-26T08:21:41.037" UserId="380" />
  <row Id="8353" PostId="4174" Score="0" Text="Fyi if you want to compile the runtime dir directly then `cargo check --target=wasm32-unknown-unknoun --no-default-features` gets rid of the js error." CreationDate="2023-04-26T11:20:30.933" UserId="85" />
  <row Id="8354" PostId="8255" Score="1" Text="Please feel free to submit a PR that makes the contributing doc more clear. That would be really helpful!" CreationDate="2023-04-26T11:24:18.077" UserId="85" />
  <row Id="8355" PostId="8277" Score="0" Text="in my case the computation offchain affects the other 4 seconds because its done during block import so it should affect the weight, but i think you are right, i remember tests showing an estimate of how many seconds it take" CreationDate="2023-04-26T12:21:52.133" UserId="3319" />
  <row Id="8356" PostId="8037" Score="0" Text="yes, that is a design decision and very unlikely to change. unless you provide more info on what you are trying to achieve, I am unable to help" CreationDate="2023-04-26T13:04:23.340" UserId="100" />
  <row Id="8357" PostId="8275" Score="0" Text="Thanks for replay, It Solved" CreationDate="2023-04-26T15:05:12.473" UserId="4065" />
  <row Id="8358" PostId="8280" Score="2" Text="Thank you for noting this. I will let the docs team know asap" CreationDate="2023-04-26T18:07:51.193" UserId="29" />
  <row Id="8359" PostId="8283" Score="0" Text="Of a pallet different than FRAME System? Or for FRAME System? (the default for Substrate blockchains)" CreationDate="2023-04-26T19:27:32.493" UserId="28" />
  <row Id="8360" PostId="8283" Score="0" Text="Might be duplicate of: https://substrate.stackexchange.com/questions/180/how-can-we-get-a-snapshot-of-all-balances-at-a-certain-block" CreationDate="2023-04-26T19:29:31.063" UserId="28" />
  <row Id="8362" PostId="8283" Score="0" Text="@ShawnTabrizi I'm building new custom pallet, their I need to fetch all the accounts present in our chain_state and then increase some balance.How to perform this?" CreationDate="2023-04-27T05:30:26.720" UserId="555" />
  <row Id="8365" PostId="8256" Score="0" Text="i have followed [this](https://substrate.stackexchange.com/questions/3752/how-to-pay-transaction-fees-using-the-custom-token-created-by-using-pallet-asset) and made an Api for `SignedExtension` but still the fees is getting deducted from the native token the link for my api is [api](https://github.com/karanvir12/Asset_Api.git)" CreationDate="2023-04-27T05:35:45.883" UserId="2348" />
  <row Id="8366" PostId="8283" Score="0" Text="What do you mean &quot;change&quot;? Through transfer or migration?" CreationDate="2023-04-27T06:35:00.337" UserId="251" />
  <row Id="8367" PostId="8283" Score="0" Text="@AurevoirXavier I need to add 10 unit balance to all the accounts after every 5 blocks. Can we Do it?" CreationDate="2023-04-27T07:08:35.637" UserId="555" />
  <row Id="8368" PostId="8283" Score="0" Text="Alright. My question is do you want to do this by sending transactions or making this a logic of this pallet?" CreationDate="2023-04-27T07:35:50.430" UserId="251" />
  <row Id="8369" PostId="8280" Score="1" Text="Contributions will be welcomed :) https://github.com/substrate-developer-hub/substrate-docs/pull/1974" CreationDate="2023-04-27T08:33:09.480" UserId="167" />
  <row Id="8370" PostId="8283" Score="0" Text="@AurevoirXavier I need to make a logic in a custom pallet in which after every 5 block all account's(alice,bob etc.) balances should increase by 10 unit. Is this clear?" CreationDate="2023-04-27T08:54:50.473" UserId="555" />
  <row Id="8371" PostId="3758" Score="0" Text="`error[E0277]: the trait bound `pallet_assets::Pallet&lt;Runtime&gt;: hidden_include::traits::fungible::Unbalanced&lt;AccountId32&gt;` is not satisfied`. Getting this error, can someone face this error while configuring `pallet_asset_tx_payment`" CreationDate="2023-04-27T09:44:17.713" UserId="2844" />
  <row Id="8372" PostId="8111" Score="0" Text="`error[E0277]: the trait bound `pallet_assets::Pallet&lt;Runtime&gt;: hidden_include::traits::fungible::Unbalanced&lt;AccountId32&gt;` is not satisfied. Getting this error, can someone face this error while configuring `pallet_asset_tx_payment`" CreationDate="2023-04-27T09:46:17.787" UserId="2844" />
  <row Id="8374" PostId="8285" Score="0" Text="this worked thanks" CreationDate="2023-04-27T11:42:02.530" UserId="3319" />
  <row Id="8375" PostId="8043" Score="0" Text="@DaanvanderPlas I've added an answer below which identifies where the transfers are coming from." CreationDate="2023-04-27T12:41:37.043" UserId="380" />
  <row Id="8376" PostId="8288" Score="1" Text="it actually worked by removing the type though i remember it was complaining in the begining about the type not been know so i had to specify it, also using T::SignatureLength wont work, it says `use of generic parameter from outer function`" CreationDate="2023-04-27T12:59:39.223" UserId="3319" />
  <row Id="8377" PostId="8286" Score="0" Text="How to convert BlockNumber into i32?" CreationDate="2023-04-27T14:31:44.033" UserId="555" />
  <row Id="8378" PostId="8286" Score="0" Text="e.g. `let n = n.saturated_into::&lt;u32&gt;()`, https://paritytech.github.io/substrate/master/sp_arithmetic/traits/trait.SaturatedConversion.html#method.saturated_into" CreationDate="2023-04-27T14:41:42.623" UserId="251" />
  <row Id="8379" PostId="8286" Score="0" Text="what dependency need to add for this?" CreationDate="2023-04-27T17:43:46.227" UserId="555" />
  <row Id="8380" PostId="8286" Score="0" Text="I have already sent the crate's link in the previous comment." CreationDate="2023-04-27T17:52:26.023" UserId="251" />
  <row Id="8382" PostId="7682" Score="0" Text="I would recommend you to review this answer since it has some inconsistencies like the type WasmExecutionMethod in the frame_system::Config. That type does not exist for the frame_system pallet." CreationDate="2023-04-27T18:25:23.667" UserId="194" />
  <row Id="8383" PostId="7663" Score="0" Text="Your hardware should be fine. I think the problem resides specifically for the release 0.9.37 and mac. I face the same issue and trying with different rust toolset i cannot get rid of the issue in the validator." CreationDate="2023-04-27T18:27:26.963" UserId="194" />
  <row Id="8384" PostId="8224" Score="0" Text="I've upgraded the node client to v0.9.40, but still have the same issue, any other ideas of what could be causing the issue?" CreationDate="2023-04-28T00:06:56.003" UserId="3598" />
  <row Id="8385" PostId="8286" Score="0" Text="Never ever do this! This will so easily break your runtime. This is just wrong." CreationDate="2023-04-28T09:00:58.340" UserId="73" />
  <row Id="8386" PostId="8300" Score="0" Text="Thanks, I'll give that a try. But I think `where` bounds _should_ be able to constrain associated type to exact types? See e.g. the function `f` here: https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2021&amp;gist=66e91b43b2338aead2320a8f4c46e4a2" CreationDate="2023-04-28T13:21:24.597" UserId="1779" />
  <row Id="8387" PostId="8300" Score="0" Text="Ah you are right, for associated types it works. I assumed it is a generic, but is *should* be an associated type. Anyway, keeping it generic is still a good idea. I updated the answer." CreationDate="2023-04-28T13:45:15.127" UserId="94" />
  <row Id="8388" PostId="8289" Score="1" Text="&gt; &quot;The fee is doubled when the above call is batched but this is still small:&quot;&#xA;&#xA;&#xA;You putting the same transaction into the batch twice: https://github.com/prosopo/batching/blob/fbe35448400be5338b3a12d4c9ff66b3bd83ec85/src/txs.ts#L65" CreationDate="2023-04-28T17:35:34.907" UserId="3098" />
  <row Id="8389" PostId="8289" Score="1" Text="Secondly, it is not related to sub-calls within a contract. I have cloned the repo and tried putting this line https://github.com/prosopo/batching/blob/fbe35448400be5338b3a12d4c9ff66b3bd83ec85/contract/lib.rs#L105 inside faucet_with_subcall() and it does produce the same TX Fee charge" CreationDate="2023-04-28T17:59:15.187" UserId="3098" />
  <row Id="8390" PostId="8305" Score="0" Text="Thank you for your help. But I got some errors. I will include the error information in the question, so could you help me?" CreationDate="2023-04-29T02:49:15.803" UserId="3114" />
  <row Id="8391" PostId="8304" Score="0" Text="let account_id = H256::from([1u8; 32]);" CreationDate="2023-04-29T05:15:14.843" UserId="3559" />
  <row Id="8392" PostId="8304" Score="0" Text="`use ink_env::AccountId;&#xA;use sp_core::H256;&#xA;use core::convert::From;&#xA;&#xA;impl From&lt;AccountId&gt; for H256 {&#xA;    fn from(account_id: AccountId) -&gt; Self {&#xA;        let mut h256 = H256::default();&#xA;        h256.as_mut().copy_from_slice(&amp;account_id[..]);&#xA;        h256&#xA;    }&#xA;}`" CreationDate="2023-04-29T06:27:01.933" UserId="3559" />
  <row Id="8393" PostId="8307" Score="0" Text="Thank you for your help. But your code does not work. I got an error. &quot;error[E0599]: no method named `to_ss58check` found for struct `H256` in the current scope&quot;. Do you know how to solve this ?" CreationDate="2023-04-29T09:17:55.380" UserId="3114" />
  <row Id="8394" PostId="8307" Score="0" Text="This is my test repositry using ink!4.0. https://github.com/realtakahashi/account_id_test" CreationDate="2023-04-29T09:19:06.593" UserId="3114" />
  <row Id="8396" PostId="8307" Score="1" Text="Hi Takahashi&#xA;I've just gone through the `sp_core::crypto` code and it is apparent you cannot use `ss58Codec` trait inside ink! as it requires `std` and ink! (wasm) does not allow that&#xA;&#xA;https://github.com/paritytech/substrate/blob/74b2c92066ec3abcb612faa9272f246ae339fab3/primitives/core/src/crypto.rs#L259C25-L266&#xA;&#xA;As I said in my answer above, if you simply want to convert the `AccountId` to string, use the hex approach, it's much more simple and very efficient computation wise (gas efficient also)." CreationDate="2023-04-29T10:52:23.943" UserId="4117" />
  <row Id="8397" PostId="3397" Score="0" Text="This is discussed &amp; closed [here](https://github.com/paritytech/substrate-telemetry/issues/471) coz of not being reproduce-able . It happens to me from only when starting the first test node for the first time fwiw." CreationDate="2023-04-30T09:43:13.993" UserId="3957" />
  <row Id="8401" PostId="8314" Score="0" Text="Thanks for your answer ! I launched my parachain with &quot;./target/release/parachain-template-node \ --alice \ --collator \ --force-authoring \ --chain raw-parachain-chainspec.json \ --base-path /tmp/parachain/alice \ --port 40333 \ --ws-port 8844 \ -- \ --execution wasm \ --chain ../polkadot/raw-local-chainspec.json \ --port 30343 \ --ws-port 9977&quot;. &#xA;&#xA;I then tried to connect as you said with : https://polkadot.js.org/apps/?rpc=wss%3A%2F%2F127.0.0.1%3A8844#/explorer but it tells me &quot;waiting to establish a connexion&quot;." CreationDate="2023-04-30T13:23:34.243" UserId="4083" />
  <row Id="8402" PostId="8314" Score="0" Text="You don't have a domain name and certificate. So, you can't use https/wss. And you should also set allow insecure content in your browser setting for polkadot.js.org. Since you are trying to connect to ws through https. polkadot.js.org is https, and your node is ws." CreationDate="2023-04-30T17:03:23.657" UserId="251" />
  <row Id="8403" PostId="8314" Score="0" Text="Basically, I putted my local node, but I have a domain and certificate with nginx : it is testparachainkusama.fr." CreationDate="2023-04-30T18:44:12.507" UserId="4083" />
  <row Id="8404" PostId="8314" Score="0" Text="My relay and parachain are running, but I don't manage to connect to my parachain with 8844 port ! Am I clear ?" CreationDate="2023-04-30T18:45:03.007" UserId="4083" />
  <row Id="8405" PostId="8314" Score="0" Text="Nope. From the URL that you gave me. Apparently, you are using wss://127.0.0.1 instead of a domain name. It's totally wrong. Use ws + ip or wss + domain name." CreationDate="2023-04-30T18:47:42.547" UserId="251" />
  <row Id="8406" PostId="8314" Score="0" Text="https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Ftestparachainkusama.fr%3A443#/explorer&#xA;&#xA;Here is my node ! I have a domain ! I just don't manage to connect to my parachain ! (I want to make a parachain upgrade) ! When I do https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Ftestparachainkusama.fr%3A8844#/explorer it does not work !" CreationDate="2023-04-30T18:57:06.937" UserId="4083" />
  <row Id="8407" PostId="8314" Score="0" Text="Add `--rpc-cors all --unsafe-ws-external` to your boot flags. This should be only used on full node or dev env." CreationDate="2023-04-30T19:15:54.813" UserId="251" />
  <row Id="8408" PostId="8314" Score="0" Text="Ok, so I stop my parachain, I ask for a new paraID, I run it with the same comment and add your two arguments ; then I will be able to see it on wss://testparachainkusama.fr:8844. Right ? If yes, thanks for your help AurevoirXavier" CreationDate="2023-04-30T19:20:38.273" UserId="4083" />
  <row Id="8409" PostId="8314" Score="0" Text="I'm not sure if wss work with port. I recommend using ws://127.0.0.1:8844." CreationDate="2023-04-30T19:23:18.910" UserId="251" />
  <row Id="8410" PostId="8314" Score="0" Text="I have the certificate with my domain testparachainkusama.fr. &#xA;&#xA;I will try wss://testparachainkusama.fr:8844, and if does not work, i will put ws://testparachainkusama.fr:8844 !" CreationDate="2023-04-30T19:24:37.463" UserId="4083" />
  <row Id="8411" PostId="8307" Score="0" Text="Hi. Ashutosh! Thanks to you, I was able to implement. I post my code as my answer." CreationDate="2023-05-01T00:16:16.573" UserId="3114" />
  <row Id="8413" PostId="8289" Score="0" Text="Good spots. I see what you mean, so the push to the `Mapping` is where the charge is coming from. Is the fee correct?" CreationDate="2023-05-01T08:26:45.067" UserId="380" />
  <row Id="8414" PostId="8322" Score="0" Text="It was just because of your rust version issue. Kindly downgrade the nightly version." CreationDate="2023-05-01T11:06:47.603" UserId="2372" />
  <row Id="8415" PostId="8314" Score="0" Text="If I don't use wss, it tells me I can't connect with ws to a https. But with wss://testparachainkusama.fr:8844 it is still looking for a connexion. Any ideas ?" CreationDate="2023-05-02T07:15:34.070" UserId="4083" />
  <row Id="8416" PostId="8289" Score="0" Text="Yes. This is correct." CreationDate="2023-05-02T09:13:22.457" UserId="3098" />
  <row Id="8417" PostId="8324" Score="0" Text="so you mean every parachain block is verified twice, first by the parachain validators and second by the relay chain validators and once its verfied a refrence to that block will be included in the next relay chain block and even if you attack the parachain you still have to attack the relay chain !" CreationDate="2023-05-02T09:27:26.163" UserId="4152" />
  <row Id="8418" PostId="8134" Score="0" Text="Any one can please help me on this?" CreationDate="2023-05-02T09:57:24.960" UserId="3327" />
  <row Id="8420" PostId="8308" Score="0" Text="Have you looked at: https://docs.substrate.io/tutorials/build-a-blockchain/simulate-network/?" CreationDate="2023-05-02T10:13:21.543" UserId="3317" />
  <row Id="8421" PostId="8239" Score="1" Text="My guess offhand is that the parachain has slightly different &quot;extra&quot; properties that it expects to see in a transaction from those that the default `SubstrateConfig::ExtraParams` is adding (this would lead to the node being unable to validate the TX and I wouldn't be surprised if it would spit out a codec error because the bytes it's trying to decode aren't what it expects). For the default substrate node, what it expects is defined here: https://github.com/paritytech/substrate/blob/890451221db37176e13cb1a306246f02de80590a/bin/node/runtime/src/lib.rs#L1847. Is that the same for the parachain?" CreationDate="2023-05-02T10:16:56.737" UserId="474" />
  <row Id="8422" PostId="8245" Score="0" Text="I'm not super familiar with the Polkadot.js interface so I can't be much help there I'm afraid, but I note that the &quot;signer_payload&quot; JSON you printed doesn't look to be correctly parsed; it looks like almost everything is just at some default value (and your remark itself is lost)." CreationDate="2023-05-02T10:23:48.597" UserId="474" />
  <row Id="8423" PostId="8079" Score="0" Text="You found your solution?" CreationDate="2023-05-02T10:34:08.473" UserId="3317" />
  <row Id="8424" PostId="8315" Score="1" Text="Rialto is a Relay chain and you need to add modules in your both chains and make them available in your runtime too. Then make the relay(the middle service) compatiable to both chains." CreationDate="2023-05-02T11:02:45.757" UserId="2372" />
  <row Id="8425" PostId="8332" Score="0" Text="Your question is not clear, but you can add any pallet to your runtime unless it is not changing the consensus. Other thing you need to take care of is the epoch time it cannot be changed via runtime upgrade so for that also you need to start your chain again." CreationDate="2023-05-02T11:35:30.927" UserId="354" />
  <row Id="8426" PostId="8325" Score="1" Text="I tried to build this project but I am getting errors and some dependencies git-repos have been deleted" CreationDate="2023-05-02T12:11:58.030" UserId="2960" />
  <row Id="8427" PostId="8332" Score="0" Text="@ShubhamGupta I am just asking what kind of changes other than consensus require us to restart the chain from block zero, and if there are any pallets that can only be added at genesis. And yes I am aware that we cannot change epoch time after chain starts." CreationDate="2023-05-02T12:24:13.843" UserId="4158" />
  <row Id="8428" PostId="8315" Score="0" Text="@Arunjot Singh so Rialto is a relay chain and Rialto-parachain is a parachain connected to Rialto relay ? Is there any instruction on how to go about adding the modules ?" CreationDate="2023-05-02T12:39:33.660" UserId="2960" />
  <row Id="8429" PostId="8315" Score="0" Text="@Arunjot Singh. This high level architecture shows that both Rialto and Millau are solo chains and neither is relay chain https://github.com/paritytech/parity-bridges-common" CreationDate="2023-05-02T12:45:43.350" UserId="2960" />
  <row Id="8430" PostId="8079" Score="0" Text="No I did not find any solution yet? @Daan" CreationDate="2023-05-02T13:59:48.560" UserId="3327" />
  <row Id="8431" PostId="8329" Score="0" Text="For simple values you can use `getStorage` and avoid bloating contract size by creating unnecessary getters." CreationDate="2023-05-02T18:45:38.850" UserId="380" />
  <row Id="8432" PostId="8315" Score="0" Text="The high level architecture documentation is not updated. Earlier both were solo-chains but now Rialto is a relay chain." CreationDate="2023-05-03T04:39:40.523" UserId="2372" />
  <row Id="8433" PostId="8315" Score="0" Text="You need add bridges modules(pallets) in your chain, and make them compatiable to your chain. The only issue is going to come in your way is dependency issue. Otherwise it is possible." CreationDate="2023-05-03T04:41:53.510" UserId="2372" />
  <row Id="8435" PostId="8239" Score="0" Text="This is the current `SignedExtra` of my parachain:&#xA;&#xA;```/// The SignedExtension to the basic transaction logic.&#xA;pub type SignedExtra = (&#xA;	frame_system::CheckNonZeroSender&lt;Runtime&gt;,&#xA;	frame_system::CheckSpecVersion&lt;Runtime&gt;,&#xA;	frame_system::CheckTxVersion&lt;Runtime&gt;,&#xA;	frame_system::CheckGenesis&lt;Runtime&gt;,&#xA;	frame_system::CheckEra&lt;Runtime&gt;,&#xA;	frame_system::CheckNonce&lt;Runtime&gt;,&#xA;	frame_system::CheckWeight&lt;Runtime&gt;,&#xA;	pallet_transaction_payment::ChargeTransactionPayment&lt;Runtime&gt;,&#xA;);```&#xA;&#xA;Should I add something to it, in order to submit transactions defined in my own pallet?" CreationDate="2023-05-03T07:30:59.137" UserId="3989" />
  <row Id="8437" PostId="8239" Score="0" Text="Adding my custom structs to the type gives `the trait 'SignedExtension' is not implemented for ...`, I assume that I should implement this trade for all the structs? Any good documentation/examples I can follow on that?" CreationDate="2023-05-03T07:40:45.563" UserId="3989" />
  <row Id="8438" PostId="8341" Score="0" Text="hey @AurevoirXavier, can you please elaborate a bit more on your answer, if you have time ofc  seems really arbitrary for me, and I've already gone through the substrate-node-template, what should I be looking for specifically in the polkadot repo and how did you first approach this initially?" CreationDate="2023-05-03T07:56:12.893" UserId="3310" />
  <row Id="8439" PostId="8343" Score="0" Text="thank you, I appreciate your time and effort to write this" CreationDate="2023-05-03T08:31:23.457" UserId="3310" />
  <row Id="8440" PostId="8348" Score="1" Text="I’m voting to close this question because it doesn't fit into the Substrate SE. This is a question about the builder program and not about any technical details." CreationDate="2023-05-03T12:37:38.697" UserId="73" />
  <row Id="8441" PostId="8347" Score="0" Text="Can you provide a small reproducible example? So you just store the type in the storage and load it?" CreationDate="2023-05-03T13:01:18.787" UserId="73" />
  <row Id="8442" PostId="8332" Score="0" Text="Technically speaking you could migrate your PoA chain to a PoS chain and not have to restart your chain at all." CreationDate="2023-05-03T13:42:32.370" UserId="29" />
  <row Id="8443" PostId="7956" Score="0" Text="please give more context to your question, it's not easy to understand as it is" CreationDate="2023-05-03T14:02:02.440" UserId="494" />
  <row Id="8444" PostId="8224" Score="0" Text="Okay, then please create a Github issue [here](https://github.com/paritytech/polkadot/issues). You can reference this closed [issue](https://github.com/paritytech/polkadot/issues/6624) as well. Please update this post once you have done so. Thanks!" CreationDate="2023-05-03T14:24:44.110" UserId="29" />
  <row Id="8446" PostId="8345" Score="2" Text="When scaling to that number of validators with AURA, make sure to include a &quot;punishment&quot; mechanism to deal with (remove) inactive validators otherwise block production could be affected." CreationDate="2023-05-03T15:08:14.920" UserId="29" />
  <row Id="8447" PostId="1480" Score="0" Text="I know this is old, but for others who bump into this, I think what you were looking at was this:&#xA;https://github.com/paritytech/ink-examples/blob/9e6c800b498c0da74e9a29fe5470696b63fee49f/call-runtime/lib.rs#L97" CreationDate="2023-05-03T16:19:31.353" UserId="4166" />
  <row Id="8449" PostId="8342" Score="0" Text="Thanks for such a detailed answer! Could you please elaborate more on this.  &#xA;`&gt; 4 - Can the use of sequentially numbered ManualKeys cause collisions?&#xA;Yes, if you use sequentially numbered ManualKeys for multiple fields, it can cause collisions. It's important to ensure that each ManualKey value is unique within the storage struct.`&#xA;&#xA;If the ManualKey assigned to each field is unique, Can they still overlap with each other? Is it possible that a given field (maybe some complex struct?) occupies more than one storage key? Wouldn't it through error like exceeded buffer capacity in such case?" CreationDate="2023-05-03T18:37:42.580" UserId="1839" />
  <row Id="8450" PostId="8332" Score="0" Text="@Bruno The main issue is migrating consensus from Aura to Babe, and as far as I understand that is not possible mid flight. And I suppose its possible to have some kind of PoS working woth Aura, but that's not what we wanted." CreationDate="2023-05-03T19:27:23.103" UserId="4158" />
  <row Id="8451" PostId="8332" Score="0" Text="You could also run a new chain with PoS and migrate the data from the PoA chain this is doable and would avoid restarts and maintain data integrity -- not easy but it is an option" CreationDate="2023-05-03T21:59:47.323" UserId="29" />
  <row Id="8452" PostId="8354" Score="1" Text="What is the issue here? Please clarify your question. If you want to configure the collective pallet you can look [here](https://github.com/paritytech/substrate/blob/71d749c74e43c7a840c94fcbbdd2b0172a21d473/bin/node/runtime/src/lib.rs#L999-L1017). If you want to configure the scheduler pallet you can look [here](https://github.com/paritytech/substrate/blob/71d749c74e43c7a840c94fcbbdd2b0172a21d473/bin/node/runtime/src/lib.rs#L356-L375)" CreationDate="2023-05-03T22:58:56.227" UserId="29" />
  <row Id="8453" PostId="8354" Score="0" Text="added more context, thank you" CreationDate="2023-05-03T23:06:34.450" UserId="1950" />
  <row Id="8454" PostId="8354" Score="0" Text="Please include the Github link to your repo." CreationDate="2023-05-03T23:20:36.403" UserId="29" />
  <row Id="8455" PostId="8350" Score="0" Text="thank you Jeff. apologies for rambling a bit, i was providing context for others and my future self in the lead up to the question that was asked at the end. i'm not fluent on the topic and had to learn about it to try to ask the question. the question was specifically concerning whether or not there was an opportunity to add more marker traits like `CryptoRng` in trait bounds in Substrate, on the assumption that'd be necessary to indicate its implementation should be cryptographically secure, satisfying the additional properties of a CSPRNG. i gather your answer is that it is not necessary?" CreationDate="2023-05-04T00:09:49.760" UserId="83" />
  <row Id="8456" PostId="8351" Score="0" Text="[here](https://paritytech.github.io/ink/ink_env/test/index.html#functions) are the function where you can set caller, calle or contract" CreationDate="2023-05-04T02:18:37.637" UserId="2844" />
  <row Id="8461" PostId="8354" Score="0" Text="@Bruno still the project is on private mode due to management decisions , thank you" CreationDate="2023-05-04T04:50:40.443" UserId="1950" />
  <row Id="8462" PostId="8347" Score="0" Text="@bkchr Yes, just store/load a big object array. Add an issue https://github.com/paritytech/substrate/issues/14075 for more detail." CreationDate="2023-05-04T06:00:50.397" UserId="523" />
  <row Id="8463" PostId="8361" Score="0" Text="thanks.but,I can't see &quot;sby-faucet&quot; on my screen.but,I've got faucet on the Portal though." CreationDate="2023-05-04T09:07:51.873" UserId="4155" />
  <row Id="8464" PostId="8362" Score="0" Text="thanks.I got faucet.still can't find the #shibuya-faucet channel on discord though.thank you." CreationDate="2023-05-04T09:09:40.900" UserId="4155" />
  <row Id="8465" PostId="8347" Score="1" Text="The first panic that you posted was in `storage_map_final_key`, which would be very concerning and has nothing to do with the const generics. Anyway, good that it is resolved." CreationDate="2023-05-04T09:30:56.563" UserId="94" />
  <row Id="8466" PostId="8350" Score="1" Text="CryptoRng is not part of rust's core/std so it's irrelevant here.  Also it's meaning is contextual, which is confusing, and prevents it being relevant for hashmaps anyways" CreationDate="2023-05-04T09:49:02.830" UserId="1810" />
  <row Id="8467" PostId="7981" Score="0" Text="How is the signature of the event encoded? I suspect it is in Topic[0]?" CreationDate="2023-05-04T11:37:00.347" UserId="4146" />
  <row Id="8468" PostId="6922" Score="0" Text="what do you mean &quot;scale-encoded events&quot;? What exactly do you scale-encode in the ABI?" CreationDate="2023-05-04T12:11:32.737" UserId="4146" />
  <row Id="8469" PostId="8352" Score="1" Text="Thanks, the `use ink::codegen::Env;` was what I was missing" CreationDate="2023-05-04T14:21:45.217" UserId="3711" />
  <row Id="8470" PostId="8347" Score="4" Text="I’m voting to close this question because it wasn't really a Substrate issue." CreationDate="2023-05-04T15:05:49.753" UserId="73" />
  <row Id="8471" PostId="8359" Score="0" Text="Without any examples, it is impossible to help you." CreationDate="2023-05-04T15:06:32.167" UserId="73" />
  <row Id="8472" PostId="8359" Score="0" Text="Use this post as a guideline: https://substrate.stackexchange.com/questions/6042/substrate-change-node-template-from-poa-to-pos" CreationDate="2023-05-04T16:18:41.830" UserId="29" />
  <row Id="8474" PostId="8353" Score="0" Text="Answered here: https://substrate.stackexchange.com/questions/6590/how-to-decode-error-that-occurred-while-calling-a-write-method-on-ink-contract/6597#6597" CreationDate="2023-05-05T06:33:00.443" UserId="567" />
  <row Id="8475" PostId="8316" Score="0" Text="Does this answer your question: https://substrate.stackexchange.com/questions/587/how-to-decode-ink-smart-contract-call-and-event-data" CreationDate="2023-05-05T08:13:27.957" UserId="3317" />
  <row Id="8476" PostId="7953" Score="0" Text="Excellent, thanks!" CreationDate="2023-05-05T08:15:26.367" UserId="3317" />
  <row Id="8477" PostId="8173" Score="0" Text="Can you elaborate a bit more?" CreationDate="2023-05-05T08:39:49.723" UserId="3317" />
  <row Id="8478" PostId="8173" Score="1" Text="@DaanvanderPlas i want to decrease the contract deployment fees on my chain,currently if i deploy an erc721 wasm contract it costs around (6 tokens) i want to decrease this amount how can i do that?" CreationDate="2023-05-05T09:35:44.553" UserId="2281" />
  <row Id="8479" PostId="8367" Score="0" Text="That works wonderfully, thanks for your help again! :)" CreationDate="2023-05-05T09:57:08.793" UserId="3711" />
  <row Id="8480" PostId="7981" Score="0" Text="Hope this helps: https://substrate.stackexchange.com/questions/8316/how-to-identify-received-contract-event/8376#8376" CreationDate="2023-05-05T10:13:06.540" UserId="3317" />
  <row Id="8481" PostId="7997" Score="0" Text="solve the issue on substrate-node-template repo by running rustup override set nightly-2023-01-01 &amp;&amp; rustup target add wasm32-unknown-unknown." CreationDate="2023-05-05T12:14:53.023" UserId="4067" />
  <row Id="8482" PostId="8377" Score="0" Text="Could you post the full logs for one of the nodes?" CreationDate="2023-05-05T12:18:02.227" UserId="4081" />
  <row Id="8483" PostId="8370" Score="0" Text="It seems that I would need to recreate my own staking. Is it possible though, maybe somehow reuse the payout of staking?" CreationDate="2023-05-05T12:41:31.833" UserId="3625" />
  <row Id="8484" PostId="8371" Score="0" Text="The `setLoading()` function is not defined" CreationDate="2023-05-05T12:56:36.277" UserId="2446" />
  <row Id="8485" PostId="8371" Score="0" Text="I am getting this error -&gt; `Contract trapped during execution.`. But when i use the UI it doesn't give any errors, it just works." CreationDate="2023-05-05T13:38:34.647" UserId="2446" />
  <row Id="8486" PostId="8372" Score="1" Text="This is an ink! example how to use `call_runtime`: https://github.com/paritytech/ink-examples/tree/main/call-runtime." CreationDate="2023-05-05T14:32:01.583" UserId="227" />
  <row Id="8487" PostId="8370" Score="0" Text="I think that's impossible. Without the tweaking, pallet-staking's payout is binding with era." CreationDate="2023-05-05T17:30:59.020" UserId="251" />
  <row Id="8488" PostId="8382" Score="0" Text="https://github.com/paritytech/cargo-contract/issues/1058#issuecomment-1501225760" CreationDate="2023-05-06T01:13:27.720" UserId="2844" />
  <row Id="8489" PostId="8382" Score="0" Text="you can fix this issue using above link @Rahul navgire" CreationDate="2023-05-06T01:13:47.360" UserId="2844" />
  <row Id="8490" PostId="8347" Score="0" Text="@bkchr Add some more clues here&#xA;https://github.com/paritytech/substrate/issues/14075#issuecomment-1536972765" CreationDate="2023-05-06T01:54:02.347" UserId="523" />
  <row Id="8491" PostId="8375" Score="0" Text="Thank you for your comment.I've got a role(or tried )but,still can't see.so,I got cet on the portal and transfer to test wallet.thanks!" CreationDate="2023-05-06T11:56:30.577" UserId="4155" />
  <row Id="8492" PostId="8376" Score="0" Text="Genial! This helped a lot. Looking at `encoded_into_hash` source, I found that for event names shorter than 32 chars, their event ids are those names themselves, no hashing :) So &quot;Test::Created&quot; is simply `0x00546573743a3a43726561746564000000000000000000000000000000000000`." CreationDate="2023-05-06T16:25:38.357" UserId="4146" />
  <row Id="8493" PostId="8389" Score="0" Text="My current sc-client-db version is 0.10.0-dev, so should I up grade it to some other version?  here is the details of my cargo.lock&#xA;&#xA; [[package]]&#xA;name = &quot;sc-client-db&quot;&#xA;version = &quot;0.10.0-dev&quot;" CreationDate="2023-05-06T16:29:11.410" UserId="3327" />
  <row Id="8494" PostId="8377" Score="0" Text="Looks like the error is connecting to `ws://127.20.94.12` - this may be a network issue. Try replicating this issue with your nodes and your frontend all running on the same machine and use 127.0.0.1" CreationDate="2023-05-06T22:30:15.043" UserId="29" />
  <row Id="8495" PostId="7906" Score="0" Text="I also have the same problem. could you tell me how you solve it and what do you mean by &quot;call is from origin not specific account&quot;?. I am not sure what you mean by origin. Thanks." CreationDate="2023-05-02T16:23:59.717" UserId="4160" />
  <row Id="8496" PostId="8377" Score="0" Text="--ws-external --rpc-external --rpc-cors all have you enabled these flags in your command? or you try to connect with the local host." CreationDate="2023-05-07T05:11:12.337" UserId="2281" />
  <row Id="8497" PostId="6449" Score="1" Text="This is what it ended up being for me. I am marking this as solved, as the issue seems to have been fixed in the latest versions." CreationDate="2023-05-07T19:57:02.650" UserId="3517" />
  <row Id="8498" PostId="8387" Score="0" Text="Cool. This seems to fit  exactly my use case. Thanks a lot !" CreationDate="2023-05-08T02:25:39.483" UserId="3960" />
  <row Id="8499" PostId="8387" Score="0" Text="So, could you please mark this as the answer?" CreationDate="2023-05-08T02:28:55.857" UserId="251" />
  <row Id="8500" PostId="8389" Score="0" Text="You should take a look into the `sc-client-db`'s `Cargo.toml` to figure that out." CreationDate="2023-05-08T02:30:41.253" UserId="251" />
  <row Id="8501" PostId="8354" Score="0" Text="@Bruno I have ended up with this error https://substrate.stackexchange.com/questions/7785/error-submitting-setkeys-function-in-poa-chain-using-polkadotjs when trying to submit keys" CreationDate="2023-05-08T03:01:31.130" UserId="1950" />
  <row Id="8502" PostId="8393" Score="1" Text="duplicate of https://substrate.stackexchange.com/questions/8280/why-are-all-the-ink-playground-links-broken-in-the-official-substrate-docs-at-s" CreationDate="2023-05-08T04:00:27.353" UserId="83" />
  <row Id="8503" PostId="8393" Score="1" Text="I apologize for my insufficient confirmation and for asking a duplicate question." CreationDate="2023-05-08T04:09:47.177" UserId="3114" />
  <row Id="8504" PostId="8355" Score="0" Text="will there be an example or a document on this &#xA;&#xA;Use the scheduler pallet with the preimage pallet or you can use the scheduler pallet with the utility pallet's dispatchAs extrinsic." CreationDate="2023-05-08T07:01:44.807" UserId="1950" />
  <row Id="8505" PostId="8396" Score="0" Text="Check the steps on this tutorial: https://docs.substrate.io/tutorials/build-a-blockchain/build-local-blockchain/" CreationDate="2023-05-08T10:46:58.780" UserId="2762" />
  <row Id="8506" PostId="1852" Score="0" Text="Also, note that `cargo contract decode` cannot know which event to decode as the 'data' does not contain the event id. See https://substrate.stackexchange.com/questions/8316/how-to-identify-received-contract-event." CreationDate="2023-05-08T11:13:26.940" UserId="4146" />
  <row Id="8507" PostId="8398" Score="0" Text="I’m voting to close this question because this is not really a support question. &#xA;&#xA;`0.9.29` is quite old, please upgrade and then the wasmtime version will also be upgraded." CreationDate="2023-05-08T12:11:18.470" UserId="73" />
  <row Id="8509" PostId="8402" Score="0" Text="I am facing the same issue, these steps helped me" CreationDate="2023-05-08T12:54:14.980" UserId="3136" />
  <row Id="8510" PostId="4293" Score="0" Text="Did you work it out? I am also puzzled by this. I want to use the substrate node itself, not an external indexer (like here https://substrate.stackexchange.com/questions/35/is-there-a-good-indexer-for-substrate-chains-like-the-graph)." CreationDate="2023-05-08T13:01:42.010" UserId="4146" />
  <row Id="8511" PostId="8296" Score="0" Text="Which branch version you are using in other pallets ?" CreationDate="2023-05-08T13:14:00.907" UserId="406" />
  <row Id="8512" PostId="8355" Score="1" Text="There is an old one [here](https://www.youtube.com/live/sT0HaQRD-FU?feature=share&amp;t=1468). There is also one solely on the scheduler pallet [here](https://www.youtube.com/watch?v=olcuZHb4u88). There is also a section on the Polkadot wiki [here](https://wiki.polkadot.network/docs/maintain-guides-democracy#submitting-a-preimage). Moonbeam also has a good doc [here](https://docs.moonbeam.network/tokens/governance/proposals/proposals/#submitting-a-preimage-of-the-proposal)." CreationDate="2023-05-08T14:11:15.327" UserId="29" />
  <row Id="8513" PostId="6785" Score="0" Text="You can deploy with contract-UI https://contracts-ui.substrate.io/?rpc=wss://rpc.astar.network" CreationDate="2023-05-08T14:17:27.673" UserId="567" />
  <row Id="8514" PostId="8414" Score="0" Text="When you say, it does not work, what happens? What version of Astar are you using? Can you link the repo that is causing this issue? Do you also get the issue when you use `shibuya-dev` as the chain? Try using this template for zombienet: https://github.com/AstarNetwork/Astar/blob/master/third-party/zombienet/multi_parachains.toml" CreationDate="2023-05-08T19:47:30.363" UserId="29" />
  <row Id="8515" PostId="8386" Score="0" Text="Thanks! I now feel more aware of how the data is mapped under the hood. I wasn't aware that key generation is based on field name rather than positioning. I think it's worthwhile to mention it somewhere in the ink docs!" CreationDate="2023-05-08T20:52:14.493" UserId="1839" />
  <row Id="8516" PostId="8415" Score="0" Text="Can you link the repo? Or create a reproducible example." CreationDate="2023-05-08T20:53:44.620" UserId="29" />
  <row Id="8517" PostId="8386" Score="0" Text="The following texts seem conflicting with each other? `1. Auto storage key is generated based on the field's name, not on the position` and `2. The ordering matters for the layout of your structure.`" CreationDate="2023-05-08T20:57:28.377" UserId="1839" />
  <row Id="8518" PostId="8386" Score="1" Text="The storage key values(like `100` and `101`) don't depend on the ordering. But the data layout depends on it(actual bytes that we serialize into the storage) for layoutful types." CreationDate="2023-05-08T22:37:15.743" UserId="599" />
  <row Id="8521" PostId="8415" Score="0" Text="@Bruno https://github.com/Kianoush-Dortaj/substrate_dex/blob/main/frame/dex/src/lib.rs" CreationDate="2023-05-09T06:33:47.493" UserId="2722" />
  <row Id="8522" PostId="8415" Score="0" Text="@Bruno this is repo bro ." CreationDate="2023-05-09T06:34:03.613" UserId="2722" />
  <row Id="8526" PostId="8398" Score="0" Text="Thank you for your response @bkchr." CreationDate="2023-05-09T10:34:40.003" UserId="3327" />
  <row Id="8527" PostId="8398" Score="0" Text="So we decided to upgrde to v0.9.38. Will this security alert will vanish once we upggrade to that specific version?" CreationDate="2023-05-09T10:35:36.963" UserId="3327" />
  <row Id="8528" PostId="8414" Score="0" Text="When I try to do this I get undefined:&#xA;&#xA;const contract = new ethers.Contract(&#xA;      &quot;0x0000000000000000000000000000000000005004&quot;,&#xA;      xcmAstarAbi,&#xA;      wallet&#xA;    );&#xA;&#xA;console.log(contract.assets_reserve_transfer);&#xA;&#xA;&#xA;I'm using astar 58&#xA;repo: https://github.com/AstarNetwork/Astar&#xA;&#xA;I also tried with shibuya-dev and shiden-dev but I had the same problem" CreationDate="2023-05-09T12:56:26.510" UserId="3708" />
  <row Id="8530" PostId="8415" Score="1" Text="I do not think it makes sense to convert a 32 byte accountId to an assetId that is usually u32/u128. What are you trying to achieve? Perhaps you want a mapping between AccountId and AccountId that owns the asset?" CreationDate="2023-05-09T14:55:46.840" UserId="29" />
  <row Id="8531" PostId="8397" Score="0" Text="can you please elaborate more on requesting substrate when changes occur" CreationDate="2023-05-09T16:47:06.903" UserId="3319" />
  <row Id="8532" PostId="8397" Score="0" Text="for an example when an update is occur on a specific entry, these is a question related to an academic research, i introduce substrate to build a specific blockchain, but i'm asking if i can add a new layer on top of substrate" CreationDate="2023-05-09T16:58:58.790" UserId="3838" />
  <row Id="8534" PostId="8397" Score="0" Text="i dont think there is any barrier towards optimising substrate by building layers on top of it, we are runing a custom gossip network on top of it and substrate basically act as backend for all our services" CreationDate="2023-05-09T17:19:02.537" UserId="3319" />
  <row Id="8535" PostId="1086" Score="0" Text="https://github.com/Polkadot-Blockchain-Academy/pba-qualifier-exam" CreationDate="2023-05-09T20:28:15.970" UserId="83" />
  <row Id="8538" PostId="8410" Score="1" Text="To add context, it may be helpful to understand how and why ORML came about: https://github.com/paritytech/substrate/discussions/11530#discussion-4100579" CreationDate="2023-05-10T01:23:07.720" UserId="29" />
  <row Id="8539" PostId="8432" Score="0" Text="What is the question? You want to use your own account instead of Alice, Bob...?" CreationDate="2023-05-10T07:00:53.083" UserId="2762" />
  <row Id="8540" PostId="8432" Score="0" Text="Hi @Alex Bean &#xA;Thanks for your response,&#xA;Yes,I want my own account address instead of Alice,Bob." CreationDate="2023-05-10T07:52:43.047" UserId="4019" />
  <row Id="8541" PostId="8414" Score="0" Text="Can you try to do the same from Remix?" CreationDate="2023-05-10T09:00:57.623" UserId="529" />
  <row Id="8542" PostId="8436" Score="0" Text="Good question, not sure if you can get the historic as is a constant defined in the polkadot repository: https://github.com/paritytech/polkadot/blob/405fdeb214ef582c39e93ebbaf3dca536a29f2d7/primitives/src/v4/mod.rs#L365" CreationDate="2023-05-10T09:16:04.700" UserId="2762" />
  <row Id="8543" PostId="8397" Score="1" Text="@dadzerlaze thank you for your answer, but can you give me some example, is it possible to send event outside substrate node and catch it for a microservices ?&#xA;how do you proceed for a custom gossip ? any help at this well be more than welcome" CreationDate="2023-05-10T09:27:13.987" UserId="3838" />
  <row Id="8547" PostId="8425" Score="0" Text="i'm doing a Phd on Blockchain, really i want to build something nice, but sometimes i dont know were to start, maybe need some help" CreationDate="2023-05-10T11:49:14.853" UserId="3838" />
  <row Id="8549" PostId="8425" Score="0" Text="@Isroudi you can always ask another question when it's related to substrate here :)" CreationDate="2023-05-10T16:06:37.007" UserId="139" />
  <row Id="8550" PostId="8442" Score="0" Text="Tarik  Gul, thanks for your great explanation, in particular the difference between signingPayload and ExtrinsicPaylaod." CreationDate="2023-05-10T16:34:34.217" UserId="4098" />
  <row Id="8551" PostId="8442" Score="0" Text="No worries at all happy to help in any way I can. If you found the response correct and helpful, feel free to mark it as the correct/top answer so it can help others in the same boat." CreationDate="2023-05-10T16:56:54.443" UserId="1786" />
  <row Id="8553" PostId="8448" Score="0" Text="Can you share the repo?" CreationDate="2023-05-10T20:51:31.357" UserId="29" />
  <row Id="8556" PostId="8450" Score="0" Text="still does not work, using latest rust latest update in both stable and nightly, didn't work, and sometimes when i use R directly for example in a trait methid parameter `dummy_test(my_type: MyType&lt;R&gt;)` and my MyType is defined in the module like this `type MyType&lt;T&gt; =BoundedVec&lt;u8, T::Length&gt;` it show this error: `associated type `Length` not found`" CreationDate="2023-05-10T21:38:51.360" UserId="3319" />
  <row Id="8557" PostId="8450" Score="1" Text="Best to push up your code so I can pull and test it." CreationDate="2023-05-10T21:45:54.560" UserId="29" />
  <row Id="8558" PostId="8192" Score="0" Text="oops, my fault, I didn't notice Ord impl was missing, the error message possibly confused me. Thanks !" CreationDate="2023-05-10T23:08:56.657" UserId="3960" />
  <row Id="8559" PostId="8447" Score="1" Text="[hear is the explanation of endowment](https://substrate.stackexchange.com/a/4779/2844)" CreationDate="2023-05-11T01:31:28.513" UserId="2844" />
  <row Id="8560" PostId="8436" Score="0" Text="I think this is an upper limit for the PoV block. Not the answer of my question." CreationDate="2023-05-11T02:05:24.120" UserId="125" />
  <row Id="8561" PostId="8452" Score="0" Text="i was doing integration tests like this https://github.com/DataHighway-DHX/node/tree/master/runtime/tests" CreationDate="2023-05-11T02:35:11.067" UserId="83" />
  <row Id="8562" PostId="8451" Score="0" Text="Does this answer your question? [How to obtain a peer address?](https://substrate.stackexchange.com/questions/3858/how-to-obtain-a-peer-address)" CreationDate="2023-05-11T05:24:49.240" UserId="251" />
  <row Id="8563" PostId="8451" Score="0" Text="And https://substrate.stackexchange.com/questions/3858/how-to-obtain-a-peer-address." CreationDate="2023-05-11T05:25:05.250" UserId="251" />
  <row Id="8564" PostId="8451" Score="1" Text="Please use the search first." CreationDate="2023-05-11T05:25:21.743" UserId="251" />
  <row Id="8565" PostId="8453" Score="0" Text="Good answer. But please don't answer the duplicate question. And there were already a lot of similar questions like this." CreationDate="2023-05-11T05:29:09.403" UserId="251" />
  <row Id="8566" PostId="8438" Score="0" Text="Hi @Alex Bean,&#xA;&#xA;Good morning! Thanks for response. I followed your reference and added my address to the chain-spec-plain.json file. However, when I ran my project, my address was not displayed in the Polkadot development portal. How can I run my chain-spec-plain.json file? Also, how can I disable the default command?&#xA;&#xA;I used the following command:&#xA;&#xA;./target/release/node-template --base-path /tmp/relay/alice --chain ./chain-spec-plain.json --alice --port 30333 --rpc-cors all --rpc-methods Safe --ws-port 9945 --rpc-port 9933 --validator&#xA;Please let me this command is correct?" CreationDate="2023-05-11T06:46:34.280" UserId="4019" />
  <row Id="8567" PostId="8450" Score="0" Text="Alright, here is the repository that im working with currently `https://github.com/revoltez/validated-streams`, its not minimal setup but nothing too complicated, its very similar to what i asked but this time it always gives this error: `^ the trait `pallet::Config` is not implemented for `R` `, i'll update the question to this repository if needed" CreationDate="2023-05-11T08:11:09.140" UserId="3319" />
  <row Id="8568" PostId="8450" Score="0" Text="even though its implemented and it also suggests to to further restrict it by retyping the same bound `}, R: pallet::Config`" CreationDate="2023-05-11T08:17:15.710" UserId="3319" />
  <row Id="8569" PostId="3397" Score="0" Text="i get the error `Error while dialing /dns/telemetry.polkadot.io/tcp/443/x-parity-wss/%2Fsubmit%2F: Custom { kind: Other, error: Timeout }` when i run the command in the &quot;Run Cargo Contract Node&quot; section of the README of https://github.com/ltfschoen/InkTest with commit d7c8a98 where i run `substrate-contracts-node` and pass the option `--telemetry-url &quot;wss://telemetry.polkadot.io/submit/ 0&quot;`. it should be reproducable since it uses specific versions with docker" CreationDate="2023-05-11T08:44:23.773" UserId="83" />
  <row Id="8570" PostId="8438" Score="0" Text="First to import your account in the Polkadot development portal see this article: https://support.polkadot.network/support/solutions/articles/65000176241-polkadot-js-ui-how-to-import-a-private-key-from-another-wallet . And see that when running your node you are indicating the flag --alice in your command, see this https://docs.substrate.io/tutorials/build-a-blockchain/add-trusted-nodes/ to see how to run your own one." CreationDate="2023-05-11T08:50:36.200" UserId="2762" />
  <row Id="8571" PostId="8450" Score="0" Text="question updated!" CreationDate="2023-05-11T09:48:38.103" UserId="3319" />
  <row Id="8572" PostId="8448" Score="0" Text="@Bruno question updated!" CreationDate="2023-05-11T10:30:19.130" UserId="3319" />
  <row Id="8573" PostId="8438" Score="0" Text="Hi @Alex Bean, good afternoon! Thank you for your response. I followed the steps you provided, completed all the steps.added the address to Polkadot. I ran the command, but my address is not showing up in my own development Polkadot.js.how to check my development wallet balance using comments?I following below command&#xA;./target/release/node-template --base-path /tmp/node01 --chain ./customSpecRaw.json --port 30333 --ws-port 9945 --rpc-port 9933 --telemetry-url &quot;wss://telemetry.polkadot.io/submit/0&quot; --validator --rpc-methods Unsafe --rpc-cors all --name MyNode01 --password-interactiveThank you." CreationDate="2023-05-11T10:30:34.733" UserId="4019" />
  <row Id="8574" PostId="8438" Score="0" Text="Hi @Alex Bean, good afternoon!&#xA;&#xA;how to check my development wallet balance using commands ? please let me know here this is very helpful to me.&#xA;&#xA;thanks in advance," CreationDate="2023-05-11T10:34:36.840" UserId="4019" />
  <row Id="8575" PostId="8438" Score="0" Text="You have to import your account in PolkadotJS, importing it directly or with the extension, check the steps here https://support.polkadot.network/support/solutions/articles/65000169952-polkadot-extension-how-to-restore-your-account#:~:text=Open%20the%20Polkadot%20extension%20and,from%20pre%2Dexisting%20seed%22 or here https://docs.cloud.coinbase.com/delegation/docs/polkadot-ui-fund or" CreationDate="2023-05-11T11:50:50.620" UserId="2762" />
  <row Id="8576" PostId="8450" Score="1" Text="fixed it with 0.9.40, i'll leave this question open since the problem is in 0.9.42" CreationDate="2023-05-11T15:58:37.353" UserId="3319" />
  <row Id="8580" PostId="7347" Score="0" Text="awesome, thanks for sharing this! it just helped me solve the same issue after applying AccountId20 to my chain!" CreationDate="2023-05-11T23:50:24.307" UserId="494" />
  <row Id="8581" PostId="8465" Score="0" Text="This does not answer my question but it solves the problem. Accepted and upvoted." CreationDate="2023-05-12T03:53:18.723" UserId="116" />
  <row Id="8582" PostId="5422" Score="0" Text="why not use https://docs.rs/sp-core/latest/sp_core/struct.H256.html#impl-FromStr-for-H256 as above comment suggests?" CreationDate="2023-05-12T04:38:33.600" UserId="2010" />
  <row Id="8583" PostId="7682" Score="1" Text="Right, this error seems to have been an issue about WASM blob size. Sorry for the confusion." CreationDate="2023-05-12T04:40:02.210" UserId="3732" />
  <row Id="8584" PostId="8466" Score="0" Text="Thank you for sharing the repo. It is a lifesaver. I do have a question in mind. Why do substrate add 'runtime' to certain variables? &#xA;&#xA;For example, in substrate repo, it uses [RuntimeBlockWeights](https://github.com/paritytech/substrate/blob/a87e56f1696cae44593cdc069a01d8bed0bab636/bin/node/runtime/src/lib.rs#L220).&#xA;&#xA;Whereas, in your repo, you used [BlockWeights](https://github.com/brunopgalvao/substrate-contracts-template/blob/main/runtime/src/lib.rs#L158)." CreationDate="2023-05-12T05:23:54.490" UserId="4208" />
  <row Id="8585" PostId="8438" Score="0" Text="Hi @Alex Bean,&#xA;Thanks for your response," CreationDate="2023-05-12T05:53:13.463" UserId="4019" />
  <row Id="8588" PostId="8474" Score="0" Text="i have modified the prompt a little. The return result isn't a number itself, it is an array of structs, and one of the struct's fields is a u128 which cause everything to fail. calling toBigInt() won't help in this case because i can't even access this field. Maybe there is a workaround?" CreationDate="2023-05-12T12:56:46.653" UserId="2485" />
  <row Id="8589" PostId="8466" Score="1" Text="This is a very good question. Created another post for this: https://substrate.stackexchange.com/questions/8477/what-is-the-difference-between-runtimeblockweights-vs-blockweights" CreationDate="2023-05-12T13:22:47.027" UserId="29" />
  <row Id="8590" PostId="8480" Score="0" Text="Thank you very much @TarikGul for your response. But at what stage can i iterate over the rpc result to check for raw type u128? I define custom rpc config in ApiPromise.create, then i call the rpc with await, and after the rpc call finishes, it crashes with &#xA;&#xA;`2023-05-12 VEC: Unable to decode on index 24 Struct: failed on id: u128:: Number needs to be an integer &lt;= Number.MAX_SAFE_INTEGER, i.e. 2 ^ 53 - 1&#xA;2023-05-12 RPC-CORE:Vec&lt;Asset&gt;:: createType(Vec&lt;Asset&gt;):: Struct: failed on id: u128:: Number needs to be an integer &lt;= Number.MAX_SAFE_INTEGER, i.e. 2 ^ 53 - 1`" CreationDate="2023-05-12T18:32:41.897" UserId="2485" />
  <row Id="8591" PostId="8348" Score="0" Text="Can you advise me where to ask these kind of questions?" CreationDate="2023-05-13T08:07:20.317" UserId="4163" />
  <row Id="8592" PostId="7347" Score="0" Text="Glad that it helped :)" CreationDate="2023-05-13T08:50:46.923" UserId="3538" />
  <row Id="8593" PostId="8482" Score="0" Text="These 2 code snippets are both separate examples. They show 2 different methods for call cross contract. One approach uses the contract `Ref` and the other uses the `code_hash` for the `delegate()` method." CreationDate="2023-05-13T13:16:13.083" UserId="3850" />
  <row Id="8594" PostId="8484" Score="1" Text="Did you try to override it with the `WASM_BUILD_TOOLCHAIN` env var?" CreationDate="2023-05-13T14:09:30.620" UserId="94" />
  <row Id="8595" PostId="8484" Score="1" Text="Thanks for reply.&#xA;I tried `export WASM_BUILD_TOOLCHAIN=nightly-2023-01-01`&#xA;But result was same..&#xA;&#xA;In this line of log, I don't know why check is carried out by nightly-2022-06-30" CreationDate="2023-05-13T14:44:44.267" UserId="4215" />
  <row Id="8596" PostId="8484" Score="1" Text="`[1/5] Checking ink! linting rules&#xA;2023-05-13T14:42:50.667586Z  INFO cargo_contract::util: Invoking cargo: cd &quot;/Users/yasuyasu/hack/astar/develop/flipper&quot; &amp;&amp; DYLINT_LIBRARY_PATH=&quot;/var/folders/jr/8pgwdjss1k148znsrq610j800000gn/T/cargo-contract-dylint_Mcn2A3&quot; &quot;/Users/yasuyasu/.rustup/toolchains/nightly-2023-01-01-aarch64-apple-darwin/bin/cargo&quot; &quot;dylint&quot; &quot;--lib&quot; &quot;ink_linting&quot; &quot;--manifest-path=/Users/yasuyasu/hack/astar/develop/flipper/Cargo.toml&quot;&#xA;Checking with toolchain `nightly-2022-06-30-aarch64-apple-darwin`" CreationDate="2023-05-13T14:44:51.230" UserId="4215" />
  <row Id="8597" PostId="8487" Score="0" Text="This might not be a good questions, not being able to what could be an issue so far." CreationDate="2023-05-14T12:01:17.323" UserId="275" />
  <row Id="8598" PostId="8484" Score="0" Text="`rustup override set nightly-2023-01-01-x86_64-unknown-linux-gnu &amp;&amp; rustup show`" CreationDate="2023-05-15T08:41:22.877" UserId="83" />
  <row Id="8599" PostId="8489" Score="0" Text="It is still not working. When I execute `yarn run start`, it says&#xA;&#xA;`Error: listen EADDRINUSE: address already in use :::3000&#xA;    at Server.setupListenHandle [as _listen2] (node:net:1741:`&#xA;&#xA;There is no process on my system running on 3000. I also restarted my system. Is there any way to change port? Or I am missing anything?" CreationDate="2023-05-15T08:58:22.947" UserId="3437" />
  <row Id="8600" PostId="8491" Score="0" Text="https://github.com/Brushfam/openbrush-contracts/issues/33" CreationDate="2023-05-15T09:36:51.610" UserId="2762" />
  <row Id="8601" PostId="8492" Score="0" Text="What version are you trying to run? the last from the repository?" CreationDate="2023-05-15T09:37:39.900" UserId="2762" />
  <row Id="8602" PostId="8500" Score="2" Text="Does this answer your question? [cannot run substrate on a fresh macbook m2](https://substrate.stackexchange.com/questions/7714/cannot-run-substrate-on-a-fresh-macbook-m2)" CreationDate="2023-05-15T11:00:41.417" UserId="94" />
  <row Id="8603" PostId="8500" Score="0" Text="No tried it still giving the same error" CreationDate="2023-05-15T11:28:14.240" UserId="4222" />
  <row Id="8604" PostId="8179" Score="0" Text="I looked a little bit into this, but I don't think you can do that currently, the only thing that we can constraint with limit is the DispatchClass (Operational, Mandatory, Normal), these  classes can be given limit and reserved see (https://paritytech.github.io/substrate/master/frame_system/limits/struct.BlockWeights.html), but as far as I know we can't do that at the granularity of a single pallet." CreationDate="2023-05-15T12:19:44.440" UserId="3980" />
  <row Id="8605" PostId="8179" Score="0" Text="To answer your question, IMO, this kind of abstractions (is not and) should not live in pallet_contracts, since in theory other pallets could benefits from such a granular weight limit system" CreationDate="2023-05-15T12:22:27.940" UserId="3980" />
  <row Id="8606" PostId="8489" Score="1" Text="Just to ensure when you run `lsof -i :3000` you get no output? And yes there is most certainly a way to change the port. Inside of `packages/apps/webpack.serve.cjs` you can change the `devServer` port." CreationDate="2023-05-15T12:33:38.503" UserId="1786" />
  <row Id="8608" PostId="8501" Score="0" Text="you can check it in the runtime cargo.toml file  https://github.com/substrate-developer-hub/substrate-parachain-template/blob/main/runtime/Cargo.toml can you give some more detail what exactly you want to ask?" CreationDate="2023-05-15T12:51:28.583" UserId="2281" />
  <row Id="8609" PostId="8503" Score="0" Text="I am getting (Parachain) cannot create a runtime error=Other(&quot;cannot deserialize module: unknown Opcode(192)&quot;) error while trying to start the collator node and connect to relay chain so wanted to check the version compatibility between parachain and relay chain" CreationDate="2023-05-15T13:29:23.540" UserId="4222" />
  <row Id="8610" PostId="8505" Score="0" Text="can u elaborate exactly how i do it for (https://docs.substrate.io/tutorials/build-a-parachain/connect-a-local-parachain/), adding rust-toolchain.toml file and re compiling worked for substrate-node-template but not for substrate-parachain-template" CreationDate="2023-05-15T13:31:57.957" UserId="4222" />
  <row Id="8611" PostId="8503" Score="0" Text="which version you are using?" CreationDate="2023-05-15T13:34:06.513" UserId="2281" />
  <row Id="8612" PostId="6795" Score="0" Text="I'm using ``&quot;@polkadot/api&quot;: &quot;^9.13.6&quot;``, and I added ``new ApiPromise({ provider, rpc: customRpc, noInitWarn: true });``&#xA;but it still display warning" CreationDate="2023-05-09T03:17:30.097" UserId="4052" />
  <row Id="8613" PostId="8502" Score="0" Text="Thanks. I noticed the [uniques](https://paritytech.github.io/substrate/master/pallet_uniques/index.html) pallet has similar [`set_team`](https://paritytech.github.io/substrate/master/pallet_uniques/pallet/dispatchables/fn.set_team.html) functionality and is listed in the [Substrate docs](https://docs.substrate.io/reference/frame-pallets/) while  the nfts pallet is not listed - is one to be preferred?" CreationDate="2023-05-15T23:43:44.537" UserId="3344" />
  <row Id="8615" PostId="8497" Score="0" Text="Thank you for your comment,&#xA;I thought `BalancesApiServer` is unused because `Balances` struct is not implementing `into_rpc` method.&#xA;&#xA;I think I followed the how to guide (Thank you for the detailed contents!), but didn't find out what is the issue my implementation has.&#xA;&#xA;The wired thing I found after posting this is if I remove a generic `P` which is for TransactionPool from the entire code base, then it compiles. `pallet-balances-rpc` package itself compiles, so that makes it difficult for me to know why `into_rpc` not implemented." CreationDate="2023-05-16T02:44:31.177" UserId="275" />
  <row Id="8616" PostId="8505" Score="0" Text="It worked I added the rust-toolchain.toml file in the relay chain branch as well the version of nightly were different in para chain and relay chain" CreationDate="2023-05-16T03:55:57.253" UserId="4222" />
  <row Id="8617" PostId="8502" Score="1" Text="Yes, the Uniques Pallet is deprecated now: https://wiki.polkadot.network/docs/learn-nft-pallets#uniques-pallet" CreationDate="2023-05-16T06:42:16.307" UserId="2762" />
  <row Id="8618" PostId="8496" Score="0" Text="Can I do this via polkadotjs?" CreationDate="2023-05-16T10:07:22.253" UserId="325" />
  <row Id="8619" PostId="8496" Score="0" Text="@TadejVengust yes, what didn't you understood with my answer regarding using polkadotjs?" CreationDate="2023-05-16T10:08:43.267" UserId="3319" />
  <row Id="8620" PostId="8496" Score="0" Text="By polkadot js I ment polkadot SDK so progamatically via javascript." CreationDate="2023-05-16T10:12:35.753" UserId="325" />
  <row Id="8622" PostId="8496" Score="1" Text="@TadejVengust https://polkadot.js.org/docs/substrate/runtime#taggedtransactionqueue" CreationDate="2023-05-16T10:20:29.577" UserId="3319" />
  <row Id="8623" PostId="8516" Score="0" Text="What are you getting trying to with it? Importing only sc-network is not enough?:  sc-network = { version = &quot;0.10.0-dev&quot;, git = &quot;https://github.com/paritytech/substrate.git&quot;, branch = &quot;polkadot-v0.9.42&quot; }" CreationDate="2023-05-16T10:27:50.253" UserId="2762" />
  <row Id="8624" PostId="8503" Score="0" Text="Some versions of substrate are having this issue with certain rust versions, I believe that the latest one fixed it. I would recommend you to use this https://substrate.stackexchange.com/a/7890/4081" CreationDate="2023-05-16T10:58:55.853" UserId="4081" />
  <row Id="8625" PostId="8514" Score="1" Text="Thanks @Amit after decreasing the gas_fee it solves my problem." CreationDate="2023-05-16T11:59:32.027" UserId="2348" />
  <row Id="8626" PostId="8510" Score="0" Text="If I send the transaction anyway, I get the following error:&#xA;&#xA;creation of CodeWithJoe errored: Returned error: {&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;error&quot;:&quot;[ethjs-query] while formatting outputs from RPC '{\&quot;value\&quot;:{\&quot;code\&quot;:-32603,\&quot;data\&quot;:{\&quot;code\&quot;:-32603,\&quot;message\&quot;:\&quot;submit transaction to pool failed: Pool(InvalidTransaction(InvalidTransaction::Custom(3)))\&quot;}}}'&quot;,&quot;id&quot;:4447184481249369}" CreationDate="2023-05-16T13:11:31.043" UserId="4213" />
  <row Id="8627" PostId="8517" Score="0" Text="Looks like according to your error message, the issue could be here: `runtime/bifrost-kusama/src/xcm_config.rs:596:29`" CreationDate="2023-05-16T16:02:57.153" UserId="29" />
  <row Id="8628" PostId="1933" Score="0" Text="@jvdp would you be so kind as to writing up the answer below  . This could be useful for other members of this community too." CreationDate="2023-05-16T17:00:21.670" UserId="172" />
  <row Id="8629" PostId="5567" Score="0" Text="I asked this question here https://substrate.stackexchange.com/questions/8411/how-to-filter-the-subscribed-contracts-events-with-their-topics" CreationDate="2023-05-16T17:37:38.777" UserId="4146" />
  <row Id="8630" PostId="8520" Score="0" Text="This doesn't work. Actually everything was working fine until I added FellowshipReferenda and FellowshipCollective(xcm_config.rs unchanged). From the prompt, it seems that the corresponding PalletsInfo cannot be obtained, but I don't know how to modify it." CreationDate="2023-05-17T01:44:42.303" UserId="2424" />
  <row Id="8631" PostId="8523" Score="1" Text="you can start by adding [pallet-democracy](https://marketplace.substrate.io/pallets/pallet-democracy/)" CreationDate="2023-05-17T01:57:03.150" UserId="2844" />
  <row Id="8632" PostId="8524" Score="0" Text="I just mean. `hex` crate can not handle that. `array-bytes` will handle the `0x` automatically. Whether it exists or not. I prefer using a function instead of a macro." CreationDate="2023-05-17T03:12:42.790" UserId="251" />
  <row Id="8634" PostId="8523" Score="0" Text="what kind of voting system are you talking about?" CreationDate="2023-05-17T04:07:32.020" UserId="354" />
  <row Id="8635" PostId="8523" Score="0" Text="e voting system used by government to elect candidates for government elections" CreationDate="2023-05-17T04:22:22.773" UserId="4222" />
  <row Id="8636" PostId="8510" Score="0" Text="have you tried decreasing the gas_fee ?" CreationDate="2023-05-17T05:05:44.473" UserId="2281" />
  <row Id="8637" PostId="8526" Score="0" Text="Actually, I am new to blockchain programming so I was looking to modify and use some existing libraries for implementing election logic rather than starting from scratch but I don't know which existing functions would be relevant for  election use case needed guidance for that" CreationDate="2023-05-17T06:05:40.403" UserId="4222" />
  <row Id="8638" PostId="8529" Score="0" Text="how to add subkey binary to $PATH env?" CreationDate="2023-05-17T07:26:51.567" UserId="4222" />
  <row Id="8639" PostId="644" Score="1" Text="Original reference code is outdated, new reference here: https://github.com/paritytech/subxt/blob/81494027c8f5ae62d44883167585d5e557f0fcba/testing/integration-tests/src/frame/sudo.rs#L26" CreationDate="2023-05-17T07:48:35.150" UserId="3991" />
  <row Id="8640" PostId="8529" Score="1" Text="here are some ways of doing this in linux: https://askubuntu.com/questions/60218/how-to-add-a-directory-to-the-path" CreationDate="2023-05-17T07:58:00.940" UserId="2736" />
  <row Id="8642" PostId="8531" Score="0" Text="@bkchr you have answered with `You just need to call dvm_ext::evm_event(events)`, but I couldn't even find a module with `trait_ext` name" CreationDate="2023-05-17T08:45:17.560" UserId="2736" />
  <row Id="8643" PostId="8534" Score="0" Text="well, I'm using 3rd party library that uses std things, so there's no way that I can substitute `std` with `sp-std`; is this the case that I can use std-based code in a host function only if it delegates std things to `sp-std`?" CreationDate="2023-05-17T10:03:37.123" UserId="2736" />
  <row Id="8644" PostId="8497" Score="0" Text="Now it compiles, but why `into_rpc` was not implemented is unknown.&#xA;It make sense if I get some trait bound error, but error about &quot;not implemented&quot; is not something I understand." CreationDate="2023-05-17T10:17:17.983" UserId="275" />
  <row Id="8645" PostId="8533" Score="0" Text="Thanks. But actually this doesn't really answer my question. From the reference you gave, from_account_id just wraps the account_id in the ContractRef without any checks and eventuality a method call behaves just like the snippet I gave in my question" CreationDate="2023-05-17T10:41:51.113" UserId="3235" />
  <row Id="8646" PostId="8534" Score="0" Text="Yes it should work like this" CreationDate="2023-05-17T12:58:23.040" UserId="354" />
  <row Id="8647" PostId="5768" Score="0" Text="any example of how to do same in rust? :)" CreationDate="2023-05-17T13:23:58.263" UserId="157" />
  <row Id="8648" PostId="8540" Score="0" Text="Start by making sure all your packages are up-to-date: https://docs.substrate.io/install/linux" CreationDate="2023-05-17T15:40:58.613" UserId="29" />
  <row Id="8649" PostId="8540" Score="0" Text="check. did that again right before posting." CreationDate="2023-05-17T15:50:43.413" UserId="3070" />
  <row Id="8650" PostId="8540" Score="0" Text="please also post the result of `rustup show`, `rustup +nightly show`, your linux distro version, and the version of substrate-node-template that you're using" CreationDate="2023-05-17T16:02:21.483" UserId="29" />
  <row Id="8651" PostId="8540" Score="0" Text="Check this, there area. bunch of useful responses: https://substrate.stackexchange.com/questions/6088/unable-to-compile-substrate-template-error-failed-to-run-custom-build-command?rq=1" CreationDate="2023-05-17T16:16:23.813" UserId="2762" />
  <row Id="8652" PostId="8538" Score="0" Text="As discussed in dms, `insert` and `set` don't perform any max count check. Not sure what the purpose of `MaxValues` is." CreationDate="2023-05-17T16:52:02.677" UserId="1990" />
  <row Id="8653" PostId="8541" Score="0" Text="Kachow!! thank you. and we're back to work. &#xA;i wonder how to keep updated on the status of this going forward." CreationDate="2023-05-17T17:01:30.980" UserId="3070" />
  <row Id="8654" PostId="8119" Score="1" Text="What does `Verify your genesis validators` means @AurevoirXavier? Can you please elaborate?" CreationDate="2023-05-18T02:39:49.190" UserId="2844" />
  <row Id="8655" PostId="8119" Score="1" Text="The validator id and the session keys. If you set it wrong, your new chain can not produce any block." CreationDate="2023-05-18T02:49:30.370" UserId="251" />
  <row Id="8656" PostId="2557" Score="0" Text="It was just because of some dependencies which are not currently present in your std features." CreationDate="2023-05-18T07:28:54.627" UserId="2372" />
  <row Id="8657" PostId="8526" Score="0" Text="Blockchain election algorithm is totally different from governance election, but if you want to change it then go ahead" CreationDate="2023-05-18T07:43:54.737" UserId="354" />
  <row Id="8658" PostId="8550" Score="0" Text="Thanks @Shubham" CreationDate="2023-05-18T09:17:52.477" UserId="2281" />
  <row Id="8659" PostId="8546" Score="0" Text="thanks. i aware about how to run locally. i am interested how to configure relaychain + parachain to produce block faster for parachain. at least every 6 sec instead of 12 sec." CreationDate="2023-05-18T09:31:19.017" UserId="3171" />
  <row Id="8660" PostId="8546" Score="1" Text="it should have worked by changing the `MILLISECS_PER_BLOCK`, time also doesn't changed on parachain's explorer as well?" CreationDate="2023-05-18T10:20:09.540" UserId="354" />
  <row Id="8661" PostId="8546" Score="0" Text="Once i changed MILLISECS_PER_BLOCK for parachain runtime it does not work.&#xA;Still 12 sec per block instead of 6. even when relay chain produces the block each 3 sec." CreationDate="2023-05-18T10:39:10.817" UserId="3171" />
  <row Id="8662" PostId="8533" Score="0" Text="Yes, that's the point of `ContractRef` - it gives you a type-safe information about available methods (args, return types) of the contract you want to call. There's nothing more you can do - `AccountId` itself has no information about the contract that lives under that address so you, as a developer, has to define what type (contract) you're expecting to talk to." CreationDate="2023-05-18T11:09:52.887" UserId="3385" />
  <row Id="8663" PostId="5555" Score="0" Text="Hi @Alex thanks for sharing this. Do we have any video to demonstrate this?" CreationDate="2023-05-18T13:26:40.127" UserId="555" />
  <row Id="8664" PostId="5555" Score="0" Text="Hi! There is not video tutorial about it (thanks for the feedback, I'd consider it)" CreationDate="2023-05-18T13:42:37.090" UserId="2762" />
  <row Id="8665" PostId="5555" Score="0" Text="You can take a look into the full code about it: https://github.com/AlexD10S/susbtrate-node-template/tree/rpc-custom-methods" CreationDate="2023-05-18T13:42:53.857" UserId="2762" />
  <row Id="8666" PostId="8544" Score="1" Text="This may help: https://substrate.stackexchange.com/questions/4558/why-my-solo-chain-block-time-is-12-seconds-when-set-to-6" CreationDate="2023-05-18T13:56:28.087" UserId="29" />
  <row Id="8667" PostId="8510" Score="0" Text="@AmitKumarYadav Yes but I get the same error" CreationDate="2023-05-18T14:04:44.207" UserId="4213" />
  <row Id="8668" PostId="6427" Score="0" Text="This fixed it.  For future readers: I deleted my old, out of date message; now you can submit preimages directly to the Preimage pane/pallet and those can now be used by democracy pallet." CreationDate="2023-05-18T17:38:41.943" UserId="2060" />
  <row Id="8669" PostId="5555" Score="0" Text="Thank you so much" CreationDate="2023-05-18T18:10:57.227" UserId="555" />
  <row Id="8670" PostId="8498" Score="0" Text="Can you clarify which type of session change you are asking about? Are you talking about the validators (those that are able to author / check blocks)? Or about aura slots?" CreationDate="2023-05-18T19:26:47.213" UserId="3407" />
  <row Id="8671" PostId="8538" Score="0" Text="The `MaxValues` is to calculate an upper limit for the worst-case Proof size estimation." CreationDate="2023-05-18T20:06:44.220" UserId="94" />
  <row Id="8672" PostId="7275" Score="0" Text="This worked like a charm! Thank you!" CreationDate="2023-05-18T20:18:13.090" UserId="3850" />
  <row Id="8673" PostId="8549" Score="0" Text="`cargo clean` `cargo update` `cargo build --release` might help" CreationDate="2023-05-19T01:56:36.750" UserId="2844" />
  <row Id="8674" PostId="8549" Score="0" Text="Can you give any details about what you've changed and what version you are using? What version of polkadot does the substrate you're using correspond to (check the branches in `Cargo.toml`)?" CreationDate="2023-05-19T02:13:21.210" UserId="3407" />
  <row Id="8675" PostId="8510" Score="0" Text="is this error comes when you try to transfer tokens?" CreationDate="2023-05-19T05:13:33.423" UserId="2281" />
  <row Id="8676" PostId="7275" Score="0" Text="My pleasure to help :) As far as I know the issue has been already addressed in the Polkadot.js dashboard, so probably they should release new version of library as well." CreationDate="2023-05-19T07:56:53.730" UserId="3843" />
  <row Id="8677" PostId="8239" Score="0" Text="In Subxt, extrinsic params are configured by setting this type in the Config that you use: https://github.com/paritytech/subxt/blob/81494027c8f5ae62d44883167585d5e557f0fcba/subxt/src/config/mod.rs#L60. I'd have a look at the trait that you need to impl (https://github.com/paritytech/subxt/blob/81494027c8f5ae62d44883167585d5e557f0fcba/subxt/src/config/extrinsic_params.rs#L16) and at how SubstrateConfig impls this (https://github.com/paritytech/subxt/blob/81494027c8f5ae62d44883167585d5e557f0fcba/subxt/src/config/substrate.rs#L30)" CreationDate="2023-05-19T13:29:29.440" UserId="474" />
  <row Id="8678" PostId="8098" Score="0" Text="Which dependencies were the cause of this issue?" CreationDate="2023-05-19T14:49:29.810" UserId="3850" />
  <row Id="8681" PostId="8348" Score="0" Text="Get in contact with the SBP team. SE is for technical questions." CreationDate="2023-05-19T19:38:35.187" UserId="73" />
  <row Id="8682" PostId="8398" Score="0" Text="Yeah should probably be enough." CreationDate="2023-05-19T19:38:55.597" UserId="73" />
  <row Id="8683" PostId="8424" Score="0" Text="Thank you for the response. I tried this and changed the number from 42 to 100. and even tried other numbers. Still getting the same type of addresses." CreationDate="2023-05-20T08:12:23.653" UserId="4201" />
  <row Id="8684" PostId="8098" Score="0" Text="@Snowmead it was a ZKP library, `dusk_plonk`." CreationDate="2023-05-20T15:05:00.963" UserId="1951" />
  <row Id="8685" PostId="8571" Score="0" Text="Can you point to the Official documentation / Piece of code in substrate framework for better understanding?" CreationDate="2023-05-20T16:27:15.057" UserId="1927" />
  <row Id="8686" PostId="8569" Score="0" Text="Hi @kim if you have the code committed to github or somewhere else it'll be easy to troubleshoot" CreationDate="2023-05-20T16:34:59.353" UserId="1927" />
  <row Id="8687" PostId="8571" Score="0" Text="@ShindeArjun sure, https://paritytech.github.io/substrate/master/sc_transaction_pool/struct.BasicPool.html,  and https://paritytech.github.io/substrate/master/sc_transaction_pool/struct.Pool.html" CreationDate="2023-05-20T19:33:04.117" UserId="3319" />
  <row Id="8688" PostId="8567" Score="0" Text="It would be great to have this alongside the tutorial in substrate docs as preliminary reading." CreationDate="2023-05-21T11:32:25.877" UserId="3030" />
  <row Id="8689" PostId="8562" Score="0" Text="Anyone used to get issue" CreationDate="2023-05-22T02:35:10.917" UserId="445" />
  <row Id="8690" PostId="8578" Score="1" Text="Problem is not with `AccountId` type, it's with the use of ` _balance: Mapping&lt;AccountId, Balance&gt;` parameter in your `valid_amount_check()` method.&#xA;Your mapping type is using `AutoKey` and thus key will be generated on compile time which we can see is `ManualKey&lt;3381773259&gt;`, so you can't hardcode that to use as a type for argument.&#xA;&#xA;Simple solution, do not pass `Mapping&lt;&gt;`  (which use `AutoKey`) as argument to a function." CreationDate="2023-05-22T03:49:36.263" UserId="4117" />
  <row Id="8691" PostId="8580" Score="0" Text="it should change, try this again make `customSpecRaw.json` with the desired balance and the chain, then start it again with the new `customSpecRaw.json`" CreationDate="2023-05-22T03:55:29.633" UserId="354" />
  <row Id="8692" PostId="8580" Score="0" Text="Firstly, I don't see about block production and block finalization in your terminal.&#xA;Secondly, Do you restart your local node again after modifying your chain spec json?" CreationDate="2023-05-22T03:57:11.750" UserId="445" />
  <row Id="8693" PostId="8580" Score="0" Text="I generated `CustomSpecRaw.json` using this command `./target/release/node-template build-spec --chain=customSpec.json --raw --disable-default-bootnode &gt; customSpecRaw.json` @ShubhamGupta but still the same balance doesn't change" CreationDate="2023-05-22T04:13:47.053" UserId="2844" />
  <row Id="8694" PostId="8572" Score="0" Text="Sorry .It Didn't Work" CreationDate="2023-05-22T04:33:50.740" UserId="2372" />
  <row Id="8695" PostId="8580" Score="0" Text="Did you purge the chain before restarting it?" CreationDate="2023-05-22T04:40:27.233" UserId="354" />
  <row Id="8696" PostId="8580" Score="0" Text="yes @ShubhamGupta" CreationDate="2023-05-22T05:24:27.053" UserId="2844" />
  <row Id="8697" PostId="8580" Score="0" Text="Please show us reproducible steps. What commands did you run? Every step." CreationDate="2023-05-22T05:58:07.240" UserId="251" />
  <row Id="8698" PostId="8582" Score="0" Text="This really depends on the chain. Which chain are you asking?" CreationDate="2023-05-22T07:33:36.047" UserId="251" />
  <row Id="8699" PostId="8581" Score="0" Text="thank you @Xavier, is this the way to set `total_supply` for the chain?" CreationDate="2023-05-22T07:43:00.257" UserId="2844" />
  <row Id="8700" PostId="8584" Score="0" Text="Can you provide more info ?&#xA;- your AccountId&#xA;- can you try on https://contracts-ui.substrate.io/add-contract ?&#xA;- the block number or hash of your call" CreationDate="2023-05-22T08:11:12.907" UserId="567" />
  <row Id="8701" PostId="8565" Score="0" Text="So in the example above, we would conceptually switch to session N+1, but we would still name it N (numbers stay consecutive - no gaps) and it would also look like the previously existing session N: We would use the same randomness, we would arrive at the same validator set, etc ...&#xA;&#xA;Thanks!" CreationDate="2023-05-22T08:14:50.257" UserId="1842" />
  <row Id="8702" PostId="8584" Score="0" Text="@P.Ossun i try in contracts-ui.substrate.io/add-contract. When i deploy cross contract, it not response nothing (It just white UI). &#xA;Here is my AccountID in Shibuya Testnet: b9ihwaTv7658Wf7ekTVdzevDq6grVE6QEDUQiCdsYMzVJcn" CreationDate="2023-05-22T08:19:12.393" UserId="4238" />
  <row Id="8703" PostId="8584" Score="0" Text="@P.Ossun I sent you 3 contract i using to deploy to contract in Shibuya Testnet: https://drive.google.com/drive/folders/1EYtlChnHFggsfDpXLLwzhuEmTY-Gfd5_?usp=sharing&#xA;Can't you help me deploy 3 contract in Shibuya Testnet or Rococo Testnet Contract." CreationDate="2023-05-22T08:24:18.510" UserId="4238" />
  <row Id="8704" PostId="8581" Score="0" Text="@Ganesh11 no, I think your answer is in this other question https://substrate.stackexchange.com/questions/3717/how-does-a-substrate-chain-set-the-max-total-supply" CreationDate="2023-05-22T08:24:47.047" UserId="3881" />
  <row Id="8705" PostId="8585" Score="0" Text="Could you lend some details about the block-production-lottery algorithm?" CreationDate="2023-05-22T08:50:30.547" UserId="139" />
  <row Id="8706" PostId="8585" Score="0" Text="@Purple_Turtle thats the vrf part, read this part https://polkadot.network/blog/polkadot-consensus-part-3-babe#primary-slot-leaders" CreationDate="2023-05-22T08:53:35.347" UserId="3319" />
  <row Id="8707" PostId="8584" Score="0" Text="Try to deploy in contracts-ui : https://contracts-ui.substrate.io/contract/&#xA;I think polkadotjs apps didnt implement weight version 2 now" CreationDate="2023-05-22T09:00:15.840" UserId="445" />
  <row Id="8708" PostId="8577" Score="0" Text="does the blacklist change or it fixed?" CreationDate="2023-05-22T09:03:04.567" UserId="3319" />
  <row Id="8709" PostId="8584" Score="0" Text="@CocDap I have to try on contracts-ui.substrate.io/contract. But cross contract failed when deploy. It don't return anything, UI is completely empty." CreationDate="2023-05-22T09:06:00.037" UserId="4238" />
  <row Id="8710" PostId="8581" Score="0" Text="I am confused @Xavier, Whats that `total balance` is then?" CreationDate="2023-05-22T10:35:58.653" UserId="2844" />
  <row Id="8711" PostId="8581" Score="0" Text="@Ganesh11 since you are not giving context, i guess you are refering to the total amount an account have of an specific token." CreationDate="2023-05-22T11:03:17.853" UserId="3881" />
  <row Id="8712" PostId="8565" Score="1" Text="Yeah the session index will just increment consecutively. However, BABE will &quot;skip epochs&quot; by calculating the epoch index based on the slot: https://github.com/paritytech/substrate/blob/18b1fdcf984bcf87a81728e0622c5f9d33a0aa67/frame/babe/src/lib.rs#L588-L600" CreationDate="2023-05-22T11:09:26.553" UserId="73" />
  <row Id="8713" PostId="8581" Score="0" Text="yes exactly @Xavier" CreationDate="2023-05-22T12:00:21.950" UserId="2844" />
  <row Id="8714" PostId="8513" Score="0" Text="What is the problem? The warning is always there. Does the CLI error out or what is the full output and exit code?" CreationDate="2023-05-22T12:48:00.737" UserId="94" />
  <row Id="8716" PostId="8584" Score="0" Text="It was successfully uploaded &amp; instantiated:&#xA;https://shibuya.subscan.io/account/b9ihwaTv7658Wf7ekTVdzevDq6grVE6QEDUQiCdsYMzVJcn&#xA;And this is the latest contract address you have deployed:&#xA;https://shibuya.subscan.io/account/abTb7kFLYoef7eNMJPHN4AvQVZgVjhuXUZ2oS5CiRYmhmXG?tab=transfer&#xA;&#xA;What is the issue exactly ?" CreationDate="2023-05-22T14:12:00.960" UserId="567" />
  <row Id="8717" PostId="8510" Score="0" Text="No, it's an error when I try to deploy an evm contract on my substrate node." CreationDate="2023-05-22T14:25:08.510" UserId="4213" />
  <row Id="8719" PostId="8572" Score="0" Text="Do you have code where you can reproduce it?" CreationDate="2023-05-22T14:48:37.887" UserId="1927" />
  <row Id="8720" PostId="8572" Score="0" Text="may be on github" CreationDate="2023-05-22T14:48:47.123" UserId="1927" />
  <row Id="8721" PostId="8590" Score="0" Text="provide reproducible example" CreationDate="2023-05-22T14:49:51.900" UserId="3319" />
  <row Id="8722" PostId="7929" Score="0" Text="if you just perform a single contracts call, and not a batch transaction, is the gasRequired enough (it should be)." CreationDate="2023-05-22T16:07:49.523" UserId="3980" />
  <row Id="8723" PostId="7929" Score="0" Text="Also if you could write js snippets that I could actually use to repro in the polkadot js app, this might help me investigate that further." CreationDate="2023-05-22T16:08:55.687" UserId="3980" />
  <row Id="8724" PostId="8592" Score="0" Text="Do you know of any examples that implement one of these solutions as described in the issue? There are not exactly straight forward." CreationDate="2023-05-22T18:11:16.253" UserId="3850" />
  <row Id="8726" PostId="8591" Score="1" Text="Thanks seems to work after ```cargo update```" CreationDate="2023-05-22T19:24:32.087" UserId="2065" />
  <row Id="8728" PostId="8603" Score="0" Text="sorry I still didn’t get my solution. How can I display list in Polkadot Js UI on extrinsic page?" CreationDate="2023-05-22T20:05:16.093" UserId="3437" />
  <row Id="8729" PostId="8597" Score="0" Text="thanks! as a complement to your answer:&#xA;https://substrate.stackexchange.com/questions/7767/why-do-most-parachains-have-a-maximum-block-weight-of-0-5-seconds" CreationDate="2023-05-22T23:23:39.983" UserId="494" />
  <row Id="8731" PostId="8584" Score="0" Text="@P.Ossun Like i said at the beginning. It was successfully &amp; instantiated, but it just loading like figure 1. It dont show constructor or contract to interact in tab Contract. And in contract-ui, I deploy successfully 2 contract is nft contract and native contract, I want to using hash address 2 contract nft and native contract for use in dmp contract. but when deploy it failed (UI dont show anything, Empty UI like Figure 4)." CreationDate="2023-05-23T01:59:06.040" UserId="4238" />
  <row Id="8732" PostId="8510" Score="0" Text="can you share the code ?" CreationDate="2023-05-23T04:57:34.630" UserId="2281" />
  <row Id="8733" PostId="2884" Score="0" Text="Do you mean by &quot;all collators will win in that lottery&quot;, that all stakers behind a particular collator will win in block awards when a collator authors and gets a block accepted?" CreationDate="2023-05-23T05:32:50.660" UserId="3667" />
  <row Id="8734" PostId="8603" Score="0" Text="Ahh sorry, In the current PolkadotJS UI this is not possible, but you can implement that if you have a custom UI using the polkadot-js library" CreationDate="2023-05-23T08:27:05.033" UserId="2762" />
  <row Id="8735" PostId="8608" Score="0" Text="That's perfect, thanks for the update" CreationDate="2023-05-23T08:28:09.417" UserId="2762" />
  <row Id="8737" PostId="8565" Score="0" Text="Nice, that comment explains it all. :-) Thank you!" CreationDate="2023-05-23T12:29:53.327" UserId="1842" />
  <row Id="8738" PostId="8612" Score="0" Text="From which peer you want to get the `MultiAddr`? You probably want the `Multiaddr` of some random peer and not only from a validator?" CreationDate="2023-05-23T16:17:57.487" UserId="73" />
  <row Id="8739" PostId="8612" Score="0" Text="@bkchr I want `Multiaddr` for any peer in the network that I'm aware of i.e. for peers that are returned in `system_peers` RPC" CreationDate="2023-05-23T16:53:49.947" UserId="3955" />
  <row Id="8740" PostId="8614" Score="1" Text="Could you share Cargo.toml as well? I suspect some std features are not properly excluded. Or forgetting default-feature = false setting" CreationDate="2023-05-24T03:06:31.693" UserId="275" />
  <row Id="8741" PostId="8590" Score="0" Text="what is the transaction?" CreationDate="2023-05-24T05:59:26.917" UserId="2736" />
  <row Id="8742" PostId="8583" Score="0" Text="it's actually empty for injected providers &#xA;  https://github.com/paritytech/polkadot-onboard/blob/b07e1cce7e40c95f127a69459250d72d191ea39b/packages/injected-wallets/src/injectedWallets.ts#L49" CreationDate="2023-05-24T07:07:51.280" UserId="4235" />
  <row Id="8743" PostId="4460" Score="0" Text="why not just check the origin of the transaction?" CreationDate="2023-05-24T08:12:29.663" UserId="3319" />
  <row Id="8744" PostId="8614" Score="0" Text="Okay, @Shunsuke I just shared the .toml file" CreationDate="2023-05-24T09:53:13.220" UserId="3112" />
  <row Id="8745" PostId="7377" Score="0" Text="Brillant thing, It solved a big problem of instantiation using json RPC" CreationDate="2023-05-24T09:58:30.870" UserId="3440" />
  <row Id="8746" PostId="8622" Score="0" Text="Thanks for the response.&#xA;So, I actually tried as you suggested before posting the question, but I always get this error:&#xA;&#xA;&#xA;     Error: createType(AccountId):: Invalid AccountId provided, expected 32 bytes, found 20" CreationDate="2023-05-24T13:07:47.820" UserId="258" />
  <row Id="8747" PostId="8622" Score="0" Text="Okay. Can you open a new question with a reproducible example (actual code + repo(s)), so we can replicate the issue and solve it." CreationDate="2023-05-24T13:10:29.243" UserId="29" />
  <row Id="8748" PostId="8614" Score="0" Text="I do manage to compile your code without any problem. I used both the stable and nightly versions of the rust compiler. Would you mind to include the full output of the following command?&#xA;&#xA;`rustup update &amp;&amp; rustup default nightly &amp;&amp; cargo build --release`" CreationDate="2023-05-24T13:20:17.330" UserId="4240" />
  <row Id="8749" PostId="8579" Score="0" Text="Yes, wrapping `RuntimeOrigin` is a nice substrate-style solution for adjusting origin handling logic, thank you! But only in scope of specific pallet. Are there any ideas of implementing this as runtime-level logic? Like if we want to build a runtime with some role-based access to calls or something like that. Is that feasible without delving into dark deepes of substrate?" CreationDate="2023-05-24T13:33:14.503" UserId="3088" />
  <row Id="8750" PostId="8614" Score="0" Text="Thanks @JoséMolina, the command works and compiles. but `cargo contract build` still gives the same error" CreationDate="2023-05-24T14:31:37.580" UserId="3112" />
  <row Id="8751" PostId="8629" Score="0" Text="Thanks!, but now I get a new error lol" CreationDate="2023-05-24T14:54:23.630" UserId="3112" />
  <row Id="8752" PostId="8629" Score="0" Text="Which one you get? Did you cleanup your build and re-run it after making the change?" CreationDate="2023-05-24T14:55:18.740" UserId="4240" />
  <row Id="8753" PostId="8629" Score="0" Text="Yeah, I ran `cargo clean` to clean up and remove the target directory" CreationDate="2023-05-24T14:59:33.913" UserId="3112" />
  <row Id="8754" PostId="8629" Score="0" Text="Please run `cargo clean &amp;&amp; cargo build --release &amp;&amp; cargo contract build --release`. It did work for me." CreationDate="2023-05-24T15:00:52.867" UserId="4240" />
  <row Id="8755" PostId="8629" Score="0" Text="Thank you!&#xA;Switching to Rustc stable version solved the last error." CreationDate="2023-05-24T15:10:56.180" UserId="3112" />
  <row Id="8756" PostId="8622" Score="0" Text="The repo is actually private, but it is similar to moonbeam's.&#xA;i will open another question with code examples if that's ok" CreationDate="2023-05-24T15:44:58.787" UserId="258" />
  <row Id="8757" PostId="8633" Score="0" Text="`The auto-generated call works fine,` ? Could you please include this into the question too... I think you will be able to copy and paste from it" CreationDate="2023-05-25T02:07:49.173" UserId="116" />
  <row Id="8758" PostId="8633" Score="0" Text="Why do you need the `members.iter(),map()` ?" CreationDate="2023-05-25T02:08:17.807" UserId="116" />
  <row Id="8759" PostId="8634" Score="0" Text="This was an excellent answer. I didn't know about the SCALE encoding/decoding logic on UncheckedExtrinsic, as I was always scratching my head thinking in terms of &quot;rust&quot; types and briefly forgetting that the runtime compiles to WASM. This is very interesting, but however I've heard that the runtime can be executed as native code as well. In that case, do we also rely on SCALE encoding/decoding to ensure compatibility between `Block` type among others ?" CreationDate="2023-05-25T06:11:30.843" UserId="139" />
  <row Id="8760" PostId="8541" Score="0" Text="Thanks Xavier, as an archlinux user I confirm this works. I installed the `downgrade` package and downgraded `gcc`, `gcc-libs` and `gcc-objc` to version 12.2.1-2. Should we create an issue on the substrate repo to support gcc13 ?" CreationDate="2023-05-25T07:18:40.990" UserId="379" />
  <row Id="8762" PostId="8624" Score="0" Text="Let me put it in more simpler terms hopefully explaining it better:&#xA;&#xA;Peers/Nodes are obviously communicating with each other therefore they know each others public ip and ports.&#xA;&#xA;All I'm looking to do is to get that info (ip + port in form of Multiaddr) within node.&#xA;&#xA;For example when spinning up node you can pass '--bootnodes' flag which is Multiaddr containing PeerId. This Multiaddr is stored somehwere - how can I retrieve it in runtime. Obviously I don't want to retrieve Multiaddrs only for bootnodes but for any node I'm connected to." CreationDate="2023-05-25T08:28:33.063" UserId="3955" />
  <row Id="8763" PostId="8634" Score="0" Text="I can't give a great answer on this, but I have some notes. The runtime _can_ be executed as native, but there is [discussion](https://github.com/paritytech/substrate/issues/7288) around it (which is a pretty good read).  Runtime calls are always encoded (as of PR #12201), but it isn't for that reason. Using a native runtime, it doesn't matter if types are compatible, because a native runtime can _only_ support a code version which it compiled from source. A client using WASM can run many versions just by downloading the new WASM, but a client using native must be restarted / recompiled." CreationDate="2023-05-25T17:00:22.510" UserId="3407" />
  <row Id="8764" PostId="8645" Score="0" Text="I looked through all the links you sent me regarding upgrading a node to use WeightsV2, but have no idea what I need to change in my project. I have verified that I have the same runtime implementation as substrate-contracts-node related to weight configuration. Since you can configure each pallet with its own weight configuration, how does Contracts UI determine if you are using WeightsV2 or V1?" CreationDate="2023-05-25T19:12:22.493" UserId="3850" />
  <row Id="8765" PostId="8645" Score="0" Text="I check your code and I don't see the difference between the substrate-contracts-node https://github.com/paritytech/substrate-contracts-node/blob/main/runtime/src/lib.rs#L149. If you run the substrate-contracts-node instead of yours it works?" CreationDate="2023-05-26T08:19:47.263" UserId="2762" />
  <row Id="8766" PostId="8624" Score="0" Text="Why do you want to have that in the runtime? What are you doing? There is no way currently to have this in the runtime." CreationDate="2023-05-26T09:02:53.010" UserId="73" />
  <row Id="8767" PostId="8624" Score="0" Text="Apologies - 'runtime' was poor term to choose. I mean in the outer node.&#xA;&#xA;&quot;What are you doing?&quot; Creating RPC which for given PeerId (or AuthorityId) will return it's Multiaddrs if node I'm invoking RPC on is connected to peer in question." CreationDate="2023-05-26T09:57:34.420" UserId="3955" />
  <row Id="8768" PostId="8645" Score="0" Text="Yes substrate contracts node works with WeightV2. While we investigate, are there any more technical documentation related to pallets and how the runtime handles weights, and maybe how Contracts UI determines if the node uses WeightV2 or not?" CreationDate="2023-05-26T13:36:11.693" UserId="3850" />
  <row Id="8769" PostId="8645" Score="0" Text="It checks that the Weight type of your chain has the WeightsV2 format (It contains the proofSize filed), see the code: https://github.com/paritytech/contracts-ui/blob/master/src/ui/contexts/ApiContext.tsx#L46" CreationDate="2023-05-26T14:17:39.137" UserId="2762" />
  <row Id="8770" PostId="8645" Score="0" Text="Here is the error you see: https://github.com/paritytech/contracts-ui/blob/master/src/ui/components/common/NoticeBanner.tsx" CreationDate="2023-05-26T14:18:27.123" UserId="2762" />
  <row Id="8771" PostId="8645" Score="0" Text="To give more clarity on my current local development setup, I am running 2 validator nodes (alice &amp; bob) for the polkadot relay chain and my parachain-contracts-node is running as a parachain which is connected to the relay chain. I started from the parachain template and added the `pallet_contracts` pallet to the runtime. &#xA;&#xA;When I access the Contracts UI platform and select the test network from the dropdown, I select &quot;Local Node&quot; which I presume is the parachain node." CreationDate="2023-05-26T15:45:22.953" UserId="3850" />
  <row Id="8772" PostId="8645" Score="0" Text="I believe the &quot;Local Node&quot; is the one running in the port 9944, do you have the parachain running there?" CreationDate="2023-05-26T16:18:39.213" UserId="2762" />
  <row Id="8773" PostId="8645" Score="0" Text="No it isn't. &#xA;&#xA;```&#xA;./target/debug/parachain-template-node \&#xA;--alice \&#xA;--collator \&#xA;--force-authoring \&#xA;--chain raw-parachain-chainspec.json \&#xA;--base-path /tmp/parachain/alice \&#xA;--port 40333 \&#xA;--ws-port 8844 \&#xA;-- \&#xA;--execution wasm \&#xA;--chain ../polkadot/raw-local-chainspec.json \&#xA;--port 30343 \&#xA;--ws-port 9977&#xA;```&#xA;&#xA;It is the alice validator node running on port 9944 as relay chain node:&#xA;```&#xA;./target/release/polkadot \&#xA;--alice \&#xA;--validator \&#xA;--base-path /tmp/relay/alice \&#xA;--chain ./raw-local-chainspec.json \&#xA;--port 30333 \&#xA;--ws-port 9944&#xA;```" CreationDate="2023-05-26T16:30:49.300" UserId="3850" />
  <row Id="8774" PostId="8645" Score="0" Text="That's probably the issue! At the bottom of the page there is a settings button where you can change the endpoint. Go there an specify where your parachain is running" CreationDate="2023-05-26T16:44:02.987" UserId="2762" />
  <row Id="8775" PostId="8645" Score="0" Text="When I connect to port 8844, I get the following error message: &quot;No accounts found&quot;. I tried connecting to port 9977, but I got the previous error unsupported WeigthV2." CreationDate="2023-05-26T17:12:33.923" UserId="3850" />
  <row Id="8776" PostId="8483" Score="1" Text="thank you a lot" CreationDate="2023-05-26T18:17:27.880" UserId="3838" />
  <row Id="8778" PostId="8621" Score="1" Text="in order to [reserve field](https://learn.brushfam.io/docs/OpenBrush/smart-contracts/upgradeable#limitations-for-future-upgrades) for future type they use `pub _reserved: Option&lt;()&gt;`" CreationDate="2023-05-28T01:37:28.973" UserId="2844" />
  <row Id="8779" PostId="8671" Score="0" Text="duplicate of https://substrate.stackexchange.com/questions/368/how-to-change-consensus-engine-from-poa-to-pos, and related to https://substrate.stackexchange.com/questions/996/how-to-upgrade-consensus-engine-of-a-live-chain-from-poa-to-pos" CreationDate="2023-05-29T05:06:31.393" UserId="83" />
  <row Id="8780" PostId="8679" Score="0" Text="in the context of polkadot, all parachains are synced to the relay chain, so if a parachain block is reverted, all the necessary changes apply to the affected parachains" CreationDate="2023-05-29T10:52:32.257" UserId="3319" />
  <row Id="8781" PostId="8684" Score="0" Text="Brilliant answer thanks! Constructing the client with: let api = OnlineClient::&lt;PolkadotConfig&gt;::from_url(&quot;wss://rpc.polkadot.io:443&quot;).await?; works!!" CreationDate="2023-05-29T11:29:54.683" UserId="2762" />
  <row Id="8782" PostId="8681" Score="0" Text="check this https://substrate.stackexchange.com/questions/3341/node-that-was-not-modified-fails-to-build" CreationDate="2023-05-29T11:57:46.477" UserId="2281" />
  <row Id="8783" PostId="8616" Score="0" Text="When i try Bruno's suggestion, I always get:&#xA;&#xA;Error: createType(AccountId):: Invalid AccountId provided, expected 32 bytes, found 20" CreationDate="2023-05-29T12:13:51.110" UserId="258" />
  <row Id="8784" PostId="8679" Score="0" Text="Thanks! Is there any resources about this?" CreationDate="2023-05-29T12:40:15.437" UserId="1795" />
  <row Id="8785" PostId="8679" Score="0" Text="https://wiki.polkadot.network/docs/learn-architecture#shared-security" CreationDate="2023-05-29T13:40:53.133" UserId="3319" />
  <row Id="8786" PostId="7219" Score="0" Text="I have very similar issue, I think that there is NO working example with `Mapping`." CreationDate="2023-05-29T13:41:38.273" UserId="19" />
  <row Id="8787" PostId="2562" Score="0" Text="In the real reality, the question is NOT simple." CreationDate="2023-05-29T14:17:24.060" UserId="19" />
  <row Id="8788" PostId="8687" Score="0" Text="Could you please share the python script you're using?" CreationDate="2023-05-29T14:41:02.660" UserId="4240" />
  <row Id="8789" PostId="8624" Score="0" Text="Then you need to do what I described under point 3." CreationDate="2023-05-29T14:48:05.973" UserId="73" />
  <row Id="8790" PostId="8645" Score="0" Text="My `node/src/chain_spec.rs` contains the configuration to add default accounts like Alice and Bob in the genesis state. So I'm not sure why I get the error &quot;No accounts found&quot;." CreationDate="2023-05-29T15:03:48.300" UserId="3850" />
  <row Id="8791" PostId="8641" Score="0" Text="Thank you very much, its working now." CreationDate="2023-05-29T16:01:22.203" UserId="496" />
  <row Id="8793" PostId="8478" Score="0" Text="You are using `build_call().delegate`, but you can also use `build_call().call` which takes callee AccountId as a parameter and you do not need hash.&#xA;https://docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html#method.call&#xA;That makes `build_call()` to be more usable if you call already deployed contract." CreationDate="2023-05-29T16:51:36.743" UserId="529" />
  <row Id="8794" PostId="8687" Score="0" Text="You want to do a transfer? Why not look how to do it directly in python https://github.com/polkascan/py-substrate-interface#create-balance-transfer-extrinsic ?" CreationDate="2023-05-29T21:02:56.650" UserId="94" />
  <row Id="8795" PostId="8691" Score="0" Text="Thank you for taking time to help me. You are right that it's a complete process not just amending one file. I've followed this link of substrate-node-template: https://github.com/paritytech/substrate/blob/master/bin/node/cli/src/service.rs which has already implemented Babe. I've also managed to convert all, in service.rs also, there is tiny change, I think if an experienced rust developer sees the code, can fix it in minutes. I will follow your suggestion though. Thanks" CreationDate="2023-05-30T06:56:40.120" UserId="3555" />
  <row Id="8796" PostId="8687" Score="0" Text="@OliverTale-Yazdi hi, if ill be using this code what will happen with the nonce if i sending transactions in parallel?&#xA;&#xA;and also in this way i will need to have my own node right? with db.&#xA;or maybe there is public Substrate node?" CreationDate="2023-05-30T07:19:12.500" UserId="4279" />
  <row Id="8797" PostId="8687" Score="0" Text="You can just manually set the nonce." CreationDate="2023-05-30T10:16:09.363" UserId="94" />
  <row Id="8798" PostId="1391" Score="0" Text="An example that I used is found in this [custom derives](https://github.com/xx-labs/web-wallet/tree/fcdcd4f5ddeeb69c272e4550fde3353ecd0328b7/packages/custom-derives) module, imported with `import custom from './custom-derives'` and api constructed with `const api = await ApiPromise.create({ derives: custom, provider });`" CreationDate="2023-05-30T11:10:56.550" UserId="4284" />
  <row Id="8799" PostId="8696" Score="1" Text="Check this previous answer https://substrate.stackexchange.com/questions/2874/how-can-a-project-prolong-a-parachain-slot-lease-in-kusama?rq=1" CreationDate="2023-05-30T14:55:03.537" UserId="2762" />
  <row Id="8800" PostId="8696" Score="0" Text="Also another potential area of steps required can be within the Kusama guide at https://guide.kusama.network/docs/learn-auction/#parachain-lease-extension" CreationDate="2023-05-30T14:59:33.853" UserId="2909" />
  <row Id="8801" PostId="7915" Score="0" Text="How do you speed up the syncing while using this?&#xA;I mean, you don't want to wait the full block time each time you are importing a new block. You want to run the `on_initialize` and then immediately the `on_finalize`, without waiting for any transaction to come" CreationDate="2023-05-30T17:38:13.617" UserId="2340" />
  <row Id="8803" PostId="8703" Score="0" Text="Thanks for you answer! Yes this is the way, but in this case I need to wrap any kind of transaction and adding new transactions on node will require add more wrappers." CreationDate="2023-05-31T06:15:03.563" UserId="4285" />
  <row Id="8804" PostId="8705" Score="0" Text="this is docs: https://docs.substrate.io/tutorials/build-a-blockchain/authorize-specific-nodes/" CreationDate="2023-05-31T07:33:52.267" UserId="4062" />
  <row Id="8805" PostId="6098" Score="0" Text="@OliverTale-Yazdi I have one storagemap which stores u32 value,now i need to migrate this to Vec&lt;T::AccountId&gt;. How do it in storage migration?" CreationDate="2023-05-31T08:13:09.867" UserId="555" />
  <row Id="8806" PostId="8597" Score="0" Text="yet another complement, interesting for historical record on this topic: https://github.com/PureStake/moonbeam/pull/174" CreationDate="2023-05-31T12:41:45.390" UserId="494" />
  <row Id="8807" PostId="8691" Score="0" Text="This is an update on my earlier issue, I was using the wrong trait bounds, after correction the Babe migration was successful. :)" CreationDate="2023-06-01T04:45:14.943" UserId="3555" />
  <row Id="8808" PostId="8699" Score="0" Text="But I've never seen any special measures taken especially when it comes to asset transfers, which makes me think the underlying model is safe against forks and rollbacks, otherwise you could end up losing assets if they're burnt on one chain and then not really deposited into the other. Not talking about how the state is changes on either chain, but rather how those changes are reverted." CreationDate="2023-06-01T06:55:34.953" UserId="1795" />
  <row Id="8809" PostId="8691" Score="0" Text="Great!!!!!!!!!!!" CreationDate="2023-06-01T07:58:31.003" UserId="139" />
  <row Id="8810" PostId="8699" Score="0" Text="If you read the documentation for `Teleport` in xcm-format it reads `This is only possible if there is a bilateral trust relationship both of the STF and the validity/finality/availability between them.` So, indeed, you should only go for a burn &amp; mint approach when there is trust, otherwise this is a very bad idea.&#xA;As an &quot;example of trust&quot; assets system chain (Statemint) and Polkadot allow teleportation of assets as they are controlled by the same governance, hence you can trust" CreationDate="2023-06-01T13:46:19.420" UserId="165" />
  <row Id="8811" PostId="8736" Score="1" Text="Please include a way to reproduce this: https://stackoverflow.com/help/minimal-reproducible-example" CreationDate="2023-06-01T15:36:34.343" UserId="29" />
  <row Id="8812" PostId="8737" Score="0" Text="Won't I need to implement the `AccountIdConverter::to_32` method for the `frame_system::Config::AccountId`?" CreationDate="2023-06-01T18:14:45.353" UserId="3850" />
  <row Id="8813" PostId="320" Score="0" Text="if one can store panic transaction in some kind of dispatch scheduler he would trigger panic in pallet hooks.  if on_finalize panic as bad as on_initialize, chain could halt too" CreationDate="2023-06-02T04:44:14.037" UserId="484" />
  <row Id="8814" PostId="2321" Score="0" Text="Yes, we have been hard at work on custom protocols over Substrate. You can find a lot of work in: https://github.com/webb-tools/dkg-substrate @dadzerlaze" CreationDate="2023-06-02T04:57:02.073" UserId="74" />
  <row Id="8815" PostId="8731" Score="0" Text="i just want to know how polkadot open there slot for auction." CreationDate="2023-06-02T05:09:29.597" UserId="3136" />
  <row Id="8816" PostId="4342" Score="1" Text="Yes, we were not implementing a method in DealWithFees struct, which led to runtime using a default implementation that was empty, hence not having the desired affect" CreationDate="2023-06-02T08:28:27.047" UserId="2809" />
  <row Id="8817" PostId="7797" Score="0" Text="Thanks @AurevoirXavier For Answering." CreationDate="2023-06-02T09:59:46.867" UserId="3752" />
  <row Id="8818" PostId="8741" Score="0" Text="This really good information, thank you.&#xA;&#xA;To be more specific, the error that I'm facing is&#xA;&#xA;`API-WS: disconnected from wss://xxx.yyy.zz: 1006:: Abnormal Closure` Under these circumstances I would like the API to reconnect." CreationDate="2023-06-02T10:11:15.687" UserId="698" />
  <row Id="8819" PostId="8699" Score="0" Text="Yes but I am not talking about the trust between chains. I am talking about the case where you send tokens to a reserve account, so in an untrusted environment, and then for some reason the other chain where the funds have been sent is reverted. I would expect the transfer from the source chain to also be reverted. My point has nothing to do with the trust relationship between the two chains, but rather on the consequences of state rollbacks on either of them, regardless of the trust between them." CreationDate="2023-06-02T14:02:33.440" UserId="1795" />
  <row Id="8820" PostId="8742" Score="0" Text="Very weird. I would consider opening an issue in polkadotjs apps: https://github.com/polkadot-js/apps/issues I do not see how this could be a Polkadot/Cumulus issue" CreationDate="2023-06-02T19:49:04.753" UserId="29" />
  <row Id="8821" PostId="8737" Score="0" Text="Nope, you should define a struct at runtime level, and implement this trait for it. Finally, pass this struct to the `youpallet::Config::AccountIdConvertor`." CreationDate="2023-06-03T00:39:13.700" UserId="251" />
  <row Id="8822" PostId="8751" Score="0" Text="mapping inside mapping is not possible in ink! contract. For the solution you can follow this [link](https://substrate.stackexchange.com/a/3993/2844)" CreationDate="2023-06-03T01:53:02.233" UserId="2844" />
  <row Id="8823" PostId="8755" Score="0" Text="I dont think its possible. What exactly are you trying to accomplish?" CreationDate="2023-06-03T09:00:39.563" UserId="94" />
  <row Id="8825" PostId="8755" Score="0" Text="Thank you for the answer&#xA;&#xA;To give more details, in a heavily modified substrate node, we have an extrinsic to dynamically either increase or decrease some additional fields in the header. The point is, increasing the fields to put more data is always ok. But decreasing at the end of a block after a lot of data was send (in the same block), will block further computation and stop block production.&#xA;It's done with priviledged access but a governance human mistake could provoke this." CreationDate="2023-06-03T09:37:45.250" UserId="2135" />
  <row Id="8826" PostId="8756" Score="0" Text="Thank you for your answer.&#xA;Editted to give more details." CreationDate="2023-06-03T09:42:37.877" UserId="2135" />
  <row Id="8827" PostId="8759" Score="0" Text="this example might help you [here](https://github.com/paritytech/ink/blob/master/integration-tests/mapping-integration-tests/lib.rs) to use mapping in contract" CreationDate="2023-06-04T02:11:05.653" UserId="2844" />
  <row Id="8828" PostId="8759" Score="0" Text="before asking the question I was looking at examples of Mapping, but was not able to find example with modifying/inserting - in the example that you have linked I am also not able to find more of less similar to my code/question per se, thanks anyhow ;-)" CreationDate="2023-06-04T02:16:37.517" UserId="19" />
  <row Id="8829" PostId="8718" Score="0" Text="Researching, I found one person who said that you can change the customSpec.JSON file's &quot;bootNodes&quot;: field without a problem. (that is, you will connect to the correct chain. If that's true, then is this solution as simple as taking the raw spec json file and adding in an appropriate bootnode?" CreationDate="2023-06-04T19:39:21.003" UserId="3346" />
  <row Id="8830" PostId="8718" Score="0" Text="I also found the following... Your bootnode needs to listen on secure Websocket to catch with substrate connect:&#xA;* Node needs to listen on WS instead of default http --listen-addr /ip4/0.0.0.0/tcp/30333/ws (do no use --port in this case)&#xA;* Set a proxy with WS upgrade and SSL enabled, pointing a DNS&#xA;* Specify the WSS address of the bootnode in chainspecs (example: &quot;/dns/astar-02.wss-bootnode.astar.network/tcp/443/wss/p2p/12D3KooWMfHf9G1Mtawz4qySe1EqaBmrieidqn2xnEYckUYkpe52&quot;)" CreationDate="2023-06-04T19:40:49.193" UserId="3346" />
  <row Id="8831" PostId="8718" Score="0" Text="So we might also want to start a node under those specifications for substrate connect to find, and then add that node as a bootnode in the raw spec json file. Can someone check my thinking on that? And do you really need a secure web socket or will any bootnode work?" CreationDate="2023-06-04T19:42:03.460" UserId="3346" />
  <row Id="8832" PostId="8718" Score="0" Text="Last question.... Where in all of the front end code would you place the code I included above? We are using a clone of the polkadot-JS apps front end, customized with pages for our own apps." CreationDate="2023-06-04T19:58:13.553" UserId="3346" />
  <row Id="8833" PostId="5298" Score="0" Text="were you able to solve this problem?" CreationDate="2023-06-04T22:41:07.573" UserId="2898" />
  <row Id="8834" PostId="8239" Score="0" Text="I wonder whether you've resolved this issue? If not, I'd suggest opening an issue in the Subxt repository and if you're able to give some steps to reproduce your issue, we'd be able to dig more into it :)" CreationDate="2023-06-05T10:03:17.657" UserId="474" />
  <row Id="8835" PostId="8768" Score="0" Text="which means fee will go nowhere and no-one gets the fee? Please correct if I am missing anything." CreationDate="2023-06-05T10:39:35.203" UserId="3437" />
  <row Id="8836" PostId="8768" Score="0" Text="Yep. The token is burned/removed from the system." CreationDate="2023-06-05T11:19:28.797" UserId="251" />
  <row Id="8837" PostId="8239" Score="0" Text="(also perhaps https://substrate.stackexchange.com/questions/8063/where-do-i-add-a-signedextension-in-a-subxt-call/8067#8067 would help)" CreationDate="2023-06-05T11:56:27.397" UserId="474" />
  <row Id="8838" PostId="8771" Score="0" Text="That's quite odd. but at the same time insightful as it at least gives us a clue that polkadot-js is making use of this distinction." CreationDate="2023-06-05T13:08:35.983" UserId="139" />
  <row Id="8839" PostId="8775" Score="0" Text="How did you do that before? Providing more info that I can help you correct your steps." CreationDate="2023-06-05T13:15:48.590" UserId="251" />
  <row Id="8840" PostId="8783" Score="0" Text="https://substrate.stackexchange.com/questions/7881/error-loading-of-original-wasm-failed" CreationDate="2023-06-06T07:28:45.360" UserId="2762" />
  <row Id="8841" PostId="8699" Score="0" Text="Right, so this is taken care of directly by the protocol. When parachain B is crating a block on top of relay parent #101, can say that it has acted on all messages up to relay parent #100. Parachain B is acting on messages part of a parachain block from para A only if A's block header appeared in the relay block 100 or earlier. So, only acting on messages that are part of finalised blocks.&#xA;Eventually para B creates its latest block and it will be passed to para validators to finalise it, everything that is final cannot be reverted." CreationDate="2023-06-06T09:31:40.683" UserId="165" />
  <row Id="8842" PostId="8699" Score="0" Text="It feels your question has more to do with if parachains can revert state, and how does it look than anything XCM." CreationDate="2023-06-06T09:33:04.290" UserId="165" />
  <row Id="8843" PostId="8353" Score="1" Text="Did you try the same call without using polkadotJS (sneding the extrinsic within Polkadot UI or the Contracts-U: https://contracts-ui.substrate.io/)" CreationDate="2023-06-06T10:18:15.463" UserId="2762" />
  <row Id="8844" PostId="8787" Score="0" Text="Thank you for your answer. While your suggestion to use the Ethereum API to fetch the base fee is valid, I was specifically interested in achieving the same via the Substrate API. After doing some additional research, I have found the answer. I will update my question with the solution." CreationDate="2023-06-06T19:40:26.313" UserId="3528" />
  <row Id="8845" PostId="8793" Score="1" Text="hey Mak thanks for helping me earlier. Appreciate it." CreationDate="2023-06-07T02:13:35.027" UserId="4306" />
  <row Id="8846" PostId="8795" Score="1" Text="Thank you serr. This was really helpful. Apologies for my attitude, I was so frustrated. I can now see my $WND tokens. Thank you for sending me 50, wow! :D" CreationDate="2023-06-07T02:14:34.033" UserId="4306" />
  <row Id="8848" PostId="8783" Score="4" Text="Does this answer your question? [cannot run substrate on a fresh macbook m2](https://substrate.stackexchange.com/questions/7714/cannot-run-substrate-on-a-fresh-macbook-m2)" CreationDate="2023-06-07T04:51:41.843" UserId="251" />
  <row Id="8850" PostId="8777" Score="0" Text="awesome. it works thanks" CreationDate="2023-06-07T06:24:54.763" UserId="4303" />
  <row Id="8851" PostId="8795" Score="1" Text="No worries. Your frustration is understandable. We are all chill, so feel free to ask. Note that anyone with either a parity matrix account or a web3 one, will be able to send WND very easily so that should never take long. Please do return the remaining funds if you no longer need them." CreationDate="2023-06-07T07:05:17.103" UserId="198" />
  <row Id="8852" PostId="8799" Score="0" Text="What I mean by this question is whether there will be a change in the way of coding in palettes or not? Or does it make our network compatible with Metamask and the implementation of Solidity codes?" CreationDate="2023-06-07T08:55:29.787" UserId="2722" />
  <row Id="8853" PostId="8799" Score="0" Text="There is no change  in coding of pallets. after the integration its make your network compatible with metamask and you can use remix ide and deploy EVM contracts on your chain." CreationDate="2023-06-07T09:09:11.330" UserId="2281" />
  <row Id="8854" PostId="8790" Score="0" Text="But, is there a specific reason behind these implementations? like, why isn't `From&lt;[u8; 32]&gt;` is implemented for `KeyId`?" CreationDate="2023-06-07T10:00:24.663" UserId="3538" />
  <row Id="8855" PostId="8809" Score="0" Text="Do you have the source code handy or some reproducible example? It should work as you described in the last block of code. Could be that you are not yet using the version where we fixed that. I tried it locally and it works for me so far." CreationDate="2023-06-07T13:37:47.813" UserId="94" />
  <row Id="8856" PostId="8809" Score="0" Text="@OliverTale-Yazdi I am using polkadot-v0.9.40 branch for frame-benchmarking or 4.0.0-dev version as it set in Cargo.lock" CreationDate="2023-06-07T13:40:46.133" UserId="3088" />
  <row Id="8858" PostId="8785" Score="0" Text="Thank you Andre. I haven't thought about that equivocations are votes for all branches. So if a relayer cuts them from a proof, then it's not even possible to verify the proof properly, right?" CreationDate="2023-06-07T15:37:09.857" UserId="4287" />
  <row Id="8859" PostId="8819" Score="0" Text="[here](https://paritytech.github.io/ink/ink_env/test/index.html#functions) are the function needed while writing test in ink! smart contract. You need to `set_caller` like [this](https://paritytech.github.io/ink/ink_env/test/fn.set_caller.html)" CreationDate="2023-06-08T01:13:30.420" UserId="2844" />
  <row Id="8860" PostId="8783" Score="0" Text="please copy your errors as text instead of images so it is possible to copy and paste from it" CreationDate="2023-06-08T02:54:55.493" UserId="116" />
  <row Id="8861" PostId="8820" Score="0" Text="I'm making new custom UI based on that repository (https://github.com/polkadot-js/apps), but I got above issue&#xA;Do you have any idea for using that component (@polkadot/react-components)?&#xA;I need to use that component, that's why I'm just forking some feature of polkadot-js/app repository now" CreationDate="2023-06-08T04:35:29.067" UserId="4307" />
  <row Id="8862" PostId="8822" Score="0" Text="try to set up a dev environment and single step your code until you see what variable does not hold its expected value." CreationDate="2023-06-08T04:36:55.680" UserId="116" />
  <row Id="8863" PostId="8811" Score="0" Text="Edit your post to include the code as code blocks instead of pictures." CreationDate="2023-06-08T04:39:38.163" UserId="116" />
  <row Id="8864" PostId="8790" Score="0" Text="I think there is no specific reason. Those key types are generated by the macro. Maybe they want to make the macro more generic. And chose not to provide an infallible method." CreationDate="2023-06-08T06:55:05.857" UserId="251" />
  <row Id="8865" PostId="7830" Score="0" Text="Luke i run this `rustup override set nightly-2023-01-01 &amp;&amp; rustup target add wasm32-unknown-unknown` but it in rustup +nightly show i get:&#xA;&#xA;...&#xA;nightly-2023-01-01-x86_64-unknown-linux-gnu&#xA;nightly-x86_64-unknown-linux-gnu&#xA;1.68-x86_64-unknown-linux-gnu&#xA;1.68.2-x86_64-unknown-linux-gnu (default)&#xA;&#xA;installed targets for active toolchain&#xA;--------------------------------------&#xA;&#xA;wasm32-unknown-unknown&#xA;x86_64-unknown-linux-gnu&#xA;&#xA;active toolchain&#xA;----------------&#xA;&#xA;nightly-x86_64-unknown-linux-gnu (overridden by +toolchain on the command line)&#xA;rustc 1.72.0-nightly (e6d4725c7 2023-06-05)" CreationDate="2023-06-08T08:44:20.880" UserId="298" />
  <row Id="8866" PostId="8824" Score="0" Text="Please clarify what you mean by `CustomSpec`" CreationDate="2023-06-08T08:44:41.057" UserId="139" />
  <row Id="8867" PostId="7830" Score="0" Text="as it doesnt seem to be changing the night to 1.68, it still says 1.72..." CreationDate="2023-06-08T09:23:20.913" UserId="298" />
  <row Id="8868" PostId="8825" Score="1" Text="I already know this thing. Can you please tell me How can i add nominators account in customSpec?" CreationDate="2023-06-08T10:07:21.360" UserId="2372" />
  <row Id="8869" PostId="7830" Score="0" Text="actually i followed Bernado's renaming procedure, and it now shows the correct version." CreationDate="2023-06-08T10:42:17.580" UserId="298" />
  <row Id="8870" PostId="7721" Score="1" Text="that renaming was a ninja move, and worked for me" CreationDate="2023-06-08T10:45:32.733" UserId="298" />
  <row Id="8871" PostId="7881" Score="0" Text="Rustc v1.70.0 dont work either so consider sticking with 1.68.0 or 1.69.0 stable" CreationDate="2023-06-08T11:29:00.087" UserId="351" />
  <row Id="8872" PostId="8825" Score="0" Text="You add the accounts in the chain_spec.rs and compile the code. Then you use the correct chain (the one you changed) to generate the json chain-spec" CreationDate="2023-06-08T11:50:12.030" UserId="116" />
  <row Id="8874" PostId="8821" Score="1" Text="The experimental engine doesn't exist anymore. Its just part of ink now so you don't need to add this macro." CreationDate="2023-06-08T15:53:49.950" UserId="380" />
  <row Id="8875" PostId="8821" Score="1" Text="Thanks, fell free to answer and I will close the question as solved." CreationDate="2023-06-08T16:10:39.807" UserId="19" />
  <row Id="8876" PostId="8833" Score="0" Text="Sorry, maybe I didn't mention it explicitly. I meant I cannot complete first step because parachain doesn't have the sudo pallet. As a workaround, I tried to force the upgrade from the relay chain using &quot;ForceScheduleCodeUpgrade&quot;, but I got the panic mentioned above." CreationDate="2023-06-08T19:15:11.333" UserId="3395" />
  <row Id="8877" PostId="8834" Score="1" Text="I believe this may be the opposite that you're asking for but may still be helpful: https://github.com/paritytech/ethereum-xcm-v3/blob/main/src/utils/ScaleCodec.sol" CreationDate="2023-06-09T00:09:10.710" UserId="29" />
  <row Id="8878" PostId="8825" Score="1" Text="@ArunjotSingh aha I see did my edit answer your question?" CreationDate="2023-06-09T00:29:13.280" UserId="116" />
  <row Id="8879" PostId="8834" Score="0" Text="thanks. it opposite. but useful. thanks." CreationDate="2023-06-09T00:39:40.050" UserId="3171" />
  <row Id="8880" PostId="8833" Score="1" Text="Your parachain should have at least the democracy or sudo pallet. Otherwise, it's not correct. If your parachain has the democracy pallet, use it to send the `authorize_upgrade`. Any call can be dispatched with root origin once the democracy referenda pass." CreationDate="2023-06-09T01:04:07.730" UserId="251" />
  <row Id="8883" PostId="8836" Score="1" Text="could you elaborate  more which consensus mechanism you want to use? POA or NPOS" CreationDate="2023-06-09T07:18:33.887" UserId="2281" />
  <row Id="8884" PostId="8836" Score="0" Text="Currently, we have an implementation with PoA, but let's say we want to support NPoS." CreationDate="2023-06-09T07:32:15.570" UserId="2862" />
  <row Id="8885" PostId="8833" Score="0" Text="My parachain uses the default pallets used in the official template: https://github.com/substrate-developer-hub/substrate-parachain-template/blob/main/runtime/src/lib.rs#L465. I don't see either the sudo or democracy pallet. So according to your comment is there no way to perform an upgrade at all? Not even from the relay chain?" CreationDate="2023-06-09T08:25:51.267" UserId="3395" />
  <row Id="8886" PostId="8833" Score="1" Text="There are some ways to do that. But it's really tricky. You should always use sudo or democracy instead do it on the relaychain side. Otherwise, it requires the root origin on relaychain which makes things much more complicated." CreationDate="2023-06-09T08:45:03.720" UserId="251" />
  <row Id="8888" PostId="8821" Score="0" Text="Np, I've updated the original answer on SO as well." CreationDate="2023-06-09T09:01:05.933" UserId="380" />
  <row Id="8890" PostId="8836" Score="1" Text="Does this answer your question? [Pallets needed for staking](https://substrate.stackexchange.com/questions/2944/pallets-needed-for-staking)" CreationDate="2023-06-09T10:31:21.990" UserId="2281" />
  <row Id="8891" PostId="368" Score="0" Text="If you want PoA for testing purpose then you should use substrate full node." CreationDate="2023-06-09T10:33:48.623" UserId="3136" />
  <row Id="8892" PostId="1990" Score="0" Text="can you elaborate more" CreationDate="2023-06-09T10:44:02.423" UserId="3136" />
  <row Id="8893" PostId="1978" Score="0" Text="I am also working on hybrid consensus.&#xA;please let me know do u achieve your goal" CreationDate="2023-06-09T10:53:20.313" UserId="3136" />
  <row Id="8894" PostId="8840" Score="0" Text="Sorry, I updated the screenshot. I mean a parachain could also bid for `31 ~ 35`, `32 ~ 33`, `30`, etc. Your algorithm just count the leases." CreationDate="2023-06-11T17:33:22.793" UserId="251" />
  <row Id="8895" PostId="7882" Score="0" Text="I just had this issue both using 1.70.0 stable &amp; nightly. Fixed by changing back to 1.69 by running `rustup update &amp;&amp; rustup install 1.69 &amp;&amp; rustup default 1.69 &amp;&amp; rustup override set 1.69 &amp;&amp; rustup component add rust-src --toolchain 1.69 &amp;&amp; cargo contract build`. Note that cargo-contract has pinned their CI to 1.69 https://github.com/paritytech/cargo-contract/blob/master/.github/workflows/ci.yml#L185 due to this issue https://github.com/paritytech/cargo-contract/issues/1139." CreationDate="2023-06-11T23:57:47.887" UserId="83" />
  <row Id="8896" PostId="8848" Score="0" Text="The code you link to is not the culprit in this case it is only the bearer of the bad news. Explain and examine the changes you did from 0.9.30 to 0.9.42. Are all weights updated?" CreationDate="2023-06-12T01:07:12.150" UserId="116" />
  <row Id="8897" PostId="8848" Score="0" Text="So updated all the weights as per new weights" CreationDate="2023-06-12T01:14:47.867" UserId="1950" />
  <row Id="8898" PostId="8848" Score="0" Text="@Simson updated" CreationDate="2023-06-12T01:24:23.007" UserId="1950" />
  <row Id="8899" PostId="8848" Score="0" Text="Are you running your chain locally or are you doing a runtime upgrade?" CreationDate="2023-06-12T02:53:13.513" UserId="116" />
  <row Id="8900" PostId="8848" Score="0" Text="I did a runtime update for my locally running chain and this happened @Simson" CreationDate="2023-06-12T02:58:16.453" UserId="1950" />
  <row Id="8901" PostId="8848" Score="0" Text="Did it reject your update and crash or did it upgrade and then die? (asking all these questions just to make it a better question so just edit and update)" CreationDate="2023-06-12T04:49:10.373" UserId="116" />
  <row Id="8902" PostId="8848" Score="0" Text="Did not reject update, &#xA;Not died, not crashed , this error message popping up on terminal" CreationDate="2023-06-12T05:10:40.820" UserId="1950" />
  <row Id="8903" PostId="8848" Score="0" Text="The question looks good now, I suggested an edit to remove part of the code in the question, which I think is a distraction, and not the root cause." CreationDate="2023-06-12T07:25:23.243" UserId="116" />
  <row Id="8904" PostId="8836" Score="0" Text="Not exactly, but thanks!" CreationDate="2023-06-12T08:57:57.490" UserId="2862" />
  <row Id="8905" PostId="8848" Score="3" Text="Looks like a duplicate of [construct\_runtime\_integrity\_test failing](https://substrate.stackexchange.com/questions/5557/construct-runtime-integrity-test-failing)" CreationDate="2023-06-12T09:06:49.927" UserId="94" />
  <row Id="8906" PostId="8839" Score="0" Text="What do you mean &quot;directly&quot;?" CreationDate="2023-06-12T10:36:13.157" UserId="251" />
  <row Id="8907" PostId="8840" Score="0" Text="@AurevoirXavier Ahh okay makes sense thanks for updating the picture, AFAIK if you want to get the leases for a specific parachain you can use `apiAt.query.slots.leases(&lt;para_id&gt;)` which will return the type: `Vec&lt;Option&lt;ITuple&lt;[AccountId, BalanceOf]&gt;&gt;&gt;`.&#xA;&#xA;You can take then take the size of that vector, and increment from the current leasePeriodIndex. On ways to calculate the index you can find that [here](https://github.com/paritytech/substrate-api-sidecar/blob/master/src/services/paras/ParasService.ts#L488-L502)." CreationDate="2023-06-12T13:48:56.953" UserId="1786" />
  <row Id="8908" PostId="8841" Score="0" Text="Could you add some logs with target `-lafg=debug` ?" CreationDate="2023-06-12T15:26:25.510" UserId="165" />
  <row Id="8909" PostId="8841" Score="0" Text="Tried to add logs to body(needs to be approved)" CreationDate="2023-06-12T16:57:45.310" UserId="181" />
  <row Id="8910" PostId="8841" Score="0" Text="Alejandro, are you able to approve the change which includes the logs?" CreationDate="2023-06-12T20:05:53.453" UserId="181" />
  <row Id="8911" PostId="8865" Score="0" Text="cool, is it going to be open-source?" CreationDate="2023-06-13T00:07:54.907" UserId="83" />
  <row Id="8912" PostId="8848" Score="0" Text="@OliverTale-Yazdi completely different issues , this did not happen when running tests" CreationDate="2023-06-13T02:25:58.150" UserId="1950" />
  <row Id="8913" PostId="8867" Score="0" Text="it looks like this feature needs to be added similar to how `set_block_timestamp` was added here https://substrate.stackexchange.com/a/7758/83 in this PR https://github.com/paritytech/ink/pull/1721, but we need to add `set_block_number`. so it could be used like this in tests: `let new_block_number: BlockNumber = 100; ink::env::test::set_block_number::&lt;ink::env::DefaultEnvironment&gt;(new_block_number);`" CreationDate="2023-06-13T05:41:21.877" UserId="83" />
  <row Id="8914" PostId="8859" Score="0" Text="Could you paste the entire error message in as text too, it will be useful for searches in the future." CreationDate="2023-06-13T06:29:23.970" UserId="116" />
  <row Id="8915" PostId="7038" Score="0" Text="I am also facing the same issue." CreationDate="2023-06-13T06:36:15.597" UserId="458" />
  <row Id="8916" PostId="8859" Score="0" Text="1002: Verification Error: Runtime error: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed WASM backtrace: 0: 0x547257 - &lt;unknown&gt;!rust_begin_unwind 1: 0x54ee - &lt;unknown&gt;!core::panicking::panic_fmt::hca80ede79c2b9c5b 2: 0x29ff1c - &lt;unknown&gt;!TaggedTransactionQueue_validate_transaction : RuntimeApi, Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed\nWASM backtrace:\n\n 0: 0x547257 - &lt;unknown&gt;!rust_begin_unwind\n 1: 0x54ee -" CreationDate="2023-06-13T06:39:44.717" UserId="2372" />
  <row Id="8917" PostId="8859" Score="0" Text="Edit the the post and put it in the question" CreationDate="2023-06-13T08:15:49.263" UserId="116" />
  <row Id="8918" PostId="8867" Score="0" Text="i created a PR here to add `set_block_number` here https://github.com/paritytech/ink/pull/1806 and tested that it works in a project here https://github.com/ltfschoen/InkTemplate/pull/16/files#diff-ba24f44bc113244a08fc1781375fa5aab36b7587d656c925ee251ff42ac4de3fR362" CreationDate="2023-06-13T11:00:14.990" UserId="83" />
  <row Id="8919" PostId="8785" Score="1" Text="It depends, e.g. if we have 100 voters and we get 70 valid votes and 1 equivocated vote then you can create a valid justification just using 67 valid votes. But e.g. if we have 66 valid votes and 1 equivocated vote (let's assume the other 33 validators were offline) then the equivocation is indeed crucial to finalize the block (and hence should be part of the justification)." CreationDate="2023-06-13T11:01:56.823" UserId="452" />
  <row Id="8920" PostId="8865" Score="1" Text="Of course, just like 99% of what I build." CreationDate="2023-06-13T11:09:32.170" UserId="341" />
  <row Id="8921" PostId="8804" Score="0" Text="I can't replicate, I am getting an error when registering the user. Am I missing somehting?" CreationDate="2023-06-13T11:36:47.547" UserId="2762" />
  <row Id="8922" PostId="8565" Score="0" Text="@bkchr, i used this commit for testing the epoch change, i didn't get unexpected epoch change but was also not able to do any transactions after an epoch is skipped any comments on this?&#xA;https://github.com/paritytech/substrate/blob/18b1fdcf984bcf87a81728e0622c5f9d33a0aa67/frame/babe/src/lib.rs#L588-L600" CreationDate="2023-06-13T11:45:51.370" UserId="354" />
  <row Id="8923" PostId="8804" Score="0" Text="to replicate the issue in question, just go to Dashboard and check the console. The memberships user registration is separate and not required." CreationDate="2023-06-13T12:47:46.163" UserId="298" />
  <row Id="8924" PostId="8657" Score="0" Text="https://use.ink/basics/environment-functions" CreationDate="2023-06-13T13:40:05.423" UserId="83" />
  <row Id="8925" PostId="8841" Score="0" Text="Can you include in your post the command you use to start the node(s) including the flags?" CreationDate="2023-06-13T14:27:38.693" UserId="29" />
  <row Id="8926" PostId="8565" Score="0" Text="Your post doesn't contain enough information. If you have an issue, you should open a github issue, but please include all the relevant info to reproduce it." CreationDate="2023-06-13T14:30:34.280" UserId="73" />
  <row Id="8927" PostId="8869" Score="0" Text="Why do you stop the finalization? Just stop all the nodes for one minute and then restart them. What does &quot;not working&quot; means for the balance transfers etc? What error do you get?" CreationDate="2023-06-13T14:33:38.990" UserId="73" />
  <row Id="8928" PostId="8859" Score="0" Text="Try refreshing polkadot-js. Do you have added the pallets through a runtime upgrade?" CreationDate="2023-06-13T14:34:58.733" UserId="73" />
  <row Id="8929" PostId="8844" Score="0" Text="Please show your code. &#xA;&#xA;`sc_service::GenericChainSpec&lt;Result&lt;GenesisConfig, String&gt;` this makes no real sense. The underlying issue is that `Result&lt;GenesisConfig&gt;` doesn't implement the `BuildStorage` trait." CreationDate="2023-06-13T14:37:06.667" UserId="73" />
  <row Id="8930" PostId="8868" Score="0" Text="Please include exact steps on how to reproduce this issue" CreationDate="2023-06-13T14:39:04.967" UserId="29" />
  <row Id="8931" PostId="8873" Score="0" Text="Okay thanks. So this can be ignored as long as I listen for `finalized`?" CreationDate="2023-06-13T15:17:59.713" UserId="94" />
  <row Id="8932" PostId="8873" Score="1" Text="Yes. I mean the transaction could still go to invalid state etc, but yeah in general nothing to worry about." CreationDate="2023-06-13T15:22:29.280" UserId="73" />
  <row Id="8933" PostId="8831" Score="0" Text="After some further debugging, it is most likely because `pallet-xcm` is a sub dependency of `polkadot-runtime` which is imported in the [nomination pool pallet](https://github.com/ok-Alice/astar-frame/blob/main/frame/nomination-pool-staking/Cargo.toml#L29). Astar-frame has their own fork of `pallet-xcm` and therefore is conflicting with the `polkadot-runtime`." CreationDate="2023-06-13T20:19:24.123" UserId="3850" />
  <row Id="8934" PostId="8869" Score="1" Text="@bkchr i didn't got any error, just transaction is not completing, so when I first got the `unexpected epoch change` error it was because of the finalization getting stopped due to which block production time increases and eventually leads to `unexpected epoch change`, so I replicated that and tried to start the finalization again through `note_stalled` but the transaction did not add in the block but remains in the transaction pool" CreationDate="2023-06-14T05:36:38.327" UserId="354" />
  <row Id="8935" PostId="8831" Score="1" Text="I did such modifications multiple items already, and it just depends what have you overridden. It'd be helpful to see the delta between your modifications and main branch of `Astar`.&#xA;&#xA;We will remove the custom fork of `pallet-xcm` soon, and will also merge the two repos we have into one." CreationDate="2023-06-14T06:48:16.033" UserId="426" />
  <row Id="8936" PostId="8880" Score="0" Text="Did you run the runtime integrity test? It should have caught that panic." CreationDate="2023-06-14T10:15:14.113" UserId="94" />
  <row Id="8938" PostId="597" Score="1" Text="IANAL, but I think it is important to note that the client code is not simply under GPL3 but under GPL3 _with the Classpath exception_ -- that's what actually allows the node template (and by extension, custom nodes) to be under pretty much any license as long as any _modifications_ to the Substrate client libraries themselves are shared." CreationDate="2023-06-14T11:44:20.280" UserId="4327" />
  <row Id="8939" PostId="8869" Score="0" Text="I just tried this locally with Substrate. Started the node, let it produce some blocks. Then I took it offline. Brought back the node after there was more than one session without a block. It continued producing blocks and I could also send transactions." CreationDate="2023-06-14T12:02:38.557" UserId="73" />
  <row Id="8940" PostId="8882" Score="0" Text="May be relevant: https://substrate.stackexchange.com/questions/7714/cannot-run-substrate-on-a-fresh-macbook-m2" CreationDate="2023-06-14T13:12:34.070" UserId="29" />
  <row Id="8941" PostId="8887" Score="0" Text="What is your setup like? Are you running the Relay chain and parachain on the same  computer?" CreationDate="2023-06-14T21:31:19.067" UserId="29" />
  <row Id="8942" PostId="7031" Score="0" Text="Can you share your repo link here." CreationDate="2023-06-12T16:18:46.690" UserId="4277" />
  <row Id="8943" PostId="8880" Score="0" Text="I did run all the tests" CreationDate="2023-06-15T03:04:05.483" UserId="1950" />
  <row Id="8944" PostId="8869" Score="1" Text="Yes @bkchr i was also able to achieve the same when nodes are going offline, just try it once when with a different approach like I did getting the finalization stopped and increase in block production time, eventually leading to skip an epcoh." CreationDate="2023-06-15T05:02:42.223" UserId="354" />
  <row Id="8945" PostId="8382" Score="0" Text="i've got two comments to share. firstly you might be able to resolve that `ERROR: Loading of original wasm failed ... Unknown opcode 192` shown in your screenshot by following the steps i mentioned in this other issue https://substrate.stackexchange.com/questions/7881/error-loading-of-original-wasm-failed/7882#7882 (i.e. use rust 1.69, not 1.70). secondly, if the value of `b` is `0`, then your line `let res = a / b` might result in overflow error. so i suggest seeing if you can use `checked_div`, and also make your return value a `Result&lt;()&gt;`, so you return `Ok` or `Err`." CreationDate="2023-06-15T11:00:32.310" UserId="83" />
  <row Id="8946" PostId="8893" Score="0" Text="Im getting the following error when trying to switch to +nightly toolchain &#xA;&#xA;```ERROR: Mismatching versions of parity-scale-codec were found!&#xA;Please ensure that your contract and your ink! dependencies use a compatible version of this package.```" CreationDate="2023-06-15T11:58:05.773" UserId="496" />
  <row Id="8947" PostId="8893" Score="0" Text="Try to use same set of dependencies like in manic-minter. You can move openbrush and my_psp34 under dev-dependencies" CreationDate="2023-06-15T12:33:24.703" UserId="529" />
  <row Id="8948" PostId="8893" Score="0" Text="in general it is the fastest if you give link to the source code and let community try to see what is wrong. Otherwise there is a lot of back and forth and the answers can't be straight forward" CreationDate="2023-06-15T12:35:12.937" UserId="529" />
  <row Id="8949" PostId="8893" Score="0" Text="your openbrush version is also wrong" CreationDate="2023-06-15T12:36:59.940" UserId="529" />
  <row Id="8950" PostId="8899" Score="2" Text="What version of Polkadot is the Relay chain running? What version of Polkadot is your parachain running? Please include logs of both the Relay chain and the parachain from the beginning. Also include the commands you use to start up the validators and collators with the flags." CreationDate="2023-06-15T17:02:32.830" UserId="29" />
  <row Id="8952" PostId="8899" Score="1" Text="Edited with version and commands, logs to come." CreationDate="2023-06-15T17:16:54.130" UserId="4330" />
  <row Id="8953" PostId="8899" Score="0" Text="Added a pastebin showing the log for the relay bootnode and one collator." CreationDate="2023-06-15T22:51:10.610" UserId="4330" />
  <row Id="8954" PostId="8899" Score="1" Text="There was a similar issue [here](https://github.com/paritytech/polkadot/issues/3139). However, in your case, you're running `polkadot-v0.9.37`. Please create a new issue [here](https://github.com/paritytech/polkadot/issues/new/choose) with all the details that you have in this post." CreationDate="2023-06-16T01:35:33.810" UserId="29" />
  <row Id="8955" PostId="8899" Score="0" Text="Done. Issue is https://github.com/paritytech/polkadot/issues/7384. Thanks @Bruno!" CreationDate="2023-06-16T01:56:28.723" UserId="4330" />
  <row Id="8956" PostId="8447" Score="1" Text="thanks, that solved the issue i encountered too when i tried to convert the basic-contract-caller example to use https://use.ink/basics/cross-contract-calling#builders" CreationDate="2023-06-16T05:55:19.303" UserId="83" />
  <row Id="8957" PostId="8899" Score="0" Text="Could you run your nodes with `-lparachain::collator-protocol=trace` and update the logs ?" CreationDate="2023-06-16T09:39:08.703" UserId="165" />
  <row Id="8958" PostId="8898" Score="0" Text="[This](https://paritytech.github.io/substrate/master/frame_support/dispatch/enum.DispatchError.html#variant.ConsumerRemaining) and [this](https://paritytech.github.io/substrate/master/frame_system/struct.AccountInfo.html#structfield.consumers) might help you dig down further." CreationDate="2023-06-16T11:43:22.190" UserId="167" />
  <row Id="8959" PostId="8887" Score="0" Text="Yes, I am. For some reason, it is finalized now, and I made no changes. What I do notice is that initiallially, Alice account, which is the from account, had a balance of 1.0000 UNIT. After purging that chain state , after a day I saw that the balance is now 1000,000 UNIT, why was the balance 1.000 unit before, i do not see it on polkadot chain_spec where account balances are specified, if it is specified somewhere, why was it not showing 1000000UNIT the first time I tried" CreationDate="2023-06-16T13:11:34.047" UserId="2960" />
  <row Id="8960" PostId="8897" Score="0" Text="Its local,For some reason, it is finalized now, and I made no changes. What I do notice is that initiallially, Alice account, which is the from account, had a balance of 1.0000 UNIT. After purging that chain state , after a day I saw that the balance is now 100,000 UNIT, why was the balance 1.000 unit before, i do not see it on polkadot chain_spec where account balances are specified, if it is specified somewhere, why was it not showing 1000000UNIT the first time I tried" CreationDate="2023-06-16T13:13:08.257" UserId="2960" />
  <row Id="8961" PostId="8907" Score="0" Text="I still feel weightv2 is very unstable and dangerous. Our production chain encountered this. Please check this https://github.com/darwinia-network/darwinia/blob/50707d071f95fe7cc57e72a5113d6c4f28fa527b/runtime/crab/src/weights/pallet_scheduler.rs#L100. This is crazy, we don't have sudo, and democracy use pallet-scheduler. Any schedule will fail. And we can't do runtime upgrade to fix this (because runtime upgrade requires a scheduler if there is no sudo). And this exists in official release polkadot-v0.9.40 branch." CreationDate="2023-06-16T14:04:23.030" UserId="251" />
  <row Id="8962" PostId="8907" Score="0" Text="Finally, we found that there is an inline preimage option. It could bypass the scheduler weight checks." CreationDate="2023-06-16T14:06:18.813" UserId="251" />
  <row Id="8963" PostId="8907" Score="0" Text="Thanks for your answer! And I want to learn more detail about how benchmark works to generate this. E.G. Why does it use `MaxEncodedLen` to calculate the size?" CreationDate="2023-06-16T14:26:53.157" UserId="251" />
  <row Id="8964" PostId="8899" Score="0" Text="Can you share your docker compose files? sometimes there is a problem discovering the nodes because of Docker" CreationDate="2023-06-16T14:44:08.367" UserId="2762" />
  <row Id="8965" PostId="8898" Score="0" Text="What's the call you want to execute here?" CreationDate="2023-06-16T15:00:01.013" UserId="2762" />
  <row Id="8966" PostId="8912" Score="0" Text="Hey thanks Alex so i have already configured the pallet contract node in my node template and i will be going with the aura consensus just wanna know now that which parts need to be changed in the node template of substrate in order to make the chain mine and i can interact and can deploy smart contracts on it" CreationDate="2023-06-16T15:10:53.587" UserId="4277" />
  <row Id="8967" PostId="8907" Score="0" Text="That weight for the scheduler looks wrong indeed. but you are running the benchmarking with `STEPS: 2, REPEAT: 1` that does not make any sense.  &#xA;It should indeed depend on `s`, which it also does in [polkadot-v0.9.40](https://github.com/paritytech/substrate/blob/6e81199eac74ce9a7bf3b1c720989031dd9b18a1/frame/scheduler/src/weights.rs#L108).  &#xA;I will extend the answer later." CreationDate="2023-06-16T15:49:45.457" UserId="94" />
  <row Id="8968" PostId="8912" Score="0" Text="You want to run your chain as a solo chain, that means is up to you the security and everything. In case you want to connect to polkadot to  benefit from the pooled security, thought-through governance, and overall scalability of the heterogeneous sharding approach of the network you need to convert your node into a parachain" CreationDate="2023-06-16T16:15:08.330" UserId="2762" />
  <row Id="8969" PostId="8912" Score="0" Text="https://wiki.polkadot.network/docs/build-pdk" CreationDate="2023-06-16T16:15:29.693" UserId="2762" />
  <row Id="8970" PostId="8907" Score="0" Text="I added some sanity checks here that should error before that happens again https://github.com/paritytech/substrate/pull/14408" CreationDate="2023-06-16T16:21:16.540" UserId="94" />
  <row Id="8971" PostId="8899" Score="0" Text="The Dockerfiles running on our cloud VMs are linked, as are the new logs. Thanks again everybody." CreationDate="2023-06-16T16:43:51.050" UserId="4330" />
  <row Id="8972" PostId="8910" Score="0" Text="Neat! I understand that bootnodes for light clients must look something like this: using WS (example from Rococo) &quot;/ip4/34.90.151.124/tcp/30334/ws/p2p/12D3KooWF7BUbG5ErMZ47ZdarRwtpZamgcZqxwpnFzkhjc1spHnP&quot; ... in the case of my own boot nodes, would I use whatever the WS port is in place of the 30334 seen here? or would I still use the p2p port in that position? Thanks for your help!" CreationDate="2023-06-16T21:05:37.487" UserId="3346" />
  <row Id="8973" PostId="8910" Score="0" Text="Last question... do those nodes need to be started in any special way such as with --listen-addr /ip4/0.0.0.0/tcp/30333/ws or something like that?" CreationDate="2023-06-16T21:27:16.447" UserId="3346" />
  <row Id="8974" PostId="1346" Score="1" Text="From looking at the code of `move_prefix`; it is at least `O(n)`. AFAIK It *could* be implemented in `O(1)`, but currently there is no host function for that. In any case, it is better to benchmark migrations - especially for parachains." CreationDate="2023-06-17T15:00:42.357" UserId="94" />
  <row Id="8976" PostId="8841" Score="0" Text="Note: In your question you said _&quot;... the code here I am starting the nodes like:&quot;_, and then you've used incomplete example commands that differ from the commands that are mentioned in your README, such as the incomplete options `--node-` for Bob, and a different `--node-key` for Alice than what you're using in your repo [here][1], so I suggest removing that from your question to remove confusion." CreationDate="2023-06-17T19:04:56.813" UserId="83" />
  <row Id="8977" PostId="8921" Score="0" Text="Thanks for helping to clarify the issue and rule things out. I tried them all out, no luck. Will push some changes soon to reflect that." CreationDate="2023-06-18T01:53:26.290" UserId="181" />
  <row Id="8978" PostId="8921" Score="0" Text="Ok, did you also purge the chain db for each validator where they're served  `rm - rf ./data/node__`  before running it all?" CreationDate="2023-06-18T05:20:44.410" UserId="83" />
  <row Id="8979" PostId="8921" Score="0" Text="Yes, I make sure to do this before every attempt." CreationDate="2023-06-18T13:01:21.557" UserId="181" />
  <row Id="8980" PostId="7843" Score="0" Text="amazing Hernando thanks for sharing! thanks to your help i also benefited from your response in this example that builds upon the basic-contract-caller example https://github.com/ltfschoen/InkTemplate/pull/16/commits/3433a89ff76fb8d0c884aa41bc17a2c5a1faad39&#xA;&#xA;although i couldn't find any documentation about `EnvError` in the docs https://docs.rs/ink/latest/ink/?search=EnvError, but i found the different error codes in the ink! codebase" CreationDate="2023-06-19T03:39:39.220" UserId="83" />
  <row Id="8981" PostId="8868" Score="2" Text="I got the solution.thnaks for your effort @Bruno" CreationDate="2023-06-19T05:39:35.377" UserId="3136" />
  <row Id="8982" PostId="8859" Score="0" Text="No i've added locally before starting the chain" CreationDate="2023-06-19T05:51:35.973" UserId="2372" />
  <row Id="8983" PostId="8923" Score="0" Text="have you made any custom pallet or are trying to remove an extrinsic from an existing pallet?" CreationDate="2023-06-19T06:22:47.167" UserId="354" />
  <row Id="8984" PostId="8923" Score="0" Text="I am thinking about removing an existing extrinsic from an existing pallet and do an upgrade." CreationDate="2023-06-19T08:35:46.237" UserId="2604" />
  <row Id="8985" PostId="8937" Score="0" Text="So if I am removing the last extrinsic and add a new one later (in future upgrades) I should somehow make sure I don't accidentally re-use the same index i removed in the past? Example: I removed `call_index` 3 today and 6 months later I add a new extrinsic to the pallet." CreationDate="2023-06-19T09:59:18.033" UserId="2604" />
  <row Id="8986" PostId="8937" Score="0" Text="Check how transfer ext is being offboarded from pallet-balances, giving some time for clients to upgrade - https://github.com/paritytech/substrate/blob/2e7fde832b77b242269b136f1c3b6fffef86f9b6/frame/balances/src/lib.rs#L723" CreationDate="2023-06-19T10:18:29.407" UserId="165" />
  <row Id="8988" PostId="8937" Score="0" Text="There is nothing preventing you to reuse a certain extrinsic that was used in the past, but giving users some time to update on their side is a very healthy practice, I would say." CreationDate="2023-06-19T10:20:17.723" UserId="165" />
  <row Id="8989" PostId="8937" Score="0" Text="Thanks it makes perfect sense to me. Just to clarify, in this example `#[pallet::call_index(7)]` should never be used again for anything right? I.e. After this extrinsic is removed, if someone adds a totally different extrinsic with the same index it will break things?" CreationDate="2023-06-19T10:35:56.967" UserId="2604" />
  <row Id="8990" PostId="8937" Score="1" Text="So, nothing will break in case you reuse an old index, is just that users of your runtime that are unaware of the change will be encoding a call that either will fail, or will end up in an unexpected behaviour.&#xA;Example: They will be encoding call `3` thinking that it is `fn hello_world()`, but instead this index is now `fn foo()`. Nothing breaks on the runtime side, but as long as they are not aware of this change, they'll be making the wrong call, most probably." CreationDate="2023-06-19T11:50:45.187" UserId="165" />
  <row Id="8991" PostId="8945" Score="0" Text="do you need to add it here too? https://github.com/AstarNetwork/astar-frame/pull/165/files#diff-fba227a243c144cb57055a5cd6bc53e6eac5d1b561f93e0a8693b3dea8f5fe2bR30" CreationDate="2023-06-19T17:08:09.753" UserId="83" />
  <row Id="8992" PostId="78" Score="0" Text="I'm a big fan of Subsquid and found it always very fast &amp; reliable! " CreationDate="2023-06-19T18:18:09.347" UserId="3470" />
  <row Id="8993" PostId="8945" Score="0" Text="No, I do not. And when I add it there, the problem isn't fixed." CreationDate="2023-06-19T20:33:04.410" UserId="3850" />
  <row Id="8994" PostId="7700" Score="0" Text="Is it so? How does the mnenomic then recreate my private key?" CreationDate="2023-06-20T05:52:50.170" UserId="116" />
  <row Id="8995" PostId="8869" Score="0" Text="@bkchr any comments?" CreationDate="2023-06-20T06:26:55.800" UserId="354" />
  <row Id="8996" PostId="7700" Score="0" Text="Use the one-way function. `M -&gt; P: f(x) = y`, `P -&gt; M: f(y) != x`." CreationDate="2023-06-20T07:52:20.097" UserId="251" />
  <row Id="8997" PostId="8938" Score="0" Text="To get the metadata of the local network, is without --uri? subxt metadata -f bytes &gt;  metadata/local_metadata.scale" CreationDate="2023-06-20T08:32:38.970" UserId="2762" />
  <row Id="8998" PostId="8910" Score="0" Text="I think you can use whatever port you want and check out this [question](https://substrate.stackexchange.com/questions/4818/how-to-launch-a-bootnode-and-necessary-parameters)" CreationDate="2023-06-20T09:03:52.507" UserId="3317" />
  <row Id="8999" PostId="8938" Score="0" Text="Yup, no `--url` means it'll default to the local node at the moment (or you can provide an explicit url eg `--url ws://127.0.0.1:9944`)." CreationDate="2023-06-20T10:36:37.123" UserId="474" />
  <row Id="9000" PostId="8484" Score="0" Text="do you have any symlinks active in that could be causing `+nightly` to use a different version? (i.e. what is the output of `ls -al /home/yasuyasu/.rustup/toolchains`? note: i had a similar issue because i was doing this https://github.com/ltfschoen/InkTemplate/blob/main/docker/run.sh#L74. what was the output of running `rustc +nightly version`" CreationDate="2023-06-20T11:32:23.373" UserId="83" />
  <row Id="9001" PostId="8662" Score="0" Text="Very informative video and well written post, thanks @Bruno" CreationDate="2023-06-20T11:51:23.940" UserId="1982" />
  <row Id="9002" PostId="8411" Score="0" Text="maybe search for `storage_changes` in the Substrate codebase" CreationDate="2023-06-20T12:03:14.887" UserId="83" />
  <row Id="9003" PostId="8806" Score="0" Text="there is currently a sol2ink repository to convert Solidity to ink! https://github.com/Supercolony-net/sol2ink. so maybe one option could be to create a similar pallet2ink repository to allow for easy migration from a custom pallet to an ink! smart contract that could then be compiled to .wasm and deployed to the Contracts module/pallet of a Substrate-based chain." CreationDate="2023-06-20T12:52:01.187" UserId="83" />
  <row Id="9004" PostId="2174" Score="0" Text="You mention `(p % q) / q` approximates `p/q` but I'm having a hard time wrapping my head around it. Can you explain it a bit more? Why `(p % q) / q` ?" CreationDate="2023-06-20T15:36:28.180" UserId="139" />
  <row Id="9005" PostId="8968" Score="0" Text="Does this answer your question: https://substrate.stackexchange.com/questions/4464/how-to-store-date-on-storage" CreationDate="2023-06-20T23:15:22.510" UserId="29" />
  <row Id="9006" PostId="8959" Score="0" Text="Could you share your Docker file ?" CreationDate="2023-06-20T23:51:23.980" UserId="4342" />
  <row Id="9007" PostId="8969" Score="0" Text="Thanks! All works as expected after updating the MAXIMUM_BLOCK_WEIGHT value" CreationDate="2023-06-21T02:16:14.547" UserId="2065" />
  <row Id="9008" PostId="8959" Score="0" Text="I got this error along with hundreds other similar to it : error[E0152]: duplicate lang item in crate `alloc` (which `std` depends on): `owned_box`." CreationDate="2023-06-21T04:30:53.643" UserId="4342" />
  <row Id="9009" PostId="8954" Score="0" Text="Thank you @Shubham.&#xA;I don't think your answer is accurate. There are technical limit to the number of collators that can collate at the same block height like for example the fact validators have limited resources (number of connections, bandwidth,...). &#xA;This was the case when cumulus didn't have a consensus and all collators were trying to produce the same block, which failed with a high number of collators because the validators part of the core group couldn't download all the blocks nor accept all the connections at the same time." CreationDate="2023-06-21T07:08:26.107" UserId="699" />
  <row Id="9010" PostId="8959" Score="1" Text="i've added it in this PR https://github.com/ltfschoen/InkTemplate/pull/17/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R166 including instructions. so just need to install Docker then run something like `touch .env &amp;&amp; cp .env.example .env &amp;&amp; time ./docker/docker.sh`, then run `docker exec -it ink /bin/bash` in two terminals, and inside one terminal start a substrate-contracts-node with `cd /app &amp;&amp; ./docker/reset.sh`, and in the other terminal run `cd /app &amp;&amp; ./docker/quickstart-ipsp22.sh` to build and deploy and instantiate that smart contract" CreationDate="2023-06-21T07:54:22.367" UserId="83" />
  <row Id="9011" PostId="8963" Score="0" Text="Thanks for sharing. I have a question for you. &#xA;&quot;After the block has been initialized, each valid transaction is executed in order of transaction priority.&quot;&#xA;I can't find the section source code for executed transactions. Where is it in the `executive module`?" CreationDate="2023-06-21T10:04:01.890" UserId="4062" />
  <row Id="9012" PostId="8968" Score="0" Text="this post might also help https://substrate.stackexchange.com/questions/351/how-can-we-convert-the-timestamp-to-the-date-time-in-substrate-pallet/360#360" CreationDate="2023-06-21T10:20:44.893" UserId="83" />
  <row Id="9013" PostId="8959" Score="1" Text="the dockerfile that it uses is here https://github.com/ltfschoen/InkTemplate/blob/main/docker/Dockerfile" CreationDate="2023-06-21T10:22:57.207" UserId="83" />
  <row Id="9014" PostId="7639" Score="0" Text="Could you try with the latest code?" CreationDate="2023-06-19T10:07:53.087" UserDisplayName="user4047" />
  <row Id="9015" PostId="7639" Score="0" Text="latest code it works. I confirm 36 doesn't run - probably needs anothe PR to be cherry picked into the branch if people still want it fixed." CreationDate="2023-06-19T10:19:59.603" UserId="85" />
  <row Id="9016" PostId="8959" Score="0" Text="I got to the part where I open up 2 terminals using : `docker exec -it ink /bin/bash`.&#xA;&#xA;Looks like there is no app folder in it. the docker folder it contains only has a run.sh file in it." CreationDate="2023-06-21T18:37:54.430" UserId="4342" />
  <row Id="9017" PostId="8959" Score="0" Text="not on my computer now but I think it's because you need to change this line in Dockerfile:&#xA;RUN ./docker/run.sh ${WITHOUT_NODE} ${DEBIAN_CODENAME} ${HOME} ${RUST_NIGHTLY} ${CARGO_CONTRACT_VERSION} ${SUBSTRATE_CONTRACTS_NODE_VERSION} ${NODE_VERSION_MAJOR}" CreationDate="2023-06-22T01:11:31.023" UserId="83" />
  <row Id="9018" PostId="8959" Score="0" Text="and add the following in run.sh right after `WITHOUT_NODE=$1`&#xA;DEBIAN_CODENAME=$2&#xA;HOME=$3&#xA;RUST_NIGHTLY=$4&#xA;CARGO_CONTRACT_VERSION=$5&#xA;SUBSTRATE_CONTRACTS_NODE_VERSION=$6&#xA;NODE_VERSION_MAJOR=$7" CreationDate="2023-06-22T01:12:11.757" UserId="83" />
  <row Id="9019" PostId="8959" Score="0" Text="run the following to stop and remove the container before you run the commands again `docker stop ink &amp;&amp; docker rm ink` and see if there are any errors." CreationDate="2023-06-22T01:17:52.677" UserId="83" />
  <row Id="9020" PostId="8981" Score="0" Text="thank you I will try to follow what you are saying from now." CreationDate="2023-06-22T02:36:58.073" UserId="2844" />
  <row Id="9021" PostId="8959" Score="0" Text="Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/146819/discussion-between-luke-schoen-and-0xd1x0n)." CreationDate="2023-06-22T05:08:23.277" UserId="83" />
  <row Id="9022" PostId="8989" Score="0" Text="Copy and paste the errors as text instead of screenshots" CreationDate="2023-06-22T07:13:19.563" UserId="116" />
  <row Id="9023" PostId="8989" Score="1" Text="I recommend using https://subalfred.hack.ink/user/cli/state.html#command-state-fork-off" CreationDate="2023-06-22T07:41:12.697" UserId="251" />
  <row Id="9025" PostId="8986" Score="0" Text="I have tried the option of using an earlier nightly version but the issue still persists" CreationDate="2023-06-22T16:03:45.263" UserId="4348" />
  <row Id="9026" PostId="8998" Score="0" Text="Can you include your Cargo.toml files for your pallet and runtime?" CreationDate="2023-06-22T18:08:45.270" UserId="29" />
  <row Id="9027" PostId="9001" Score="0" Text="Not sure I understand your question. What were you expecting to see in the explorer? Make sure you have your chain's `tokenDecimals` and `tokenSymbol` configured properly." CreationDate="2023-06-22T18:48:11.950" UserId="29" />
  <row Id="9028" PostId="9011" Score="0" Text="I was about to ask this a few days ago, but when I changed to the stable compiler it disappeared" CreationDate="2023-06-23T03:39:53.900" UserId="116" />
  <row Id="9029" PostId="9011" Score="0" Text="I came to the conclusion it did not break anything important" CreationDate="2023-06-23T03:40:48.737" UserId="116" />
  <row Id="9030" PostId="9011" Score="0" Text="Both resolver 1 and 2 will generate binary identical wasm" CreationDate="2023-06-23T04:12:43.683" UserId="116" />
  <row Id="9032" PostId="5068" Score="0" Text="@bkchr How do you resolve the key store error that comes up when you use this in benchmarking i.e `thread 'benchmarking::&lt;&gt;' panicked at 'No keystore' associated for the current context!' `" CreationDate="2023-06-23T07:33:06.840" UserId="1891" />
  <row Id="9033" PostId="8833" Score="0" Text="I'd really appreciate it if you could guide me or point me to where I can find some guidelines to do that. I'd like to try it before starting the system from scratch and including the sudo pallet @AurevoirXavier" CreationDate="2023-06-23T08:27:06.760" UserId="3395" />
  <row Id="9034" PostId="9013" Score="0" Text="Sorry I skip some parts of the code to only focus on this call construction,I am using subxt and after it I construct the transaction propertly." CreationDate="2023-06-23T09:30:07.213" UserId="2762" />
  <row Id="9035" PostId="5068" Score="0" Text="The `KeyStore` is being registered by the benchmarking cli. Maybe you are using some old version where this wasn't the case? Which Polkadot bran are you using?" CreationDate="2023-06-23T13:47:20.897" UserId="73" />
  <row Id="9036" PostId="8683" Score="0" Text="How does building with the `--release` flag fix this? It fixed it." CreationDate="2023-06-23T14:25:38.283" UserId="3850" />
  <row Id="9037" PostId="5068" Score="0" Text="Am using `branch = &quot;polkadot-v0.9.42&quot;`" CreationDate="2023-06-23T15:59:17.737" UserId="1891" />
  <row Id="9038" PostId="8541" Score="0" Text="I had this same issue too and I am on manjaro, this was super helpful!." CreationDate="2023-06-24T07:35:36.223" UserId="2976" />
  <row Id="9039" PostId="9009" Score="0" Text="Why does `set_sequencer_address` panic instead of returning an error?" CreationDate="2023-06-24T11:26:01.280" UserId="94" />
  <row Id="9040" PostId="9024" Score="0" Text="Please provide text output of errors too" CreationDate="2023-06-24T13:37:19.973" UserId="116" />
  <row Id="9041" PostId="9005" Score="0" Text="What error do you get?" CreationDate="2023-06-24T19:36:40.313" UserId="73" />
  <row Id="9043" PostId="5068" Score="0" Text="When do you get this error? When running the benchmarking or when running the benchmarking tests?" CreationDate="2023-06-24T22:50:09.187" UserId="73" />
  <row Id="9044" PostId="8986" Score="0" Text="Please anyone who can help me on this, I have been stuck for days and tried every suggestion i could fine but none is working &#xA;```&#xA;error: failed to run custom build command for `wasm-opt-sys v0.111.0`&#xA;&#xA;Caused by:&#xA;  process didn't exit successfully:```" CreationDate="2023-06-25T04:25:18.847" UserId="4348" />
  <row Id="9045" PostId="9026" Score="0" Text="Noted, Thank you, @Oliver Tale-Yazdi" CreationDate="2023-06-25T05:25:56.720" UserId="4355" />
  <row Id="9046" PostId="9028" Score="1" Text="Nice! It appears that Ethereum hardcoded addresses are also in existence. These are seemingly utilized exclusively when the keyring is of the Ethereum type, as evidenced here: &#xA;https://github.com/polkadot-js/common/blob/456eaeeb945875889ccfe157d93fbb67c96579ca/packages/keyring/src/testing.ts#L134&#xA;&#xA;Any insights on how polkadot.js might be capable of identifying when it is operating on an Ethereum signature node?" CreationDate="2023-06-25T06:38:01.227" UserId="386" />
  <row Id="9047" PostId="9030" Score="0" Text="Hmmm. I don’t think so. I’ve a lot of arch linux machines. No one can reproduce this. (I always keeping everything up to date)" CreationDate="2023-06-25T22:37:40.957" UserId="251" />
  <row Id="9048" PostId="9035" Score="0" Text="When I specified the chain in the build-spec command, this time around the result was indeed plain!" CreationDate="2023-06-26T01:25:27.160" UserId="318" />
  <row Id="9049" PostId="8989" Score="0" Text="@AurevoirXavier i was using `Subalfred` to fork my chain i am getting this error when i run my new chain&#xA;&#xA; `Error: Service(Client(VersionInvalid(&quot;Runtime missing from initial storage, could not read state version.&quot;)))`" CreationDate="2023-06-26T06:47:57.633" UserId="2281" />
  <row Id="9050" PostId="8989" Score="0" Text="@AurevoirXavier i am running my chain in private network" CreationDate="2023-06-26T06:59:13.080" UserId="2281" />
  <row Id="9051" PostId="9001" Score="0" Text="For Withdraw operation done by `pallet_transaction_payment` value in explorer is adjusted with decimals and in the right side is exposed currency symbol (USDC). But for operation done by my pallet call, there is RAW amount. Of course if I divide it by 6 decimals then value will be correct, but I am curious why it is not done automatically, even both calls use the same trait abstraction to access pallet_balances" CreationDate="2023-06-26T07:54:56.227" UserId="4105" />
  <row Id="9052" PostId="9005" Score="0" Text="I see the event PvfCheckRejected" CreationDate="2023-06-26T08:17:09.580" UserId="2762" />
  <row Id="9053" PostId="9012" Score="0" Text="You said that last solution is not 100% accurate. What scenarios can break it?" CreationDate="2023-06-26T09:18:08.837" UserId="3832" />
  <row Id="9054" PostId="9012" Score="0" Text="Check this example where 2 extrinsics has the same hash: https://wiki.polkadot.network/docs/build-protocol-info#unique-identifiers-for-extrinsics It can happens with few blocks difference" CreationDate="2023-06-26T09:58:38.547" UserId="2762" />
  <row Id="9055" PostId="9009" Score="0" Text="Hi Oliver, not 100% sure, but looking at inherent errors [implementations](https://github.com/paritytech/substrate/blob/75be6e2a6cc86cfa11390a05f113a00c270cdb24/primitives/inherents/src/lib.rs#L372), is it intended that the runtime panics when an inherent fails?" CreationDate="2023-06-26T11:54:54.130" UserId="4335" />
  <row Id="9056" PostId="9037" Score="0" Text="Thanks Alejandro, this makes sense, I think it's the same idea, to let it check for non-existence but make sure it's not set at the start" CreationDate="2023-06-26T11:56:38.497" UserId="4335" />
  <row Id="9057" PostId="9040" Score="0" Text="https://substrate.stackexchange.com/questions/6056/how-to-overwrite-endowed-account-balance-build-a-local-blockchain" CreationDate="2023-06-26T14:27:40.923" UserId="2762" />
  <row Id="9058" PostId="9041" Score="0" Text="The query result only have value, gasRequired, gasConsumed value.&#xA;And I have set storageDepositLimit as null but the result was same." CreationDate="2023-06-27T01:51:24.950" UserId="4113" />
  <row Id="9059" PostId="9009" Score="1" Text="Yes I was not aware of that. Looks good." CreationDate="2023-06-27T07:46:42.790" UserId="94" />
  <row Id="9060" PostId="9041" Score="0" Text="What are the polkadot.js and typechain-polkadot versions you're using? &#xA;And, maybe a silly question, but what account is signing the tx, and does it have enough funds to pay for gas?" CreationDate="2023-06-27T08:18:01.787" UserId="1876" />
  <row Id="9061" PostId="9040" Score="3" Text="Does this answer your question? [How to overwrite endowed account balance (Build a local blockchain)](https://substrate.stackexchange.com/questions/6056/how-to-overwrite-endowed-account-balance-build-a-local-blockchain)" CreationDate="2023-06-27T08:48:17.543" UserId="165" />
  <row Id="9062" PostId="8948" Score="2" Text="Does this answer your question? [How many collators need to be set on the parachain?](https://substrate.stackexchange.com/questions/2483/how-many-collators-need-to-be-set-on-the-parachain)" CreationDate="2023-06-27T10:55:44.613" UserId="3136" />
  <row Id="9063" PostId="9044" Score="0" Text="Hi @Szegoo, can you please add the version of zombienet are you using?" CreationDate="2023-06-27T11:48:56.973" UserId="279" />
  <row Id="9064" PostId="1098" Score="0" Text="I had this same issue and also needed to unset my `CPATH`" CreationDate="2023-06-27T12:16:55.467" UserId="3991" />
  <row Id="9065" PostId="9040" Score="0" Text="I have tried these but none of it works" CreationDate="2023-06-27T12:18:50.200" UserId="4247" />
  <row Id="9066" PostId="9005" Score="0" Text="Sounds like the validation code is maybe wrong? Probably because you read the validation code as string and then convert it to bytes. Use `fs::read` to directly read it as binary data." CreationDate="2023-06-27T12:34:08.260" UserId="73" />
  <row Id="9067" PostId="9044" Score="0" Text="@pepoviola I am using zombienet version 1.3.18" CreationDate="2023-06-27T12:53:33.037" UserId="2163" />
  <row Id="9068" PostId="9041" Score="0" Text="The `typechain-polkadot` version is the latest, `v1.1.0`&#xA;And of course account has enough fund to run the tx." CreationDate="2023-06-27T12:53:58.810" UserId="4113" />
  <row Id="9069" PostId="9044" Score="1" Text="That is an old version, can you try with the latest? https://github.com/paritytech/zombienet/releases/tag/v1.3.58 &#xA;Thanks!" CreationDate="2023-06-27T12:54:32.930" UserId="279" />
  <row Id="9070" PostId="9044" Score="0" Text="@pepoviola That fixed my problem. I am now getting an error that is getting logged about every second: Error 	 fetching metrics from: http://127.0.0.1:58064/metrics" CreationDate="2023-06-27T13:06:59.613" UserId="2163" />
  <row Id="9071" PostId="9044" Score="0" Text="@pepoviola I edited the question so it now contains the new error I am getting." CreationDate="2023-06-27T13:18:26.143" UserId="2163" />
  <row Id="9072" PostId="9005" Score="0" Text="I tried with fs::read first and I was getting the PvfCheckRejected too" CreationDate="2023-06-27T18:45:21.987" UserId="2762" />
  <row Id="9073" PostId="9047" Score="0" Text="Unfortunately this did not work for me :/" CreationDate="2023-06-27T19:46:05.977" UserId="2163" />
  <row Id="9074" PostId="9044" Score="0" Text="Hi @Szegoo, are you running the binary from the release page or with `node.js`? If you are using node.js you need to have a version of node &gt;= 18. Can you confirm please? Thanks!" CreationDate="2023-06-27T19:47:55.413" UserId="279" />
  <row Id="9075" PostId="9050" Score="1" Text="Here is the PR removeing it: https://github.com/paritytech/substrate/pull/13437" CreationDate="2023-06-28T01:30:38.417" UserId="116" />
  <row Id="9077" PostId="9044" Score="0" Text="@pepoviola I cloned the polkadot and substrate-parachain-template repositories. I checked out to the specific release and I built them locally by running `cargo build --release`. I did not use `node.js`" CreationDate="2023-06-28T07:04:29.520" UserId="2163" />
  <row Id="9078" PostId="9052" Score="0" Text="How would go about validating that the weight is being loaded correctly?" CreationDate="2023-06-28T13:54:51.153" UserId="3850" />
  <row Id="9079" PostId="5068" Score="0" Text="I get this error When running the benchmarking tests but the benchmarking builds work without any errors" CreationDate="2023-06-28T16:39:22.790" UserId="1891" />
  <row Id="9080" PostId="9044" Score="0" Text="I mean for zombienet. But,  are you using `zombienet-macos` binary? can you run `./zombienet-macos version`?" CreationDate="2023-06-28T18:37:56.913" UserId="279" />
  <row Id="9081" PostId="9044" Score="0" Text="@pepoviola Oh, I did not understand your question correctly, sorry. Yes, I can run `./zombienet-macos version`. I downloaded `zombienet-macos` the same way it is described [here](https://substrate.stackexchange.com/questions/4692/how-do-i-spin-up-a-testnet-with-zombienet)" CreationDate="2023-06-28T19:54:41.557" UserId="2163" />
  <row Id="9087" PostId="9070" Score="0" Text="May be if you can follow this [PR](https://github.com/paritytech/ink/issues/1692) in order to resolve this." CreationDate="2023-06-30T08:03:23.530" UserId="2844" />
  <row Id="9088" PostId="5411" Score="0" Text="i am also getting this error, however my parachainId and para_id are the same. &#xA;&#xA;I ran `paras &gt; forceScheduleCodeUpgrade(para, newCode, relayParentNumber)` from the relay because the parachain (statemine fork) had no function to upgrade itself." CreationDate="2023-06-30T08:47:49.447" UserId="298" />
  <row Id="9089" PostId="9013" Score="0" Text="You shouldn't need to call `.encode()` on any of the &quot;inner&quot; things I think; just the outermost call (ie the top option here). But I'd need to be able to reproduce the issue with a complete code sample to be much help here I think." CreationDate="2023-06-30T11:55:26.200" UserId="474" />
  <row Id="9090" PostId="9070" Score="0" Text="Thanks for your comment. But It is still disabled.&#xA;`code is inactive due to #[cfg] directives: feature = &quot;e2e-tests&quot; is disabled`" CreationDate="2023-06-30T14:03:05.157" UserId="4113" />
  <row Id="9091" PostId="9080" Score="0" Text="thanks for the information, though we are using aura so its a round robin fashion but i can see that it can also be a timing issue as well, though it would be very helpful if you have a refrence for grandpa finalizing bunch of blocks at once, and refrences for the reorg thing because i cant find it in the docs" CreationDate="2023-06-30T19:42:44.343" UserId="3319" />
  <row Id="9092" PostId="9080" Score="1" Text="&quot;This system lets us produce blocks in an efficient way and lets GRANDPA finalize a set of them&quot; https://polkadot.network/blog/polkadot-consensus-part-3-babe. The doc also mentions forks (reorg's cause)" CreationDate="2023-06-30T20:58:54.893" UserId="3395" />
  <row Id="9093" PostId="5411" Score="0" Text="Maybe this will help: https://substrate.stackexchange.com/questions/8832/upgrade-parachain-without-sudo" CreationDate="2023-06-30T21:03:17.073" UserId="3002" />
  <row Id="9094" PostId="9044" Score="1" Text="Hi @Szegoo, that answer have the link to the releases pages but the `wget` command is getting and old version. Can you run zombienet in debug mode&#xA;`DEBUG=zombie* zombienet-macos -p native spawn config.toml`, also can you check the logs of the nodes (you need to look the `/logs` directory inside of the temporal directory printed at start. Because could be the case that the node are crashing." CreationDate="2023-07-01T14:14:45.393" UserId="279" />
  <row Id="9095" PostId="9044" Score="0" Text="@pepoviola Looking at the logs was very useful. Thanks a lot for the tip. I managed to fix the issue by using another rust toolchain. I updated the question and you can see the logs there. If you post your comment as an answer I can accept it so that we can mark this issue as 'solved'." CreationDate="2023-07-01T15:39:55.930" UserId="2163" />
  <row Id="9096" PostId="9082" Score="0" Text="thanks for the answer. I'm using the same bootnode when running both binary versions, and it fails only once, as I've already described. I assume that if the bootnode was incorrect, both binary versions would fail with the same error, am I wrong?. In reality, I'm only running one node within the parachain, which I've verified is the correct one. As I've just mentioned, the parachain is running only one node, so purging it would result in the loss of all the state." CreationDate="2023-07-01T16:18:33.767" UserId="3395" />
  <row Id="9097" PostId="9074" Score="0" Text="I looked at it a little bit more and it seems that the ```PendingRequest``` in ```/primitives/core/src/offchain/testing.rs``` is created and inserted into the offchain state directly without the Request being sent in the function  ```fn http_request_start```. At least I was unable to found a code equivalent to ```Request::sent(...)``` which normally creates a ```PendingRequest``` instance." CreationDate="2023-07-01T18:45:51.350" UserId="3960" />
  <row Id="9098" PostId="9085" Score="0" Text="What is the error you are getting?" CreationDate="2023-07-01T20:00:10.947" UserId="73" />
  <row Id="9099" PostId="9005" Score="0" Text="Are you sure that the wasm file is correct?" CreationDate="2023-07-01T20:00:36.520" UserId="73" />
  <row Id="9100" PostId="5068" Score="0" Text="https://github.com/paritytech/substrate/blob/3c71aa160b8ee594aecf924c66dcadbb8b8c8cdc/frame/nfts/src/mock.rs#L137 you need to register the extension for your test extension." CreationDate="2023-07-01T20:05:35.087" UserId="73" />
  <row Id="9102" PostId="9086" Score="0" Text="thanku so much~ u solve my problem~ have good day~!!" CreationDate="2023-07-02T06:21:22.270" UserId="4381" />
  <row Id="9103" PostId="9091" Score="0" Text="The `polkadot-js` npm package does not exist." CreationDate="2023-07-02T07:02:07.557" UserId="2163" />
  <row Id="9104" PostId="9095" Score="0" Text="Happened after calling 2 sudo calls" CreationDate="2023-07-02T10:03:50.737" UserId="4383" />
  <row Id="9105" PostId="9095" Score="0" Text="NFO tokio-runtime-worker afg: Not applying authority set change forced at block #xx, due to pending standard change at block #xx" CreationDate="2023-07-02T10:26:01.260" UserId="4383" />
  <row Id="9106" PostId="9005" Score="0" Text="Yes, I tried with PolkadotJS and I can see the PvfCheckAccepted event" CreationDate="2023-07-02T12:21:30.797" UserId="2762" />
  <row Id="9107" PostId="9095" Score="0" Text="Can you update your question and tell how to reproduce the error?" CreationDate="2023-07-02T14:35:48.443" UserId="354" />
  <row Id="9108" PostId="9074" Score="0" Text="I adopted ```should_send_a_basic_request_and_get_response``` test from ```/primitives/runtime/src/offchain/http.rs``` which manipulates the state and fullfills the request, unfortunately, it seems to pass always, no matter what the port number is and even if the local server is down." CreationDate="2023-07-02T21:46:32.760" UserId="3960" />
  <row Id="9109" PostId="9082" Score="0" Text="@magecnion can you edit your answer and tell how to reproduce this error, in case purging the chain I told you to purge the data of local chain not remote chain, when it connects to remote chain it will automatically sync with it." CreationDate="2023-07-03T04:39:10.423" UserId="354" />
  <row Id="9110" PostId="9100" Score="0" Text="I thought leaving it at zero meant 'unlimited'. It seems like I was wrong :)" CreationDate="2023-07-03T06:30:15.910" UserId="2163" />
  <row Id="9111" PostId="9074" Score="0" Text="This test might help you: https://github.com/paritytech/substrate/blob/master/client/executor/runtime-test/src/lib.rs#L220" CreationDate="2023-07-03T07:34:54.423" UserId="2762" />
  <row Id="9112" PostId="8869" Score="0" Text="Did you tried to restart the node afterwards?" CreationDate="2023-07-03T08:04:57.257" UserId="73" />
  <row Id="9114" PostId="9101" Score="1" Text="Thanks , now i want know , what should i do for balance?" CreationDate="2023-07-03T09:24:47.707" UserId="2722" />
  <row Id="9115" PostId="9101" Score="0" Text="check the query balances using RPC guide for EVM accounts: https://docs.substrate.io/tutorials/integrate-with-tools/access-evm-accounts/#query-balances-using-rpc" CreationDate="2023-07-03T09:44:38.120" UserId="2762" />
  <row Id="9116" PostId="9101" Score="0" Text="If you have any other specific doubt about the balances, is better to mark this as accepted and open another Question with the specific doubt. This might help the community when looking for similar problems" CreationDate="2023-07-03T09:46:22.397" UserId="2762" />
  <row Id="9117" PostId="9105" Score="0" Text="Do you mean restart nodes? Or something different?" CreationDate="2023-07-03T10:09:53.707" UserId="4383" />
  <row Id="9118" PostId="9105" Score="0" Text="I already restarted the whole network, I still get the error" CreationDate="2023-07-03T10:11:06.430" UserId="4383" />
  <row Id="9119" PostId="9101" Score="0" Text="I have ran thos command `subkey inspect &quot;your-mnemonic&quot;` but the account Id is not same with the metamask address ." CreationDate="2023-07-03T10:27:31.123" UserId="2722" />
  <row Id="9120" PostId="9074" Score="0" Text="@Alex Bean thank you for prompt reply. I adopted the suggested test for running under externalities, still it yields exactly the same result: the request is not sent and the ```/primitives/core/src/offchain/testing.rs/http_request_start``` calls for a panic!. Even if it would succeed, still my underlying problem is that my pallet uses offchain worker that implements a protocol based on http and, at this point, it looks like I would need to modify the working code in order to just adapt it for testing. I'm more inclined to try to modify relevant code in Substrate itself, could you give hints?" CreationDate="2023-07-03T14:19:25.553" UserId="3960" />
  <row Id="9121" PostId="9115" Score="0" Text="Have you checked how moonbeam tackles this ? https://github.com/PureStake/moonbeam/blob/master/primitives/account/src/lib.rs" CreationDate="2023-07-03T15:20:34.280" UserId="165" />
  <row Id="9122" PostId="9115" Score="0" Text="how can i use these codes ?" CreationDate="2023-07-03T16:07:02.413" UserId="2722" />
  <row Id="9124" PostId="9117" Score="0" Text="@HCastano we spoke briefly about this at the polkadot decoded conference, what are your thoughts? I've tried setting the storage key (e.g. `pub struct MyContract&lt;KEY: StorageKey = ManualKey&lt;0xABCDEF01&gt;&gt;`) but that maintains the storage pointing to the same place all the time, not dealing with any migration of the storage data itself. Thanks for any help in advance :)" CreationDate="2023-07-03T16:46:49.830" UserId="3711" />
  <row Id="9125" PostId="9101" Score="0" Text="Updated answer, hopefully a bit more clear now with examples" CreationDate="2023-07-03T18:52:11.503" UserId="2762" />
  <row Id="9126" PostId="8520" Score="0" Text="Was this issue solved? Can you update with what worked for you?" CreationDate="2023-07-03T23:57:57.570" UserId="29" />
  <row Id="9128" PostId="9101" Score="0" Text="I have to say , im not using the frontier . Im using the substrate core ." CreationDate="2023-07-04T05:50:03.337" UserId="2722" />
  <row Id="9129" PostId="9123" Score="0" Text="are you putting the same session key in both nodes?" CreationDate="2023-07-04T06:29:11.540" UserId="354" />
  <row Id="9131" PostId="8541" Score="1" Text="@DylanVerstraete Please check the update." CreationDate="2023-07-04T08:08:44.587" UserId="251" />
  <row Id="9134" PostId="9101" Score="0" Text="How do you create the EVM address then? Because there are different strategies, an example is the unified accounts from Moonbeam I mentioned before" CreationDate="2023-07-04T13:03:29.077" UserId="2762" />
  <row Id="9135" PostId="9118" Score="0" Text="Sure, that would work for the example I gave. But in the real world things change and contract storage is included in that. I've read the docs about upgrading storage in ink already." CreationDate="2023-07-04T15:39:44.663" UserId="3711" />
  <row Id="9136" PostId="9118" Score="0" Text="How would you tackle this with the more complex case of changing variable types (e.g. u8 to u16) or removing fields entirely?" CreationDate="2023-07-04T15:40:20.037" UserId="3711" />
  <row Id="9137" PostId="9145" Score="0" Text="Thanks @AurevoirXavier I will check it :)" CreationDate="2023-07-04T18:29:25.690" UserId="1793" />
  <row Id="9139" PostId="9124" Score="0" Text="I have updated and tried WithdrawAsset(0, Here) but still thesame error. I have updated the same images im the question above and added the relay chain account balances image" CreationDate="2023-07-04T19:20:06.623" UserId="2960" />
  <row Id="9140" PostId="9124" Score="0" Text="@Neo Check the update." CreationDate="2023-07-05T02:40:56.120" UserId="1959" />
  <row Id="9141" PostId="9149" Score="0" Text="It will be more helpful if you can clarify what you are trying to do, are you making a bridge or just adding a light clinet?" CreationDate="2023-07-05T04:43:49.713" UserId="354" />
  <row Id="9142" PostId="8869" Score="0" Text="Yes @bkchr but the problem still persist transaction are not being complete." CreationDate="2023-07-05T04:46:07.383" UserId="354" />
  <row Id="9143" PostId="2711" Score="3" Text="Does this answer your question? [how to calculate sovereignAccount for parachain?](https://substrate.stackexchange.com/questions/1200/how-to-calculate-sovereignaccount-for-parachain)" CreationDate="2023-07-05T05:47:57.667" UserId="251" />
  <row Id="9144" PostId="8973" Score="0" Text="Did you change any code in the networking layer?" CreationDate="2023-07-05T08:46:49.360" UserId="3317" />
  <row Id="9145" PostId="9158" Score="0" Text="This is an incomplete answer, please edit or I will have to flag it." CreationDate="2023-07-05T08:47:42.873" UserId="3317" />
  <row Id="9146" PostId="9159" Score="0" Text="So how does the node interact with the runtime?" CreationDate="2023-07-05T08:49:52.260" UserId="3317" />
  <row Id="9148" PostId="9159" Score="1" Text="@DaanvanderPlas `service.rs` file calls `RuntimeApi` which directly interacts with runtime of the chain and `service.rs` works hand in hand with the client side." CreationDate="2023-07-05T09:21:36.030" UserId="354" />
  <row Id="9149" PostId="9125" Score="0" Text="quite a messy.. i gotta clrean and start new~ thanks~ i will try it again~" CreationDate="2023-07-05T12:39:35.763" UserId="4381" />
  <row Id="9150" PostId="9124" Score="0" Text="I have updated both the relay chain and parachain templates to use v0.9.42 but still getting same error. i have updated the zomebienet config image in the question" CreationDate="2023-07-05T15:56:24.457" UserId="2960" />
  <row Id="9151" PostId="9168" Score="0" Text="But it doesn't seem to be stalling your chain, isn't it ?" CreationDate="2023-07-05T17:46:14.127" UserId="165" />
  <row Id="9152" PostId="9168" Score="0" Text="After speaking with the author it seems that the node works again after clearing the txpool (restarting the node). We might want to set a few more log targets, I would say `basic-authorship` and `txpool` then update the linked logs :)" CreationDate="2023-07-05T18:05:56.410" UserId="165" />
  <row Id="9157" PostId="9171" Score="0" Text="I have set the safXcmVersion of both the relay chain and the parachain to v2 however I still get thesame error. Looking the the polkadotXcm.sent event emitted by the parachain (image attached to question ), I can see that it sends the xcm message using v3 even though the safeXcmVersion on both chains is set to v2" CreationDate="2023-07-05T22:11:46.717" UserId="2960" />
  <row Id="9158" PostId="9170" Score="1" Text="thank u so much i will try~ have a happy day~~!!" CreationDate="2023-07-06T05:34:37.707" UserId="4381" />
  <row Id="9159" PostId="9119" Score="0" Text="This Issue might help you https://github.com/paritytech/subxt/issues/399" CreationDate="2023-07-06T06:00:18.517" UserId="2762" />
  <row Id="9160" PostId="9175" Score="0" Text="let collection_id = fetch_collection_id_from_nft_id(nft_id); // Replace this with the actual method to retrieve the collection ID" CreationDate="2023-07-06T07:36:48.650" UserId="3109" />
  <row Id="9161" PostId="9160" Score="0" Text="Yes, the node does the connection with runtime. I was curious to know which part of the node does that. The runtime is compiled into wasm. So, which part of the node loads/makes communication with the wasm?" CreationDate="2023-07-06T07:56:00.683" UserId="4392" />
  <row Id="9162" PostId="9159" Score="0" Text="@ShubhamGupta could you help me with where exactly `service.rs` calls the `RuntimeApi` ? I was going through https://github.com/substrate-developer-hub/substrate-node-template/blob/main/node/src/service.rs but couldn't find" CreationDate="2023-07-06T07:58:26.377" UserId="4392" />
  <row Id="9163" PostId="9159" Score="0" Text="@AbishekBashyal sure will update my answer" CreationDate="2023-07-06T09:05:01.010" UserId="354" />
  <row Id="9164" PostId="8496" Score="0" Text="I tried to implement this but it don't quite understand the parameters. This expects 3 parameters which are:&#xA;- source (local, inBlock, external)&#xA;- tx&#xA;- blockHash&#xA;&#xA;I want to verify if a transaction will be successful or not. Don't understand why I would need to provide a block hash? Can't find any docs or examples of the usage. Can you provide some?" CreationDate="2023-07-06T09:10:42.217" UserId="325" />
  <row Id="9165" PostId="9177" Score="0" Text="Following this instructions I get an error importing {encode, AddressFormat}" CreationDate="2023-07-06T09:49:12.733" UserId="2762" />
  <row Id="9166" PostId="9176" Score="0" Text="Does this answer your question? [How to convert HEX public key into SS58](https://substrate.stackexchange.com/questions/2367/how-to-convert-hex-public-key-into-ss58)" CreationDate="2023-07-06T09:53:21.347" UserId="3136" />
  <row Id="9167" PostId="9176" Score="0" Text="No, this answer is using tools subkey and subalfred" CreationDate="2023-07-06T09:56:25.463" UserId="2762" />
  <row Id="9169" PostId="9177" Score="1" Text="can you please follow the above , sorry for my previos response" CreationDate="2023-07-06T09:57:49.937" UserId="3109" />
  <row Id="9170" PostId="9179" Score="1" Text="Thanks, but I am not looking for a tool, I am looking for a code snippet" CreationDate="2023-07-06T10:16:23.150" UserId="2762" />
  <row Id="9171" PostId="9177" Score="0" Text="Thanks! that snippet still gives me an error: the trait `From&lt;&amp;[u8]&gt;` is not implemented for `sp_core::crypto::AccountId32`" CreationDate="2023-07-06T10:21:28.157" UserId="2762" />
  <row Id="9172" PostId="8520" Score="1" Text="See [here](https://substrate.stackexchange.com/a/9185/2424)." CreationDate="2023-07-06T11:59:49.433" UserId="2424" />
  <row Id="9173" PostId="9181" Score="0" Text="how are you running your chain? can you give more information about your testing environment" CreationDate="2023-07-06T13:28:23.387" UserId="2762" />
  <row Id="9174" PostId="9168" Score="0" Text="Updated the logs with the additional flags. Nothing seems suspicious to me yet." CreationDate="2023-07-06T14:03:08.387" UserId="2445" />
  <row Id="9175" PostId="9181" Score="0" Text="I am running my  chain by connecting it to relay chain using the following command&#xA;&#xA;&#xA;./target/release/parachain-template-node --name a1 --collator --force-authoring --chain raw-parachain-chainspec.json --base-path /tmp/parachain/a1 --port 40333 --ws-port 8844 -- --execution wasm --chain ../polkadot/customSpecRawlocal.json --port 30343 --ws-port 9977 --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWFLacAh5hP92e88mHbFPwqvXegtrmFVs7XVeKL3eG3Qya" CreationDate="2023-07-07T04:38:58.923" UserId="3414" />
  <row Id="9177" PostId="8116" Score="0" Text="Hi @Oleg Kalenik, how did you solve this" CreationDate="2023-07-07T06:14:09.730" UserId="4407" />
  <row Id="9178" PostId="9199" Score="0" Text="hey, @UPENDRA SINGH thanks for quick response. Do you mean on second node running device to check whether `firewall` accepting connection or not?" CreationDate="2023-07-07T08:17:12.853" UserId="2844" />
  <row Id="9179" PostId="9199" Score="0" Text="should we have to turn firewall off or on?" CreationDate="2023-07-07T08:41:44.017" UserId="2844" />
  <row Id="9180" PostId="5555" Score="1" Text="To show it properly on the polkadot js apps UI (RPC calls) you need to add the custom RPC types to the API specs right here https://github.com/polkadot-js/apps/tree/master/packages/apps-config/src/api/spec" CreationDate="2023-07-07T09:34:28.527" UserId="2484" />
  <row Id="9181" PostId="9194" Score="0" Text="can you share the command which you are using for running your validator node?" CreationDate="2023-07-07T10:29:59.050" UserId="2281" />
  <row Id="9182" PostId="9201" Score="0" Text="Error: Service(Client(Backend(&quot;Failed to create RocksDB directory: `Os { code: 30, kind: ReadOnlyFilesystem, message: \&quot;Read-only file system\&quot; }`.&quot;)))" CreationDate="2023-07-07T11:36:02.883" UserId="2844" />
  <row Id="9183" PostId="9201" Score="0" Text="got this issue while run command for boot node @Amit Kumar yadav" CreationDate="2023-07-07T11:36:28.357" UserId="2844" />
  <row Id="9184" PostId="9201" Score="0" Text="@Ganesh11 are you running it on local computer? or on instance?" CreationDate="2023-07-07T11:39:42.933" UserId="2281" />
  <row Id="9185" PostId="9201" Score="0" Text="on local computer" CreationDate="2023-07-07T11:40:07.223" UserId="2844" />
  <row Id="9186" PostId="9201" Score="0" Text="delete the db and re run the command or  run this command&#xA;./target/release/node-template --base-path /data/node001 --chain ./customSpecRaw.json --port 30333 --ws-port 9944 --rpc-port 9933  --ws-external --rpc-external --rpc-cors all --no-telemetry --validator --rpc-methods Unsafe --name MyNode001" CreationDate="2023-07-07T11:42:03.553" UserId="2281" />
  <row Id="9188" PostId="9201" Score="0" Text="I didn't understand even If i run the 2nd command still same issue. Which permission of read and write are you pointing. I am confused" CreationDate="2023-07-07T11:47:39.380" UserId="2844" />
  <row Id="9189" PostId="9201" Score="0" Text="@Ganesh11 the error occurred  because you haven't deleted the db of the previous node which you have run. you need to delete the node01 &amp; node02 folder and run this command again it will work fine." CreationDate="2023-07-07T11:49:49.417" UserId="2281" />
  <row Id="9190" PostId="9194" Score="0" Text="It would be better to understand, if you can also tell us what command you are using?" CreationDate="2023-07-07T12:33:41.200" UserId="354" />
  <row Id="9191" PostId="5555" Score="0" Text="Interesting, thanks!" CreationDate="2023-07-07T13:12:20.513" UserId="2762" />
  <row Id="9192" PostId="9194" Score="0" Text="&quot;ExecStart=polkadot --validator --name 'AAA' --pruning=1000&quot;&#xA; in the systemctl, is it related??" CreationDate="2023-07-07T16:13:24.577" UserId="4381" />
  <row Id="9193" PostId="9192" Score="0" Text="So, when you see the line type RuntimeEvent = RuntimeEvent; in the pallet_nicks::Config implementation for Runtime, is it correct to say that the associated RuntimeEvent type is implicitly referencing the RuntimeEvent that's generated by construct_runtime!?" CreationDate="2023-07-07T18:21:44.963" UserId="4405" />
  <row Id="9194" PostId="9151" Score="1" Text="Thank you so much, this was in the context of FE code, so no Node methods,&#xA;but it was the right direction.&#xA;Solved it using this. Will post as separate answer" CreationDate="2023-07-08T07:20:20.907" UserId="4395" />
  <row Id="9195" PostId="8116" Score="1" Text="@lara, the issue was fixed with this PR in helm-charts repo: https://github.com/paritytech/helm-charts/pull/236. So now it should work out of the box if you pull the latest code from the repo." CreationDate="2023-07-08T09:08:22.590" UserId="3371" />
  <row Id="9196" PostId="6202" Score="0" Text="What is the maximum recommended length of the BoundedVec for a string? The nicks pallet used 16 bytes [here](https://github.com/paritytech/substrate/blob/70c0547f40daa8b550ef1a849514d07c385f963e/frame/nicks/src/lib.rs#L314), but can it be even more like 512 bytes?" CreationDate="2023-07-09T09:20:02.873" UserId="2484" />
  <row Id="9197" PostId="9211" Score="0" Text="I did what you said. As soon as the pc starts, I started the nodes, but the problem still continue" CreationDate="2023-07-09T15:49:45.470" UserId="4413" />
  <row Id="9198" PostId="9211" Score="1" Text="I do not know how but i fixed it :)" CreationDate="2023-07-09T16:42:58.790" UserId="4413" />
  <row Id="9199" PostId="9214" Score="0" Text="Is there any reference, which already makes active use of this new feature?" CreationDate="2023-07-09T18:47:02.577" UserId="2484" />
  <row Id="9200" PostId="9214" Score="0" Text="Is it just querying this storage item of pallet_xcm https://github.com/paritytech/polkadot/blob/a9b12a13a05c060f4db040d88ffc934b6ad2a180/xcm/pallet-xcm/src/lib.rs#L530-L541 ?" CreationDate="2023-07-09T18:51:50.563" UserId="2484" />
  <row Id="9201" PostId="9214" Score="0" Text="I think my last question is answered by yes with this https://github.com/paritytech/polkadot/blob/a9b12a13a05c060f4db040d88ffc934b6ad2a180/xcm/pallet-xcm/src/lib.rs#L1645" CreationDate="2023-07-09T18:55:26.857" UserId="2484" />
  <row Id="9204" PostId="9220" Score="1" Text="It is not possible to answer to the question if you don't provide more details, code snippets if possible. If you just reading from a smart contract signer wouldn't pop for that case." CreationDate="2023-07-10T12:32:02.433" UserId="2166" />
  <row Id="9205" PostId="9220" Score="0" Text="You do not need to sign get messages from the frontend. Check that you do not have `&amp;mut self` in your get message." CreationDate="2023-07-10T13:59:23.740" UserId="529" />
  <row Id="9206" PostId="9217" Score="0" Text="Hi @justin-frevert, I think is possible. You can check this code used to run the zombienet tests https://github.com/paritytech/substrate-connect/blob/4399987c5f025534b9867bc7a40b7e8869a11913/.zombienet-tests/utils.js#L21C50-L21C65" CreationDate="2023-07-10T14:46:28.743" UserId="279" />
  <row Id="9207" PostId="9217" Score="0" Text="AFAIK: it should work using the normal `addChain` function and then passing the chain-spec of your &quot;sovereign chain&quot;. Did you try that already? For it to work, though, make sure that there are boot-nodes defined inside the chain-spec." CreationDate="2023-07-10T18:55:51.587" UserId="635" />
  <row Id="9208" PostId="9223" Score="0" Text="if it's possible to build the substrate-node-template without Rocksdb using your solution, then why is there still this open issue https://github.com/paritytech/substrate/issues/13354 that claims we can't build Substrate without having to pull in Rocksdb and all of its native dependencies?" CreationDate="2023-07-10T22:55:26.740" UserId="83" />
  <row Id="9209" PostId="3051" Score="0" Text="@ShawnTabrizi this sounds like parachains cannot have custom host functions. Is that understanding correct. Is there some possible way to lift that restriction?" CreationDate="2023-07-11T03:32:00.937" UserId="181" />
  <row Id="9210" PostId="3051" Score="0" Text="Parachains are provided shared security by the relay chain. The relay chain is able to do this because it executes the blocks of the parachains to check their validity. There is no way to have your chain execute custom logic (like a custom host function) without introducing it to the relay chain. A bridged chain is an option for interoperability without shared security." CreationDate="2023-07-11T04:04:15.563" UserId="28" />
  <row Id="9211" PostId="9225" Score="0" Text="Can you share the runtime for your pallet as well. I think this might not be the ideal way you call another pallet. Instead include pallet_staking traits into the Config of your pallet. Then integrate both in your mock runtime and then call it." CreationDate="2023-07-11T06:20:44.790" UserId="1728" />
  <row Id="9212" PostId="9217" Score="0" Text="Depends on what kind of custom solo chain you are talking about. Smoldot is only capable of connecting to a solo (relay) chain like polkadot, kusame, rococo &amp; westend." CreationDate="2023-07-11T08:28:35.600" UserId="3317" />
  <row Id="9215" PostId="9225" Score="0" Text="I added the test runtime configuration in the post" CreationDate="2023-07-11T08:47:44.577" UserId="2099" />
  <row Id="9216" PostId="2889" Score="0" Text="Broken link at this point. I couldn't find a current example in the repo that seems to demonstrate how to subscribe to events." CreationDate="2023-07-11T13:02:49.650" UserId="181" />
  <row Id="9217" PostId="9227" Score="0" Text="Which type are the scores set to?" CreationDate="2023-07-11T13:52:39.600" UserId="380" />
  <row Id="9218" PostId="2889" Score="0" Text="I take that comment back, sorry. The example as of time of writing is here: https://github.com/paritytech/subxt/blob/9a8fc33f2fe830009011e997773071099101d69b/subxt/examples/blocks_subscribing.rs#L42 within the block subscription example." CreationDate="2023-07-11T14:06:39.473" UserId="181" />
  <row Id="9219" PostId="9227" Score="0" Text="@forgetso The score is a u128. I edited that into the question." CreationDate="2023-07-11T16:06:01.003" UserId="372" />
  <row Id="9220" PostId="9232" Score="0" Text="I do not have proof for that (I work on this) but my best guess is that BTreeMap is not the best one if the cost usage matters. For demo/proof of concept, I agree that BTreeMap could be probably the best one." CreationDate="2023-07-11T16:06:15.590" UserId="19" />
  <row Id="9221" PostId="9237" Score="0" Text="Thanks for answer.&#xA;&#xA;I am aware how they are used. My question was related to why this approach was taken. Why couldn't the db weights be imported as a function from the host, since the runtime does not know which db is used, it only calculates weights.&#xA;&#xA;On the other hand, if the db weights are imported by the host, I guess whenever these db weights are updated, it will be difficult to update all the hosts at the same time and transactions might begin being rejected/failed from other nodes. Is it expected db weights to be updated at all?" CreationDate="2023-07-12T05:55:51.053" UserId="4114" />
  <row Id="9222" PostId="9237" Score="0" Text="This is logic handled and configured in the runtime, and must be in consensus with the whole network. For example, if you run Parity DB, but the network is configured for Rocks DB, you must still use Rocks DB weights, else your network will fork.&#xA;&#xA;DB Weights are completely configurable by the user, you could build a substrate chain using your own custom database, and configure your runtime for those weights. We have a benchmarking pipeline build into FRAME benchmarking to help calculate that. If you have more questions, you should ask a more specific question in a new thread." CreationDate="2023-07-12T13:07:45.593" UserId="28" />
  <row Id="9224" PostId="9241" Score="0" Text="What is your `MaxProposalWeight` set at ?" CreationDate="2023-07-12T13:23:52.837" UserId="3667" />
  <row Id="9225" PostId="9248" Score="0" Text="The second solution does not work because the `Utility::with_weight` requires a root origin and the collective pallet does not provide that.&#xA;&#xA;There is a third option that we actually went for. We created our own pallet to dispatch runtime upgrades, this call can only be called by the Council origin. You can check the weight for this call here: https://github.com/threefoldtech/tfchain/blob/45d9c139db1a9e6fb0d09613c2cd3ac03087ac0a/substrate-node/pallets/pallet-runtime-upgrade/src/lib.rs#L25" CreationDate="2023-07-12T15:15:06.923" UserId="379" />
  <row Id="9226" PostId="9241" Score="0" Text="We have set it to 50%" CreationDate="2023-07-12T15:17:02.937" UserId="379" />
  <row Id="9227" PostId="9250" Score="0" Text="did you make sure your metadata is up to date?" CreationDate="2023-07-12T16:24:05.213" UserId="28" />
  <row Id="9228" PostId="9250" Score="0" Text="Correct: There are no pending upgrades on &#xA;&#xA;https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/settings/metadata" CreationDate="2023-07-12T16:31:01.167" UserId="698" />
  <row Id="9229" PostId="9248" Score="0" Text="Wait, `set_code` also needs root. So how can you dispatch `set_code` but not `with_weight`?" CreationDate="2023-07-12T21:24:06.777" UserId="94" />
  <row Id="9230" PostId="9218" Score="0" Text="are you building using the Docker? how are you providing the `WS_URL` environment variable so it won't be `undefined`?" CreationDate="2023-07-13T03:22:02.167" UserId="83" />
  <row Id="9231" PostId="9252" Score="0" Text="Does this answer your question? [What is the meaning of the account provider, sufficients and consumer?](https://substrate.stackexchange.com/questions/263/what-is-the-meaning-of-the-account-provider-sufficients-and-consumer)" CreationDate="2023-07-13T04:15:36.660" UserId="251" />
  <row Id="9232" PostId="9252" Score="0" Text="What about `miscFrozen`? What is different `miscFrozen` and `feeFrozen`? I see `miscFrozen` and `feeFrozen` are always identical balance." CreationDate="2023-07-13T04:32:25.840" UserId="445" />
  <row Id="9233" PostId="9253" Score="0" Text="try checking if you are setting all you pallet imports  as default-features to false. https://substrate.stackexchange.com/questions/4174/the-wasm32-unknown-unknown-target-is-not-supported-by-default?rq=1" CreationDate="2023-07-13T05:19:40.373" UserId="3881" />
  <row Id="9234" PostId="9253" Score="0" Text="@Xavier Yes all of my pallets imports are set to `default-features = false`" CreationDate="2023-07-13T05:27:31.800" UserId="1982" />
  <row Id="9235" PostId="9253" Score="0" Text="Please install `rustup target add wasm32-unknown-unknown`" CreationDate="2023-07-13T05:43:23.113" UserId="445" />
  <row Id="9236" PostId="9253" Score="0" Text="would be useful to also show your cargo.toml file for the runtime in your question" CreationDate="2023-07-13T06:06:47.970" UserId="3881" />
  <row Id="9237" PostId="9248" Score="0" Text="We created our own pallet to dispatch `set_code` having configured some origin, see: https://github.com/threefoldtech/tfchain/blob/development/substrate-node/pallets/pallet-runtime-upgrade/src/lib.rs" CreationDate="2023-07-13T11:34:43.370" UserId="379" />
  <row Id="9238" PostId="9248" Score="0" Text="Okay I dont understand the Question. Originally it was about `System::set_code`, but now you have your own pallet and use weight `T::BlockWeights::get().base_block`. So so can just benchmark it properly or reduce the weight if you are sure about it?" CreationDate="2023-07-13T12:01:27.717" UserId="94" />
  <row Id="9239" PostId="9256" Score="0" Text="can you please provide me with some links where i can further understand it" CreationDate="2023-07-13T12:40:55.070" UserId="2348" />
  <row Id="9240" PostId="9236" Score="0" Text="Thanks for posting an update :)" CreationDate="2023-07-13T16:00:03.440" UserId="165" />
  <row Id="9241" PostId="9251" Score="1" Text="This worked, thanks! I take your point about testing on chopsticks, this costed me quite a few DOT testing various iterations." CreationDate="2023-07-13T17:33:33.187" UserId="698" />
  <row Id="9242" PostId="9258" Score="0" Text="This isn's a Substrate question." CreationDate="2023-07-14T02:08:45.213" UserId="251" />
  <row Id="9243" PostId="8834" Score="0" Text="See also https://github.com/darwinia-network/darwinia-messages-sol/blob/6f20950e445e6a63a96d0119c51679220ce2ff1d/contracts/bridge/src/utils/ScaleCodec.sol#L3" CreationDate="2023-07-14T02:12:11.277" UserId="251" />
  <row Id="9244" PostId="9268" Score="0" Text="Can you please give more details? For example for [this](https://kusama.subscan.io/xcm_message/kusama-8f8433db06397f3b41604ab0db19e26dec0a9ba9) message Subscan gives Kusama block [18781810](https://kusama.subscan.io/block/18781810), extrinsic [18781810-1](https://kusama.subscan.io/extrinsic/18781810-1) and event [18781810-2](https://kusama.subscan.io/extrinsic/18781810-1?event=18781810-2). But when I examine the extrinsic and event content I cannot see anything related to the XCM message. XCM pallet chain storage also doesn't seem to provide access to the actual XCM messages in certain blocks." CreationDate="2023-07-14T07:57:55.547" UserId="145" />
  <row Id="9245" PostId="9268" Score="0" Text="It seems only possible by following the `para_head` block hash in the related event to find the actual block with the XCM extrinsic in the parachain block storage, but for this, I would need access to all parachain storages." CreationDate="2023-07-14T08:02:13.753" UserId="145" />
  <row Id="9247" PostId="9023" Score="0" Text="Thank you!  However, VSCode is telling me that entriesAt() has been deprecated." CreationDate="2023-07-14T17:47:22.570" UserId="3142" />
  <row Id="9248" PostId="9280" Score="0" Text="are you able to access the old data on the explorer?" CreationDate="2023-07-17T04:03:31.857" UserId="354" />
  <row Id="9249" PostId="9280" Score="0" Text="what explorer? I am just running a polkadot node and thought if using --prunning=1000 will just keep last 1,000 blocks in db but i dont understand why i still see records 1 month old." CreationDate="2023-07-17T07:18:46.070" UserId="4438" />
  <row Id="9250" PostId="9274" Score="0" Text="can you explain more related that issue.Do you want to add contract into your node template runtime or something else." CreationDate="2023-07-17T07:59:14.617" UserId="3136" />
  <row Id="9251" PostId="3712" Score="0" Text="The docs mention here https://use.ink/ink-vs-solidity/#mapping-declaration mention that when using a map in ink! we must to use `ink_lang::utils::initialize_contract` in the constructor and provides a link to https://use.ink/datastructures/mapping/ for more details, but that link doesn't actually show any further details about using `initialize_contract`, it simply shows an example of initialising the contract with an empty mapping in the constructor `let balances = Mapping::default();`." CreationDate="2023-07-17T08:34:42.530" UserId="83" />
  <row Id="9252" PostId="3712" Score="0" Text="So do we still need to use `ink_lang::utils::initialize_contract(|_| {})` like you've shown above to cover the `fn default()` case? Or do we just explicitly set variables to mapping defaults with `Mapping::default()` in `fn new()` instead now?" CreationDate="2023-07-17T08:34:46.457" UserId="83" />
  <row Id="9253" PostId="3712" Score="0" Text="It seems we still need to use `ink_lang::utils::initialize_contract(|_| {})` since it is shown in an example here https://use.ink/ink-vs-solidity/#nested-mappings--custom--advanced-structures" CreationDate="2023-07-17T09:02:15.433" UserId="83" />
  <row Id="9254" PostId="9253" Score="0" Text="As suggested would be great if you can show a bit more of your code for us to try to replicate it" CreationDate="2023-07-17T09:17:30.850" UserId="2762" />
  <row Id="9256" PostId="3308" Score="0" Text="i've written a Flipper game in Solidity where you can access the previous block hash with `blockHashPrevious = blockhash(blockNumber - 1);` https://github.com/ltfschoen/XCMTemplate/pull/23/files#diff-fa4375dc6e580dc8d5e6d1ddcf56f920463f91207238f27c792f70a02cc2b061R88. i understand that ink! is an improvement on Solidity so i'm writing it in ink! but is it really an improvement to access the block hash for a given block using a chain extension? how would you deduce the block hash from the block number as you have mentioned that is a possibility?" CreationDate="2023-07-17T10:11:22.297" UserId="83" />
  <row Id="9257" PostId="9286" Score="0" Text="What do you mean? how to randomly pick one of the 2 options?" CreationDate="2023-07-17T11:00:53.260" UserId="2762" />
  <row Id="9259" PostId="9220" Score="0" Text="something is triggering this sign action, can you share your code or more information?" CreationDate="2023-07-17T12:18:10.460" UserId="2762" />
  <row Id="9260" PostId="9215" Score="0" Text="Not sure why it appears, but can this help you? https://github.com/paritytech/polkadot/issues/349" CreationDate="2023-07-17T12:34:23.067" UserId="2762" />
  <row Id="9261" PostId="9290" Score="0" Text="Nice, thanks ! :)" CreationDate="2023-07-17T13:19:06.507" UserId="4083" />
  <row Id="9262" PostId="9274" Score="0" Text="yes you got it right contract on node template" CreationDate="2023-07-17T15:43:20.730" UserId="4277" />
  <row Id="9263" PostId="9286" Score="0" Text="so total supply is 15,000 and We wan't mint function generate random number to determine whether a Chicken or a Fox is minted. @AlexBean" CreationDate="2023-07-17T17:38:31.983" UserId="2844" />
  <row Id="9264" PostId="3308" Score="0" Text="i've written that same Flipper Game in ink! now but i don't know how to access the previous block hash using ink! here https://github.com/ltfschoen/XCMTemplate/pull/23/commits/45fb06a75e02e151603959cbc85a5740d04d6221#diff-dadc6f64a8f75c0d9e8a5b20470f1bb875998addafe1b7700eb03af00e7226bdR214" CreationDate="2023-07-17T23:05:17.523" UserId="83" />
  <row Id="9265" PostId="9273" Score="0" Text="It is not easy to follow that link for beginner&#xA;For example&#xA;`pallet-nicks = { version = &quot;4.0.0-dev&quot;, default-features = false, git = &quot;https://github.com/paritytech/substrate.git&quot;, branch = &quot;polkadot-v0.9.37&quot; }`&#xA;this line how to apply as sudo version..?" CreationDate="2023-07-18T01:36:43.513" UserId="4434" />
  <row Id="9266" PostId="9306" Score="0" Text="I  checked but the folder is not existing" CreationDate="2023-07-18T08:57:33.010" UserId="4443" />
  <row Id="9267" PostId="9306" Score="0" Text="How do you run the node-template?" CreationDate="2023-07-18T08:58:28.980" UserId="2762" />
  <row Id="9268" PostId="9306" Score="0" Text="By this  ./target/release/node-template --dev --tmp --ws-external --rpc-external" CreationDate="2023-07-18T09:06:10.843" UserId="4443" />
  <row Id="9270" PostId="9306" Score="0" Text="Because you are using --dev and --tmp is automatically deleting the chain data when stop the node" CreationDate="2023-07-18T09:32:05.513" UserId="2762" />
  <row Id="9271" PostId="9306" Score="0" Text="I edited the answer with more information" CreationDate="2023-07-18T09:35:45.450" UserId="2762" />
  <row Id="9272" PostId="9307" Score="0" Text="Have you tried to run your parachain build with latest code on a local environment?" CreationDate="2023-07-18T09:38:33.773" UserId="354" />
  <row Id="9274" PostId="9306" Score="0" Text="But when i use this command to run the node-template ./target/release/node-template --dev,it gives me error connecting to substrate (connection to websocket failed).                                                                                                                         But when i use this command ./target/release/node-template --dev --tmp --ws-external --rpc-external  it connects to substrate." CreationDate="2023-07-18T09:58:50.190" UserId="4443" />
  <row Id="9277" PostId="9195" Score="0" Text="What specifically are you trying to do using Subxt here? I'd encourage you to look at the docs on setting up a new validator here: https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-polkadot. There are some transactions you can submit as part of the process to get a new validator going, and if you wanted to use Subxt for those then have a look at https://docs.rs/subxt/latest/subxt/book/usage/transactions/index.html (and related docs) to learn about how to submit transactions via Subxt :)" CreationDate="2023-07-18T11:02:56.077" UserId="474" />
  <row Id="9278" PostId="9218" Score="0" Text="Not using docker. Just getting from the build directory which is built later" CreationDate="2023-07-18T11:19:49.757" UserId="552" />
  <row Id="9279" PostId="9308" Score="0" Text="I would say that if you have an already running client that calls a bunch of specific RPC methods and you just don't want to update every call to use/handle `state_call` (eg Ethereum clients and their `eth_xxxxx` methods). But for the long run it would be indeed way better to avoid that." CreationDate="2023-07-18T12:20:04.883" UserId="14" />
  <row Id="9280" PostId="9284" Score="1" Text="thanks bro i appreciate your efforts it solved that issue and you also saved my time amazing i was hopeless when i didn't got any solution but you made my day thanks again" CreationDate="2023-07-18T12:30:21.150" UserId="4431" />
  <row Id="9281" PostId="9284" Score="0" Text="That's why this site is for, to help devs!" CreationDate="2023-07-18T14:05:06.640" UserId="2762" />
  <row Id="9282" PostId="9307" Score="0" Text="Could you update your github links with permanent links ? Your second link is now pointing to a line which has a function argument instead one of the errors. Thanks!" CreationDate="2023-07-18T14:34:54.247" UserId="165" />
  <row Id="9283" PostId="9307" Score="0" Text="Also would be good to know in which Block# the runtime upgraded enacted, and in which block your unsigned transaction is included." CreationDate="2023-07-18T14:37:40.637" UserId="165" />
  <row Id="9284" PostId="9298" Score="1" Text="To my knowledge there is still no working version of XVM.&#xA;Why don't use `[u8; 32]` for u256, and impl `From` for your needs?&#xA;In a similar manner, the EVM type `address` in Astar XVM is actually `[u8; 20]` which is equivalent for H160" CreationDate="2023-07-18T15:03:35.343" UserId="529" />
  <row Id="9285" PostId="9306" Score="0" Text="The answer from Alex above is correct for the message you are seeing and the question in your original post. It seems you have a deeper question. I recommend you open a new post, and spend time to explain what you are trying to do, the what you have tried, and specifically what you expect to happen. Please reivew https://meta.stackexchange.com/help/how-to-ask" CreationDate="2023-07-18T19:50:01.670" UserId="28" />
  <row Id="9286" PostId="9298" Score="0" Text="@PierreOssun mentioned that this shows how to decode in ink! a call to a getter in Solidity https://github.com/AstarNetwork/ink-xvm-sdk/blob/18944607edb83a61e9a016eb588c5ee0804f2c70/contracts/erc20/lib.rs#L53" CreationDate="2023-07-18T22:20:59.480" UserId="83" />
  <row Id="9288" PostId="882" Score="0" Text="Can you provide an example on how to call the approve function from the front end ? &#xA;&#xA;The following has not worked : &#xA;&#xA;let Contract = new ContractPromise(api, abi_psp22, tokenAddress);&#xA;  Contract.tx['psp22::approve'](tokensAddress, SpenderContractAddress, formattedAmount)" CreationDate="2023-07-19T01:12:00.493" UserId="4342" />
  <row Id="9289" PostId="9317" Score="0" Text="hey @Valentin Fernandez, since `Alice` is root Account. I use Alice to approve proposal but I got `BadOrigin` issue [here](https://drive.google.com/file/d/1LrmamPWdh6Deya0tBSCdDajz317YKsS5/view?usp=sharing). Can you please tell me how to configure so that it works properly?" CreationDate="2023-07-19T03:32:47.643" UserId="2844" />
  <row Id="9290" PostId="9318" Score="0" Text="Can you add more details to your question" CreationDate="2023-07-19T04:45:17.790" UserId="354" />
  <row Id="9293" PostId="9307" Score="0" Text="Hey @AlejandroMartínez, I updated the link. Also at block no 55234 [https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fmoonbeam-integration-parachain.polkadex.trade#/explorer/query/0x5c7b75c6568375c8fad6af0712b5d7dae82d67401e361cbd782bc3e1783702f0] upgrade got enacted. And we sent an unsigned transaction around 55240." CreationDate="2023-07-19T05:39:14.190" UserId="458" />
  <row Id="9294" PostId="9319" Score="0" Text="Please provide whole code or the link to github. What is the difference between `tokenAddress` in ContractPromise and &quot;token`s`Address&quot; you are using in Contract.tx?" CreationDate="2023-07-19T08:46:52.723" UserId="529" />
  <row Id="9295" PostId="9307" Score="0" Text="I cannot find the custom Error with code `1` in your codebase, would be great if you could point to it.&#xA;The rest of logs you are observing is the node banning that concrete tx from being sent again to avoid spam, to get rid of that you will need to restart the node that has banned it." CreationDate="2023-07-19T10:19:36.040" UserId="165" />
  <row Id="9296" PostId="9307" Score="0" Text="Could you also point to the version of the code from which you compiled to do the runtime upgrade ? The one without all those checks in `validate_incoming_message`" CreationDate="2023-07-19T10:25:18.020" UserId="165" />
  <row Id="9297" PostId="9310" Score="0" Text="how to get `block_hash` in ink! smart contract @Luke Schoen? There is not function to get block has [here](https://paritytech.github.io/ink/ink_env/index.html#functions)" CreationDate="2023-07-19T10:38:47.570" UserId="2844" />
  <row Id="9298" PostId="9297" Score="0" Text="Error from my node like this:&#xA;    HTTP serve connection failed hyper::Error(Parse(Method)) &#xA;And error from frontend like this:&#xA;    Error Connecting to Substrate&#xA;    Connection to websocket 'wss://127.0.0.1:9944/' failed." CreationDate="2023-07-19T11:34:45.170" UserId="4440" />
  <row Id="9299" PostId="9273" Score="0" Text="No worries, let me provide further assistance. There are some steps for adding a pallet into a runtime which are shown in the doc that I shared with you, this document does the whole process but instead of doing it with `pallet-sudo` it does it with `pallet-nick`. This would transponse pretty okey to most points, like integrating to `runtime` dependencies on `Cargo.toml`, adding to `features` and so. The only point which will differ heavily is the configuration of the pallet, since in the tutorial `pallet-nick` is being configured and in our case we want to do it for `pallet-sudo`." CreationDate="2023-07-19T11:54:03.843" UserId="4341" />
  <row Id="9300" PostId="9273" Score="0" Text="On my answer you will find an example of how to configure `pallet-sudo` and just to be super clear [this](https://docs.substrate.io/tutorials/build-application-logic/add-a-pallet/#:~:text=to%20track%20balances.-,Implement%20the%20configuration%20for%20Nicks,-Now%20that%20you) is the section of the tutorial I am talking about." CreationDate="2023-07-19T11:55:41.557" UserId="4341" />
  <row Id="9302" PostId="9329" Score="0" Text="I tried but, I still get an outOfGas error, thank you." CreationDate="2023-07-19T12:58:35.470" UserId="632" />
  <row Id="9303" PostId="9323" Score="0" Text="Appreciate the help! I will probably use this for production build. I tried putting await before the call but it didn't seem to work. I'm updating my question with the full context" CreationDate="2023-07-19T13:10:35.520" UserId="4342" />
  <row Id="9304" PostId="9329" Score="0" Text="It seems that the `eth_estimateGas` is not returning the proper amount of gas needed, have you tried to build your frontier with `cargo b -r --features=rpc-binary-search-estimate`? A heads up that what I recommended here is an approach to not charge for a txn but the gas will still be there." CreationDate="2023-07-19T13:23:11.483" UserId="14" />
  <row Id="9305" PostId="9319" Score="0" Text="@Maario The question context has been updated" CreationDate="2023-07-19T13:23:16.093" UserId="4342" />
  <row Id="9306" PostId="9329" Score="0" Text="I dont have rpc-binary-search-estimate feature. I will check what eth_estimateGas return." CreationDate="2023-07-19T13:24:23.520" UserId="632" />
  <row Id="9307" PostId="9329" Score="0" Text="eth_estimateGas should return 0 ?" CreationDate="2023-07-19T13:35:01.503" UserId="632" />
  <row Id="9308" PostId="9329" Score="0" Text="I forced eth_estimateGas to return 0, but I still have outOfGas error" CreationDate="2023-07-19T13:39:32.483" UserId="632" />
  <row Id="9309" PostId="9329" Score="0" Text="I don't think so..." CreationDate="2023-07-19T13:40:31.013" UserId="14" />
  <row Id="9310" PostId="9329" Score="0" Text="Oh, you can not do that...the EVM still needs a gas amount to perform its work load." CreationDate="2023-07-19T13:41:02.040" UserId="14" />
  <row Id="9311" PostId="9323" Score="0" Text="The problem is that you are making an extrinsic without sending it, [check out this](https://github.com/Brushfam/typechain-polkadot/blob/master/packages/typechain-types/src/tx.ts)" CreationDate="2023-07-19T16:30:01.297" UserId="4449" />
  <row Id="9312" PostId="9323" Score="0" Text="Am I not doing that here :  await api.tx.utility&#xA;        .batch(txs)&#xA;        .signAndSend(...) ?" CreationDate="2023-07-19T18:06:28.760" UserId="4342" />
  <row Id="9313" PostId="9338" Score="0" Text="http://127.0.0.1:58485 was the Prometheus Link assigned to my collator." CreationDate="2023-07-19T20:28:19.073" UserId="4341" />
  <row Id="9314" PostId="9310" Score="0" Text="i've highlight the only solution i can think of for ink! that should work at the moment here https://github.com/paritytech/ink/issues/1849#issuecomment-1641098345, which involves having your ink! contract perform a cross-contract call to a Solidity contract that simply returns the relevant block hash since that function is supported in Solidity, for example run `blockhash(blockNumber - 1);` to get the previous block hash with Solidity. but that would only work on a chain that supports both Wasm and EVM contracts like Astar, since whilst cross-contract calls are supported." CreationDate="2023-07-20T00:59:30.130" UserId="83" />
  <row Id="9315" PostId="9310" Score="0" Text="i've already written some code to generate a random number between 1 and 20 based on a future block hash here in 'rand-future' example https://github.com/ltfschoen/XCMTemplate/pull/23/files#diff-8204ef18b173711414617cb0ab5680e976995169b27ba1767fac9589fa950f30R87, but i'm manually providing the block hash as argument `block_hash_entropy` to function `set_block_for_entropy_for_market_id`, to generate the random number for a guessing game that started earlier. next step is for that ink! contract to perform a cross-contract call to a Solidity contract that simply returns the current block hash" CreationDate="2023-07-20T01:03:20.267" UserId="83" />
  <row Id="9316" PostId="9310" Score="0" Text="also see https://substrate.stackexchange.com/a/9325/83" CreationDate="2023-07-20T01:05:35.917" UserId="83" />
  <row Id="9318" PostId="9297" Score="0" Text="Try running it with `--ws-port 9944` instead of `--ws-port 9945`. &#xA;If you followed an official substrate-node-template guides like https://docs.substrate.io/tutorials/build-a-blockchain/simulate-network/, they use all default ports, but they explicitly ask you to use port `9945` with `--ws-port 9945 \` (instead of the default port `9944`). By doing that it presents an hidden challenge for newcomers as they don't mention it's a non-default port. It's not the first time I've seen someone encounter this issue, so I'd recommend updating the docs to mention when an example uses a non-default port." CreationDate="2023-07-20T01:26:47.943" UserId="83" />
  <row Id="9319" PostId="9297" Score="0" Text="Since those official examples use non-default port `9945` instead of default port `9944`, users get stumped and can't automatically connect their node when they go to https://polkadot.js.org/apps, where if you choose to connect to your Local Node it is pre-populated with the default port 9944 (i.e. https://polkadot.js.org/apps/?rpc=ws://127.0.0.1:9944). It's also why the substrate-front-end-template by default connects to port `9944` https://github.com/substrate-developer-hub/substrate-front-end-template/blob/main/src/config/development.json#L2" CreationDate="2023-07-20T01:30:13.600" UserId="83" />
  <row Id="9320" PostId="9307" Score="0" Text="Hey @AlejandroMartínez, check the update section. I guess Subxt is somehow not working correctly." CreationDate="2023-07-20T06:15:37.577" UserId="458" />
  <row Id="9321" PostId="9307" Score="0" Text="Interesting that with polkadotJS works, can you share the code of how are you creating the extrinsic with subxt?" CreationDate="2023-07-20T06:54:38.087" UserId="2762" />
  <row Id="9323" PostId="9297" Score="0" Text="It is still not working. I change the port, so now there is no error in node terminal. But it is still an error in frontend. The same error: **Error Connecting to Substrate&#xA;Connection to websocket 'ws://127.0.0.1:9944/' failed.**. And browser console shows me this: **logger.js:56 2023-07-20 12:48:41          API-WS: disconnected from ws://127.0.0.1:9944: 1006:: Abnormal Closure&#xA;overrideMethod @ console.js:213&#xA;Gs @ logger.js:56&#xA;error @ logger.js:115&#xA;Sc.__internal__onSocketClose @ index.js:71&#xA;Show 1 more frame&#xA;index.js:307 WebSocket connection to 'ws://127.0.0.1:9944/' failed: **" CreationDate="2023-07-20T09:51:18.637" UserId="4440" />
  <row Id="9324" PostId="9297" Score="0" Text="can you help me, if I give you all access? I study substrate almost 2 months and still cannot run even this simple project." CreationDate="2023-07-20T10:46:22.643" UserId="4440" />
  <row Id="9325" PostId="9297" Score="0" Text="did you update your linux dedicated server firewall to accept connections on the appropriate port 9944 instead of 9945?" CreationDate="2023-07-20T11:32:07.033" UserId="83" />
  <row Id="9326" PostId="9297" Score="0" Text="yes, It accepts all ports. Maybe I should write something in **production.json** file except this rows **{&#xA;  &quot;PROVIDER_SOCKET&quot;: &quot;ws://localhost:9944&quot;&#xA;} &#xA;**" CreationDate="2023-07-20T12:10:49.903" UserId="4440" />
  <row Id="9327" PostId="9342" Score="0" Text="I will look into subalfred and fork-off. I don't think the relay chain will accept a parachain starting from block N &gt;&gt; 0 anyways, but it's still interesting to start from a different state. With the other approach i.e. starting with a genesis state, I am still trying to figure out how exactly to filter the keys in storage as we must remember that a solochain comes with pallets like aura/babe/grandpa which are not needed in a parachain so these keys must be eliminated. That's my theoretical understanding so far." CreationDate="2023-07-20T12:25:39.950" UserId="139" />
  <row Id="9328" PostId="9341" Score="1" Text="You need to be a bit more specific. What do you mean with a parallel or on-demand chain? What about [zombienet](https://github.com/paritytech/zombienet)?" CreationDate="2023-07-20T12:26:27.640" UserId="3317" />
  <row Id="9329" PostId="9348" Score="0" Text="hey @Daan van der Plas [this is my configuration](https://github.com/XcavateBlockchain/MarketplaceMVP_Substrate/blob/a9ef41ac23a18df9bad800f9a5d4929daf082323/runtime/src/lib.rs#L718). I am confused how to transfer balance to the account id of the treasury? Where can I find treasury account id?" CreationDate="2023-07-20T12:42:50.973" UserId="2844" />
  <row Id="9330" PostId="9297" Score="0" Text="Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/147352/discussion-between---and-luke-schoen)." CreationDate="2023-07-20T12:51:15.917" UserId="4440" />
  <row Id="9331" PostId="9342" Score="0" Text="@Purple_Turtle if you are starting from `block 0` than there is no need to care about keys as you can override it with `subalfred` and need to insert them again." CreationDate="2023-07-20T13:04:57.043" UserId="354" />
  <row Id="9332" PostId="9349" Score="2" Text="Does this answer your question? [Is possible to set the genesis block number to non-zero value?](https://substrate.stackexchange.com/questions/7015/is-possible-to-set-the-genesis-block-number-to-non-zero-value)" CreationDate="2023-07-20T13:17:16.273" UserId="251" />
  <row Id="9333" PostId="9307" Score="0" Text="&quot;an unsigned transaction&quot; is the exact same unsigned transaction that you were sending with subxt ? What is banned is the concrete tx - https://github.com/paritytech/substrate/blob/73c1388d6de8fe4b56463ba793393a0b2a2f25c8/client/transaction-pool/src/graph/rotator.rs#L65" CreationDate="2023-07-20T14:15:20.910" UserId="165" />
  <row Id="9334" PostId="9348" Score="0" Text="Just how you'd normally do a balance transfer. You could write a test and print it out and use [this](https://github.com/paritytech/substrate/blob/73c1388d6de8fe4b56463ba793393a0b2a2f25c8/frame/treasury/src/lib.rs#L247)" CreationDate="2023-07-20T14:59:04.433" UserId="3317" />
  <row Id="9336" PostId="9347" Score="0" Text="Good catch! Somehow I overlooked this. &#xA;So the weight depends on the max number of concurrent votes allowed per address, 512 as of now for both kusama and polkadot.&#xA;&#xA;Thanks!" CreationDate="2023-07-20T19:04:41.717" UserId="3417" />
  <row Id="9337" PostId="9339" Score="0" Text="When sending the Transact XCM Instruction from parachain A, how is the target pallet Id which contains the extrinsic to be executed specified? I have updated the question" CreationDate="2023-07-20T20:04:51.570" UserId="2960" />
  <row Id="9338" PostId="9341" Score="0" Text="I've added links to relevant details. Zombienet is a test tool. I'm asking about a chain in the wild." CreationDate="2023-07-20T23:13:47.620" UserId="3344" />
  <row Id="9339" PostId="9339" Score="0" Text="I am also currently doing R&amp;D on transact instruction , so I am also not sure how it identifies the pallet, for now what I understand is that we need to specify the transact instruction in the same pallet on which we want on other chain." CreationDate="2023-07-21T05:09:23.283" UserId="354" />
  <row Id="9340" PostId="9349" Score="0" Text="So if I understand correctly, @AurevoirXavier that answer says that a lot of code depends on genesis == blocknum 0 so the answer is no? Which code? the relay chain code?" CreationDate="2023-07-21T05:32:24.287" UserId="139" />
  <row Id="9342" PostId="9357" Score="0" Text="I see. So I guess in that case, a data migration is the only way to migrate a running parachain into a parachain slot." CreationDate="2023-07-21T05:55:45.390" UserId="139" />
  <row Id="9343" PostId="9357" Score="0" Text="I believe that is currently the only available option.  But I'm not 100% sure." CreationDate="2023-07-21T05:59:51.730" UserId="251" />
  <row Id="9346" PostId="9239" Score="0" Text="Had the same issue, `cargo update -p &quot;proc-macro2&quot;` solved it." CreationDate="2023-07-21T09:18:17.967" UserId="4453" />
  <row Id="9347" PostId="9355" Score="0" Text="Thanks for your answer. This makes perfect sense. As a follow up question, if you will, I believe pallet-evm mints and withdraws currency (for evm contracts and accounts) that's categorically different from the substrate currency, and from the perspective of substrate, all pallet-evm is doing is reserving tokens during a mint, and releasing the same currency during a withdraw. Is this understanding correct ?" CreationDate="2023-07-21T11:21:45.867" UserId="139" />
  <row Id="9348" PostId="9310" Score="0" Text="FYI, here's my PR that uses cross-contact XVM to call from ink! to Solidity to get the block hash https://github.com/ltfschoen/XCMTemplate/pull/24/files#diff-98af389605118659c220cd8a1f601f2550ba2b6801dee17dfe6b0edcf5ef73a7R4" CreationDate="2023-07-21T14:33:50.290" UserId="83" />
  <row Id="9349" PostId="9362" Score="0" Text="What specifically are you going to use the random number for?" CreationDate="2023-07-21T14:37:22.760" UserId="83" />
  <row Id="9350" PostId="9339" Score="0" Text="Do you mean that the pallets on both receiving (pallet which initiates the xcm) and destination (pallet which contains the extrinsic) chain should have same name ?" CreationDate="2023-07-21T15:01:38.730" UserId="2960" />
  <row Id="9351" PostId="9359" Score="0" Text="This was introduced in https://github.com/paritytech/substrate/pull/11649." CreationDate="2023-07-21T15:57:35.820" UserId="251" />
  <row Id="9352" PostId="9362" Score="1" Text="For [this](https://substrate.stackexchange.com/q/9286/2844) @LukeSchoen" CreationDate="2023-07-21T16:25:22.377" UserId="2844" />
  <row Id="9353" PostId="9362" Score="0" Text="and I am following [as you mentioned here](https://substrate.stackexchange.com/a/9310/2844)" CreationDate="2023-07-21T16:27:04.993" UserId="2844" />
  <row Id="9354" PostId="9359" Score="0" Text="I remember there was automatic rescheduling logic in the code at one point and it would move the agenda to some block in the future. Updating the `IncompleteSince` here is not right AFAIK. Maybe that automatic re-scheduling logic was removed before we merged it..." CreationDate="2023-07-21T16:58:29.137" UserId="94" />
  <row Id="9355" PostId="9359" Score="0" Text="&quot;Updating the `IncompleteSince` here is not right AFAIK.&quot; By &quot;here&quot; you mean the sitatuion of an unavailable preimage? Yeah, absolutely, setting `IncompleteSince` in this situation seems like a bad idea. But why is the agenda kept around?" CreationDate="2023-07-22T12:23:01.460" UserId="3" />
  <row Id="9356" PostId="9359" Score="0" Text="It's basically this one line: https://github.com/paritytech/substrate/blob/0cbea5805e0f4edcf8a3a70135b4d8eabc2db06f/frame/scheduler/src/lib.rs#L1044. Why do we check for `dropped &gt; 0`?" CreationDate="2023-07-22T12:23:57.993" UserId="3" />
  <row Id="9357" PostId="3187" Score="0" Text="does it make any difference if you use `const [api1, api2] = await Promise.all([await ApiPromise.create({ provider:txtNode}), await ApiPromise.create({ provider: PeerNode})]);`" CreationDate="2023-07-23T00:33:12.633" UserId="83" />
  <row Id="9360" PostId="9371" Score="0" Text="Thanks for the details. AFAICT there is no way to formally securely lock down a permissionless blockchain - say as the relay token becomes worthless it becomes viable to attack it. While permissioned chains don't have this particular vulnerability (they possibly have others) it would still be nice to have these issues systematically addressed. Say as a tutorial? Maybe the bricked-runtime scenario needs to be formalized. This way the full set of tradeoffs and risks can be assessed." CreationDate="2023-07-23T03:20:16.227" UserId="3344" />
  <row Id="9361" PostId="9371" Score="0" Text="I don't see many people asking for what you are looking for, but sure, if you are interested in making such a tutorial, I think community would support you." CreationDate="2023-07-23T10:00:28.710" UserId="28" />
  <row Id="9362" PostId="9306" Score="0" Text="Can we proceed with next steps in the substrate documentation without purging the old chain data." CreationDate="2023-07-23T13:19:28.620" UserId="4443" />
  <row Id="9363" PostId="9374" Score="0" Text="Can we proceed with next steps without purging the old chain data, or is that step neccessary to purge that." CreationDate="2023-07-24T05:54:39.220" UserId="4443" />
  <row Id="9365" PostId="9093" Score="1" Text="is this answer good enough for the original question? if you think so, please set it as the confirmed answer.&#xA;&#xA;Also, for completenesses, here you have all the available system RPC methods for Polkadot Relay chain: https://polkadot.js.org/docs/polkadot/rpc#system" CreationDate="2023-07-24T10:07:23.160" UserId="2025" />
  <row Id="9366" PostId="9388" Score="0" Text="Perhaps your session key is the `ValidatorId` and you need to pass in your validator main account id ([ref](https://github.com/paritytech/substrate/blob/1a1c32a1cc7c56e88485f146977ba0fb32026c0a/frame/session/src/lib.rs#L784-L790))?" CreationDate="2023-07-24T12:00:20.900" UserId="3317" />
  <row Id="9367" PostId="9355" Score="0" Text="Updated the answer above since there is a character limit in comments. accept my answer if it makes sense to you. thanks!" CreationDate="2023-07-24T13:09:58.100" UserId="427" />
  <row Id="9368" PostId="9374" Score="0" Text="Which documentation/steps are you referring to?" CreationDate="2023-07-24T13:14:16.973" UserId="29" />
  <row Id="9369" PostId="9374" Score="0" Text="Substrate documentation" CreationDate="2023-07-24T13:46:20.557" UserId="4443" />
  <row Id="9371" PostId="9386" Score="0" Text="No luck. I even tried the out of the box example against the flipper contract and its still erroring out. How do https://contracts-ui.substrate.io/ do it? Doesn't seem to fail there" CreationDate="2023-07-24T15:27:49.203" UserId="4342" />
  <row Id="9373" PostId="5069" Score="0" Text="^^^ Does this mean that it is impossible to get the balance with a simple request? I can't add comments" CreationDate="2023-07-24T12:08:40.600" UserId="4462" />
  <row Id="9374" PostId="9374" Score="0" Text="I am guessing you're following a tutorial? Do you have a link to the tutorial or steps you're referring to?" CreationDate="2023-07-24T19:02:29.157" UserId="29" />
  <row Id="9375" PostId="9399" Score="0" Text="What do you mean 43 version?" CreationDate="2023-07-25T05:27:39.513" UserId="251" />
  <row Id="9376" PostId="9399" Score="0" Text="here i am referring it the branch (polkadot-v0.9.43) and same for Evm frontier branch (polkadot-v0.9.43)" CreationDate="2023-07-25T05:47:59.737" UserId="2348" />
  <row Id="9377" PostId="9374" Score="0" Text="https://docs.substrate.io/quick-start/   in this documentation I'm following tutorial." CreationDate="2023-07-25T06:06:03.147" UserId="4443" />
  <row Id="9378" PostId="9371" Score="0" Text="`&gt; I don't see many people asking for what you are looking for...` agreed.  It is a glaring blind spot. IIUC, properly addressing this relay chain vulnerability requires substantial changes. For parachains (and on-demand chains?) your suggested workaround (bricking the chain) should work. But, only for as long as the relay chain token holds its value relative to the tokens held by the adversaries - correct?" CreationDate="2023-07-25T09:04:21.130" UserId="3344" />
  <row Id="9379" PostId="9371" Score="0" Text="To clarify, if you brick a parachain and then an adversary gains control of the relay chain, they can unbrick the parachain and have complete control of its data. Hopefully, that is correct.  If I'm right this is best addressed via a W3F RFP?" CreationDate="2023-07-25T09:15:36.623" UserId="3344" />
  <row Id="9380" PostId="9388" Score="0" Text="@DaanvanderPlas can you please elaborate it more. i did't get your point." CreationDate="2023-07-25T09:17:14.083" UserId="3752" />
  <row Id="9381" PostId="9291" Score="0" Text="I found decision - in production/development.json need to specify **ws**://server_ip_address instead of **wss**://server_ip_address . And in browser it should run without **https** (only **http**). Now I'm looking how to fix it to run over https server (not http)" CreationDate="2023-07-25T09:39:05.997" UserId="4440" />
  <row Id="9382" PostId="9388" Score="0" Text="Which chain are you connecting to?" CreationDate="2023-07-25T12:05:23.440" UserId="3317" />
  <row Id="9383" PostId="9375" Score="0" Text="What error do you get?" CreationDate="2023-07-25T12:31:44.190" UserId="2166" />
  <row Id="9384" PostId="9388" Score="0" Text="@DaanvanderPlas it's Stand alone chain with POA consensus and Unified accounts implementation. you can inspect session keys config and etc here. &#xA;https://github.com/Block-Bird/storage-chain-poa.git" CreationDate="2023-07-25T15:37:02.040" UserId="3752" />
  <row Id="9385" PostId="9371" Score="1" Text="A lot of assumptions break down if someone gains control of the relay chain. Indeed parachains are basically only as secure as the relay chain. Thank fully, the relay chain is designed to be VERY secure. I don't think there is really something specific to address here, but yeah i mean if you have something specific, you should write it down." CreationDate="2023-07-25T18:35:57.207" UserId="28" />
  <row Id="9386" PostId="1521" Score="0" Text="As of now, transactional is default in Substrate, so revert is the default behavior in Substrate." CreationDate="2023-07-25T18:37:25.370" UserId="28" />
  <row Id="9387" PostId="9401" Score="1" Text="This can give you an idea on how to start: https://polkadot.study/tutorials/kitties-part-01/step7" CreationDate="2023-07-25T23:26:28.990" UserId="3881" />
  <row Id="9388" PostId="9403" Score="2" Text="You have to set up a secure websocket https://wiki.polkadot.network/docs/maintain-wss" CreationDate="2023-07-25T23:32:53.307" UserId="3881" />
  <row Id="9389" PostId="9374" Score="0" Text="Yes so proceed to the next steps." CreationDate="2023-07-25T23:58:42.953" UserId="29" />
  <row Id="9390" PostId="5053" Score="0" Text="Nice. I get a bit flustered with all those popups triggering at once!" CreationDate="2023-07-26T09:19:15.240" UserId="85" />
  <row Id="9391" PostId="9407" Score="0" Text="hey @Drew Stone thanks for this information. I review [page-nfts](https://github.com/polkadot-js/apps/tree/master/packages/page-nfts) code but haven't found `create()` function and haven't found any parameters which are passed inside `create()` function." CreationDate="2023-07-27T03:24:11.477" UserId="2844" />
  <row Id="9392" PostId="9403" Score="0" Text="can you provide an error what you got while connecting to wss port." CreationDate="2023-07-27T07:04:07.220" UserId="3136" />
  <row Id="9393" PostId="9409" Score="1" Text="What is the type for `RequestUnstakingTimeKey`? &#xA;Check the format of the Mapping [here](https://docs.rs/ink/4.0.0/ink/storage/struct.Mapping.html)" CreationDate="2023-07-27T08:40:42.377" UserId="529" />
  <row Id="9394" PostId="3023" Score="0" Text="Have you enabled the `--listen-address` flag for your first collator and added it to `bootnodes` in your chainspec or as a flag `--bootnodes` for your second collator?" CreationDate="2023-07-27T09:46:23.610" UserId="3317" />
  <row Id="9395" PostId="9407" Score="0" Text="It's because you're actually on [page-extrinsics](https://github.com/polkadot-js/apps/tree/master/packages/page-extrinsics). And as mentioned, you might find that a lot of this logic is automatically (magically) generated from the type metadata. These extrinsic calls especially. It's just one giant data (JSON) blob that says what pallets have what extrinsic calls/state calls/rpc calls, etc." CreationDate="2023-07-27T17:43:49.277" UserId="74" />
  <row Id="9396" PostId="9385" Score="0" Text="By the way there is a good example [here](https://github.com/paritytech/ink-examples/tree/main/contract-terminate)" CreationDate="2023-07-27T18:42:07.027" UserId="3387" />
  <row Id="9397" PostId="9417" Score="0" Text="this is as far as i got with it https://github.com/ltfschoen/XCMTemplate/blob/47942a8eb9dbb10eb3c8b188606c8e4a2c3c8b6a/dapps/ink-rust/rand-future/lib.rs#L153" CreationDate="2023-07-28T00:03:09.277" UserId="83" />
  <row Id="9398" PostId="9417" Score="1" Text="I am handling similar situation here https://github.com/swankyhub/rmrk-lazy-mint/blob/507552ced20d948b6acb34eb75855f84f30357fa/rmrk_proxy/proxy.rs#L126. I hope it helps" CreationDate="2023-07-28T05:56:25.183" UserId="2166" />
  <row Id="9399" PostId="9405" Score="0" Text="Have you looked at: [post 1](https://substrate.stackexchange.com/questions/214/recovering-from-stalled-finality-babe-grandpa), [post 2](https://substrate.stackexchange.com/questions/661/how-to-use-notestalled-to-recover-from-a-finality-lagging-chain) and [post 3](https://substrate.stackexchange.com/questions/675/backing-off-claiming-new-slot-for-block-authorship-finality-is-lagging)?" CreationDate="2023-07-28T06:06:28.093" UserId="3317" />
  <row Id="9400" PostId="9416" Score="0" Text="interesting, will look at it! thanks :)" CreationDate="2023-07-28T09:48:42.137" UserId="357" />
  <row Id="9401" PostId="6970" Score="0" Text="Can we achieve teleport by including SPREE mechanism ? I understand that RelayChain cant just trust X parachain but what if the x parachain has its runtime'not changed and the record it's in relay chain. Am sure by that it can be trusted right? @Alex Bean" CreationDate="2023-07-27T20:41:24.697" UserId="351" />
  <row Id="9402" PostId="6641" Score="0" Text="What is the difference between the macros in the how-to guide `benchmarks! { .. }` and the `#[benchmark]` in the pallet-template? Are they similar in functionality?" CreationDate="2023-07-29T14:29:53.603" UserId="139" />
  <row Id="9403" PostId="9405" Score="0" Text="Yes already read it. But need more clarifications on any risks associated with noteStalled()." CreationDate="2023-07-29T18:00:18.230" UserId="427" />
  <row Id="9404" PostId="9438" Score="0" Text="Can you elaborate on what's meant by whitelisting the &quot;transactional layer&quot;?" CreationDate="2023-07-30T04:02:26.853" UserId="139" />
  <row Id="9405" PostId="9440" Score="0" Text="what's the error you are facing?" CreationDate="2023-07-30T11:51:51.890" UserId="427" />
  <row Id="9406" PostId="9440" Score="0" Text="no error just loading" CreationDate="2023-07-30T12:13:05.237" UserId="2844" />
  <row Id="9407" PostId="6641" Score="0" Text="The benchmarks! {} is the new benchmarking macro syntax. Check this PR: https://github.com/paritytech/substrate/pull/12924" CreationDate="2023-07-31T07:51:19.530" UserId="2762" />
  <row Id="9408" PostId="9423" Score="0" Text="Yup; `OnceCell` was added in Rust 1.70. We recently updated our MSRV as it was pointed out that it was somewhat out of date with reality :)" CreationDate="2023-07-31T09:44:51.590" UserId="474" />
  <row Id="9409" PostId="9442" Score="0" Text="I found the issue, it seems like our `totalIssuance` on our network is 0. This check https://github.com/paritytech/substrate/blob/1d1351114df9fc7e123cf34220e3d8ce39f8a1f0/frame/balances/src/impl_fungible.rs#L109 was added I think. Because of this check, our development network seems to have been broken even more as it was already broken it seems. Is there a way to set this `totalIssuance` to some value without a migration?" CreationDate="2023-07-31T09:46:26.633" UserId="379" />
  <row Id="9410" PostId="9307" Score="0" Text="If you still think that Subxt is at fault, could you provide the Subxt code that submits the transaction, and perhaps also the corresponding Polkadot.js steps that you took so that we can compare?" CreationDate="2023-07-31T09:56:09.843" UserId="474" />
  <row Id="9412" PostId="9432" Score="1" Text="Just adding a detail to the Rococo upgrade: block has been produced by a collator hosted on GCP, as we know Rococo validators are also hosted on GCP.&#xA;Leveraging GCP private network is useful for high connectivity but kills decentralization possibilities.&#xA;It seems surprising to be in this situation for a PoV size of 1.7 Mb only." CreationDate="2023-07-31T11:22:13.817" UserId="1732" />
  <row Id="9413" PostId="9437" Score="0" Text="@Immanule John can you please check this code either it is correct or not to convert timestamp into days? https://github.com/Build3rs-Labs/foxies/blob/cb4745624ed2664afe1806e5873533c650fe7943/impls/staking/staking.rs#L222" CreationDate="2023-07-31T11:48:25.467" UserId="2844" />
  <row Id="9414" PostId="9442" Score="0" Text="Althought, this value was not 0 a few days / weeks ago. We could still transfer tokens in this period before it started failing. This suggests that the total issuance slowly dropped over time.." CreationDate="2023-07-31T11:58:45.123" UserId="379" />
  <row Id="9415" PostId="9214" Score="0" Text="Please answer your question if you found the answer :)" CreationDate="2023-07-31T12:14:11.827" UserId="3317" />
  <row Id="9416" PostId="9437" Score="0" Text="Yes it seems so. but it is also recommended to do proper error handling in your code. 1. The checked_sub method returns an Option indicating the result of the subtraction. If the subtraction results in an overflow, it will return None. In such a case, the subsequent operations will not produce meaningful results.&#xA;&#xA;2.The usage of unwrap_or_default() ignores the potential errors or overflow scenarios. In some cases, it may lead to incorrect or unexpected behavior." CreationDate="2023-07-31T15:46:46.877" UserId="427" />
  <row Id="9417" PostId="9440" Score="0" Text="Are the rest of the extrinsics working? (from other pallets)" CreationDate="2023-07-31T15:47:06.023" UserId="2762" />
  <row Id="9418" PostId="9417" Score="1" Text="@LukeSchoen Hey, thanks for the code! I checked it out, and it seems that for now using a match expression for handling the specific errors and then throwing custom errors is the best option. I really appreciate your help. Thanks!" CreationDate="2023-07-31T15:48:35.817" UserId="4485" />
  <row Id="9419" PostId="9440" Score="0" Text="yes everything working fine just I am not able to upload contract @AlexBean" CreationDate="2023-08-01T03:03:10.960" UserId="2844" />
  <row Id="9420" PostId="9440" Score="0" Text="I was able to replicate it, I could upload a contract with contracts-ui and cargo-contracts but is giving me the same error with PolkadotJS UI. It looks like an issue with PolkadotJS" CreationDate="2023-08-01T07:12:55.347" UserId="2762" />
  <row Id="9422" PostId="9440" Score="0" Text="I opened an issue in the repo: https://github.com/polkadot-js/api/issues/5698" CreationDate="2023-08-01T07:30:28.523" UserId="2762" />
  <row Id="9423" PostId="9443" Score="0" Text="Can you elaborate in what is the use case or  purpose of avoiding to receive &quot;too much&quot; USDT in your parachain?" CreationDate="2023-08-01T08:10:14.333" UserId="2025" />
  <row Id="9424" PostId="9457" Score="1" Text="there is also tutorial on how to write ink_e2e tests for cross contract calls. [Here](https://docs.astar.network/docs/build/wasm/from-zero-to-ink-hero/manic-minter/)" CreationDate="2023-08-01T08:28:24.740" UserId="529" />
  <row Id="9426" PostId="9403" Score="0" Text="Substrate doesnt support secure websocket --wss-port." CreationDate="2023-08-01T11:52:57.880" UserId="4440" />
  <row Id="9427" PostId="9456" Score="0" Text="Hey! That worked, but i also needed to import the trait:&#xA;&#xA;`use ink::ToAccountId;`" CreationDate="2023-08-01T12:13:24.707" UserId="4485" />
  <row Id="9428" PostId="9463" Score="0" Text="Which line of the code posted does the error point at; the `toast.success(` Finalized. Block hash: ${status.asFinalized.toString()}`)` one? If so, I'd have a look at the generated JS; perhaps the `status.asFinalized.toString()` is moved outside the ternary or something?" CreationDate="2023-08-01T14:17:50.420" UserId="474" />
  <row Id="9429" PostId="9463" Score="0" Text="The error occurs once I accept by entering the password on the polkadot js extension. The other words, I think it happens before running the status.asFinalized.toString() function." CreationDate="2023-08-01T14:24:31.160" UserId="4435" />
  <row Id="9430" PostId="9467" Score="0" Text="I successfully build your contract you shared.&#xA;I replaced `MultiSigRef` with `MultiSigFactoryRef` as you didn't share that module, issue might be in `multisig` mod contract, maybe event names are same, etc." CreationDate="2023-08-02T04:41:22.557" UserId="4117" />
  <row Id="9431" PostId="8737" Score="0" Text="Is there a public implementation of `AccountIdConverter` that we can look for reference?" CreationDate="2023-08-02T05:55:58.347" UserId="139" />
  <row Id="9432" PostId="4167" Score="0" Text="You found a solution to your problem?" CreationDate="2023-08-02T07:10:16.027" UserId="3317" />
  <row Id="9433" PostId="9307" Score="0" Text="Hey, I found the issue. I was providing old metadata." CreationDate="2023-08-02T07:11:42.100" UserId="458" />
  <row Id="9434" PostId="9474" Score="1" Text="Ben I don't have parachain yet, I have just chain built using `substrate-node-template`. How to convert into parachain?" CreationDate="2023-08-02T07:19:31.570" UserId="2844" />
  <row Id="9435" PostId="7829" Score="0" Text="IIUC, you're saying that proof skipped or the proof-size cannot be estimated iff the pallet uses `without_storage_info` or doesn't use any storage items at all? I have a pallet that doesn't have storage items and I get a lot of `Proof Skipped` messages, thus my question." CreationDate="2023-08-02T07:26:28.980" UserId="139" />
  <row Id="9436" PostId="9465" Score="0" Text="The `&lt;unknown&gt;` usually means that some storage type has been changed without a proper migration." CreationDate="2023-08-02T07:36:46.880" UserId="3002" />
  <row Id="9437" PostId="9474" Score="0" Text="Edited my answer! Sorry I missed that part" CreationDate="2023-08-02T07:44:05.653" UserId="2762" />
  <row Id="9438" PostId="9465" Score="0" Text="Inbetween runtime upgrades we removed a pallet which reordered the runtime definition. Could this be the cause?" CreationDate="2023-08-02T08:16:15.677" UserId="379" />
  <row Id="9439" PostId="9465" Score="0" Text="Yes, if you swapped the pallet indexes for example. The pallet storage uses the pallet index to make sure keys are unique." CreationDate="2023-08-02T10:33:55.660" UserId="3002" />
  <row Id="9440" PostId="3769" Score="0" Text="@DzmitryLahoda https://github.com/paritytech/cumulus/blob/b3c98894621b317e07af5bd32f2b5a5e12bfc327/pallets/collator-selection/src/lib.rs#L424" CreationDate="2023-08-02T10:42:20.343" UserId="3317" />
  <row Id="9441" PostId="9465" Score="0" Text="Okay. how can I remove a pallet from my runtime definition without breaking related storage?" CreationDate="2023-08-02T10:56:12.783" UserId="379" />
  <row Id="9442" PostId="9465" Score="0" Text="You can either never use the same pallet index again, or you will to clear the pallet storage first. https://substrate.stackexchange.com/questions/3288/proper-removal-of-substrate-pallet-including-storage-prefix" CreationDate="2023-08-02T11:15:29.397" UserId="3002" />
  <row Id="9443" PostId="9437" Score="0" Text="hey @Immanuel John I try to implemented as per you say but when I try to convert time_difference `.as_secs()` as per you suggestion then it gives `no method as_secs() found for type u64`. Here is code for just for calculating days, can you please review it once again. [github_link](https://github.com/ganesh1233456/time_difference_in_days/blob/9ba09eda3a40dd002c96263b28e66b0cd0cdb694/lib.rs#L43)" CreationDate="2023-08-02T11:29:00.593" UserId="2844" />
  <row Id="9444" PostId="9474" Score="0" Text="instead of using `substrate-node-template` as a step to develop chain in substrate we can directly start from `substrate-parachain-template` also in next time? then we don't have to follow all this steps to convert solo chain to parachain yes? @Alex" CreationDate="2023-08-02T11:48:22.087" UserId="2844" />
  <row Id="9445" PostId="9474" Score="1" Text="If the goal is to become a parachain defintely, yes" CreationDate="2023-08-02T12:50:05.997" UserId="2762" />
  <row Id="9446" PostId="9479" Score="0" Text="you can also leave your rustc version as is... no need to downgrade" CreationDate="2023-08-02T14:33:17.623" UserId="4503" />
  <row Id="9447" PostId="9476" Score="0" Text="Ah, yeah, because you call `status.asFinalized.toString()` after that, and the status may well not be finalized yet." CreationDate="2023-08-02T14:37:07.667" UserId="474" />
  <row Id="9448" PostId="9452" Score="1" Text="We'd like to support your &quot;current code&quot; eventually somehow, but it's tricky, so alas at the moment you indeed need to use the generated types manually to construct any &quot;inner&quot; extrinsics. We'll get there eventually I hope!" CreationDate="2023-08-02T14:39:10.593" UserId="474" />
  <row Id="9449" PostId="4167" Score="0" Text="yup i solved this. but i dont remember how" CreationDate="2023-08-02T15:16:44.010" UserId="2384" />
  <row Id="9450" PostId="5858" Score="0" Text="Does Warp sync work with Aura consensus or is it only for Grandpa?" CreationDate="2023-08-02T17:27:59.980" UserId="3142" />
  <row Id="9451" PostId="9461" Score="0" Text="I do want to make the point that overflows/underflows _do not panic_ in release mode. You can test it yourself by creating a storage value with an extrinsic to decrement it, and running against it in release mode." CreationDate="2023-08-02T17:40:02.327" UserId="3407" />
  <row Id="9452" PostId="9461" Score="1" Text="Ah okay. I see there is a compiler flag to change it. For downstream code it can therefore be treated as possible panicker." CreationDate="2023-08-02T19:05:54.687" UserId="94" />
  <row Id="9453" PostId="9461" Score="1" Text="Ah, that's a good point. For other people's reference, the flag is called [overflow-checks](https://doc.rust-lang.org/cargo/reference/profiles.html)." CreationDate="2023-08-02T21:19:17.460" UserId="3407" />
  <row Id="9454" PostId="9440" Score="0" Text="You could use substrate-contracts-node" CreationDate="2023-08-03T02:54:04.237" UserId="29" />
  <row Id="9455" PostId="9440" Score="0" Text="@Bruno I wan't to upload contract in my own chain and pay transaction fee in my own token" CreationDate="2023-08-03T03:03:38.493" UserId="2844" />
  <row Id="9456" PostId="9489" Score="0" Text="Thanks Alex!! this exactly what I needed!!I only wish I could use another type than `any` for `data`, as I'm on TS......" CreationDate="2023-08-03T09:00:05.640" UserId="309" />
  <row Id="9457" PostId="9489" Score="0" Text="WIth the Codec you were using doesn't work?" CreationDate="2023-08-03T09:42:44.223" UserId="2762" />
  <row Id="9458" PostId="9489" Score="0" Text="no, it does not find the different fields with codec" CreationDate="2023-08-03T10:35:38.737" UserId="309" />
  <row Id="9459" PostId="9485" Score="0" Text="Can you list an example showcasing a nesting of concrete errors. I reckon even that's useful than having nothing at all." CreationDate="2023-08-03T11:04:37.490" UserId="139" />
  <row Id="9460" PostId="9492" Score="0" Text="Hi, can you check if you are running the latest version of zombienet (v1.3.63)" CreationDate="2023-08-03T11:17:11.707" UserId="279" />
  <row Id="9461" PostId="9492" Score="0" Text="./zombienet-macos version&#xA;`1.3.30`. Do i need to update @pepoviola?" CreationDate="2023-08-03T11:21:52.070" UserId="2844" />
  <row Id="9463" PostId="9492" Score="1" Text="Yes, please. You need to update to the latest version `v1.3.63` and should works as expected. Thanks!" CreationDate="2023-08-03T11:37:23.050" UserId="279" />
  <row Id="9464" PostId="9492" Score="0" Text="@pepoviola now my latest version is `v1.3.63` and now I am getting warning error." CreationDate="2023-08-03T11:56:23.397" UserId="2844" />
  <row Id="9465" PostId="9492" Score="0" Text="Looks like one of the nodes didn't start as expected, can you check the logs of the collators ?" CreationDate="2023-08-03T12:04:45.587" UserId="279" />
  <row Id="9466" PostId="8653" Score="0" Text="Putting this as a comment because I'm not that sure about the answer but I think the idea of that trait is to tell that a precompile has a simple (linear) way to calculate its final cost (inside the EVM)." CreationDate="2023-08-03T12:12:44.747" UserId="14" />
  <row Id="9467" PostId="9492" Score="0" Text="@pepoviola where can I find logs of the collators?" CreationDate="2023-08-03T12:13:15.287" UserId="2844" />
  <row Id="9468" PostId="9492" Score="0" Text="@pepoviola [pic-1](https://drive.google.com/file/d/1-o-cH1gt9oIGHTsoLTq5RrjySv9m-xPr/view?usp=drive_link) and [pic-2](https://drive.google.com/file/d/1qnasTuTInjYT1pbwdj1MQMJUgPYgIwlb/view?usp=drive_link) do you means this logs?" CreationDate="2023-08-03T12:27:45.730" UserId="2844" />
  <row Id="9469" PostId="9492" Score="0" Text="Make sure that your parachain is on similar release as your polkadot binary (not sure whether this is a must but it helped me once)." CreationDate="2023-08-03T12:37:24.230" UserId="3317" />
  <row Id="9470" PostId="9492" Score="0" Text="@Ganesh11, no. I mean the logs in this directory `/var/folders/q3/d699hkpx49xfy236ph7sltr40000gn/T/zombie-d3059dd228663607be58ce72a2009ae4_-34898-V...` (the full path is elided), and then you will se the logs for the nodes (in the form of &lt;node_name&gt;.log). In general this kind of errors can happen if the node crash or if the node doesn't expose prometheus metrics." CreationDate="2023-08-03T12:41:58.013" UserId="279" />
  <row Id="9471" PostId="9485" Score="0" Text="https://github.com/darwinia-network/darwinia/blob/171023c12ea7b26ae135a0397bc7c610b53bbbb9/pallet/message-transact/src/lib.rs#L107" CreationDate="2023-08-03T12:43:17.693" UserId="251" />
  <row Id="9473" PostId="9492" Score="0" Text="@pepoviola [pic-3](https://drive.google.com/file/d/1TQ1DjCFbph_tIZ2Jhzoc5kiyC3NtuFlZ/view?usp=drive_link) this is the logs of the collators. I haven't found any error message here." CreationDate="2023-08-03T12:57:03.227" UserId="2844" />
  <row Id="9474" PostId="9492" Score="0" Text="@Ganesh11, that looks ok. Are the rest of the nodes (alice, bob, etc) also ok? I will trying to reproduce the same steps from the tutorial. Thanks!" CreationDate="2023-08-03T13:55:04.927" UserId="279" />
  <row Id="9475" PostId="9492" Score="0" Text="@pepoviola there is error in `alice.log` `Error: &#xA;   0: [91mWorker binaries could not be found, make sure polkadot was built/installed correctly. Searched given workers path (None), polkadot binary path (&quot;/Users/ganesholi/binaries/polkadot&quot;), and lib path (/usr/lib/polkadot), workers names: None[0m`. may be this is issue" CreationDate="2023-08-03T17:02:26.897" UserId="2844" />
  <row Id="9476" PostId="9497" Score="0" Text="I am facing error in opening spec file. `Error: &#xA;   0: Invalid input: Error opening spec file /tmp/raw-local-chainspec.json: No such file or directory (os error 2)`" CreationDate="2023-08-03T17:16:33.420" UserId="2844" />
  <row Id="9477" PostId="9497" Score="0" Text="even though there is [file in that directory](https://drive.google.com/file/d/15FleOv_kudt5Ks7OsLYS1_FC32ipU6rX/view?usp=drive_link)" CreationDate="2023-08-03T17:18:18.717" UserId="2844" />
  <row Id="9478" PostId="9492" Score="0" Text="@Ganesh11, yes. That the issue. Did you compile `polkadot` from master? can you try compile the last release `v1.0.0`?" CreationDate="2023-08-03T17:21:54.837" UserId="279" />
  <row Id="9479" PostId="9492" Score="0" Text="yes I compile from master" CreationDate="2023-08-03T17:22:35.647" UserId="2844" />
  <row Id="9481" PostId="9476" Score="0" Text="By the way, why it occurs for `InBlock`? It has also `Ready`." CreationDate="2023-08-03T17:30:17.777" UserId="4435" />
  <row Id="9482" PostId="9497" Score="2" Text="@Ganesh11 /tmp is different from the one in your current project directory. /tmp is associated to the file systems." CreationDate="2023-08-03T17:36:54.783" UserId="427" />
  <row Id="9483" PostId="9492" Score="1" Text="Since https://github.com/paritytech/polkadot/pull/7337, polkadot will have two other  binaries (workers) that you need to compile. Can you please compile from tag `v1.0.0` and will works as expected." CreationDate="2023-08-03T17:54:04.653" UserId="279" />
  <row Id="9484" PostId="9492" Score="0" Text="@pepoviola now it works fine, can you suggest some more resources so that I can learn more." CreationDate="2023-08-04T03:24:41.783" UserId="2844" />
  <row Id="9485" PostId="9498" Score="0" Text="Anything happened before this error appears? migration, another issue with a collator..." CreationDate="2023-08-04T07:44:46.700" UserId="2762" />
  <row Id="9486" PostId="9498" Score="0" Text="Another idea to check is this previous SE: https://substrate.stackexchange.com/questions/6724/can-a-parachain-recover-from-a-block-taking-too-long-error it might be a transaction in the pool that is slowing it down" CreationDate="2023-08-04T07:45:11.390" UserId="2762" />
  <row Id="9487" PostId="9506" Score="0" Text="Ben delete chain database stored locally works but I don't understand how to use `--dev` flag in [this command](https://docs.substrate.io/tutorials/build-a-parachain/prepare-a-local-relay-chain/#start-the-relay-chain-node)? because just adding `--dev` after `--rpc-port 9944 \` doesn't work" CreationDate="2023-08-04T09:47:02.033" UserId="2844" />
  <row Id="9488" PostId="9492" Score="0" Text="Please provide the answer @Ganesh11" CreationDate="2023-08-04T10:00:19.190" UserId="3317" />
  <row Id="9489" PostId="9492" Score="0" Text="@DaanvanderPlas I switch to `release-v1.0.0` branch, recompile and it works fine" CreationDate="2023-08-04T10:22:50.177" UserId="2844" />
  <row Id="9490" PostId="9506" Score="1" Text="--dev can not got with --chain, if you delete --chain will work, but if you want to use your chain_spec, use --tmp instead of --dev (will create tmp data and delete it after). With --tmp you don't need to use specify the --base-path" CreationDate="2023-08-04T10:53:58.277" UserId="2762" />
  <row Id="9491" PostId="9498" Score="0" Text="No transactions or migrations. No appearances of issues with other collators.&#xA;&#xA;I hit the issue again last night, and I can see ` Prepared block for proposing at 1683906` 13 times across two collators (logs on the third are harder to get). They keep trying and eventually it gets through. Always getting `Pool status: PoolStatus { ready: 0, ready_bytes: 0, future: 0, future_bytes: 0 }` so no tx failing as far as I can tell.&#xA;&#xA;All the collators appear happy from a load perspective as well." CreationDate="2023-08-04T12:30:10.703" UserId="300" />
  <row Id="9492" PostId="9510" Score="0" Text="Just confirm, you created a poll first before the vote function correct? Maybe you can share your test case code." CreationDate="2023-08-04T18:55:08.037" UserId="2909" />
  <row Id="9493" PostId="9498" Score="0" Text="Can you open an issue in [Cumulus](https://github.com/paritytech/cumulus/issues) with all the details and link your issue here as well?" CreationDate="2023-08-04T20:24:45.443" UserId="29" />
  <row Id="9494" PostId="9511" Score="0" Text="I don't understand, you mean adding my account `public key` instead of `Alice` [here](https://github.com/paritytech/extended-parachain-template/blob/4fe21a5a1c7dd915bb17b0a607ca4f9f60a27af4/node/src/chain_spec.rs#L282)" CreationDate="2023-08-05T02:45:15.900" UserId="2844" />
  <row Id="9496" PostId="9510" Score="0" Text="Yes, I do create a poll first. Do you think the problem is in tests? I didn't yet wrote the test code." CreationDate="2023-08-05T07:57:25.677" UserId="267" />
  <row Id="9497" PostId="9510" Score="0" Text="while `create_poll` what time did you select? May be that time doesn't meet and that's why it's give `PollIsNotStarted`" CreationDate="2023-08-06T15:26:24.393" UserId="2844" />
  <row Id="9498" PostId="9510" Score="0" Text="I select time in the future as a start time, and let's say 2 minutes after start time as a poll end time. And when poll is finished I still got same error that the `PollIsNotStarted`" CreationDate="2023-08-06T17:42:06.833" UserId="267" />
  <row Id="9499" PostId="9527" Score="0" Text="I believe it won't work for weights where an argument like a vec length is expected?" CreationDate="2023-08-07T06:30:19.407" UserId="139" />
  <row Id="9501" PostId="9532" Score="0" Text="what format should I make while creating file?" CreationDate="2023-08-07T07:00:05.357" UserId="2844" />
  <row Id="9502" PostId="9532" Score="0" Text="I just create file with name `para-4284-genesis-state` but I can't upload this file" CreationDate="2023-08-07T07:01:51.257" UserId="2844" />
  <row Id="9503" PostId="9532" Score="0" Text="What's the error? an easy trick is to convert this file to .txt (rename it) and you will be able to upload" CreationDate="2023-08-07T07:05:52.537" UserId="2762" />
  <row Id="9504" PostId="9502" Score="1" Text="Perhaps you could give a more precise link to the snipper of code where Serialize and Deserialize are implemented on MintingRateInfo?" CreationDate="2023-08-07T08:47:18.020" UserId="474" />
  <row Id="9505" PostId="9120" Score="0" Text="I'm facing the same issue. Have you been able to work it around or fix somehow? @Neo" CreationDate="2023-08-07T09:31:49.270" UserId="3371" />
  <row Id="9506" PostId="9307" Score="0" Text="@ZKT fancy adding that as a proper answer and accepting it? :)" CreationDate="2023-08-07T10:39:22.733" UserId="474" />
  <row Id="9507" PostId="9107" Score="0" Text="Use `rustup override set` in the project directory to update your toolchain according to dependencies. make sure to check changes are reflected before compiling by `rustup show`" CreationDate="2023-08-07T10:53:16.350" UserId="3957" />
  <row Id="9508" PostId="9510" Score="0" Text="I tried everything here, and I had something, when I create a poll and when poll is started I can't vote until I create second poll, and than I can vote for the first poll I create (when poll is started). Do anyone have a clue what is going on?" CreationDate="2023-08-07T11:05:51.600" UserId="267" />
  <row Id="9509" PostId="9532" Score="0" Text="thanks @Alex, how much time does it take to accept my request?" CreationDate="2023-08-07T11:06:23.860" UserId="2844" />
  <row Id="9510" PostId="2061" Score="0" Text="@DaanvanderPlas it was fixed by just upgrading. Though, it didn't fix the problem completely.&#xA;Still having some kind of &quot;lags&quot; after restarting nodes. It syncs to the head and then idles for a while. In a minute or less, it just syncs another ~10 blocks and continues working. Probably, upgrading to the latest version of deps for now may fix this one as well." CreationDate="2023-08-07T11:59:12.107" UserId="411" />
  <row Id="9511" PostId="9498" Score="0" Text="Issue submitted: https://github.com/paritytech/cumulus/issues/2976&#xA;&#xA;Also added a more recent log of the setup in case it is helpful: https://gist.github.com/wilwade/aa1f4ea8dace5938aa8e7a430b780eb1" CreationDate="2023-08-07T12:36:45.353" UserId="300" />
  <row Id="9512" PostId="9532" Score="0" Text="the time it depends, yours should be onboarding now" CreationDate="2023-08-07T13:01:21.503" UserId="2762" />
  <row Id="9513" PostId="9502" Score="0" Text="@jsdw here is the implementation of MintingRateInfo https://github.com/chexware/Bit-Country-Blockchain/blob/runtime-upgrade/polkadot-v1.0.0/pallets/estate/src/rate.rs" CreationDate="2023-08-07T13:39:50.373" UserId="2065" />
  <row Id="9514" PostId="9500" Score="0" Text="I've made some research on how Srtool works and it appears that it's [cargo build --locked](https://github.com/paritytech/srtool/blob/master/scripts/build#L113) in a docker container. As the build in CI was already containerized, I decided to simply add `--locked` to have the same deterministic build as Srtool gives." CreationDate="2023-08-07T13:39:54.637" UserId="3122" />
  <row Id="9515" PostId="2215" Score="0" Text="libuptest integrates with desub. Not sure if parity has abandoned desub? Development on it seems to been dropping a lot. Link to uptest doc: https://uptest-sc.github.io/code/decode.html" CreationDate="2023-08-07T15:04:44.700" UserId="560" />
  <row Id="9516" PostId="9539" Score="0" Text="I doubt that XCM could help me in this regard. I don't want Blockchain A to send any type of confirmation to Blockchain B, whether it has performed any action or not. I just want Blockchain A to read events from Blockchain B and invoke its own implementation independent of Blockchain B." CreationDate="2023-08-07T19:10:18.890" UserId="3538" />
  <row Id="9517" PostId="9527" Score="1" Text="Yep it only works for the most trivial ones where no arg is needed." CreationDate="2023-08-07T19:28:23.530" UserId="94" />
  <row Id="9518" PostId="9526" Score="0" Text="Thanks, this did resolve the error I was receiving on the sender side. However, the assets hub parachain does not have the sudo pallet so I had to add that manually. There is probably a way to forceAssetStatus from the relay chain just couldn't figure out how." CreationDate="2023-08-08T03:15:49.857" UserId="2163" />
  <row Id="9519" PostId="9539" Score="0" Text="You can draw inspiration from the Ping Pong pallet, which is available on a GitHub repository I provided your before. This pallet offers valuable insights into implementing cross-chain communication. By studying its codebase and design, you can gain a clearer understanding of how to integrate similar functionality into your own blockchain project." CreationDate="2023-08-08T05:06:07.573" UserId="3136" />
  <row Id="9520" PostId="9541" Score="0" Text="Did you tried the process locally and it worked: https://docs.substrate.io/tutorials/build-a-parachain/connect-a-local-parachain/?" CreationDate="2023-08-08T07:11:42.880" UserId="2762" />
  <row Id="9521" PostId="9541" Score="0" Text="And if you are using custom keys, check you are adding them propertly: https://substrate.stackexchange.com/questions/5397/how-to-properly-set-session-keys-for-relay-and-parachain-with-custom-keys?rq=1" CreationDate="2023-08-08T07:13:24.627" UserId="2762" />
  <row Id="9522" PostId="9526" Score="1" Text="Rococo has the sudo pallet, you can call forceAssetStatus by sending an XCM from Rococo to AssetHub use sudo. And please note you should use the originType:Superuser to transact the force call. Well this is off topic. If you still have problems, you can ask a new question, I will be happy to help you" CreationDate="2023-08-08T08:47:06.973" UserId="1959" />
  <row Id="9523" PostId="9541" Score="0" Text="@AlexBean locally it worked fine, should I have to run local parachain even I am testing on rococo?" CreationDate="2023-08-08T08:53:37.850" UserId="2844" />
  <row Id="9524" PostId="9541" Score="0" Text="No. You don't need to run the local relay chain if you are connected to Rococo. But to discard that there are some problems with the configuration, you were able to connect your local parachain with a local relay chain like in the tutorials?" CreationDate="2023-08-08T09:05:07.643" UserId="2762" />
  <row Id="9525" PostId="9541" Score="0" Text="@AlexBean it was not easy at first but I got help to connect local parachain with local relay chain and I was successful to connect then only I request for slots in rococo." CreationDate="2023-08-08T09:09:33.053" UserId="2844" />
  <row Id="9526" PostId="9541" Score="0" Text="now slots assigned and I am running collator node but no blocks are producing, I am blank how to processed further" CreationDate="2023-08-08T09:12:08.347" UserId="2844" />
  <row Id="9528" PostId="9541" Score="0" Text="Not producing blocks can be due to very diverse scenarios, is hard say one. I'll help you to debug it, try the following, If you try to execute an extrinsic, are you getting any error? Have you add custom keys for the collator (see the link shared above), how many collators are you running? Are you sure the wasm and genesis file are right? you can try the process with a local relay chain as in the tutorials" CreationDate="2023-08-08T09:53:32.973" UserId="2762" />
  <row Id="9529" PostId="9541" Score="0" Text="while execute an extrinsic, nothing happens it just loading. While creating `plain-parachain-chainspec.json` file [here](https://docs.substrate.io/tutorials/build-a-parachain/acquire-a-testnet-slot/#modify-the-chain-specification-file) in `step 5`, it says to `Add the public key for your account to the session keys section`, I replaced it with my rococo wallet public key `5EcKtQoUJAJc6Ekz3XNaR9LRsDWrqCMVnZNAa7N21JzuZL7e`. For collator I am running this command [here](https://docs.substrate.io/tutorials/build-a-parachain/acquire-a-testnet-slot/#start-the-collator-node) from tutorial." CreationDate="2023-08-08T10:57:32.620" UserId="2844" />
  <row Id="9530" PostId="9541" Score="0" Text="[this is template code which I am using](https://github.com/ganesh1233456/xcav-praachain)" CreationDate="2023-08-08T10:59:47.860" UserId="2844" />
  <row Id="9531" PostId="9535" Score="1" Text="We really need this as well." CreationDate="2023-08-08T11:20:10.343" UserId="380" />
  <row Id="9532" PostId="9550" Score="1" Text="does `pallet_staking::ActiveEra::&lt;T&gt;::mutate/insert( .. )` help? Also make sure to include `T: pallet_staking::Config`" CreationDate="2023-08-08T13:01:22.430" UserId="139" />
  <row Id="9533" PostId="9552" Score="0" Text="Thanks for your response. There's definitely some thinking to do when you say `let z = x * y`. Just to clarify, do I really need a loop as I showcase in the question about or can I just leave it as `Linear&lt;...&gt;` and make use of it in the call input parameter, and the framework takes care of `step`ping through it? I know it's kind of a silly question, but for all purposes I am using this value as just the size of vec as `size` in `vec![.. ; size]`." CreationDate="2023-08-08T14:39:04.580" UserId="139" />
  <row Id="9534" PostId="9552" Score="0" Text="Is `z = x + y` just a hack or does it produce suboptimal benchmarks?" CreationDate="2023-08-08T14:44:01.873" UserId="139" />
  <row Id="9535" PostId="9502" Score="0" Text="I can see that the &quot;std&quot; feature is required for Serialize and Deserialize, and presumably the pallet will be compiled without &quot;std&quot;, so perhaps that's the issue?" CreationDate="2023-08-08T15:26:50.043" UserId="474" />
  <row Id="9537" PostId="9505" Score="0" Text="It would be very helpful to see some xcm logs(trace &amp; debug) after reproducing this locally. Either xcm-simulator or xcm-emulator should be good tools for that." CreationDate="2023-08-08T15:59:42.113" UserId="165" />
  <row Id="9538" PostId="9502" Score="0" Text="@jsdw Yeah it was working fine with this configuration until at least serde version 1.0.136. For some reason the Serialization/Deserialization seems to not be supported for the type after." CreationDate="2023-08-08T16:45:47.780" UserId="2065" />
  <row Id="9539" PostId="9553" Score="0" Text="the problem is one of the fields in ActiveEraInfo struct is private which is not allowing me to storage put. pub struct ActiveEraInfo {&#xA;	pub index: EraIndex,&#xA;	start: Option&lt;u64&gt;,&#xA;}" CreationDate="2023-08-08T16:57:02.240" UserId="427" />
  <row Id="9540" PostId="9510" Score="0" Text="Try to debug the contract by using `ink::env::debug_println!(&lt;time&gt;)` in the constructor and in the message to determine what's happening with the time" CreationDate="2023-08-08T18:11:25.277" UserId="3098" />
  <row Id="9541" PostId="9552" Score="0" Text="You def. dont &quot;need&quot; a loop. The `Linear` just becomes a normal `u32` in the end. You can do anything you want in the setup phase; loop or not. You can also do `vec![.. ; x as usize]` or whatever. About hack: I think it *should* be fine, but it implies that `x` and `y` are interchangeable since only the product is used. Although i have not tested it myself yet. Please post here again if you have problems with it." CreationDate="2023-08-08T18:57:31.030" UserId="94" />
  <row Id="9542" PostId="9553" Score="1" Text="Ah that is annoying indeed. I extended the answer." CreationDate="2023-08-08T19:14:27.303" UserId="94" />
  <row Id="9543" PostId="9560" Score="0" Text="Hi @Neo, can you please rm/mv this directory (/Users/me/Library/Application Support/parachain-template-node-v1.0.0/chains/local_testnet) and try again?" CreationDate="2023-08-08T23:23:37.447" UserId="279" />
  <row Id="9544" PostId="9560" Score="0" Text="@pepoviola I tried to do that, but found out that the directory does not even exist. It only exists up until /Users/yusufkelo/Library/Application Support/ , After /Application Support/ the remaining directories never existed" CreationDate="2023-08-08T23:29:46.813" UserId="2960" />
  <row Id="9546" PostId="9552" Score="0" Text="Thanks for clearing it up. About `z = x * y` unfortunately that is a hack indeed as there's no way with we can vary both `x` and `y` and expect `z` to fit a line. Thanks for your input!" CreationDate="2023-08-09T04:35:05.127" UserId="139" />
  <row Id="9547" PostId="9510" Score="0" Text="Problem is in start time, when I erase that IF with `PollIsNotStarted`, works normally, poll is ending on time, and I can withdraw funds. @GermanNikolishin" CreationDate="2023-08-09T09:59:23.830" UserId="267" />
  <row Id="9548" PostId="9541" Score="0" Text="Fixed after the offboarding/onboarding?" CreationDate="2023-08-09T11:48:51.937" UserId="2762" />
  <row Id="9549" PostId="9562" Score="0" Text="Thank you. My use case implies that a Substrate-based chain receives an opaque ```id``` and sends it via Offchain-worker to a Chainlink-based oracle for verification. In this case Substrate-based chain doesn't manage account-specific data, rather a foreign blockchain is responsible for doing that. (There is a non-PoS block production mechanism involved here, there is nothing at stake, the economy is managed on a foreign chain, so no fees can be charged on Substrate and no accounts are stored on-chain so verifying tx signature wouldn't add information)." CreationDate="2023-08-09T13:16:33.417" UserId="3960" />
  <row Id="9550" PostId="9566" Score="1" Text="Why can you not use the `u32` as map key directly?" CreationDate="2023-08-09T15:31:15.253" UserId="94" />
  <row Id="9551" PostId="9566" Score="0" Text="Currently, I have the storage setup with the u32 as the key, however, due to new requirements, the Ids may also include characters, hence the boundedvec (of u8). Instead of creating a separate storage for these new items, I am trying to modify the existing one. Then, I can distinguish the two different types either through an enum, or through a specific prefix." CreationDate="2023-08-09T15:43:25.410" UserId="1853" />
  <row Id="9552" PostId="9566" Score="0" Text="Okay I see, thanks." CreationDate="2023-08-09T16:57:54.673" UserId="94" />
  <row Id="9553" PostId="9562" Score="0" Text="Than I think you don't need a blockchain for that what you need is a system that is doing transactions and than verify it on `Chainlink`." CreationDate="2023-08-10T04:52:06.080" UserId="354" />
  <row Id="9554" PostId="9558" Score="0" Text="unless this use websockets, i think it might be what you want https://docs.rs/subxt/latest/subxt/rpc/struct.Rpc.html#method.subscribe_finalized_block_headers" CreationDate="2023-08-10T08:53:13.637" UserId="3319" />
  <row Id="9558" PostId="9580" Score="0" Text="Which chain is the error on?" CreationDate="2023-08-11T06:53:05.607" UserId="620" />
  <row Id="9559" PostId="9578" Score="0" Text="Does this answer your question? [What after slot assigned?](https://substrate.stackexchange.com/questions/9541/what-after-slot-assigned)" CreationDate="2023-08-11T07:18:37.497" UserId="2762" />
  <row Id="9560" PostId="9584" Score="1" Text="you implemented this using pallet development or using smart contracts?" CreationDate="2023-08-11T07:31:02.743" UserId="427" />
  <row Id="9561" PostId="9580" Score="0" Text="There is probably an issue with the asset's amount you are trying to transfer with regard to the total issuance and asset. We would need more info about the asset you created, (decimals, min_balance, etc).&#xA;&#xA;In any case, follow the recommendation below of adding `-lxcm=trace`. That will probably will give you the info you need to figure out the issue." CreationDate="2023-08-11T07:34:19.447" UserId="527" />
  <row Id="9562" PostId="9585" Score="0" Text="thanks for the reply.  There is no ability to register asset location in parachain 1000 since it is a statemint(asset hub) parachain and there is no such pallet as far as I understand. &#xA;&#xA;The idea is to send stablecoin from the AssetHub to my parachain and use the AssetHub as a reserve for the asset.&#xA;&#xA;Btw, neither `-lxcm=trace` nor `-l=xcm=trace` arguments didn't help for both parachain and relay chain - there is simply nothing in the logs unfortunately." CreationDate="2023-08-11T07:37:15.910" UserId="3371" />
  <row Id="9563" PostId="9580" Score="0" Text="@joepetrowski, thanks for the reply. It's about the local relay-parachain setup. I'm trying to start using stablecoin on my local parachain sending it from the Statemint(AssetHub) to my custom parachain and using the AssetHub as a reserve for the asset." CreationDate="2023-08-11T07:39:22.740" UserId="3371" />
  <row Id="9564" PostId="9577" Score="0" Text="What are you trying to achieve from taking this approch? `scale-value` crate can be used for dynamicly deserialising scale if you don't want to use the standard per-parachain strong typing routes that subxt gives. (You're asking how to decode a block and get the extrinsics. It's a little tricky because of the sign extras on each signed transaction. I have a go here but don't take it as gospel: https://github.com/gilescope/polkadyn/blob/178b8fe44192e19a0912354fe08a21ef9d2abda6/src/lib.rs#L120  )" CreationDate="2023-08-11T07:53:41.863" UserId="85" />
  <row Id="9565" PostId="9577" Score="0" Text="You could do http(s) rather than websocket but if you want to get the data in binary then you'd have to talk libp2p with a node (non-trivial). At the moment hex encoded scale encoded in json is as good as it gets." CreationDate="2023-08-11T07:56:38.070" UserId="85" />
  <row Id="9566" PostId="9585" Score="0" Text="How are you adding the log flag? You should add it to `AssetHub` collator and you should get some logs" CreationDate="2023-08-11T08:31:07.663" UserId="527" />
  <row Id="9567" PostId="9585" Score="0" Text="@NachoPal, my bad) - was adding the argument to the relay chain config. So here is the error:&#xA;&#xA;[Parachain] !!! ERROR: FailedToTransactAsset(&quot;AccountIdConversionFailed&quot;)&#xA;&#xA;So as I understand the problem can be either in the `from` or `to` accounts used in the transfer call. So how should I form the request to send reserve tokens from AssetHub to my parachain. I'm using this call as an example: https://assethub-polkadot.subscan.io/extrinsic/0x553cca772e2b4e73c355dad12954c15929ae5dcd5436e724d5796d00093eeebb?tab=xcm_transfer" CreationDate="2023-08-11T08:58:07.717" UserId="3371" />
  <row Id="9568" PostId="9502" Score="0" Text="I'm afraid I'll have to see what somebody with more experience compiling pallets chime in then. As an experiment, you could try removing the `cfg(feature = &quot;std&quot;)` stuff from the `Serialize`/`Deserialize` derives and see what errors come back, because that's the only thing that I can see that would lead to your error message." CreationDate="2023-08-11T08:59:02.003" UserId="474" />
  <row Id="9569" PostId="9585" Score="0" Text="We need to see the actual XCM that the executor is trying to process. You should be able to get it from the logs also." CreationDate="2023-08-11T09:24:58.287" UserId="527" />
  <row Id="9570" PostId="9585" Score="0" Text="@NachoPal added xcm logs in the updated section of the question." CreationDate="2023-08-11T09:29:56.790" UserId="3371" />
  <row Id="9571" PostId="9587" Score="0" Text="ok how much time do you think it takes to syncing ?" CreationDate="2023-08-11T10:51:03.537" UserId="2844" />
  <row Id="9572" PostId="9584" Score="0" Text="we implemented using pallet @ImmanuelJohn" CreationDate="2023-08-11T10:53:14.377" UserId="2844" />
  <row Id="9573" PostId="9587" Score="0" Text="Not sure to be honest it depends, let's wait until you don't see this Syncing message anymore" CreationDate="2023-08-11T11:50:46.063" UserId="2762" />
  <row Id="9575" PostId="9572" Score="1" Text="@dadzerlade Thank you for the link. I wish I knew about Validated Streams some months ago. It looks like I'm trying to develop something similar to that, kind of a &quot;proof of external event&quot; system but I took a PoW model as a basis. The event is submitted by a tightly-coupled daemon for block proposal and the consensus is achieved when the rest of the nodes verify the proposal. Anyway it's a highly experimental thing for the moment." CreationDate="2023-08-11T17:46:31.530" UserId="3960" />
  <row Id="9576" PostId="9594" Score="0" Text="Hi @mrisho-lukamba, can you include more info like the config (toml) and versions that you are using? Thx!" CreationDate="2023-08-12T01:03:40.183" UserId="279" />
  <row Id="9577" PostId="9560" Score="0" Text="Quick update, there is a [tracking issue](https://github.com/paritytech/zombienet/issues/1237). I can reproduce the error and as workaround you can run the network with the flag `-c 1` (to use single concurrency for spawning the nodes)" CreationDate="2023-08-12T01:05:36.703" UserId="279" />
  <row Id="9578" PostId="9572" Score="0" Text="@YuryYukhananov it looks very similar indeed, here is a short blog post explaning VS https://comrade.coop/validated-streams-simplifying-the-creation-of-blockchain-oracles/  in case you find validated streams suitable for your project, we would be very happy to offer support." CreationDate="2023-08-12T08:13:03.083" UserId="3319" />
  <row Id="9579" PostId="4034" Score="0" Text="You can check that polkadot_metadata.scale does not include pallet Contracts:&#xA;`subxt explore --file artifacts/polakdot_metadata.scale`&#xA;&#xA;To add Contracts to the file you can run:&#xA;`subxt metadata --url ws://127.0.0.1:9944 --pallets Contracts,System -f bytes &gt; artifacts/polakdot_metadata.scale`&#xA;&#xA;Don't forget to add all pallets you need, others are missing then." CreationDate="2023-08-12T10:06:58.720" UserId="4539" />
  <row Id="9580" PostId="4302" Score="0" Text="@bkchr how much time do you think it takes to syncing ? I have been running collator since 6 hours and still not finished syncing" CreationDate="2023-08-12T16:25:04.797" UserId="2844" />
  <row Id="9581" PostId="9587" Score="0" Text="I have been trying to since 6 hours, but still not syncing, does it take more that this time or something is wrong?" CreationDate="2023-08-13T02:14:06.480" UserId="2844" />
  <row Id="9582" PostId="9345" Score="0" Text="After weeks of posting the question, I'm starting to wonder whether there's no way to do this at all... really weird. I would really appreciate any help here." CreationDate="2023-08-13T19:08:09.713" UserId="169" />
  <row Id="9583" PostId="9574" Score="0" Text="Ohh, thanks for you answer. But, what exactly do you mean I have to change in my code?&#xA;I have this parameter types for my chain&#xA;` parameter_types! {&#xA;...&#xA;      pub const Statemine: MultiLocation = Parachain(1000).into_location();&#xA;      pub const KsmForStatemine: (MultiAssetFilter, MultiLocation) = (Ksm::get(), Statemine::get());&#xA;...&#xA;  }&#xA;  pub type TrustedTeleporters =&#xA;    (xcm_builder::Case&lt;KsmForStatemine&gt;, xcm_builder::Case&lt;KsmForEncointer&gt;);`&#xA;&#xA;And I use this variable. So what can be a problem?" CreationDate="2023-08-14T11:45:33.857" UserId="4532" />
  <row Id="9584" PostId="9605" Score="0" Text="It would be interesting if you could add your configs for `AssetTransactor` and `OriginConverter` of your chians :)" CreationDate="2023-08-14T14:39:08.547" UserId="165" />
  <row Id="9585" PostId="9608" Score="0" Text="Can you point me to the link that mentions 120 DOT please?" CreationDate="2023-08-14T16:23:03.633" UserId="94" />
  <row Id="9586" PostId="9608" Score="0" Text="It was here I checked a few months ago https://wiki.polkadot.network/docs/learn-staking but it is still available on reddit https://www.reddit.com/r/Polkadot/comments/s8hmkc/minimum_dot_for_staking_rewards/" CreationDate="2023-08-14T18:10:15.430" UserId="3846" />
  <row Id="9587" PostId="9602" Score="0" Text="Next time, if you can, share the logs in text format so it is search friendly?" CreationDate="2023-08-14T20:57:54.287" UserId="29" />
  <row Id="9588" PostId="9594" Score="0" Text="Hi @mrisho-lukamba, thanks for updating the question. Does the relaychain chain-spec is in plain or raw format? Did you try remove the `paths` and let zombienet create all the artifacts?" CreationDate="2023-08-15T02:07:57.023" UserId="279" />
  <row Id="9589" PostId="9611" Score="0" Text="Thank you I appreciate it." CreationDate="2023-08-15T04:52:56.130" UserId="3846" />
  <row Id="9590" PostId="9587" Score="0" Text="you mean is still syncing?" CreationDate="2023-08-15T06:46:34.740" UserId="2762" />
  <row Id="9591" PostId="9594" Score="0" Text="Hi @pepoviola, nop I included the paths and also when I just run relay chain nodes and run collator node manually it works fine, Also wanted to register the parachain directly using zombienet." CreationDate="2023-08-15T07:33:32.650" UserId="351" />
  <row Id="9592" PostId="9605" Score="1" Text="@AlejandroMartínez, nothing special, actually. I’ve been using asset hub configuration from cumulus github repo. Here it is - https://github.com/paritytech/cumulus/blob/6ff38fa0c68991eb736532394a0b0c9e4f3ef356/parachains/runtimes/assets/asset-hub-polkadot/src/xcm_config.rs#L396" CreationDate="2023-08-15T07:41:00.857" UserId="3371" />
  <row Id="9593" PostId="9607" Score="1" Text="Could you run a `cargo tree -i subxt` and a `cargo tree -i subxt-signer` in your example and report back the result? The likely explanation for this sort of mismatch is that the versions of `subxt` and `subxt-signer` are not in fact both 0.31." CreationDate="2023-08-15T10:20:57.393" UserId="474" />
  <row Id="9594" PostId="9607" Score="0" Text="@jsdw &#xA;&#xA;For both, the versions are the same.&#xA;&#xA;&#xA;subxt-signer v0.31.0 || subxt v0.31.0" CreationDate="2023-08-15T12:01:11.177" UserId="4546" />
  <row Id="9595" PostId="9486" Score="0" Text="now I wan't to test for `chain_extension` and for this I have to use `pallet_contract` configuration and upload smart contract in mychain but with this issue I am not able to move further." CreationDate="2023-08-15T12:14:17.850" UserId="2844" />
  <row Id="9596" PostId="9594" Score="0" Text="Thanks @mrisho-lukamba, I also notice that you set `chain = &quot;polkadot&quot;` and the path of the relaychain spec mention `rococo-local`. Can you change the config to use `chain = &quot;rococo-local&quot;`. Also, for trying to reproduce I will need to know the repo for compile the collator." CreationDate="2023-08-15T12:26:04.710" UserId="279" />
  <row Id="9597" PostId="9626" Score="0" Text="I think you can create a storage entry in the `Some_Pallet` to store all extrinsics (ordered by an index). Once that storage hits a target length your pallet goes ahead and execute all extrinsics (or you can create another extrinsic to do that), something like what the `pallet-scheduler` does. Another approach would be adding timestamp to the equation here, but then you'd need to tweak the transaction pool logic." CreationDate="2023-08-15T16:26:44.427" UserId="14" />
  <row Id="9598" PostId="9486" Score="0" Text="In my answer I gave you two options that should allow you to move further. Give them a shot.." CreationDate="2023-08-15T17:07:06.317" UserId="29" />
  <row Id="9599" PostId="9602" Score="0" Text="The best way to resolve this would be to attach a debugger and getting a stack trace. You can open a Substrate Github Issue with steps on how to replicate this." CreationDate="2023-08-15T17:20:06.703" UserId="29" />
  <row Id="9600" PostId="9626" Score="0" Text="What are you actually trying to do? Sure the transaction pool has some randomness, but this is completely orthogonal to the runtime TX acceptance criteria. And how is the trust assumption? Since currently as soon as the user signs a TX, he signals that it is good to include immediately. Does the users have to trust this batcher?" CreationDate="2023-08-15T17:24:13.827" UserId="94" />
  <row Id="9601" PostId="9594" Score="0" Text="Hi @pepoviola https://github.com/2-5-Foundation/vane/blob/main/zombienet-config/vane.toml" CreationDate="2023-08-15T21:44:39.113" UserId="351" />
  <row Id="9602" PostId="9486" Score="0" Text="I have tried to upload code Runtime Call but I get the issue I have posted screenshot in my question." CreationDate="2023-08-16T11:57:13.877" UserId="2844" />
  <row Id="9603" PostId="9607" Score="0" Text="Aha, I forgot about that &quot;subxt&quot; feature flag :)" CreationDate="2023-08-16T12:24:02.093" UserId="474" />
  <row Id="9604" PostId="9486" Score="0" Text="You uploaded a new screenshot, so there is something wrong with your contract. Try uploading the Flipper contract and see if that works." CreationDate="2023-08-16T14:40:15.823" UserId="29" />
  <row Id="9605" PostId="9498" Score="0" Text="Tested out some additional logging on the relay chain side `-- -ltxpool`, but got nothing." CreationDate="2023-08-16T15:25:08.867" UserId="300" />
  <row Id="9606" PostId="9486" Score="0" Text="that is `Flipper Contract` I just changed name of contract to `myapp` while creating new contract" CreationDate="2023-08-17T02:32:58.673" UserId="2844" />
  <row Id="9608" PostId="9625" Score="1" Text="Hi! Have you tried also importing our type augmentation? Add a line with `import '@kiltprotocol/augment-api'`, and let me know if that helps!" CreationDate="2023-08-17T06:55:37.397" UserId="1795" />
  <row Id="9609" PostId="9634" Score="1" Text="I hold some concerns:&#xA;&#xA;&#xA;1. Inherently, a BoundedVec cannot possess an unlimited capacity.&#xA;2. The ability to define a limit at runtime suggests its adaptability. This means pallets with varied limits can be created, which contradicts the non-configurable requirement.&#xA;&#xA;Could you provide some clarity regarding these doubts?" CreationDate="2023-08-17T09:54:18.940" UserId="386" />
  <row Id="9610" PostId="7829" Score="0" Text="The message was just wrong in a few places. It should disappear with recent Substrate. How is the `without_storage_info` deprecated? Sure it should not be used for parachain pallets, but that was always the case." CreationDate="2023-08-17T10:00:01.777" UserId="94" />
  <row Id="9611" PostId="9634" Score="0" Text="&quot;unlimited size of BoundedVec&quot; this makes no sense. The code is clearly using `u8::MAX` as limit." CreationDate="2023-08-17T11:20:02.850" UserId="94" />
  <row Id="9612" PostId="9630" Score="0" Text="Please ensure to use recent Rust stable compiler and using `--locked` for the `cargo install`." CreationDate="2023-08-17T11:25:14.287" UserId="94" />
  <row Id="9613" PostId="9638" Score="0" Text="what might be the solutions then?" CreationDate="2023-08-17T11:33:10.233" UserId="2844" />
  <row Id="9614" PostId="7829" Score="0" Text="Apologies you're right! I might have confused not using it with deprecated. Thanks for the correction." CreationDate="2023-08-17T12:08:25.730" UserId="139" />
  <row Id="9616" PostId="9641" Score="0" Text="Where geographically is your node running? You can see there are geographic clusters of nodes: https://telemetry.polkadot.io/#map/0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe" CreationDate="2023-08-17T15:22:57.000" UserId="29" />
  <row Id="9617" PostId="9535" Score="1" Text="It should be updated now. Is this still an issue?" CreationDate="2023-08-17T15:31:24.990" UserId="3991" />
  <row Id="9618" PostId="9625" Score="0" Text="@AntonioAntonino, I did what you suggested  and added: `import@&quot;kiltprotocol/augment-api&quot;`, but the error related to the block type remains." CreationDate="2023-08-18T01:07:19.247" UserId="309" />
  <row Id="9619" PostId="9641" Score="0" Text="Even if you have a lot of bandwidth, the nodes you're connected to may not which can cause your bandwidth utilization to be a fraction of the available bandwidth. And as Bruno already alluded to, your geographical location is also a factor." CreationDate="2023-08-18T05:04:39.947" UserId="3546" />
  <row Id="9620" PostId="9353" Score="0" Text="how to get account ID from palletId?" CreationDate="2023-08-18T06:13:18.370" UserId="2844" />
  <row Id="9621" PostId="9353" Score="0" Text="@Ganesh11 updated the answer" CreationDate="2023-08-18T06:25:38.717" UserId="427" />
  <row Id="9623" PostId="9648" Score="0" Text="4.2.1 ink doesn't contains the change you mentioned (neither events 2.0) can you try your reproducible bug example with ink! from mater and see if it works ?" CreationDate="2023-08-18T11:44:46.183" UserId="567" />
  <row Id="9626" PostId="9650" Score="0" Text="Hi, @Bobo K. That was the first thing that I did. Probably my compiler is busted.... :(" CreationDate="2023-08-18T13:17:15.657" UserId="3387" />
  <row Id="9627" PostId="9650" Score="1" Text="It might be your local env issue since I can [compile](https://gyazo.com/ae10d6fc9d46cec1a337a260136c4b25) your contract with the changes above" CreationDate="2023-08-18T13:25:29.573" UserId="2166" />
  <row Id="9628" PostId="9650" Score="0" Text="Thanks a lot for your trouble @Bobo K. I own you a beer..." CreationDate="2023-08-18T13:29:51.473" UserId="3387" />
  <row Id="9629" PostId="9650" Score="1" Text="I was able to compile this contract in another machine so this is the right answer." CreationDate="2023-08-18T13:39:49.153" UserId="3387" />
  <row Id="9630" PostId="9652" Score="0" Text="Can you reference where you got this 100 slot limitation from?" CreationDate="2023-08-18T16:50:18.560" UserId="29" />
  <row Id="9631" PostId="9652" Score="0" Text="Here is the reference please: https://wiki.polkadot.network/docs/learn-parachains" CreationDate="2023-08-19T10:18:05.407" UserId="3327" />
  <row Id="9632" PostId="9486" Score="0" Text="instead of polkadotjs what I am doing right now testing contract until [this issue fixed](https://github.com/polkadot-js/api/issues/5698) is using [polkadotjs-app](https://polkadotjs-apps.web.app/#/accounts)" CreationDate="2023-08-19T16:59:43.637" UserId="2844" />
  <row Id="9633" PostId="9632" Score="0" Text="i'm not familiar with this but this might be relevant https://polkadot.js.org/docs/substrate/storage#identity" CreationDate="2023-08-20T04:51:47.473" UserId="83" />
  <row Id="9635" PostId="9660" Score="0" Text="Okay thanks ! What about weights on that function ? I need to return the used weights when doing a runtime upgrade and clear_storage_prefix() doesn’t calculate any weights used so do I need to check how many iterations was done and calculate weights from it ?" CreationDate="2023-08-20T13:53:48.570" UserId="4566" />
  <row Id="9636" PostId="9660" Score="0" Text="You could count the delections and return the weight `T::DbWeights::writes(x)`." CreationDate="2023-08-20T14:16:34.047" UserId="251" />
  <row Id="9637" PostId="9664" Score="0" Text="I think the indices are different at `index: 7,`" CreationDate="2023-08-20T18:04:18.373" UserId="4569" />
  <row Id="9639" PostId="9511" Score="0" Text="Correct, that is how you do it" CreationDate="2023-08-21T07:50:31.200" UserId="3317" />
  <row Id="9640" PostId="9627" Score="0" Text="Can you elaborate more about the functionality you want to achieve?" CreationDate="2023-08-21T08:00:10.670" UserId="2762" />
  <row Id="9641" PostId="9665" Score="0" Text="so i removed lines 8-33 in the substrate_builder.Dockerfile https://github.com/paritytech/substrate/blob/master/docker/substrate_builder.Dockerfile and i was able to enter the Docker container with `docker run -it parity/substrate` but the /substrate/target/release directory only contained the `substrate` binary, but not the `subkey`, `node-template`, or `chain-spec-builder` binaries too like it used to, hence the error. so it does build `substrate` on an Apple M2, but the question now is why doesn't it generate the `subkey`, `node-template`, or `chain-spec-builder` binaries too anymore" CreationDate="2023-08-21T08:57:11.177" UserId="83" />
  <row Id="9643" PostId="9677" Score="1" Text="What runtime is it? The migrations need to be applied one by one and cannot be skipped." CreationDate="2023-08-21T12:00:05.173" UserId="94" />
  <row Id="9644" PostId="9678" Score="0" Text="Thank you for the hint!!! I changed the parameters types to `any` in the function declaration, and by converting them back to the type I need inside the function, it works." CreationDate="2023-08-21T13:42:08.667" UserId="309" />
  <row Id="9646" PostId="2868" Score="0" Text="Could you elaborate what you mean by &quot;it gets hard to export/fetch the chain state&quot;? &#xA;&#xA;`try-runtime-cli` has a snapshot feature which allows downloading the state from the node once (slow) and then saving it to disk. Once you have that state on disk, you can use it when calling `on-runtime-upgrade` by passing `snap` instead of `live`, which loads the state almost instantly." CreationDate="2023-08-21T14:29:15.237" UserId="3991" />
  <row Id="9647" PostId="9675" Score="0" Text="Thank you for the suggestion @Oliver Tale-Yazdi. Despite integrating the code you provided, I'm still unable to invoke it from the pallet function using the line: `let result = Asset::&lt;T&gt;::get(asset_id).ok_or(Error::&lt;T&gt;::UnexistentAsset)?;`. Instead of the expected default value, I receive the error." CreationDate="2023-08-21T15:21:59.670" UserId="3395" />
  <row Id="9648" PostId="9675" Score="1" Text="Well, you use the getter function now instead of the map: `asset::&lt;T&gt;(asset_id)`." CreationDate="2023-08-21T15:50:04.277" UserId="94" />
  <row Id="9649" PostId="9652" Score="0" Text="Yeah someone just pulled that 100 out of their ass.  We've never had a 100 parachains limit of any form.  Only the limit on the number of slots rented out thus far." CreationDate="2023-08-21T18:46:46.157" UserId="1810" />
  <row Id="9650" PostId="9684" Score="0" Text="Hey thanks for the reply, makes sense to me. One thing that I'm confused is that eventhough the code I gave doesn't did the partial_extrinsic creation of subxt I had tried that before. It gave a bad signature error when using Alice keyring. But as said the I gave u8 array to sign for polkadot-js rather than JSON which could also be the case." CreationDate="2023-08-21T20:12:37.763" UserId="552" />
  <row Id="9651" PostId="9684" Score="0" Text="One more doubt that I have is that, even through creation of payload is a success, If I use rust only and sign it through schnorrkel lib to sign, it works. I assume there should be some kind of an implementation in polkadot-js or gsrpc where there is some cryptographic signing happening. Thats where I found the noble-curves lib which I think is also used in polkadot-js. Is it possible to extract that part out or as mentioned the bytes should contain enough information to sign?." CreationDate="2023-08-21T20:16:56.060" UserId="552" />
  <row Id="9652" PostId="9677" Score="1" Text="As Oliver stated, recommended path is `0.9.36` -&gt; `0.9.37` -&gt; ... `1.0.0` making sure that for each upgrade the migrations are run. You can use `try-runtime` to ensure the migrations run smoothly before applying them in production." CreationDate="2023-08-21T22:08:19.967" UserId="29" />
  <row Id="9653" PostId="7881" Score="0" Text="I'm running into this in 1.71.1 - what might be the reason?" CreationDate="2023-08-06T09:50:06.243" UserId="3265" />
  <row Id="9654" PostId="9512" Score="0" Text="Note : this is a question. i have this configuration ```Rust &gt; = 1.70 + pallet-contracts &gt;= polkadot-1.0.0 = cargo-contract 4.0.0-alpha``` but i still have the same error" CreationDate="2023-08-11T12:41:12.603" UserId="4503" />
  <row Id="9655" PostId="9512" Score="0" Text="Hi, the e2e test does not work after the 3.1.0 has been yanked for either versions of it. Cheers." CreationDate="2023-08-11T13:41:36.413" UserId="3387" />
  <row Id="9656" PostId="9627" Score="0" Text="how to sell in-game currency `$EGGS` token earn by user to third party site like `uniswap` using ink! smart contract? I don't know what I am thinking is correct or not." CreationDate="2023-08-22T02:47:29.757" UserId="2844" />
  <row Id="9657" PostId="9679" Score="0" Text="can you please tell me how to derive unique account from the NFT collection?" CreationDate="2023-08-22T03:00:28.497" UserId="2844" />
  <row Id="9658" PostId="9688" Score="0" Text="Your screenshot is `FundsUnavailable` instead of `NotExpendable`. Which one did you want to ask?" CreationDate="2023-08-22T05:34:41.107" UserId="251" />
  <row Id="9659" PostId="9688" Score="0" Text="@AurevoirXavier Sorry for the confusion, Updated the image." CreationDate="2023-08-22T05:59:20.660" UserId="555" />
  <row Id="9660" PostId="9677" Score="0" Text="@Bruno i am facing this  issue  only in contracts pallet .I am able to do runtime upgrade to v1.0.0 while commenting contracts pallet in runtime in 1.0.0 version ." CreationDate="2023-08-22T06:44:41.863" UserId="2348" />
  <row Id="9661" PostId="9679" Score="0" Text="Something like so: https://github.com/paritytech/substrate/blob/e526f80a91f75a3811059d4ee19b0f190005c5a2/frame/utility/src/lib.rs#L503-L510" CreationDate="2023-08-22T08:00:42.677" UserId="3317" />
  <row Id="9662" PostId="9696" Score="0" Text="Can you please specify that you want to use KILT? Otherwise the Q is missing context." CreationDate="2023-08-22T13:31:05.700" UserId="94" />
  <row Id="9663" PostId="9693" Score="0" Text="Thank you for your response and the context you've provided. Some additional thoughts:&#xA;- All three accounts you listed are now funded with &gt;= 2 DOT, attempting to transfer 1 DOT out of the multisig still fails with `insufficientBalance`: https://polkadot.subscan.io/extrinsic/0xa1b0ce843f46bc7ea0c08b10f69b29ab2acd94445aeb24329a38cbe16b40f953&#xA;- Thank you for the context on approveAsMulti and asMulti.  Even using approveAsMulti fails every time.&#xA;- I'm attempting to create the multisig TX directly from PollkadotJS app, could it be incorrectly ordering the sigantories?" CreationDate="2023-08-22T15:18:09.540" UserId="4574" />
  <row Id="9664" PostId="9693" Score="0" Text="Is there really no easier way to handle multisig TXs than via a complex script? How will my non-technical signers manage with this?" CreationDate="2023-08-22T15:20:06.663" UserId="4574" />
  <row Id="9665" PostId="9692" Score="0" Text="Hi Bill, thanks for the response,.  I was not creating the extrinsic manually, I was simply using the `setIdentity` util provided by polkadotJS, so is it possible that polkadotJS is incorrectly ordering the signatories? Can you confirm it's possible to set an identity for a multisig?" CreationDate="2023-08-22T15:20:34.903" UserId="4574" />
  <row Id="9666" PostId="9498" Score="0" Text="Have the same issue, but only happens after doing the parachain runtime upgrade." CreationDate="2023-08-22T16:00:01.793" UserId="162" />
  <row Id="9667" PostId="9510" Score="0" Text="Are you using seconds or miliseconds for the timestamp?" CreationDate="2023-08-08T15:23:47.317" UserId="3140" />
  <row Id="9668" PostId="9510" Score="0" Text="Timestamp in ink! is in miliseconds." CreationDate="2023-08-08T15:30:07.733" UserId="267" />
  <row Id="9670" PostId="9677" Score="1" Text="I would do contracts pallet one polkadot version at a time. There are several migrations and there was also a multi-block migration that I believe changed the pre-existing migrations but I'd imagine it did not interfere with the actual migrations. If you do not want to do the contracts migration one release at a time then you have to see all the migrations that need to be applied from `.36` to `1.0.0` and make sure they are being applied." CreationDate="2023-08-22T18:19:33.293" UserId="29" />
  <row Id="9671" PostId="9686" Score="1" Text="This answer https://substrate.stackexchange.com/a/3949/234 might be useful for you." CreationDate="2023-08-23T07:18:03.137" UserId="234" />
  <row Id="9672" PostId="9707" Score="1" Text="I've done the approve part, it is not working." CreationDate="2023-08-23T07:57:07.423" UserId="4425" />
  <row Id="9673" PostId="9707" Score="0" Text="Than implement an error handling to see an error from ERC20 contract." CreationDate="2023-08-23T08:01:20.717" UserId="2166" />
  <row Id="9675" PostId="9707" Score="0" Text="if there were an error on the called contract, wouldn't the whole function fail?" CreationDate="2023-08-23T09:54:23.527" UserId="4425" />
  <row Id="9676" PostId="9707" Score="1" Text="Unfortunately not, I had the same issue with [this](https://github.com/swankyhub/rmrk-lazy-mint/blob/507552ced20d948b6acb34eb75855f84f30357fa/rmrk_proxy/proxy.rs#L126) contract. Cross contract call didn't fail, but token was not minted because of bad value passed to the call" CreationDate="2023-08-23T10:02:21.627" UserId="2166" />
  <row Id="9677" PostId="9716" Score="3" Text="Please search for &quot;Random&quot; in the search box. This question was answered multiple times, for example here: [Secure random number generation?](https://substrate.stackexchange.com/questions/121/secure-random-number-generation)" CreationDate="2023-08-23T10:51:43.353" UserId="94" />
  <row Id="9678" PostId="9707" Score="0" Text="Can you suggest the exact changes? I tried [this](https://substrate.stackexchange.com/questions/7634/how-to-properly-handle-cross-contract-call-errors/7843#7843) solution but I still can't seem to make it work." CreationDate="2023-08-23T11:31:06.810" UserId="4425" />
  <row Id="9679" PostId="9716" Score="0" Text="All the links which are provided here https://substrate.stackexchange.com/a/124/3437 are not working." CreationDate="2023-08-23T12:46:09.707" UserId="3437" />
  <row Id="9680" PostId="9713" Score="0" Text="Since it's a decentralized network, shouldn't the expectation be that someone will in fact change the code and also change their version of substrate not to modify the runtime hash/state root? Is this somehow cryptographically ensured?" CreationDate="2023-08-23T13:56:40.003" UserId="4545" />
  <row Id="9682" PostId="9707" Score="0" Text="if you don't handle error of the called contract as an error of the original call - it won't fail automatically. Call `?` or panic! and see the error." CreationDate="2023-08-23T14:42:06.277" UserId="3385" />
  <row Id="9683" PostId="6312" Score="0" Text="Could be that they use a different crypto as default. You can use `subkey inspect` to check the derived key for all three different supported signature algorithms. One of them should match." CreationDate="2023-08-23T15:12:30.920" UserId="94" />
  <row Id="9684" PostId="9713" Score="0" Text="I edited my answer, please let me know if something is still unclear" CreationDate="2023-08-23T15:18:08.510" UserId="3317" />
  <row Id="9685" PostId="9713" Score="0" Text="Super helpful! Thank you! Ok, I had read a few times that the hooks logic wasn't followed during import, which made it very confusing to understand how the state changes would apply the same way for all nodes. To re-state what you're saying, all nodes replay the full extent of the changes and the resulting state changes must match, or they won't accept the block?" CreationDate="2023-08-23T15:58:58.390" UserId="4545" />
  <row Id="9686" PostId="9691" Score="1" Text="it was similar to that i have missed writing default-features false in one the pallets" CreationDate="2023-08-24T05:39:44.727" UserId="2348" />
  <row Id="9687" PostId="2746" Score="0" Text="This syntax `api.event.&lt;pallet&gt;.&lt;event&gt;.is(Event)`, I assume can't be used for custom pallets right?" CreationDate="2023-08-24T05:56:04.120" UserId="139" />
  <row Id="9688" PostId="9713" Score="0" Text="That is correct" CreationDate="2023-08-24T07:12:27.400" UserId="3317" />
  <row Id="9690" PostId="9686" Score="0" Text="Try adding the `pallet_contracts::Config` to your `Config` (tight coupling)." CreationDate="2023-08-24T07:44:47.793" UserId="3317" />
  <row Id="9691" PostId="9716" Score="0" Text="Fixed the links" CreationDate="2023-08-24T08:15:41.233" UserId="3317" />
  <row Id="9692" PostId="9686" Score="0" Text="I have added now getting different error can you please look at" CreationDate="2023-08-24T09:33:34.837" UserId="2844" />
  <row Id="9693" PostId="9686" Score="0" Text="`expected pallet_contracts::Config::Currency, found pallet::Config::Currency`" CreationDate="2023-08-24T09:39:09.097" UserId="2844" />
  <row Id="9694" PostId="9304" Score="0" Text="For some reason, not all pallets have the `palletId` field." CreationDate="2023-08-24T09:55:08.477" UserId="2163" />
  <row Id="9695" PostId="9731" Score="0" Text="Thanks for the anszer, I won't insist on warp sync then :)&#xA;Btw are you aware of OOM problems triggered by Rococo full sync (non warp mode).&#xA;2 nodes of mine are going OOM after some point in sync, with 32Gb RAM it seems very abnormal." CreationDate="2023-08-24T14:52:47.650" UserId="1732" />
  <row Id="9696" PostId="9731" Score="0" Text="I think there is an issue for it but cant find it right now. Can you open a new one here please https://github.com/paritytech/polkadot-sdk/issues and describe what you did?" CreationDate="2023-08-24T16:07:38.660" UserId="94" />
  <row Id="9697" PostId="9684" Score="1" Text="I can't really speak for polkadot-js I'm afraid. Subxt has a &quot;separate&quot; signing crate called `subxt-signer` which can be used to sign arbitrary bytes etc though if that helps at all (or you can do as you did of course).&#xA;&#xA;I assume that polkadot-js probably wants some JSON object, and internally constructs a signer payload and uses some lib to sign it. At a glance it looks like hre is the code: https://github.com/polkadot-js/common/blob/master/packages/util-crypto/src/sr25519/sign.ts, so you may be able to depend only on the bit you need." CreationDate="2023-08-24T16:40:50.363" UserId="474" />
  <row Id="9699" PostId="9678" Score="1" Text="sure, that works, but be aware that `any` effectively circumvents type checking. If you want to make use of TypeScripts static type checking capabilities, I'd recommend using the actual types that reflect what will be fed into your callback at runtime.&#xA;`api.query.council.members((who: Vec&lt;AccountId32&gt;) =&gt; { dispatch1({ type: 'SET_COUNCIL_MEMBERS', payload: who }); });`&#xA;&#xA;should be working for you; if dispatch1 expects a different structure you should change that or apply transformations in the callback." CreationDate="2023-08-24T17:23:46.623" UserId="4571" />
  <row Id="9700" PostId="9626" Score="0" Text="The goal is to perform a transaction replay to recreate the state of an already existing chain. Now in order to do this all transactions need to be sent in order.&#xA;&#xA;One way to do this is to send a transaction for each block that way we can ensure that it will be in order, the downside is that is way to slow.&#xA;&#xA;So I am looking for alternatives to send the transactions in order" CreationDate="2023-08-24T17:41:07.777" UserId="4081" />
  <row Id="9701" PostId="9731" Score="1" Text="Sure I will as soon as resync gets stuck thanks" CreationDate="2023-08-24T18:00:46.897" UserId="1732" />
  <row Id="9702" PostId="9498" Score="0" Text="@JayPan Does it eventually go back to normal or continues always after the upgrade?" CreationDate="2023-08-24T18:03:08.667" UserId="300" />
  <row Id="9703" PostId="9734" Score="0" Text="I used polkachu snapshots DB and I use 1TB SSD NVME, it seems working well and cpu is 8core 16thread. sometimes, upload/download bandwidth speed is over 1MB/s when its high and under 100kB/s when it`s low. very volatile....... what can cause this...." CreationDate="2023-08-25T03:45:53.933" UserId="4381" />
  <row Id="9704" PostId="9619" Score="0" Text="Does this answer your question? [how to solve the sys error in substrate polkadot branch (polkadot-v0.9.43)](https://substrate.stackexchange.com/questions/9399/how-to-solve-the-sys-error-in-substrate-polkadot-branch-polkadot-v0-9-43)" CreationDate="2023-08-25T08:16:35.167" UserId="2762" />
  <row Id="9705" PostId="9720" Score="1" Text="Thanks for the response! As far as I see, that's only for metrics and profiling, don't see a way to configure the log format." CreationDate="2023-08-25T09:46:46.893" UserId="4570" />
  <row Id="9706" PostId="9731" Score="0" Text="Issue created here&#xA;https://github.com/paritytech/polkadot-sdk/issues/1148" CreationDate="2023-08-25T09:49:58.620" UserId="1732" />
  <row Id="9707" PostId="9742" Score="0" Text="Yes, but I need to know the balance of all the tokens an account has, is there any way to know what tokens an account has? Thanks" CreationDate="2023-08-25T12:14:22.540" UserId="3170" />
  <row Id="9708" PostId="9718" Score="0" Text="but one thing, It can be possible to make sure that, indeed the Alice in Para A is indeed the same one in Relay Chain as they both have same private key. I think XCM can be extended and have pre checks before sending a signed origin message which shoud execute remotely." CreationDate="2023-08-25T16:59:49.353" UserId="351" />
  <row Id="9709" PostId="9718" Score="0" Text="Also concerning the Account Aliases, can this be possible at the moment but the message coming from Para A to be executing in Relay Chain" CreationDate="2023-08-25T17:06:39.553" UserId="351" />
  <row Id="9710" PostId="9718" Score="0" Text="I guess the real question is, the solution can utilise the Alias in the config. But the issue is atm configuring Alias is done manually and through a runtime upgrade, I think Polkadot should put a streamlined approach and utilise storage for individuals to configure Account Alias securely." CreationDate="2023-08-25T17:26:51.160" UserId="351" />
  <row Id="9711" PostId="9748" Score="0" Text="never needed to modify any code in runtime/lib.rs, just needed to compile with runtime-benchmarks feature (as long as you dont forget to include the module of benchmarks with a feature in the pallet)" CreationDate="2023-08-26T08:02:38.687" UserId="3319" />
  <row Id="9712" PostId="276" Score="0" Text="Fyi Gear's staking-rewards pallet does exactly what you need: https://github.com/gear-tech/gear/tree/master/pallets/staking-rewards" CreationDate="2023-08-26T12:05:35.520" UserId="408" />
  <row Id="9713" PostId="9740" Score="1" Text="Thanks so much, your links are very useful to me ." CreationDate="2023-08-26T13:42:57.077" UserId="4586" />
  <row Id="9714" PostId="9741" Score="0" Text="Thanks I understand why blocks need to be keep producing." CreationDate="2023-08-26T13:43:36.207" UserId="4586" />
  <row Id="9715" PostId="9750" Score="1" Text="Can you please improve your question by specifying if its a solochain or a parachain?" CreationDate="2023-08-26T17:12:22.820" UserId="139" />
  <row Id="9716" PostId="9681" Score="0" Text="Thank you for your answer @adrian&#xA;While going thru the WarpSyncProof, I noticed that it only checks for scheduled changes... https://github.com/paritytech/substrate/blob/0cbea5805e0f4edcf8a3a70135b4d8eabc2db06f/client/consensus/grandpa/src/warp_proof.rs#L222&#xA;What about forced changes? Wouldn't a force change break verification here?" CreationDate="2023-08-27T15:04:26.390" UserId="522" />
  <row Id="9717" PostId="9681" Score="0" Text="Also, a bit off-topic, WarpSyncProof doesn't seem to address the fact that an old validator set can always still provide a divergent view of the chain (since old validators are not under the threat of slashing) and that we need to bootstrap our observer correctly so that it can follow the chain within the &quot;slashing window&quot;." CreationDate="2023-08-27T15:04:30.697" UserId="522" />
  <row Id="9718" PostId="9669" Score="0" Text="author_submitAndWatchExtrinsic doesn't return Hash of Tx, so I'm not able to lookup my TX within the finalized blockhash. (in case I have multiple calls to the smartcontratc in the block)." CreationDate="2023-08-27T18:32:53.217" UserId="644" />
  <row Id="9719" PostId="7882" Score="0" Text="I was tired to try everything, but this works, even at the end I got this issue `info: installing component 'rust-std' for 'wasm32-unknown-unknown'&#xA; 18.2 MiB /  18.2 MiB (100 %)  17.3 MiB/s in  1s ETA:  0s&#xA;ERROR: Cannot infer the root project id`. Also I aded the rust-toolchain with `nightly-2023-02-07&quot;` and cargo-contract version `cargo-contract v2.2.1`&#xA;`" CreationDate="2023-08-28T01:29:25.360" UserId="4592" />
  <row Id="9720" PostId="9734" Score="0" Text="- Do you use Paritydb or Rocksdb? Do you sync an archive node (state history)? Or provide the full CLI command that you use to run the nodeю What are average read/write speeds (utilization) of your disk during sync? What is the model of your CPU?" CreationDate="2023-08-28T05:54:34.677" UserId="4585" />
  <row Id="9721" PostId="9757" Score="0" Text="The para-id 4290 is registered as a parachain, I am going to investigate why the next available para-id is still 4290. Where did you see it reported the last time it happen?" CreationDate="2023-08-28T06:21:21.753" UserId="2762" />
  <row Id="9722" PostId="9669" Score="0" Text="you are not getting this {&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;method&quot;:&quot;author_extrinsicUpdate&quot;,&quot;params&quot;:{&quot;subscription&quot;:&quot;esTxSZq5YkhTEBOD&quot;,&quot;result&quot;:{&quot;finalized&quot;:&quot;0xa7ddecc6399afee1dd175b273f70f161513e524b50d292c50823e35506591ecc&quot;}}}?" CreationDate="2023-08-28T06:24:40.443" UserId="2762" />
  <row Id="9723" PostId="9669" Score="0" Text="this is the blockhash 0xa7ddecc6399afee1dd175b273f70f161513e524b50d292c50823e35506591ecc ( https://shibuya.subscan.io/block/0xa7ddecc6399afee1dd175b273f70f161513e524b50d292c50823e35506591ecc ) inside you can see on subscan that contains contracts (call), but I don't find how to retrieve HASH from this call, it seems strange to me" CreationDate="2023-08-28T06:30:19.183" UserId="644" />
  <row Id="9724" PostId="9724" Score="1" Text="Hey I thought this answer may be helpful:&#xA;https://substrate.stackexchange.com/a/6607/2909" CreationDate="2023-08-28T06:31:02.143" UserId="2909" />
  <row Id="9725" PostId="9758" Score="0" Text="Highly depends on if you want to use a simpler issuer-backed stablecoins, or some kind of algorithmic stable-coin. In both cases, though, you would probably opt to use an instance of `pallet-balances` or `pallet-assets` and provide the mint/burn privileges to either the issuer or the runtime, respectively." CreationDate="2023-08-28T07:53:29.677" UserId="167" />
  <row Id="9726" PostId="9742" Score="1" Text="@BrianRamirez no, that's not possible. Since the record of a token's balance is stored in the smart contract, you would have to know the addresses of all smart contracts you want to/have to query in advance. There is a way of finding all contracts an account has interacted with in the past, but it's more complicated than a single API call." CreationDate="2023-08-28T07:55:41.397" UserId="368" />
  <row Id="9727" PostId="9718" Score="0" Text="If I understand your question correctly, you are talking about the Aliasers configuration item in the XCM Config, right? I do not completely understand your question about the storage for individuals. The Aliasers config item can only be set by the runtime developers and describes which locations can Alias. So it can be hardcoded to a single (or couple) of accounts or can be configured to allow all `AccountId32`s from a certain parachain. So again, the runtime developers decide which locations can Alias, and not any individual." CreationDate="2023-08-28T08:22:10.240" UserId="3963" />
  <row Id="9728" PostId="9718" Score="0" Text="Yes as the last part, Parachain dev can configure to allow all AccountId32's of certain para to work. But as that is a good soln but what if the config actually just refers to a storageMap lets say in Para A -&gt; (Account, Account), whereby the tuple indicates the Aliasing  accounts set by individuals via an extrisnic. As for ex, u may not want to just allow all accountId32 of certain parachain but also manually configuring whcih accountid32's should alias as a developer." CreationDate="2023-08-28T08:38:08.127" UserId="351" />
  <row Id="9730" PostId="9755" Score="0" Text="&quot;mutates&quot;: false, it's a readonly call, probably another method to call in these cases?" CreationDate="2023-08-28T09:00:32.157" UserId="644" />
  <row Id="9731" PostId="9718" Score="0" Text="It is like Alice individually Alias her Account in ParaN" CreationDate="2023-08-28T09:04:47.537" UserId="351" />
  <row Id="9732" PostId="9755" Score="0" Text="I have to call a method of my smart contract, it is not mutable so I have to make a read-only call, the call info is all contained in the json that I extracted from the ABI. From polkadotjs it returns the data to me and makes the call without asking me to sign the transaction, unfortunately since there is no Tx to sign, I have no idea what call I'm making to get this data" CreationDate="2023-08-28T09:22:30.477" UserId="644" />
  <row Id="9735" PostId="9626" Score="0" Text="do you want to exactly recreate the state? Bear in mind that as soon as there is a timestamp component/input in the relevant blockchain, just having the same transaction order since genesis is not enough (goes without saying that every other parameter has to be exactly the same too).&#xA;&#xA;Why can't you simply do a snapshot / copy of the original chain and take it from there?" CreationDate="2023-08-28T09:51:29.893" UserId="2025" />
  <row Id="9736" PostId="9758" Score="0" Text="is the token created using `pallet-balances` or `pallet-assets` considered as stablecoin?" CreationDate="2023-08-28T11:25:33.627" UserId="2844" />
  <row Id="9737" PostId="9742" Score="0" Text="Exactly, if you know the addresses you want to query is as explanaied. @smm I'd love to know how you can find all the contracts an account has interact with" CreationDate="2023-08-28T13:52:30.517" UserId="2762" />
  <row Id="9738" PostId="9626" Score="0" Text="We have already taken the timestamp into account and we have some measures to deal with this. The chain that we need to migrate is an EVM based chain that we will be migrating to Frontier. &#xA;&#xA;Snapshot migrations was the best option and we had a working solution for that but sadly this strategy would mean that there will be a big downtime between stopping the original chain, extracting the state and putting it inside the new chain, so we are looking into other alternatives. Tx replay will allow for minimal downtime compared to snapshot migration" CreationDate="2023-08-28T14:01:32.380" UserId="4081" />
  <row Id="9739" PostId="9755" Score="0" Text="What's the problem? Is it that you are unable to replicate the read from polkdaotJS in your code?" CreationDate="2023-08-28T14:20:16.043" UserId="380" />
  <row Id="9740" PostId="9626" Score="0" Text="Doesn't [batchAll](https://github.com/paritytech/substrate/blob/033d4e86cc7eff0066cd376b9375f815761d653c/frame/utility/src/lib.rs#L291-L323) suffice for transaction replay? It batches transactions atomically." CreationDate="2023-08-28T14:26:45.023" UserId="380" />
  <row Id="9741" PostId="9652" Score="0" Text="You are right Jeff, but I am not referring &quot;Someone&quot;  here. I am referring polkadot wiki that as per my knowledge is maintained by polkadot/parity team. Please correct me if I am wrong" CreationDate="2023-08-28T16:04:21.267" UserId="3327" />
  <row Id="9742" PostId="9770" Score="0" Text="Thank you, @forgetso. It was a good solution to solve the problem." CreationDate="2023-08-28T16:51:27.077" UserId="4435" />
  <row Id="9743" PostId="9755" Score="0" Text="yes i have to replicate that call for the build of my library which interfaces with node. So I need to figure out which is the right call in this case" CreationDate="2023-08-28T19:13:00.790" UserId="644" />
  <row Id="9746" PostId="9744" Score="0" Text="Could you include what you need it for and provide the errors that you have encountered?" CreationDate="2023-08-29T07:05:25.217" UserId="3317" />
  <row Id="9747" PostId="9771" Score="0" Text="There was an Issue created on the parity-signer repo if it can help https://github.com/paritytech/parity-signer/issues/1842" CreationDate="2023-08-29T08:27:44.447" UserId="2762" />
  <row Id="9748" PostId="9770" Score="0" Text="Did you try clearing the registry @Ganesh11?" CreationDate="2023-08-29T09:51:37.760" UserId="380" />
  <row Id="9749" PostId="3115" Score="0" Text="Can you pelase add this as an answer and close the post @Shunsuke ?" CreationDate="2023-08-29T09:56:06.417" UserId="2025" />
  <row Id="9750" PostId="9770" Score="0" Text="yes using this command `rm -rf ~/.cargo/registry`" CreationDate="2023-08-29T10:05:50.577" UserId="2844" />
  <row Id="9751" PostId="9770" Score="0" Text="@ganesh11's issue is not same as i posted" CreationDate="2023-08-29T10:06:36.533" UserId="4435" />
  <row Id="9753" PostId="9770" Score="0" Text="I make sure there is a technical critical error in @ganesh11's substrate node project." CreationDate="2023-08-29T10:17:03.730" UserId="4435" />
  <row Id="9754" PostId="9744" Score="0" Text="@DaanvanderPlas I would like to &quot;extend&quot; the AccountId type used within the pallet so that it also has to implement `From&lt;H160&gt;` and `Into&lt;H160&gt;`, enabling conversion between the `T::AccountId` type and `H160`." CreationDate="2023-08-29T10:32:38.577" UserId="3395" />
  <row Id="9755" PostId="9774" Score="0" Text="Try again, maybe you have dispatched your call before the changes made effect" CreationDate="2023-08-29T12:39:36.217" UserId="165" />
  <row Id="9756" PostId="9780" Score="0" Text="I try to run first command but got error I have edited my question, can you please tell me what I am doing wrong?" CreationDate="2023-08-29T12:53:30.023" UserId="2844" />
  <row Id="9757" PostId="9780" Score="0" Text="You need to have the `node-template` binary in the current directory, and also if you are in a mac the image use `ubuntu` so will not work. You can build the binary in docker to have a compatible version." CreationDate="2023-08-29T13:09:19.480" UserId="279" />
  <row Id="9758" PostId="9677" Score="0" Text="@Bruno i have upgraded  versions from 0.9.36 -&gt;0.9.37 -&gt;...-&gt; 0.9.43. everything is going  fine there,But when i tried to  runtime upgrade from 0.9.43 -&gt; 1.0.0 the blockchain  stopped working and i have started receiving errors in logs." CreationDate="2023-08-29T13:11:34.717" UserId="2348" />
  <row Id="9759" PostId="9774" Score="0" Text="thank you, just tried and it works now!" CreationDate="2023-08-29T13:55:50.660" UserId="4591" />
  <row Id="9760" PostId="9601" Score="0" Text="Mmm, I think in this case Subxt isn't super relevant (it's more about interacting with a node via the RPC APIs), though in theory you could build the signed extrinsic bytes with it if having those helped. Probably not worth all of the added dependencies just for that though, even if it was useful!" CreationDate="2023-08-29T13:56:20.240" UserId="474" />
  <row Id="9761" PostId="9744" Score="0" Text="Can you paste the error and share the implementation? will be easy if we can replicate your issue" CreationDate="2023-08-29T14:24:38.290" UserId="2762" />
  <row Id="9762" PostId="9782" Score="0" Text="Thanks for your answer Pavel. Would it be the same default keys for Centrifuge?" CreationDate="2023-08-29T14:59:37.913" UserId="4594" />
  <row Id="9763" PostId="9782" Score="0" Text="@user4594 yes, for Centrifuge it would be `//centrifuge`. Don't forget to add network specs to the Signer first. https://metadata.novasama.io/?tab=0#/centrifuge" CreationDate="2023-08-29T15:53:16.487" UserId="3631" />
  <row Id="9764" PostId="9782" Score="0" Text="All done, thanks for your help" CreationDate="2023-08-29T16:13:42.910" UserId="4594" />
  <row Id="9765" PostId="9744" Score="0" Text="Could you give a link to your repo?" CreationDate="2023-08-30T09:54:00.450" UserId="3317" />
  <row Id="9766" PostId="9744" Score="0" Text="@DaanvanderPlas sure: https://github.com/freeverseio/laos-ownership-node/blob/refactor/add_from_impl_to_account_id/pallets/living-assets-ownership/src/lib.rs#L55" CreationDate="2023-08-30T10:11:43.033" UserId="3395" />
  <row Id="9767" PostId="9785" Score="0" Text="I'm currently working within the pallet directory to test its functionality. Despite adding `#[derive(Clone, Decode, Encode, TypeInfo, Debug, Eq, PartialEq, MaxEncodedLen, Ord, PartialOrd, derive_more::Display, Serialize, Deserialize)]` to my test AccountId struct, I'm still getting the errors stated above" CreationDate="2023-08-30T10:16:46.527" UserId="3395" />
  <row Id="9769" PostId="9785" Score="0" Text="Updated my answer." CreationDate="2023-08-30T11:22:52.577" UserId="251" />
  <row Id="9770" PostId="9791" Score="1" Text="See https://substrate.stackexchange.com/a/8976/380" CreationDate="2023-08-30T12:35:05.650" UserId="380" />
  <row Id="9771" PostId="8976" Score="0" Text="This is amazing info, very helpful! Do you have a link to any docs for this?" CreationDate="2023-08-30T12:36:25.443" UserId="3711" />
  <row Id="9773" PostId="9787" Score="0" Text="That did the trick thanks" CreationDate="2023-08-30T12:43:07.270" UserId="4081" />
  <row Id="9774" PostId="9784" Score="0" Text="Which image source should I use? @AurevoirXavier?" CreationDate="2023-08-30T20:43:40.723" UserId="4435" />
  <row Id="9775" PostId="9784" Score="0" Text="It is totally up to you. I use `ubuntu:latest`." CreationDate="2023-08-30T23:27:02.150" UserId="251" />
  <row Id="9776" PostId="9796" Score="0" Text="Thanks for your reply&#xA;&#xA;Please check the above answer from the post I have posted because in the comment section I am not able to upload the screenshot." CreationDate="2023-08-31T06:04:58.310" UserId="4019" />
  <row Id="9777" PostId="9784" Score="0" Text="I used `ubuntu:latest`, but got the same error." CreationDate="2023-08-31T06:40:58.757" UserId="4435" />
  <row Id="9778" PostId="9784" Score="0" Text="What's your docker file content?" CreationDate="2023-08-31T06:54:59.260" UserId="251" />
  <row Id="9779" PostId="9784" Score="0" Text="It is not easy to paste here, if you let me know your email or other communication tool, i will contact via it." CreationDate="2023-08-31T07:14:37.517" UserId="4435" />
  <row Id="9780" PostId="9784" Score="0" Text="Ah, I already shared it when I post this question. Just I replaced `22.04` -&gt; `latest` under your suggestion." CreationDate="2023-08-31T07:21:59.520" UserId="4435" />
  <row Id="9781" PostId="9772" Score="0" Text="Hmm, are you sure about that? I have added debug logs to print source of the transaction each time a validation is triggered and I see that it is always called twice, first time with `TransactionSource::Local/External` and second time with `InBlock`:&#xA;&#xA;&#xA;`2023-08-31 09:30:21.032  WARN      offchain-worker pallet_template::pallet: Received Local transaction&#xA;2023-08-31 09:30:24.001  WARN tokio-runtime-worker pallet_template::pallet: Recieved InBlock transaction `" CreationDate="2023-08-31T07:31:39.727" UserId="4105" />
  <row Id="9782" PostId="9772" Score="0" Text="Validation of the extrinsic's logic or SignedExtension logic?" CreationDate="2023-08-31T08:40:59.677" UserId="3317" />
  <row Id="9783" PostId="9768" Score="0" Text="What the exact command you are executing to get this error?" CreationDate="2023-08-31T10:28:49.970" UserId="2762" />
  <row Id="9784" PostId="8976" Score="0" Text="Unfortunately, I don't. Discovered this while going through various repositories." CreationDate="2023-08-31T13:22:09.093" UserId="548" />
  <row Id="9786" PostId="9798" Score="0" Text="Try this version for a quick fix `git checkout v0.132.1`" CreationDate="2023-08-31T14:41:02.303" UserId="380" />
  <row Id="9787" PostId="9773" Score="0" Text="Thank you for the response! I'll look into the links and info you have provided." CreationDate="2023-08-31T17:14:04.107" UserId="522" />
  <row Id="9788" PostId="9746" Score="0" Text="Tom. Thanks for your feedback. I'm Bruce from Subscan. can you create an issue in https://github.com/subscan-explorer/subscan-issue-tracker?" CreationDate="2023-08-28T07:12:39.750" UserId="3040" />
  <row Id="9789" PostId="9807" Score="0" Text="Need more detail.  E.G. steps of fork-off and launch." CreationDate="2023-09-01T01:55:22.647" UserId="251" />
  <row Id="9790" PostId="9798" Score="0" Text="@forgetso thanks for comment. So I have to clone `polkadotjs` locally then use it?" CreationDate="2023-09-01T03:19:41.890" UserId="2844" />
  <row Id="9791" PostId="9807" Score="0" Text="@AurevoirXavier edited my question. pls check" CreationDate="2023-09-01T03:23:03.190" UserId="427" />
  <row Id="9792" PostId="9798" Score="0" Text="I did but got same error I have edited my question above." CreationDate="2023-09-01T03:33:22.017" UserId="2844" />
  <row Id="9793" PostId="9808" Score="0" Text="Thanks for this solution, is not 100% accurate you will be able to link it no? Because in the list of events of that block there is another event SpendApproved there is no link to your proposal" CreationDate="2023-09-01T09:24:30.557" UserId="2762" />
  <row Id="9794" PostId="9772" Score="0" Text="That it will be executed only when extrinsic is applied from a block" CreationDate="2023-09-01T11:00:47.183" UserId="4105" />
  <row Id="9795" PostId="9807" Score="0" Text="You mean `fork-off-substrate`? Please do use the proper tooling and not some [known-to-not-work](https://github.com/maxsam4/fork-off-substrate/issues/87) things. The advised way is to use the [`try-runtime-cli`](https://paritytech.github.io/try-runtime-cli/try_runtime/)." CreationDate="2023-09-01T11:40:40.130" UserId="94" />
  <row Id="9796" PostId="9772" Score="0" Text="Can you make an edit to your question and be specific about your question, it is hard to follow you." CreationDate="2023-09-01T12:20:30.227" UserId="3317" />
  <row Id="9798" PostId="9677" Score="0" Text="So `0.9.43` was working fine for you? Without more details it is hard to debug your issue. We just upgraded the Trappist parachain to `1.0.0` from `0.9.43` perhaps you can look here: https://github.com/paritytech/trappist/pull/262 and compare with your parachain" CreationDate="2023-09-01T15:38:33.900" UserId="29" />
  <row Id="9799" PostId="9816" Score="1" Text="Your code seems to be ok. I modified the PoW node ```Sha3Algorithm``` to be identical to your code and it compiles on my machine under ```v0.9.35```. Could you provide the literal error printout ? Is it ```service.rs``` that fails to compile ?" CreationDate="2023-09-01T20:52:24.523" UserId="3960" />
  <row Id="9801" PostId="4648" Score="0" Text="What? You modified someone else's question and pasted your question in there instead? Besides this it is extremely self explanatory &quot;failed to make network request&quot;." CreationDate="2023-09-02T14:38:47.653" UserId="94" />
  <row Id="9802" PostId="9784" Score="0" Text="Could you share your repo? I'd love to test it." CreationDate="2023-09-04T01:50:03.810" UserId="251" />
  <row Id="9803" PostId="9822" Score="0" Text="No logs on your node or events triggered on the chain that can help debug the issue?" CreationDate="2023-09-04T07:07:14.423" UserId="2762" />
  <row Id="9805" PostId="9816" Score="0" Text="Thanks, I updated the dependencies but I got other errors in the file now with **InherentDataProviders**  and **sc_consensus**. I was wondering if you could make the hybrid consensus work recently?" CreationDate="2023-09-04T07:52:43.790" UserId="4610" />
  <row Id="9806" PostId="9824" Score="0" Text="Which line in the test are you confused about?" CreationDate="2023-09-04T08:39:15.493" UserId="3317" />
  <row Id="9807" PostId="9813" Score="0" Text="I assume an ethereum (solidity) implementation of the XCVM could be quite complex and non-trivial for a single developer. Are there production ready solutions for this?" CreationDate="2023-09-04T09:36:52.093" UserId="139" />
  <row Id="9809" PostId="9822" Score="0" Text="You can try clearing your &quot;account activity&quot; or nonces on metamask as that's a common issue for metamask to hang and prevent any transactions from going through. A common obstacle when developing with frontier. If that doesn't help, we can't help much without looking at your frontier integration." CreationDate="2023-09-04T09:52:28.460" UserId="139" />
  <row Id="9811" PostId="9772" Score="0" Text="Sure, I have added TLDR section" CreationDate="2023-09-04T12:09:08.813" UserId="4105" />
  <row Id="9812" PostId="9283" Score="0" Text="were you able to debug on the polkadot side? Did it error out? @sea212?" CreationDate="2023-09-04T12:50:37.120" UserId="2473" />
  <row Id="9813" PostId="9824" Score="0" Text="`assert_eq!(Balances::free_balance(1), 0);` According to the claim on GitHub, this should fail." CreationDate="2023-09-04T12:51:49.010" UserId="3" />
  <row Id="9814" PostId="9816" Score="0" Text="You could try to kick your project off out of https://github.com/Polkadot-Blockchain-Academy/Academy-PoW. I'm not sure how updated that repo is, things change quickly as for Substrate development, you'll probably need to do a bit of research of the Host's sources and update your code accordingly to newer APIs." CreationDate="2023-09-04T13:45:52.237" UserId="3960" />
  <row Id="9815" PostId="9829" Score="1" Text="Is block production or import too slow? Why cant you reduce the number of maximal transactions in a block?" CreationDate="2023-09-04T13:50:47.207" UserId="94" />
  <row Id="9816" PostId="9829" Score="0" Text="Block production and import are fine, the the header extension generation takes time. The issue is not with the time it takes (which is normal and cannot be reduced without algorithmic changes). The issue is that this process happens at the end of the block (so after the 20 seconds). &#xA;&#xA;I can reduce the max number of tx or even reduce the blocktime but let's say the blocktime is x, the real blocktime will be x + Δ to generate the commitment. I want Δ to be included in x, in a way, even if it's only 1 second." CreationDate="2023-09-04T14:53:08.110" UserId="2135" />
  <row Id="9817" PostId="9784" Score="0" Text="Sure, here it is.&#xA;https://github.com/XcavateBlockchain/MarketplaceMVP_Substrate" CreationDate="2023-09-04T17:44:26.993" UserId="4435" />
  <row Id="9818" PostId="9283" Score="0" Text="Never figured out what actually happened. As far as I can tell there is no indication of an error. It seems as it executed successfully to me, but there are no state changes." CreationDate="2023-09-04T20:31:25.060" UserId="49" />
  <row Id="9819" PostId="9065" Score="0" Text="I'm a newbie to learn XCM Message, can you give me the script code for reference? Thank you." CreationDate="2023-09-04T17:41:46.363" UserId="4062" />
  <row Id="9820" PostId="9065" Score="0" Text="@DungNguyen Sure, the code is actually part of a project I am working on. You can view all the XCM code [here](https://github.com/TheDotflow/dotflow-ui/tree/main/src/utils/transactionRouter). It contains native transfers, teleportation, and all the possible kinds of reserve transfers." CreationDate="2023-09-05T05:27:44.670" UserId="2163" />
  <row Id="9821" PostId="9842" Score="0" Text="Is your chain a parachain?" CreationDate="2023-09-05T10:09:08.963" UserId="251" />
  <row Id="9822" PostId="9824" Score="0" Text="I think he means reaped in stead of dusted." CreationDate="2023-09-05T10:18:11.687" UserId="3317" />
  <row Id="9823" PostId="9842" Score="0" Text="@AurevoirXavier it is a relay chain." CreationDate="2023-09-05T10:24:18.970" UserId="354" />
  <row Id="9824" PostId="9844" Score="0" Text="Increasing `providers` is an erroneous raw mutation? Why? Also, the first link you provide seems to suggest that if there is a provider, the account won't get dusted. Is that correct?" CreationDate="2023-09-05T10:46:10.777" UserId="3" />
  <row Id="9825" PostId="9844" Score="0" Text="1. Well why are you increasing it to two? 2. If `Preserve` the balance transfer will fail if the amount gets below the ED." CreationDate="2023-09-05T11:09:44.243" UserId="3317" />
  <row Id="9826" PostId="9498" Score="0" Text="To me, it happened every time. However, I discovered the inconsistency between my parachain ID and the forked-off-chain storage caused my issue. Therefore, we are in different situations." CreationDate="2023-09-05T11:17:19.717" UserId="162" />
  <row Id="9827" PostId="9844" Score="0" Text="I concede that increasing it is unnecessary, but why is it not allowed?" CreationDate="2023-09-05T11:18:51.463" UserId="3" />
  <row Id="9828" PostId="9844" Score="0" Text="That would require a deeper look into the pallet and a separate question." CreationDate="2023-09-05T11:27:38.010" UserId="3317" />
  <row Id="9829" PostId="9821" Score="0" Text="did you try with the latest stable? I guess nightly can be the problem here" CreationDate="2023-09-05T11:44:05.487" UserId="170" />
  <row Id="9830" PostId="9772" Score="0" Text="Made an edit, let me know if it is still unclear" CreationDate="2023-09-05T13:25:27.043" UserId="3317" />
  <row Id="9831" PostId="9838" Score="0" Text="Thank you so much. Have a good day." CreationDate="2023-09-05T19:54:36.800" UserId="4062" />
  <row Id="9832" PostId="9065" Score="0" Text="Thank you so much. I will follow this repo. Good luck to you!" CreationDate="2023-09-05T19:58:05.993" UserId="4062" />
  <row Id="9833" PostId="9784" Score="0" Text="Updated my answer." CreationDate="2023-09-06T08:12:05.297" UserId="251" />
  <row Id="9834" PostId="9855" Score="0" Text="Can you elaborate on why it might be incorrect?" CreationDate="2023-09-06T11:08:48.527" UserId="3667" />
  <row Id="9835" PostId="9855" Score="0" Text="Due to some &quot;lacking&quot; of the existing `Error` system, there is a need to utilize the `Event` system as a replacement. However, this approach may seem counterintuitive for developers and users." CreationDate="2023-09-06T11:33:58.440" UserId="251" />
  <row Id="9836" PostId="9768" Score="0" Text="cargo check -p node-template-runtime --release" CreationDate="2023-09-06T12:17:47.063" UserId="4443" />
  <row Id="9837" PostId="9784" Score="0" Text="Thank you. @AurevoirXavier. It worked for me well." CreationDate="2023-09-06T14:10:04.587" UserId="4435" />
  <row Id="9838" PostId="9860" Score="0" Text="Thanks this worked perfectly " CreationDate="2023-09-06T19:54:34.913" UserId="4081" />
  <row Id="9839" PostId="9784" Score="0" Text="By the way, I want to get ws://127.0.0.1:9944. But I am getting only `Running JSON-RPC server: addr=0.0.0.0:9944`. I want to get `Running JSON-RPC WS server: addr=127.0.0.1:9944, allowed origins=[&quot;*&quot;]`. Is it possible? @AurevoirXavier" CreationDate="2023-09-06T21:01:24.010" UserId="4435" />
  <row Id="9840" PostId="9869" Score="0" Text="thank you, this solved my problem." CreationDate="2023-09-07T09:39:13.983" UserId="2586" />
  <row Id="9841" PostId="9870" Score="0" Text="What version of `parity-scale-codec` are you using? There was a recent bug, `3.6.5` should work." CreationDate="2023-09-07T10:49:06.880" UserId="94" />
  <row Id="9842" PostId="9843" Score="0" Text="I'd also just add that if you do want to be able to decode SCALE bytes (with a known type ID + metadata) at runtime, then https://github.com/paritytech/scale-value is useful; it's sortof the SCALE equivalent of `serde_json::Value` :)" CreationDate="2023-09-07T10:50:20.760" UserId="474" />
  <row Id="9843" PostId="9870" Score="0" Text="`3.0.0` I am using" CreationDate="2023-09-07T11:46:47.077" UserId="2844" />
  <row Id="9844" PostId="9872" Score="0" Text="What consensus it's running on? PoA?" CreationDate="2023-09-07T12:43:36.793" UserId="427" />
  <row Id="9845" PostId="9876" Score="0" Text="I tried `ENTRYPOINT [&quot;/usr/local/bin/node-template&quot;, &quot;--dev&quot;, &quot;--ws-external&quot;`, but got `--ws-external arg not found`" CreationDate="2023-09-07T13:49:15.793" UserId="4435" />
  <row Id="9846" PostId="9876" Score="0" Text="Try `--unsafe-ws-external`" CreationDate="2023-09-07T15:01:42.430" UserId="380" />
  <row Id="9847" PostId="9876" Score="0" Text="I got `error: unexpected argument '--unsafe-ws-external' found`" CreationDate="2023-09-07T16:59:57.857" UserId="4435" />
  <row Id="9848" PostId="9876" Score="0" Text="So I tried `--unsafe-rpc-external` instead of `--unsafe-ws-external`. But I couldn't get the result what I wanted - `Running JSON-RPC WS server: addr=127.0.0.1:9944, allowed origins=[&quot;*&quot;]`. Just I got `Running JSON-RPC server: addr=0.0.0.0:9944`" CreationDate="2023-09-07T17:31:52.323" UserId="4435" />
  <row Id="9850" PostId="9868" Score="0" Text="I'm pretty new to Rust and working code examples in the Substrate docs seem to be sparse, is it possible to show a simple example of getting data back from this function?" CreationDate="2023-09-08T00:11:43.170" UserId="4032" />
  <row Id="9852" PostId="9872" Score="0" Text="Yes. It is PoA." CreationDate="2023-09-08T05:30:30.467" UserId="4627" />
  <row Id="9853" PostId="9865" Score="0" Text="so for this we need to tightly couple pallet-balances to my pallet ?" CreationDate="2023-09-08T05:48:43.407" UserId="427" />
  <row Id="9854" PostId="9865" Score="1" Text="If you want this information inside your pallet you will have to query another pallet yes. Another option might be keep track (Adding a storage) in your pallet of all the funds you are locking" CreationDate="2023-09-08T06:59:54.027" UserId="2762" />
  <row Id="9855" PostId="9875" Score="0" Text="should I comment `from runtime` and `node`?" CreationDate="2023-09-08T08:06:11.303" UserId="2844" />
  <row Id="9856" PostId="9874" Score="0" Text="Please provide logs that help us discover the problem." CreationDate="2023-09-08T08:15:53.530" UserId="3317" />
  <row Id="9857" PostId="9884" Score="0" Text="I checked my validators and found that they were all running normally. I don't know why they didn't confirm" CreationDate="2023-09-08T08:24:21.593" UserId="4628" />
  <row Id="9859" PostId="9878" Score="0" Text="using [this](https://github.com/Brushfam/openbrush-contracts#wrapper-around-traits) you can create a reference of single trait" CreationDate="2023-09-08T09:21:47.077" UserId="2844" />
  <row Id="9860" PostId="9886" Score="0" Text="A little bit similar to https://substrate.stackexchange.com/questions/1423/what-is-the-role-of-scale-infoskip-type-paramst/8812#8812" CreationDate="2023-09-08T09:34:11.187" UserId="251" />
  <row Id="9861" PostId="9880" Score="0" Text="Thank you for extended answer." CreationDate="2023-09-08T10:17:40.923" UserId="19" />
  <row Id="9862" PostId="9875" Score="0" Text="No, you should put it in the base `Cargo.toml` file, where you define the workspace members." CreationDate="2023-09-08T10:46:40.660" UserId="3002" />
  <row Id="9863" PostId="9882" Score="0" Text="What version are you running? and any weird logs before the block #107379 ?" CreationDate="2023-09-08T11:05:04.050" UserId="2762" />
  <row Id="9864" PostId="9882" Score="1" Text="Also take a look into this previous one: https://substrate.stackexchange.com/questions/6337/collator-node-starts-failing-to-import-blocks-with-database-and-block-has-an  your node might ran out of disk space" CreationDate="2023-09-08T11:05:40.133" UserId="2762" />
  <row Id="9865" PostId="9887" Score="0" Text="It worked with CloneNoBound, but i had to add Clone trait bond to almost every other type, like the following: #[derive(CloneNoBound, Encode, Decode, Eq, PartialEq, Debug, TypeInfo)]&#xA;#[scale_info(skip_type_params(StringLimit))]&#xA;pub struct PollDetails&lt;Balance: Clone, AccountId: Clone, AssetId: Clone, BlockNumber: Clone, PollIndex: Clone, StringLimit: Get&lt;u32&gt;&gt; {  ... Is that right?" CreationDate="2023-09-08T11:31:25.837" UserId="3881" />
  <row Id="9866" PostId="9876" Score="0" Text="Hi @AlanMa, running `node-template --dev` should start the rpc server listening in `127.0.0.1:9944`, from which `tag` are you compiling the node?" CreationDate="2023-09-08T13:12:59.523" UserId="279" />
  <row Id="9867" PostId="9876" Score="0" Text="I can run it on local successfully, and got the ws rpc. Just I am struggling to get it after built a docker image for the substrate node. @pepoviola" CreationDate="2023-09-08T14:28:06.253" UserId="4435" />
  <row Id="9868" PostId="9850" Score="0" Text="Dear Aurevioc, &#xA;&#xA;Thank for the help&#xA;&#xA;What I understand is, there is some made to the code base but the tutorial are  not yet adjusted accordingly. Since I am facing the very same issue in an other tutorial as well. But I am still not very sure how to  use BlockNumberFor&lt;T&gt; in place of BlockNumber&lt;T&gt;." CreationDate="2023-09-08T17:25:28.533" UserId="3327" />
  <row Id="9869" PostId="9850" Score="1" Text="You simply need to replace any occurrence of `T::BlockNumber` with `BlockNumberFor&lt;T&gt;`. This is primarily a Rust-related matter. As `BlockNumber` is no longer a part of `T`, it has been moved to the `Header` within `T`. Additionally, they have introduced a type alias called `BlockNumberFor`, which corresponds to `&lt;HeaderFor&lt;T&gt; as Header&gt;::Number`. Essentially, this is equivalent to writing something like `T::Header::Number`." CreationDate="2023-09-08T19:32:24.687" UserId="251" />
  <row Id="9870" PostId="9882" Score="0" Text="The version I am using is polkadot-v0.9.36. Then I checked my disk space and they are currently sufficient. A strange situation now is that I have a total of four validators, all of whom are online but do not confirm the blocks, or rather the confirmation is very slow" CreationDate="2023-09-09T01:40:10.903" UserId="4628" />
  <row Id="9871" PostId="9882" Score="0" Text="I have re added the logs before and after # 107379. In addition to some error messages, I also sent a detail that the network upload and download rates used at that time were very high" CreationDate="2023-09-09T02:06:38.390" UserId="4628" />
  <row Id="9876" PostId="9890" Score="0" Text="Gets the same error      .verify(&amp;input.public_key, &amp;generated_signature_from_bytes)&#xA;    | |                 -^^^^^^ method cannot be called on `Public` due to unsatisfied trait bounds" CreationDate="2023-09-10T07:33:15.543" UserId="1950" />
  <row Id="9878" PostId="9252" Score="0" Text="I've updated by answer." CreationDate="2023-09-11T00:52:45.823" UserId="251" />
  <row Id="9879" PostId="4902" Score="0" Text="With Polkadot-v1.0.0 and sp-keystore version = &quot;0.27.0&quot;: there is no ` SyncCryptoStore` in `sp_keystore`. Use `sp_keystore::Keystore::sr25519_generate_new`" CreationDate="2023-09-11T07:49:46.187" UserId="2854" />
  <row Id="9880" PostId="9910" Score="0" Text="The problem lies in the fact that i can't fork the NFT pallet. I need to work with the Existing FRAME NFT Pallet." CreationDate="2023-09-11T08:00:26.133" UserId="3414" />
  <row Id="9881" PostId="9910" Score="0" Text="And if 2 doesn't work for you either, you may need to ask the upstream to make that change." CreationDate="2023-09-11T08:05:37.977" UserId="251" />
  <row Id="9882" PostId="9890" Score="0" Text="@not0x12 try adding also  `use sp_runtime::app_crypto::RuntimePublic;` this should work" CreationDate="2023-09-11T08:14:06.533" UserId="3319" />
  <row Id="9883" PostId="9884" Score="1" Text="Hello @YangElden have you made the call `note_stalled` with the last finalised block as parameter ?" CreationDate="2023-09-11T08:48:41.463" UserId="165" />
  <row Id="9885" PostId="9884" Score="0" Text="Hello @Alejandro Martínez. Yes, I have already called 'note'_ stalled ', parameter is 10, 107379. Unfortunately, it did not work." CreationDate="2023-09-11T09:08:45.543" UserId="4628" />
  <row Id="9886" PostId="9642" Score="0" Text="could you also show the mint function of your contract?" CreationDate="2023-09-11T11:01:08.793" UserId="170" />
  <row Id="9887" PostId="9909" Score="0" Text="make a pull request asking nicely to provide a method to access it?" CreationDate="2023-09-11T15:31:54.557" UserId="3319" />
  <row Id="9888" PostId="9850" Score="0" Text="It still gives the following error:&#xA;&#xA; type CollectionRandomness: frame_support::traits::Randomness&lt;Self::Hash, BlockNumberFor&lt;T&gt;&gt;;&#xA;   |                                                                                                 ^ not found in this scope" CreationDate="2023-09-11T17:34:02.387" UserId="3327" />
  <row Id="9891" PostId="9912" Score="0" Text="Oh! OK. I think I get it. You are saying I should keep only ONE of either **self.env().transfer(caller, leftovers).expect(&quot;payout failed&quot;)** OR the if statement with the specific error, but not both. And that since I am paying out multiple people, the if statement with a specific error is a better idea than the **self.env().transfer(caller, leftovers).expect(&quot;payout failed&quot;)** Did I get that right?" CreationDate="2023-09-11T20:36:08.097" UserId="3346" />
  <row Id="9892" PostId="9912" Score="0" Text="1) yes, keep only one transfer, try if that fixes it" CreationDate="2023-09-11T23:26:44.640" UserId="170" />
  <row Id="9894" PostId="9912" Score="0" Text="2) that was just a recommendation regarding possible dos, it does not matter if you expect, panic or return error, call will fail in any case. It has nothing to do with your question it was just something I caught) you can read more about such casey here https://consensys.github.io/smart-contract-best-practices/attacks/denial-of-service/" CreationDate="2023-09-11T23:30:08.607" UserId="170" />
  <row Id="9895" PostId="9850" Score="0" Text="Without the context, I can't help you." CreationDate="2023-09-12T02:44:28.287" UserId="251" />
  <row Id="9896" PostId="9915" Score="0" Text="Config is not there edit the question." CreationDate="2023-09-12T04:55:47.210" UserId="354" />
  <row Id="9897" PostId="9915" Score="0" Text="I can't edit the post for some reason... I keep getting:`An error occurred submitting the edit.`" CreationDate="2023-09-12T05:03:13.247" UserId="309" />
  <row Id="9898" PostId="9915" Score="0" Text="Can you post what error are you facing?" CreationDate="2023-09-12T05:41:05.877" UserId="354" />
  <row Id="9899" PostId="9915" Score="0" Text="cycle detected when computing layout of `RuntimeCall`" CreationDate="2023-09-12T05:53:17.130" UserId="309" />
  <row Id="9901" PostId="9915" Score="0" Text="Once try with `Self:: RuntimeOrigin` instead of `&lt;Self as frame_system::Config&gt;::RuntimeOrigin`, I think it should work" CreationDate="2023-09-12T06:17:35.210" UserId="354" />
  <row Id="9903" PostId="9915" Score="0" Text="It's not working , and is ambiguous as `Self::RuntimeOrigin` could derive from one of Collective Instances, or frame_system (RuntimeOrigin is not present in my pallet Config)" CreationDate="2023-09-12T06:45:23.477" UserId="309" />
  <row Id="9904" PostId="9915" Score="0" Text="it is hard to  understand what's the issue with the current information it will be helpful if you can post you repo link" CreationDate="2023-09-12T07:13:17.000" UserId="354" />
  <row Id="9905" PostId="9915" Score="0" Text="https://github.com/Fair-Squares/fair-squares/blob/optimize_9.40/pallets/voting/src/lib.rs" CreationDate="2023-09-12T07:24:42.887" UserId="309" />
  <row Id="9906" PostId="9919" Score="0" Text="Thanks! But how to resolve the above client error message above then? It appears to me that the client version from the original genesis spec needs to be run with the `codeSubstitutes` addition? I would have thought even newer clients would still execute the wasm from `genesis.runtime.system.code`. However that is not the case." CreationDate="2023-09-12T09:20:10.757" UserId="280" />
  <row Id="9907" PostId="9906" Score="0" Text="In my case it was due to the numbering issue for these pallets in runtime" CreationDate="2023-09-12T10:06:07.520" UserId="2348" />
  <row Id="9908" PostId="9919" Score="0" Text="You simply take the original chainspec that you used to at launch and add the `codesubstitutes`. Don't try to build it again from scratch." CreationDate="2023-09-12T10:54:06.047" UserId="3317" />
  <row Id="9909" PostId="9915" Score="0" Text="Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/148491/discussion-between-shubham-gupta-and-kazunobu-ndong)." CreationDate="2023-09-12T12:46:48.757" UserId="354" />
  <row Id="9910" PostId="9919" Score="0" Text="That part is clear to me. But when you want to use this chain spec with a newer client version, the client can throw the above error message if any pallet's `GenesisBuild` has changed. Say the chain launched 2021 and two years later you need to add `codeSubstitutes`. The current client version won't run with the spec. So what can you do apart from building (i.e. docker image) a client based on 2021 with the altered chain spec?" CreationDate="2023-09-12T13:01:50.383" UserId="280" />
  <row Id="9911" PostId="9912" Score="1" Text="That fixed it beautifully! I commented out the .expect version and kept the if statement to return a specific error and that solved the ContractTrapped issue perfectly. Thank you so much for your insight! You have made me a better programmer!" CreationDate="2023-09-12T13:22:59.670" UserId="3346" />
  <row Id="9912" PostId="1478" Score="1" Text="@Purple_Turtle hey, have you found a solution for this --rpc-cors problem? Because I tried a long time ago to use this flag and it wasn't working when I specified the domains" CreationDate="2023-09-12T18:13:04.470" UserId="2984" />
  <row Id="9913" PostId="9921" Score="0" Text="Thank you for your response. I have checked the missing validators through the `grandpa_roundState` RPC, and then I looked into my corresponding node. I found that it was working fine, and the corresponding keys were present in the keystore. However, they couldn't finality, which puzzled me. Later, I called `note_stalled` with a delay of 10, but I didn't realize that I needed to wait for the next session. So, I only waited for 10 blocks and gave up on the recovery when I saw it didn't work." CreationDate="2023-09-13T02:58:17.827" UserId="4628" />
  <row Id="9914" PostId="9916" Score="0" Text="I don't think this is the actual error. There were some issues with the `#[pallet]` and as a result, the pallet was not generated. Can you please provide the link to your code?" CreationDate="2023-09-13T09:34:07.533" UserId="251" />
  <row Id="9915" PostId="9850" Score="0" Text="Here is the github link please:&#xA;&#xA;https://github.com/sayyedkamran/substrate-node-template/blob/add_pallet_collectibles/pallets/collectibles/src/lib.rs" CreationDate="2023-09-13T17:01:11.320" UserId="3327" />
  <row Id="9916" PostId="9925" Score="0" Text="For the changes to be picked up by the running OCW, would they need to restart the node?" CreationDate="2023-09-13T17:19:36.743" UserId="29" />
  <row Id="9917" PostId="9929" Score="1" Text="there is article from Astar where we can generate random number in range [here](https://docs.astar.network/docs/build/builder-guides/xvm_wasm/pseudo_random/)" CreationDate="2023-09-14T02:36:55.733" UserId="2844" />
  <row Id="9918" PostId="9850" Score="0" Text="Within this context, there is no `T`. We use `T` to represent `Config` everywhere else. However, in this case, we directly use `Self` in the definition. So, `Randomness&lt;Self::Hash, BlockNumberFor&lt;Self&gt;&gt;` should suffice." CreationDate="2023-09-14T02:52:38.970" UserId="251" />
  <row Id="9919" PostId="9929" Score="0" Text="thank you @Ganesh11 this is exactly what I was looking for. Weird that this isn't included in the official documents" CreationDate="2023-09-14T06:28:26.653" UserId="3310" />
  <row Id="9920" PostId="9928" Score="0" Text="I believe you can access it because if you were running both https://polkadot.js.org/ and the node on the same computer, they share the same origin." CreationDate="2023-09-14T07:07:19.013" UserId="2762" />
  <row Id="9921" PostId="9932" Score="0" Text="i dont have the peerID , i just have the AccountId" CreationDate="2023-09-14T08:04:45.713" UserId="2722" />
  <row Id="9922" PostId="9932" Score="0" Text="You don't have to. User need to do the &quot;bind&quot; action first. Otherwise, you can't know the relationship between an account and a node. And one more thing, you might need to check if there is really a node there." CreationDate="2023-09-14T10:20:56.120" UserId="251" />
  <row Id="9923" PostId="9932" Score="0" Text="I don't need these nodes to be part of the consensus algorithm. I simply want them to join the network, and their primary role is to validate or check the quality of item ( special senario ) .&#xA;&#xA;i think using the node-authorization pallet is good for me . im not sure the nodes that added, bcome part of the consensus or not  and for add node thay have to pay like POS ." CreationDate="2023-09-14T11:08:49.420" UserId="2722" />
  <row Id="9924" PostId="9925" Score="0" Text="So, roughly speaking if we think of the `node/` folder inside the substrate-node-template repo, if something changes there, we need to replace the binary? `pallets` and `runtime` changes require a RU." CreationDate="2023-09-14T11:34:54.307" UserId="4651" />
  <row Id="9925" PostId="9932" Score="0" Text="No, it definitely does not produce any proof and does not incorporate the proof into the consensus. It is just a storage of records." CreationDate="2023-09-14T12:31:20.223" UserId="251" />
  <row Id="9926" PostId="9925" Score="0" Text="@Bruno i dont think so. But my assumption might be wrong!" CreationDate="2023-09-14T13:25:39.813" UserId="427" />
  <row Id="9927" PostId="9925" Score="0" Text="@subuser yes 100%" CreationDate="2023-09-14T13:25:53.093" UserId="427" />
  <row Id="9928" PostId="9850" Score="0" Text="Thank you very much @Aurevoir for the help. It get compiled. &#xA;&#xA;I am just asking for the benefit of the community and my knowledge, do you think, there is a need to upgrade the tutorial at substrate.io?" CreationDate="2023-09-14T14:21:32.487" UserId="3327" />
  <row Id="9929" PostId="9936" Score="0" Text="Do you have `pallet-assets` implemented on your chain?" CreationDate="2023-09-14T15:40:49.243" UserId="3317" />
  <row Id="9930" PostId="9935" Score="0" Text="The error you get in PolkadotJS UI is Unroutable?" CreationDate="2023-09-14T16:44:21.707" UserId="2762" />
  <row Id="9931" PostId="9936" Score="0" Text="Yes the chain supports ```pallet-assets```!" CreationDate="2023-09-14T16:49:50.760" UserId="2065" />
  <row Id="9932" PostId="9935" Score="0" Text="Yup, that's the one! @AlexBean" CreationDate="2023-09-14T16:51:54.283" UserId="2065" />
  <row Id="9933" PostId="9930" Score="0" Text="Thanks, I realised it later yesterday evening. I was sending the tx as the stash account rather then from the Proxy." CreationDate="2023-09-14T08:03:15.733" UserId="4653" />
  <row Id="9934" PostId="9938" Score="0" Text="Thanks for your answer, @btwiuse. But I got already `allowed origins=[&quot;*&quot;]`.&#xA;Like this. `Running JSON-RPC server: addr=127.0.0.1:9944, allowed origins=[&quot;*&quot;]`. But I want to run `JSON-RPC WS server` instead of `JSON-RPC server`. Like this `Running JSON-RPC WS server: addr=127.0.0.1:9944, allowed origins=[&quot;*&quot;]`" CreationDate="2023-09-14T18:07:16.267" UserId="4435" />
  <row Id="9935" PostId="9721" Score="0" Text="Here is the code for connecting to SC&#xA;```&#xA;const customSpec = JSON.stringify(jsonCustomSpec);&#xA;const provider = new ScProvider(Sc, customSpec);&#xA;await provider.connect();&#xA;const api = await ApiPromise.create({provider});&#xA;```" CreationDate="2023-09-14T20:43:06.513" UserId="3070" />
  <row Id="9936" PostId="9943" Score="0" Text="I have already asked this but no good answer yet. https://substrate.stackexchange.com/questions/7040/how-to-implement-a-session-progress-bar-for-parachain" CreationDate="2023-09-15T03:25:01.563" UserId="251" />
  <row Id="9937" PostId="9938" Score="0" Text="@AlanMa It is already a WS server regardless of the log message" CreationDate="2023-09-15T04:19:41.800" UserId="408" />
  <row Id="9938" PostId="9938" Score="0" Text="But I couldn't connect with the substrate node using `ws://127.0.0.1:9944` @btwiuse." CreationDate="2023-09-15T07:48:45.217" UserId="4435" />
  <row Id="9939" PostId="9938" Score="0" Text="`Error Connecting to Substrate&#xA;Connection to websocket 'ws://127.0.0.1:9944/' failed.`" CreationDate="2023-09-15T07:55:41.520" UserId="4435" />
  <row Id="9940" PostId="9939" Score="1" Text="Thanks. Does this mean that only system parachains can use DOT to pay gas fees? Also, I'm curious how the economics work with non-native-asset chains. My understanding is that a parachain needs to&quot;crowdloan&quot; security from $DOT holders, who are promised a continuous airdrop in the native currency of the parachain." CreationDate="2023-09-15T09:10:49.217" UserId="2396" />
  <row Id="9941" PostId="9949" Score="0" Text="This sounds like you are using the JSON chain spec, not the raw chain spec which should be forever compatible." CreationDate="2023-09-16T16:49:54.720" UserId="28" />
  <row Id="9942" PostId="4508" Score="0" Text="Upcoming london meetup: https://www.meetup.com/beyond-the-chain-london/events/296057354/" CreationDate="2023-09-16T17:38:55.253" UserId="85" />
  <row Id="9943" PostId="9949" Score="0" Text="Yea I suspected this, yet running the raw generation on the later node also fails. We will attempt to resolve going back to the OG node." CreationDate="2023-09-16T17:56:50.160" UserId="74" />
  <row Id="9944" PostId="9949" Score="0" Text="Raw generation of an old JSON on new nodes are not guaranteed to work. There could be breaking changes to the JSON format. This is why the raw chain spec exists." CreationDate="2023-09-16T18:02:43.470" UserId="28" />
  <row Id="9945" PostId="9874" Score="0" Text="@DaanvanderPlas, please check node logs section" CreationDate="2023-09-16T18:09:27.860" UserId="4625" />
  <row Id="9946" PostId="9919" Score="0" Text="May be related, see comments here: https://substrate.stackexchange.com/questions/9949/newer-nodes-unable-to-execute-genesis-chainspec-unknown-field-phantom" CreationDate="2023-09-16T21:47:11.323" UserId="29" />
  <row Id="9947" PostId="9934" Score="0" Text="Can you post an RPC link? I want to replay the block locally. It may be possible to blacklist all transactions and blocks that take too long in the chainspec." CreationDate="2023-09-17T13:56:11.547" UserId="94" />
  <row Id="9948" PostId="9953" Score="0" Text="Thanks for the answer @oliver-tale-yazdi, question edited to provide more information" CreationDate="2023-09-17T15:05:36.317" UserId="3395" />
  <row Id="9949" PostId="9954" Score="0" Text="For these kinds of questions around the output of benchmarks, it is best to start looking at the raw data, not just the linear forumula that is outputted. Configure your benchmarks with the `json_file` flag, and graph the results. Usually these questions can answer themselves." CreationDate="2023-09-17T21:19:00.347" UserId="28" />
  <row Id="9950" PostId="9953" Score="0" Text="As Oliver mentioned, you are not allowed to read events within the actual runtime. The amount of data in the events storage is very large, and will certainly mess up your ability to be a parachain on Polkadot.&#xA;&#xA;&quot;The goal is to store certain data from these events into the updated storage.&quot;&#xA;&#xA;This seems like a pretty badly designed migration. Why can't you update the storage at the time that the event would be emitted, rather than trying to use events as some kind of message system to your logic?" CreationDate="2023-09-17T21:29:57.470" UserId="28" />
  <row Id="9951" PostId="9954" Score="0" Text="@ShawnTabrizi thanks I didn't know about `json_file`. It helped me answer the question." CreationDate="2023-09-18T07:11:04.153" UserId="139" />
  <row Id="9952" PostId="9957" Score="0" Text="Does this help? https://substrate.stackexchange.com/questions/9809/after-doing-runtime-upgrade-getting-contract-not-found-in-substrate-contracts-ui" CreationDate="2023-09-18T08:33:54.940" UserId="2762" />
  <row Id="9953" PostId="9944" Score="0" Text="Could you explain :) ?" CreationDate="2023-09-18T10:18:32.353" UserId="3317" />
  <row Id="9954" PostId="9874" Score="0" Text="Doesn't provide info that is useful" CreationDate="2023-09-18T10:19:23.647" UserId="3317" />
  <row Id="9955" PostId="9959" Score="0" Text="Which binary do you want to run? `(parachain-)node-template`/`polkadot`?" CreationDate="2023-09-18T10:23:21.743" UserId="3317" />
  <row Id="9956" PostId="9959" Score="0" Text="@DaanvanderPlas Polkadot" CreationDate="2023-09-18T11:25:26.297" UserId="3196" />
  <row Id="9957" PostId="9944" Score="0" Text="I am getting the same result as before when specifying the beneficiary network." CreationDate="2023-09-18T12:34:04.823" UserId="2065" />
  <row Id="9958" PostId="9953" Score="0" Text="How could I store the data from the events emitted in the past if the storage item where I'm supposed to store that data only exists after the runtime upgrade? As far as I know that is not possible, maybe I missed something @ShawnTabrizi" CreationDate="2023-09-18T13:09:35.823" UserId="3395" />
  <row Id="9959" PostId="9966" Score="0" Text="So that's a yes to ExtrinsicBaseWeight being unconditionally being added even though my extrinisic returns 0 weight consumed?" CreationDate="2023-09-18T13:31:03.843" UserId="3667" />
  <row Id="9960" PostId="9966" Score="0" Text="Yep, since the base weight is the effort done by FRAME, not by your code." CreationDate="2023-09-18T13:35:43.070" UserId="94" />
  <row Id="9961" PostId="9267" Score="0" Text="What happens if a parachain just propagates all transactions to have zero Proof-of-Validty size? The relay chain validators would re-execute until the actual consumption of 5 MB is reached and then stop validating this block? Or would they throw away all transactions inside the block?" CreationDate="2023-09-18T13:42:45.253" UserId="2484" />
  <row Id="9962" PostId="9964" Score="0" Text="Have you looked at: https://use.ink/basics/upgradeable-contracts/ ?" CreationDate="2023-09-18T13:52:18.387" UserId="3317" />
  <row Id="9963" PostId="9964" Score="0" Text="yes, I have seen the documentation but they have not written much there." CreationDate="2023-09-18T14:28:49.200" UserId="4533" />
  <row Id="9964" PostId="9965" Score="0" Text="you can refer to https://substrate.stackexchange.com/questions/281/how-to-set-base-fee-and-len-fee-to-zero" CreationDate="2023-09-19T05:02:47.530" UserId="354" />
  <row Id="9965" PostId="9973" Score="1" Text="I have also tried that and it gives me this error ```Error:&#xA;   0: Worker binaries could not be found, make sure polkadot was built/installed correctly. If you ran with `cargo run`, please run `cargo build` first. Searched given workers path (None), polkadot binary path (&quot;/Users/rajdeepsingh/blockchain/polkadot-sdk/target/debug&quot;), and lib path (/usr/lib/polkadot), workers names: None``` Have updated the original question with a screenshot of target folder and the binary exists" CreationDate="2023-09-19T05:20:10.093" UserId="3196" />
  <row Id="9966" PostId="9944" Score="0" Text="Please check the update." CreationDate="2023-09-19T05:35:45.147" UserId="1959" />
  <row Id="9967" PostId="9942" Score="0" Text="@ Dominique  i have done all the steps you mentioned but still from. `38--&gt;39` version it is not working.  and still showing contract not found in contracts ui." CreationDate="2023-09-19T06:08:39.820" UserId="2348" />
  <row Id="9968" PostId="9961" Score="0" Text="This makes sense. Thanks for clearing this up." CreationDate="2023-09-19T06:34:52.993" UserId="4556" />
  <row Id="9969" PostId="9974" Score="0" Text="Hi Arjan, thanks a lot for pointing out this problem. We've added it to the backlog and will try to add the missing trait in a priority way!" CreationDate="2023-09-19T07:13:16.623" UserId="548" />
  <row Id="9970" PostId="9934" Score="0" Text="Sure, thanks for getting back to me. Somehow, I got the parachain to produce blocks again. I just kept trying keeping collators off for &gt; 10 minutes and forcing different para WASMs on the relay.&#xA;&#xA;Block before upgrade and long stall (#216,951): https://polkadot.js.org/apps/?rpc=wss://fullnode.algol.cntrfg.com#/explorer/query/0xc82319950f3dbf0c65f524a53395a23117ac0103ef57ae1f8f8d7be29be10bb0&#xA;&#xA;Runtime upgrade block (#216,952): https://polkadot.js.org/apps/?rpc=wss://fullnode.algol.cntrfg.com#/explorer/query/216952" CreationDate="2023-09-19T07:55:38.367" UserId="280" />
  <row Id="9971" PostId="9967" Score="0" Text="Please clarify your question. The title is clear but it is a very broad question and with the information you are providing it is not clear what you are questioning about" CreationDate="2023-09-19T14:21:05.327" UserId="3317" />
  <row Id="9972" PostId="9964" Score="0" Text="Please clarify your question, it is not clear what you are asking at the moment" CreationDate="2023-09-19T14:26:34.797" UserId="3317" />
  <row Id="9973" PostId="9951" Score="0" Text="Eth moved towards libp2p after the Merge. That doesn't invalidate your answer though, a Frontier/Geth compatibility is near to impossible." CreationDate="2023-09-19T16:09:34.783" UserId="494" />
  <row Id="9974" PostId="9267" Score="1" Text="A block must be fully executed to be valid, so any kind of &quot;only partial execution&quot; means the whole block would be dropped. In this case, the proof size is not &quot;reported&quot; by the parachain, but provided as a blob to the validators. As in, it is not possible for them to lie about the size of the proof. If a chain does not provide a full proof, then as soon as the validator tries to read some proof data which is not there, the block will be dropped." CreationDate="2023-09-19T20:10:10.243" UserId="28" />
  <row Id="9975" PostId="9953" Score="1" Text="Storage items are just representations of writing data to a specific storage key. You can start writing to any storage as soon as you want, even before a specific storage migration, as long as your runtime logic has the logic to write to it. This is also why adding new storage items does not require any migration. So wherever you have logic where you are writing things to events, you could instead write to some storage item. Also thing about a multi-step migration. In any case, you cannot read from the events storage." CreationDate="2023-09-19T20:14:04.690" UserId="28" />
  <row Id="9976" PostId="9954" Score="0" Text="If you have an answer to your own question, please write down the steps you took to solve it and what the solution was, that way others with a similar problem can get help." CreationDate="2023-09-19T20:15:01.017" UserId="28" />
  <row Id="9977" PostId="9905" Score="0" Text="Could you please verify within your runtime that 'pallet-sudo' is not set at index 255?" CreationDate="2023-09-18T04:49:32.230" UserId="2372" />
  <row Id="9978" PostId="9965" Score="0" Text="Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." CreationDate="2023-09-19T20:45:35.910" UserId="-1" />
  <row Id="9979" PostId="9900" Score="0" Text="Got the very same error when I did a new compile" CreationDate="2023-09-19T22:03:28.560" UserId="4673" />
  <row Id="9980" PostId="4058" Score="0" Text="@AurevoirXavier Hi, So we are facing some issue with our testnet for some time  are blocks not being produced, I saw at least 5 of the validators got slashed and many peers got removed from the network all together (100+), we tried to get the chain back up but nothing worked yet, while testing on local I found this error &quot;unexpected epoch change&quot;. so does this mean if this happen, the chain won't be able to recover and the only  choice is to restart the network. Seems priority would be to update the code to latest substrate version." CreationDate="2023-09-20T01:58:08.170" UserId="2586" />
  <row Id="9981" PostId="9957" Score="0" Text="Nope. @AlexBean" CreationDate="2023-09-20T06:23:02.483" UserId="2372" />
  <row Id="9982" PostId="9979" Score="0" Text="`__private` module doesn't export any items." CreationDate="2023-09-20T07:01:21.037" UserId="139" />
  <row Id="9983" PostId="9984" Score="0" Text="Please provide detailed setup steps." CreationDate="2023-09-20T07:17:06.443" UserId="251" />
  <row Id="9984" PostId="9684" Score="0" Text="Yeh makes sense on that, but signing should be the same on whatever the lib that is used right? I see that the js takes JSON to sign with is kinda different from how its in subxt. I see subxt is using schnorrkel lib to sign, but I have seem some glimps of schnor lib in js also. So is it possible to sign it with those libs? schnorrkel is partity maintained and schnor in js is general lib. So I wonder if its possible to sign an extrinsic with those signing libs where users can sign without thinking about subxt or polkadot-js or even gsrpc." CreationDate="2023-09-20T07:31:33.323" UserId="552" />
  <row Id="9985" PostId="9984" Score="0" Text="Regarding the 1, Follow this guide(https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-polkadot)&#xA;&#xA;staking.bond -&gt; session.setkeys -&gt; staking.validate" CreationDate="2023-09-20T08:48:46.233" UserId="4676" />
  <row Id="9986" PostId="8139" Score="0" Text="I think it's due to the issue of Astar's implementation. It's better to create the issue to let them know." CreationDate="2023-09-20T09:29:50.593" UserId="162" />
  <row Id="9987" PostId="9990" Score="1" Text="Your code worked well. Furthermore, even when I changed the url to mainnet and rewrote it to generate the key pair from mnemonic, it still worked.&#xA;Thanks!" CreationDate="2023-09-20T14:10:31.490" UserId="4104" />
  <row Id="9988" PostId="9983" Score="0" Text="You seems to be right. The issue is, everything gets compiled correctly, as soon as I add collectibles pallet to the runtime, these strange errors pops in. I observer following strange thing in the cargo.lock file&#xA;&#xA;[[package]]&#xA;name = &quot;frame-system&quot;&#xA;version = &quot;4.0.0-dev&quot;&#xA;source = &quot;git+https://github.com/paritytech/substrate.git?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d&quot;&#xA;[[package]]&#xA;name = &quot;frame-system&quot;&#xA;version = &quot;4.0.0-dev&quot;&#xA;source = &quot;git+https://github.com/paritytech/polkadot-sdk.git?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7&quot;&#xA;d" CreationDate="2023-09-20T14:37:02.173" UserId="3327" />
  <row Id="9989" PostId="9986" Score="0" Text="Thank you @alex for the help. &#xA;&#xA;BTW, I observed alot of errors in tutorial. In most cases, the tutorials are out of sync with the development activity/github repo" CreationDate="2023-09-20T14:40:16.500" UserId="3327" />
  <row Id="9990" PostId="9986" Score="0" Text="If you have time you can submit an issue for the documentation team to look into: https://github.com/substrate-developer-hub/substrate-docs/issues/new/choose" CreationDate="2023-09-20T14:46:06.510" UserId="2762" />
  <row Id="9991" PostId="9900" Score="0" Text="Same here. I'm pulling my hair on this one, cannot seem to find the source of this problem, since the `polkadot` repo compiles fine. I have the exact same section about `bandersnatch_vrfs` in `Cargo.lock`, but it still fails." CreationDate="2023-09-20T17:29:54.027" UserId="4678" />
  <row Id="9992" PostId="9967" Score="0" Text="Here's an in depth usecase: https://medium.com/@GenesisDAO/introducing-the-hookpoints-pallet-377de6680c2d" CreationDate="2023-09-20T17:49:13.613" UserId="3265" />
  <row Id="9993" PostId="9992" Score="0" Text="Amazing thanks that helps a lot - do you know roughly what the most commonly used events are?" CreationDate="2023-09-21T06:30:57.010" UserId="4665" />
  <row Id="9994" PostId="9995" Score="0" Text="how to know how much transactions can fit in a block?" CreationDate="2023-09-21T07:27:42.090" UserId="427" />
  <row Id="9995" PostId="9995" Score="0" Text="For that you can run a script and specify there how much transactions you want in that particular time or you can use a tool Apache Jmeter (https://jmeter.apache.org) which is used for load testing." CreationDate="2023-09-21T07:30:30.560" UserId="354" />
  <row Id="10000" PostId="10001" Score="0" Text="i am trying that but chain starting from same state. Maybe some issue in bad block implementation. &#xA;Any steps or doc to apply bad block to the chain?" CreationDate="2023-09-22T05:07:29.597" UserId="377" />
  <row Id="10001" PostId="9997" Score="0" Text="What if i wanted to query ALL polkadot accounts and their historical balances? would I still have to parse every block and all events associated for each block?&#xA;&#xA;How about other modules like batch transfers and crowdloans(deposit/refunds?) these counts as transfers but not in the balance module" CreationDate="2023-09-22T06:37:07.483" UserId="4663" />
  <row Id="10002" PostId="9684" Score="0" Text="Ultimately, the signer payload bytes that you can ask Subxt for are exactly the bytes that need signing. As long as you take the same approach to sign them as eg https://github.com/paritytech/subxt/blob/12e343449eca10d8c3c4870f12c9c34605d78918/signer/src/sr25519.rs#L158, you can use any language of course to do so. Browser wallets like Talisman cannot be handed these raw bytes to sign though; they expect a JSON payload (and internally then construct the raw bytes themselves). I think Polkadot.js expects similar, but as you say, ultiamtely they will all sign the same bytes that Subxt provides." CreationDate="2023-09-22T11:00:37.700" UserId="474" />
  <row Id="10003" PostId="10003" Score="0" Text="does this solve your question ? https://github.com/paritytech/polkadot-sdk/blob/b09ab37119acf0f3c4c8b9e3662255afd6d0ae53/substrate/frame/support/src/dispatch.rs#L116" CreationDate="2023-09-22T16:12:01.813" UserId="165" />
  <row Id="10005" PostId="9986" Score="0" Text="Sure, thank you." CreationDate="2023-09-22T21:02:20.283" UserId="3327" />
  <row Id="10006" PostId="10011" Score="0" Text="yes i want to access it externally over a network so im using --ws external but its giving me error" CreationDate="2023-09-23T05:38:55.490" UserId="4443" />
  <row Id="10009" PostId="9734" Score="0" Text="This may be better as a comment" CreationDate="2023-09-23T20:05:24.063" UserId="4032" />
  <row Id="10010" PostId="9967" Score="0" Text="https://www.youtube.com/watch?v=-7c_GAZuEd8&amp;t&#xA;We can also refer this valuable workshop from Sub0 2023" CreationDate="2023-09-24T09:44:42.037" UserId="445" />
  <row Id="10011" PostId="10018" Score="0" Text="Where do you want to add the weight? The scheduler pallet does not charge any user for the weight, since its used by governance. I dont quite understand what you are trying to do." CreationDate="2023-09-24T15:40:08.510" UserId="94" />
  <row Id="10012" PostId="10018" Score="0" Text="@OliverTale-Yazdi I have two extrinsics. Create and enactment. Create adds enactment to the agenda. I was wondering If I should add the weight of both, creation and enactment to creation. So when a user creates a poll it would pay for both." CreationDate="2023-09-25T01:16:32.390" UserId="3881" />
  <row Id="10013" PostId="10007" Score="0" Text="thank you, this is what I was searching for. @jsdw" CreationDate="2023-09-25T01:42:53.560" UserId="2586" />
  <row Id="10014" PostId="10013" Score="0" Text="What kind of trouble did you encounter?" CreationDate="2023-09-25T02:52:50.897" UserId="251" />
  <row Id="10015" PostId="9984" Score="0" Text="What are the issues preventing it from creating blocks?" CreationDate="2023-09-25T07:02:48.310" UserId="2762" />
  <row Id="10016" PostId="9997" Score="0" Text="To get the free/reserved balance of all accounts you do not need additional events. The system.account storage function takes into consideration all events related to balance of the account. If an event related to balance came from a batch call, a crowdloan return or a regular balance transfer, they would all be accounted for with the system account function.&#xA;&#xA;If you wanted to see how DOT was moved between accounts, then you would need the events. Otherwise, adjusting Karim's code below to loop through all addresses would get you all address balances over time." CreationDate="2023-09-25T07:08:38.750" UserId="4682" />
  <row Id="10017" PostId="9925" Score="0" Text="@ImmanuelJohn What about dependency updates? For example, the node imports an external service that's located in a new version in another crate? That requires a binary switch I guess" CreationDate="2023-09-25T08:30:31.200" UserId="4651" />
  <row Id="10019" PostId="10001" Score="0" Text="Getting this error after following this &#xA;https://substrate.stackexchange.com/questions/10014/how-to-solve-detected-prevote-equivocation-in-the-finality-worker-issue" CreationDate="2023-09-25T10:37:51.330" UserId="377" />
  <row Id="10020" PostId="10022" Score="0" Text="Also we used new chainspec for archive node" CreationDate="2023-09-25T11:03:38.893" UserId="377" />
  <row Id="10021" PostId="10022" Score="0" Text="Updated question with more information please check." CreationDate="2023-09-25T11:16:11.977" UserId="377" />
  <row Id="10022" PostId="9347" Score="0" Text="Crucially, the pre-dispatch fees are computed entirely statically, as in the transaction is not executed in order to estimate the fee, therefore any refund is not seen. _If_ a DApp really wants to give you an accurate estimate, they should `DryRun` the extrinsic and measure how much fee was charged. But this is inefficient, and not very privacy/MEV friendly." CreationDate="2023-09-25T14:43:35.200" UserId="167" />
  <row Id="10023" PostId="10022" Score="0" Text="Archive node is not validator in our case." CreationDate="2023-09-25T15:05:09.433" UserId="377" />
  <row Id="10024" PostId="10022" Score="0" Text="Our chain is based on POA for now. I can't find out the grandpa_roundState endpoint in our chain." CreationDate="2023-09-25T15:06:57.997" UserId="377" />
  <row Id="10025" PostId="10022" Score="0" Text="-lgrandpa=debug result:  &#xA;Sep 25 15:18:22 node[99]: 2023-09-25 15:18:22.113 DEBUG                 main grandpa: Equivocation offender is not part of the authority set." CreationDate="2023-09-25T15:21:51.097" UserId="377" />
  <row Id="10026" PostId="10022" Score="0" Text="You'd need to add the GRANDPA RPC to your node service (example: https://github.com/paritytech/polkadot-sdk/blob/master/substrate/bin/node/rpc/src/lib.rs#L177-L186). You can ignore the equivocation errors. Can you run with `-lgrandpa=trace` and check if the rounds are progressing? I am not sure how I can help you further." CreationDate="2023-09-25T16:34:18.807" UserId="452" />
  <row Id="10027" PostId="10008" Score="1" Text="you can add `--base-path /path/to/database` flag when starting the chain. if you are doing `--dev` I think your database will be in the /tmp which will be deleted every new start." CreationDate="2023-09-26T01:21:37.680" UserId="2586" />
  <row Id="10028" PostId="10024" Score="0" Text="Where can I learn about you `#[precompile::public(&quot;nominate(address[])&quot;)]` macro? Looks very cool." CreationDate="2023-09-26T02:49:29.973" UserId="372" />
  <row Id="10030" PostId="9992" Score="0" Text="Again, really depends on the pallets present in the runtime. I would say the `balances` pallet is most used so I would start with those events." CreationDate="2023-09-26T07:30:46.067" UserId="3317" />
  <row Id="10031" PostId="10028" Score="0" Text="Did you run a migration from v39 to v43? or you just testing it on a v43 a code that worked in a v39" CreationDate="2023-09-26T07:37:26.607" UserId="2762" />
  <row Id="10032" PostId="10013" Score="0" Text="You dont have to use toHuman() here, have you tried to print the key and the value?" CreationDate="2023-09-26T07:47:22.067" UserId="2762" />
  <row Id="10033" PostId="10024" Score="0" Text="It's taken from moonbeam's precompile infrastructure @JoshOrndorff. Also my approach didn't work primarily because the `AccountId` type used in the mock runtime still doesn't implement `From&lt;[u8; 32]&gt;`." CreationDate="2023-09-26T08:27:07.097" UserId="74" />
  <row Id="10034" PostId="10028" Score="0" Text="Migration from 39 to 43." CreationDate="2023-09-26T09:31:52.833" UserId="3171" />
  <row Id="10035" PostId="10028" Score="0" Text="Probably something went wrong when you did the migration then, any more information you can share to help debug it?" CreationDate="2023-09-26T09:33:35.037" UserId="2762" />
  <row Id="10036" PostId="10034" Score="0" Text="if i have  to use collective pallet to execute any extrinsic ,how i can use it?" CreationDate="2023-09-26T13:04:17.343" UserId="2348" />
  <row Id="10040" PostId="10034" Score="0" Text="You are doing it the right way, however you can't dispatch an extrinsic (through the `collectives` pallet) that requires the to be called by the `Root` origin. You'll need the `sudo` or `democracy` pallet for that." CreationDate="2023-09-26T16:07:13.823" UserId="3317" />
  <row Id="10041" PostId="10038" Score="0" Text="Can you share the repo so we can replicate the issue and debug it?" CreationDate="2023-09-26T16:27:44.147" UserId="29" />
  <row Id="10042" PostId="10022" Score="0" Text="If you solved your problem it would be nice to comment and accept the answer." CreationDate="2023-09-26T20:08:13.243" UserId="452" />
  <row Id="10043" PostId="9984" Score="0" Text="@AlexBean I don't know root cause, does not receive any error log Just stop it." CreationDate="2023-09-26T23:50:11.667" UserId="4676" />
  <row Id="10044" PostId="10033" Score="0" Text="Thank you so much" CreationDate="2023-09-27T01:23:51.563" UserId="4695" />
  <row Id="10045" PostId="10044" Score="0" Text="How could I have missed that... Thank you for pointing that out, it solved the issue indeed." CreationDate="2023-09-27T04:10:43.763" UserId="4556" />
  <row Id="10046" PostId="10045" Score="1" Text="Your runtime upgraded caused a migration which took longer than allowed, there are some various ways of unbricking your block chain. Nodle parachain was stuck for several weeks until governance on polkadot allowed for a force upgrade" CreationDate="2023-09-27T05:20:05.760" UserId="116" />
  <row Id="10047" PostId="10045" Score="0" Text="you can refer to comments in this question https://substrate.stackexchange.com/questions/9677/getting-error-after-doing-runtime-upgrade-to-substrate-v1-0-0" CreationDate="2023-09-27T05:25:10.003" UserId="354" />
  <row Id="10048" PostId="10045" Score="0" Text="can you please explore which comment you are pointing to related migration, contract pallet or anyone else?" CreationDate="2023-09-27T06:01:07.507" UserId="377" />
  <row Id="10049" PostId="10022" Score="1" Text="The issue is solved. As chain was just producing the block not finalising the block so with the help of -lgrandpa=trace i checked whats happening on the chain. Then I  stopped all the nodes and revert all the nodes to the last finalise block and start the nodes with the same new chainspec and binary then it worked. - Thanks Andre silva" CreationDate="2023-09-27T06:53:02.907" UserId="377" />
  <row Id="10050" PostId="10039" Score="1" Text="With option 2 the user of the pallet gets full control, where as with option 1 the user of the pallet is forced to box. I would suggest that substrate pallets should be as un-opinionated as possible given that they could be used in a variety of ways." CreationDate="2023-09-27T08:50:29.787" UserId="85" />
  <row Id="10051" PostId="10048" Score="0" Text="Thank you very much! I almost thought this sub is abandoned." CreationDate="2023-09-27T11:39:45.893" UserId="169" />
  <row Id="10052" PostId="9944" Score="1" Text="@Guantong The Problem seems to be fixed after updating the FungiblesTranscator  and AssetRegistry configurations then correctly registering ROC MultiLocation on the parachain." CreationDate="2023-09-27T13:25:47.447" UserId="2065" />
  <row Id="10053" PostId="2498" Score="0" Text="How did you solve it @Decentration?" CreationDate="2023-09-27T14:59:08.217" UserId="3317" />
  <row Id="10054" PostId="10054" Score="0" Text="the toHuman doesnot give me any Types.  I am using toHuman for the metadata like: &#xA;  name: res.name.toHuman() as any[][0]   &#xA;I still need the types from somewhere and the query response does not have them. The response is types as    any" CreationDate="2023-09-27T23:14:20.487" UserId="3070" />
  <row Id="10055" PostId="10003" Score="0" Text="No. I want to implement the no fees for the validator only. Not for all the users" CreationDate="2023-09-28T06:18:55.143" UserId="2372" />
  <row Id="10056" PostId="10060" Score="0" Text="Great question. very intrested to see up to date PoW implementation on top of PolkadotSDK." CreationDate="2023-09-28T08:20:30.337" UserId="3171" />
  <row Id="10057" PostId="10054" Score="0" Text="Sorry you were right, I misunderstood what you were looking for. I have edited my response" CreationDate="2023-09-28T13:14:19.297" UserId="2762" />
  <row Id="10058" PostId="10067" Score="0" Text="Can you explain a bit more what permissions you need to give to the accounts." CreationDate="2023-09-29T04:48:54.223" UserId="354" />
  <row Id="10059" PostId="10068" Score="0" Text="Which version is your parachain?" CreationDate="2023-09-29T06:52:35.850" UserId="3317" />
  <row Id="10061" PostId="10068" Score="0" Text="I am using `release-polkadot-v1.1.0` for my parachain" CreationDate="2023-09-29T11:02:56.860" UserId="2844" />
  <row Id="10062" PostId="10088" Score="0" Text="Thank you for the support. But I'm not able to understand where I need to implement this genesisConfig or BlockNumberFor? I just want to integrate the orml pallets in our project and when I add this in cargo.toml, I'm getting error. Can you please elaborate the solution more?" CreationDate="2023-09-30T09:10:54.527" UserId="555" />
  <row Id="10063" PostId="10088" Score="0" Text="The best help I can give you is to check out the associated Cumulus PRs for each of these PRs. They show concrete examples of what changes you would need to make in your node." CreationDate="2023-10-01T15:16:22.823" UserId="29" />
  <row Id="10064" PostId="389" Score="1" Text="The template is functioning smoothly under POS consensus. However, I think it incorporates several extra pallets. Could you identify the redundant pallets integrated into the template that can be removed without disrupting its functionality?" CreationDate="2023-10-01T16:18:12.573" UserId="554" />
  <row Id="10065" PostId="3621" Score="0" Text="The template is functioning smoothly under POS consensus. However, I think it incorporates several extra pallets. Could you identify the redundant pallets integrated into the template that can be removed without disrupting its functionality?" CreationDate="2023-10-01T16:19:24.257" UserId="554" />
  <row Id="10066" PostId="10092" Score="0" Text="Does this answer your question? [Store String in Subtrate by using Vec&lt;u8&gt;:](https://substrate.stackexchange.com/questions/1141/store-string-in-subtrate-by-using-vecu8)" CreationDate="2023-10-01T21:03:30.757" UserId="94" />
  <row Id="10067" PostId="10021" Score="0" Text="It was never necessary to call any of these internal functions manually. Daan mentions the advised way below." CreationDate="2023-10-01T21:05:12.883" UserId="94" />
  <row Id="10068" PostId="10093" Score="0" Text="Are you sure your benchmark tests are actually being executed? Are you aware of the fact that with testing your benchmarks, the mock runtime is used and when executing the benchmarks the real runtime is used?" CreationDate="2023-10-02T07:55:51.443" UserId="3317" />
  <row Id="10069" PostId="10093" Score="0" Text="@DaanvanderPlas yes I´m sure the test are being executed and also that tests use mock and benchmarks use the main runtime. Also the compiler force that mock and runtime have sensical traits configured in both sides." CreationDate="2023-10-02T08:23:11.873" UserId="3881" />
  <row Id="10070" PostId="10093" Score="0" Text="Can you share your code?" CreationDate="2023-10-02T08:24:07.473" UserId="3317" />
  <row Id="10071" PostId="10081" Score="0" Text="If you read the question again and take a look at the two screenshots i added you will see that it does exists, it actually has to exist since you have to see what method you are executing and what parameters you are sending, the issues here is that my colleagues wallet doesn't show the method with it's params at all which is very strange, this is only happening to one person, other people when the try to make a transaction it shows the method." CreationDate="2023-10-02T08:24:14.697" UserId="4577" />
  <row Id="10072" PostId="10093" Score="0" Text="@DaanvanderPlas can´t share the whole codebase. In which part are you interested?" CreationDate="2023-10-02T08:25:13.097" UserId="3881" />
  <row Id="10074" PostId="10093" Score="0" Text="Show your `get_owner` function" CreationDate="2023-10-02T08:58:37.200" UserId="3317" />
  <row Id="10075" PostId="10093" Score="0" Text="@DaanvanderPlas fn get_owner(asset_id: T::AssetId) -&gt; Result&lt;T::AccountId, DispatchError&gt; {&#xA;		let owner = Asset::&lt;T, I&gt;&#xA;			::get(asset_id)&#xA;			.map(|x| x.owner)&#xA;			.ok_or(Error::&lt;T, I&gt;::Unknown)?;&#xA;		Ok(owner)&#xA;	}" CreationDate="2023-10-02T09:03:28.333" UserId="3881" />
  <row Id="10077" PostId="10081" Score="0" Text="Any different with the versions you and yout colleague are using?" CreationDate="2023-10-02T09:40:12.837" UserId="2762" />
  <row Id="10078" PostId="10089" Score="1" Text="Please see [this](https://substrate.stackexchange.com/questions/10097/node-template-with-pos-babe-consensus-removal-of-unnecessary-extra-pallets) &amp; [this](https://substrate.stackexchange.com/questions/368/how-to-change-consensus-engine-from-poa-to-pos) related posts." CreationDate="2023-10-02T10:16:49.373" UserId="3449" />
  <row Id="10079" PostId="10093" Score="0" Text="That seems alright. Sorry but it is hard to debug like this" CreationDate="2023-10-02T11:23:19.790" UserId="3317" />
  <row Id="10080" PostId="10024" Score="0" Text="What concrete address type are you trying to convert into?" CreationDate="2023-10-02T13:16:48.583" UserId="3667" />
  <row Id="10081" PostId="2218" Score="0" Text="This method inserts the text in the the genesis storage, not the genesis Block. While this may be useful for many cases, it is not the same as eg &quot;Chancellor on Brink of Second Bailout For Banks&quot; which I believe is what the question is asking for." CreationDate="2023-10-02T13:52:02.707" UserId="372" />
  <row Id="10082" PostId="10092" Score="0" Text="Im running into more problems trying to use BoundedVec. The second awswer is talking about smart contracts. Is there a working example I can look at anywhere?" CreationDate="2023-10-02T18:01:43.153" UserId="417" />
  <row Id="10083" PostId="10024" Score="0" Text="`AccountId32` basically. We solved this by re-implementing `AccountId32` but with some extra trait implementations and public inner value." CreationDate="2023-10-02T19:26:22.403" UserId="74" />
  <row Id="10084" PostId="10054" Score="0" Text="i have the ```import &quot;@polkadot/api-augment&quot;``` in my app.tsx before importing anything and no types on the response..." CreationDate="2023-10-02T20:43:32.117" UserId="3070" />
  <row Id="10085" PostId="10054" Score="0" Text="at first we were following this example https://github.com/polkadot-js/docs/tree/master/docs/api/examples/promise/typegen" CreationDate="2023-10-02T20:44:11.703" UserId="3070" />
  <row Id="10086" PostId="10054" Score="1" Text="ok so it turns out we were stuck on an old version of the @polkadot/typegen and it was messing things up. it works for the generic substrate chain now. Next we gotta get our custom chain working. thank you." CreationDate="2023-10-02T21:16:56.640" UserId="3070" />
  <row Id="10087" PostId="10052" Score="0" Text="ok so it turns out we were stuck on an old version of the @polkadot/typegen and it was messing things up We updated to current version and its working for base generic substrate chain now. Next we gotta get our custom chain working." CreationDate="2023-10-02T21:17:35.167" UserId="3070" />
  <row Id="10089" PostId="1830" Score="0" Text="Is it a good idea to use instant seal for production? (for example, if I expect there are infrequent transactions in my custom solo chain)" CreationDate="2023-10-03T03:50:23.487" UserId="4623" />
  <row Id="10090" PostId="10104" Score="0" Text="I love the detailed question. I looks like you have already answered it yourself, I guess the question here is 'how you can make the accounts on your chain be able to hold more than 16 assets?'&#xA;Would creating these assets in a local pallet-assets solve the issue?" CreationDate="2023-10-03T05:03:43.810" UserId="3994" />
  <row Id="10091" PostId="10109" Score="0" Text="Check this tutorial https://docs.substrate.io/tutorials/build-a-blockchain/monitor-node-metrics/" CreationDate="2023-10-03T09:28:36.060" UserId="2762" />
  <row Id="10092" PostId="10106" Score="0" Text="Can you share a link?" CreationDate="2023-10-03T09:51:22.093" UserId="3317" />
  <row Id="10093" PostId="10106" Score="0" Text="Sure. Edited to include links" CreationDate="2023-10-03T12:52:57.290" UserId="4545" />
  <row Id="10094" PostId="10105" Score="0" Text="Related to my issue in Tuxedo: https://github.com/Off-Narrative-Labs/Tuxedo/issues/107" CreationDate="2023-10-03T14:44:33.117" UserId="372" />
  <row Id="10095" PostId="10118" Score="0" Text="Try importing it like this: use sp_runtime::bounded_vec;" CreationDate="2023-10-04T07:28:39.733" UserId="2762" />
  <row Id="10097" PostId="10118" Score="0" Text="I have tried using it but again triggers another error&#xA;&#xA;`error[E0432]: unresolved import `sp_runtime``&#xA; `--&gt; pallets/template/src/benchmarking.rs:9:5`&#xA;  `|`&#xA;`9 | use sp_runtime::bounded_vec;`&#xA;  `|     ^^^^^^^^^^ help: a similar path exists: `frame_support::sp_runtime``&#xA;`" CreationDate="2023-10-04T10:18:17.093" UserId="2985" />
  <row Id="10099" PostId="10124" Score="0" Text="You can use [`#[scale_info(skip_type_params(T))]`](https://substrate.stackexchange.com/questions/1423/what-is-the-role-of-scale-infoskip-type-paramst)" CreationDate="2023-10-04T11:39:57.497" UserId="3317" />
  <row Id="10101" PostId="10108" Score="0" Text="Thank you for the answer! As far as I see right now, there are only three ways to change the `user_defined` getter: 1 - [proxy forwarding](https://use.ink/basics/upgradeable-contracts#proxy-forwarding), 2 - [set_code_hash()](https://use.ink/basics/upgradeable-contracts#replacing-contract-code-with-set_code_hash), and 3 - a cross-contract call to an upgradable contract. Hacking around the `CallFilter` looks promising to restrict the first and the second. But a non-upgradable contract still can do cross-contract call an upgradable one. Do you think a custom `ChainExtension` may help with it?" CreationDate="2023-10-04T12:34:08.917" UserId="3721" />
  <row Id="10102" PostId="10124" Score="0" Text="@DaanvanderPlas still it show me this error : `#[pallet::storage]    &#xA;      |               ^^^^^^^ the trait `parity_scale_codec::Encode` is not implemented for `LabelInfo&lt;T&gt;`" CreationDate="2023-10-04T12:36:46.513" UserId="2722" />
  <row Id="10103" PostId="10118" Score="0" Text="@AlexBean can you pls help me out" CreationDate="2023-10-04T13:27:47.577" UserId="2985" />
  <row Id="10104" PostId="10104" Score="0" Text="Thanks! it seems that this is the case yes.&#xA;What do you mean by a &quot;local&quot; pallet-assets? If you mean a new instance then I don't think so since the consumer count is stored in the frame-system pallet.&#xA;If I understood correctly, pallet-assets max out the consumer limit for that account would have implications on the functioning of other pallets :(" CreationDate="2023-10-04T15:51:35.137" UserId="2884" />
  <row Id="10105" PostId="10127" Score="0" Text="That makes sense. I was thinking it might be an interesting way to have &quot;known&quot; authorities have an outsized vote on finality to protect against a 51% attack. As it stands though, you can't override the SessionHandler in the Grandpa frame or set the weights from outside because everything is crate private. I wonder if this is unfinished/forgotten feature/or what." CreationDate="2023-10-04T19:16:48.017" UserId="4545" />
  <row Id="10106" PostId="8285" Score="0" Text="hi can i know how to use bounded_vec macro in benchmarks &#xA;i have posted my question over here&#xA;(https://substrate.stackexchange.com/questions/10118/how-to-use-bounded-vec-macro-in-benchmarking-rs)" CreationDate="2023-10-05T05:38:54.903" UserId="2985" />
  <row Id="10107" PostId="10134" Score="0" Text="What is your question?" CreationDate="2023-10-05T11:13:32.843" UserId="3317" />
  <row Id="10108" PostId="10134" Score="0" Text="Oops, I've updated to be more clear about my question." CreationDate="2023-10-05T11:33:04.030" UserId="702" />
  <row Id="10109" PostId="10136" Score="0" Text="it show me this error &#xA;&#xA;the trait bound `&amp;(&lt;T as frame_system::Config&gt;::AccountId, LabelInfo&lt;&lt;T as frame_system::Config&gt;::AccountId, &lt;T as frame_system::Config&gt;::Hash&gt;): EncodeLike&lt;LabelInfo&lt;&lt;T as frame_system::Config&gt;::AccountId, &lt;T as frame_system::Config&gt;::Hash&gt;&gt;` is not satisfied&#xA;the following other types implement trait `EncodeLike&lt;T&gt;`:&#xA;  &lt;() as EncodeLike&gt;" CreationDate="2023-10-05T11:35:59.937" UserId="2722" />
  <row Id="10110" PostId="10134" Score="0" Text="Does this answer your question:https://substrate.stackexchange.com/questions/9712/xcm-remote-transactions-call" CreationDate="2023-10-05T12:59:37.313" UserId="3317" />
  <row Id="10111" PostId="10136" Score="0" Text="Does this answer your question: https://substrate.stackexchange.com/questions/8431/the-trait-bound-vecu8-encodelikeu32-is-not-satisfied?" CreationDate="2023-10-05T13:03:24.147" UserId="3317" />
  <row Id="10112" PostId="10091" Score="0" Text="Related to this issue here: https://github.com/polkadot-js/tools/issues/329" CreationDate="2023-10-05T18:11:56.243" UserId="408" />
  <row Id="10113" PostId="10141" Score="0" Text="Thanks for this info ! And do you know if it's the default strategy if no --execution switch is passed ?" CreationDate="2023-10-06T08:17:19.490" UserId="4755" />
  <row Id="10114" PostId="9991" Score="0" Text="I am experiencing the same when mixing dependencies from the archived substrate repo and polkadot-sdk, you fix worked! Curious if you have found a more long lasting solution?" CreationDate="2023-10-06T14:31:20.087" UserId="2961" />
  <row Id="10115" PostId="10123" Score="0" Text="Could you explain why do you want this?" CreationDate="2023-10-07T02:45:15.857" UserId="251" />
  <row Id="10116" PostId="9036" Score="0" Text="This isn't a clear answer to this question. Do you mean insert the keys on a relaychain validator or parachain collator? Since nobody except those running the relaychain can update the relaychain validators it would be impossible to solve a production problem this way. Also Alice and Bob local (rococo) relaychain should not require this." CreationDate="2023-10-07T09:39:21.440" UserId="87" />
  <row Id="10117" PostId="10147" Score="0" Text="It seems like your node is still busy syncing with rococo" CreationDate="2023-10-07T15:44:34.463" UserId="3317" />
  <row Id="10118" PostId="10155" Score="0" Text="Thanks! I'm still not sure what is the suggested way of doing it. So, as I understand I need to get rid of the prefix first manually. Is it always of the same length? If not, how do I know the length?&#xA;&#xA;Then suppose I got rid of the prefix. How do get the typed value? Do I need to define the type by myself, implement/derive `Decode` and the run `decode` on the Vec&lt;u8&gt;?&#xA;Or is there a better way for the second step? I would like a method that works when the key type is not necessarily  `AccountId`, but any type `T`." CreationDate="2023-10-07T19:31:34.083" UserId="4759" />
  <row Id="10119" PostId="9887" Score="0" Text="Yep, since the other types actually need to be clonable." CreationDate="2023-10-08T10:15:41.917" UserId="94" />
  <row Id="10121" PostId="10159" Score="0" Text="The original post is completely a mess." CreationDate="2023-10-08T10:43:47.470" UserId="251" />
  <row Id="10122" PostId="10147" Score="0" Text="how long it's gonna take to sync ? is this depends on machine processing power or the network speed ? @DaanvanderPlas" CreationDate="2023-10-09T02:12:55.647" UserId="4758" />
  <row Id="10123" PostId="10155" Score="0" Text="Currently, you'd have to know which type of hasher is used and, if it's a concat one, chop the first bytes off and such. Potentially we could do something more helpful in Subxt here, so I'll raise an issue for us to think about it." CreationDate="2023-10-09T11:13:08.303" UserId="474" />
  <row Id="10124" PostId="10109" Score="0" Text="I refered the same documentation but got error" CreationDate="2023-10-09T13:33:25.103" UserId="4443" />
  <row Id="10125" PostId="10123" Score="0" Text="It would be to have a pallet that requires `AccountData` to implement certain trait (like a method allowing to modify the account data) without depending on a particular implementation of AccountData. This would allow to swap between multiple custom AccountData types more easily depending on runtime." CreationDate="2023-10-09T15:28:41.527" UserId="3123" />
  <row Id="10127" PostId="10008" Score="0" Text="Its not working" CreationDate="2023-10-09T16:46:01.687" UserId="377" />
  <row Id="10128" PostId="10090" Score="0" Text="hey @Oliver Tale-Yazdi&#xA;Is there any other way, without removing the `pallet_transaction_payment` in `SingedExtra`&#xA;&#xA; I was looking for a place where I could set the gas fees to zero&#xA;&#xA;I have also gone through this [Shawn's answer](https://substrate.stackexchange.com/a/3589/2985)" CreationDate="2023-10-09T16:48:24.193" UserId="2985" />
  <row Id="10129" PostId="10071" Score="0" Text="hey @Shubham Gupta ,&#xA;&#xA;can you please explain to us a little bit more about how we can achieve on adding a custom account as initial authorities." CreationDate="2023-10-09T16:51:35.630" UserId="2985" />
  <row Id="10130" PostId="5509" Score="0" Text="how we can do it for solochain?" CreationDate="2023-10-10T04:57:48.937" UserId="377" />
  <row Id="10132" PostId="10176" Score="0" Text="thank you for the reply, couldn't ask really specific question as it was really targeted to know if the overall substrate frame was supporting it. You implemented that with darwinia I guess ?" CreationDate="2023-10-10T08:03:35.343" UserId="464" />
  <row Id="10133" PostId="10153" Score="0" Text="Did you use nominated PoS consensus?" CreationDate="2023-10-10T09:36:17.107" UserId="4623" />
  <row Id="10135" PostId="9691" Score="0" Text="I also got the same error. But cannot understand what you explained here. could you please explain a bit more about how to solve this issue?" CreationDate="2023-10-10T09:49:15.713" UserId="4776" />
  <row Id="10136" PostId="10157" Score="0" Text="Seems you removed the h160 unified account for it, any reason ? or you plan to apply it ?" CreationDate="2023-10-10T22:22:32.433" UserId="464" />
  <row Id="10137" PostId="10181" Score="0" Text="It was useful however, Can You please elaborate &quot;Minting Can be done only by root&quot;?" CreationDate="2023-10-11T02:45:30.440" UserId="4731" />
  <row Id="10138" PostId="4367" Score="0" Text="I am facing the same problem, where i was running two nodes in same system but, nodes not producing and finalizing the blocks&#xA;how did you solve @TonyMa" CreationDate="2023-10-11T13:01:22.127" UserId="2985" />
  <row Id="10139" PostId="9201" Score="0" Text="@Ganesh11, have you any resolution for this? &#xA;&#xA;even if I run my two nodes locally, nodes haven't producing and finalizing new blocks" CreationDate="2023-10-11T13:14:46.787" UserId="2985" />
  <row Id="10140" PostId="3539" Score="0" Text="i have tried ur approach, but still i can see only peer logs but, not the new blocks producing and finalizing,&#xA;&#xA;can you please let me know, if u have any resolution for this?" CreationDate="2023-10-11T14:03:04.793" UserId="2985" />
  <row Id="10141" PostId="10189" Score="0" Text="Can you try again with the `--force-authoring` flag please?" CreationDate="2023-10-11T15:28:37.817" UserId="94" />
  <row Id="10142" PostId="10189" Score="0" Text="hey @OliverTale-Yazdi ,&#xA;&#xA;I was getting this error after restarting the node using --force-authoring&#xA;&#xA;`2023-10-11 22:35:02 Running JSON-RPC server: addr=0.0.0.0:9933, allowed origins=[&quot;*&quot;]    &#xA;2023-10-11 22:35:02 GRANDPA voter error: could not sign outgoing message: Failed to sign GRANDPA vote for round 1 targetting 0x4271ca3ade610e81e810075fac87a836306c97534f4517acd4688f8c70fecd23    &#xA;2023-10-11 22:35:02 Essential task ``grandpa-voter` failed. Shutting down service.    &#xA;Error: Service(Other(&quot;Essential task failed.&quot;))``" CreationDate="2023-10-11T17:06:14.953" UserId="2985" />
  <row Id="10143" PostId="9991" Score="0" Text="I think there is a fix you can use from their new monorepo, but I don't know which one exactly." CreationDate="2023-10-11T18:00:09.427" UserId="4678" />
  <row Id="10144" PostId="381" Score="0" Text="Hey @Andre, I was also facing the same error,&#xA;Even i have correct values to keystore path&#xA;https://substrate.stackexchange.com/questions/10189/cant-produce-new-blocks-with-custom-chainspec-file" CreationDate="2023-10-12T03:55:30.727" UserId="2985" />
  <row Id="10145" PostId="9201" Score="0" Text="@Mojo what the issue are you facing?" CreationDate="2023-10-12T11:28:21.053" UserId="2281" />
  <row Id="10146" PostId="10187" Score="0" Text="https://substrate.stackexchange.com/questions/3005/what-are-the-options-for-bitcoin-integration-on-polkadot-with-substrate" CreationDate="2023-10-12T15:15:54.337" UserId="251" />
  <row Id="10148" PostId="9201" Score="0" Text="hey @AmitKumarYadav&#xA;I can run the two nodes locally, but when I am trying to run nodes in two different systems or instances it does not working&#xA;what type of procedure do we need to follow for this" CreationDate="2023-10-13T05:59:54.733" UserId="2985" />
  <row Id="10149" PostId="10155" Score="0" Text="Is there a specific reason the keys are not deserialized by default? Are they different than values in terms of type information?" CreationDate="2023-10-13T14:36:22.407" UserId="4759" />
  <row Id="10150" PostId="10204" Score="0" Text="I already added a contract pallet...my question was more of a How do I mint a new native token from the smart contract level?" CreationDate="2023-10-16T02:11:27.917" UserId="4623" />
  <row Id="10151" PostId="10209" Score="0" Text="You're nominating only 2 addresses with the minimum amount. Could you please provide more information about your nominations and how you chose them? Have you checked to ensure they're not oversubscribed and are being selected to be &quot;active&quot; in validating eras?" CreationDate="2023-10-16T05:08:57.053" UserId="3991" />
  <row Id="10152" PostId="10204" Score="0" Text="You need to write the smart contract and then you can deploy the contract by this pallet.&#xA;to build the contract you can follow this reference: https://docs.substrate.io/tutorials/smart-contracts/build-a-token-contract/" CreationDate="2023-10-16T05:40:41.833" UserId="377" />
  <row Id="10153" PostId="10204" Score="0" Text="I do not want to mint a custom token from the smart contract, I want to mint native coin/token from the smart contract." CreationDate="2023-10-16T06:06:49.587" UserId="4623" />
  <row Id="10154" PostId="10209" Score="0" Text="The names of the two nominees are as follows: IOSG VENTURES (1RG5T6zGY4XovW75mTgpH6Bx7Y6uwwMmPToMCJSdMwdm4EW) and IOSG VENTURES/02 (14zybcYPYQEEmmZUnvCpTnAE6Tm2uRKWG4xPmDfHZn9Yjvrq). And I already checked, they are valid." CreationDate="2023-10-16T07:20:25.700" UserId="4793" />
  <row Id="10155" PostId="10155" Score="0" Text="Only some keys contain a value (the `_concat` ones), some entries have multiple keys that would each need decoding (if they can be), and &quot;dynamic&quot; queries don't have key information (but we could probably return Value's here). So I think it's doable, but it just hasn't been done yet!" CreationDate="2023-10-16T09:48:38.050" UserId="474" />
  <row Id="10156" PostId="10155" Score="0" Text="An issue in Subxt for this feature is here: https://github.com/paritytech/subxt/issues/1201" CreationDate="2023-10-16T10:08:19.197" UserId="474" />
  <row Id="10157" PostId="10212" Score="0" Text="Thank you @adrian. I am trying this now..." CreationDate="2023-10-16T10:58:48.353" UserId="522" />
  <row Id="10158" PostId="10212" Score="0" Text="Also, on a related note, I was wondering if there is any way to get my node to ask for and download a particular block from its peers. This would save me the 100gb of disk space :)" CreationDate="2023-10-16T11:02:01.410" UserId="522" />
  <row Id="10159" PostId="10216" Score="0" Text="I hope to see the day an alternative to AWS Lamda function service which is not owned by any centralized institution" CreationDate="2023-10-16T11:41:35.793" UserId="3846" />
  <row Id="10160" PostId="10212" Score="0" Text="If that still doesn't work, do a `--sync full` at least until block 5920792 then it should be fine." CreationDate="2023-10-16T12:19:11.797" UserId="382" />
  <row Id="10161" PostId="10212" Score="1" Text="Issue is still present even without `--blocks-pruning` - only workaround right now is using `--sync full`.&#xA;Opened https://github.com/paritytech/polkadot-sdk/issues/1885 to track the fix for `--sync fast(-unsafe)`." CreationDate="2023-10-16T12:57:49.463" UserId="382" />
  <row Id="10162" PostId="10155" Score="0" Text="Thanks @jsdw -- that's very informative! I will follow the issue then." CreationDate="2023-10-16T14:18:08.367" UserId="4759" />
  <row Id="10163" PostId="10128" Score="0" Text="Are you expecting genesis block building to still use the native runtime? I want to call a runtime api so that the runtime can generate the genesis extrinsics. But I don't yet have access to a client when building the genesis block.  Or should I be using the CodeExecutor::call directly?" CreationDate="2023-10-16T18:07:38.927" UserId="372" />
  <row Id="10164" PostId="10212" Score="0" Text="is there anyway I can get a Rococo snapshot? The full sync is really slow! It has been 6 hrs and only ~400k blocks synced...&#xA;Can you think of any other way to get beefy justifications?" CreationDate="2023-10-16T19:57:22.850" UserId="522" />
  <row Id="10165" PostId="10204" Score="0" Text="Ok for native token you need to do it with the help of balances or assets pallet" CreationDate="2023-10-17T04:38:41.577" UserId="377" />
  <row Id="10166" PostId="10204" Score="0" Text="But is it even possible from the smart contract side?" CreationDate="2023-10-17T04:42:58.160" UserId="4623" />
  <row Id="10167" PostId="10204" Score="0" Text="Not see such mechanism for now" CreationDate="2023-10-17T04:44:07.107" UserId="377" />
  <row Id="10168" PostId="8898" Score="0" Text="any updates? I got the same error." CreationDate="2023-10-17T08:46:02.370" UserId="4793" />
  <row Id="10169" PostId="10212" Score="0" Text="You can build `polkadot` binary from latest master which contains fix (https://github.com/paritytech/polkadot-sdk/pull/1888) - then you can run `--sync fast-unsafe`" CreationDate="2023-10-17T08:52:49.510" UserId="382" />
  <row Id="10170" PostId="9201" Score="0" Text="@Mojo you need to check the command? can you share the command so that i can check?" CreationDate="2023-10-17T09:13:09.480" UserId="2281" />
  <row Id="10171" PostId="10216" Score="1" Text="That would be the day when you know web3 has succeeded." CreationDate="2023-10-17T09:21:49.860" UserId="29" />
  <row Id="10173" PostId="10212" Score="0" Text="Thank you!! @adrian will `--blocks-pruning 100` work?" CreationDate="2023-10-17T11:10:34.910" UserId="522" />
  <row Id="10174" PostId="8492" Score="0" Text="I'm also facing the same error while executing a node, rest of 2 nodes are working fine. Seeking for Solution of this." CreationDate="2023-10-17T11:52:49.993" UserId="3752" />
  <row Id="10175" PostId="10230" Score="0" Text="It seems like you're asking to read events/storage from non-finalized blocks which is already possible with `polkadot-js` RPC subscriptions `subscribeNewHeads`." CreationDate="2023-10-18T02:11:36.180" UserId="139" />
  <row Id="10176" PostId="10220" Score="0" Text="I've tried three times, and I find it hard to believe that all the nominators I've chosen are invalid. Most recently, I selected Coinbase Cloud." CreationDate="2023-10-18T03:16:50.497" UserId="4793" />
  <row Id="10177" PostId="10230" Score="0" Text="I aim to formulate a sub consensus mechanism where collators within a parachain are required to reach an agreement regarding the finalization of blocks, without actually finalizing a block." CreationDate="2023-10-18T05:47:50.920" UserId="3414" />
  <row Id="10178" PostId="10227" Score="0" Text="Does this imply that only a single collator, chosen from among all collators, is responsible for creating a block, and subsequently, only one parachain block generated by that collator is transmitted to the relay validators, establishing a direct connection between the relay chain validators and that specific collator?" CreationDate="2023-10-18T06:12:30.250" UserId="4068" />
  <row Id="10179" PostId="10241" Score="0" Text="Does this answer your question? [calling extrinsics from ink!](https://substrate.stackexchange.com/questions/7158/calling-extrinsics-from-ink)" CreationDate="2023-10-18T09:46:56.537" UserId="3317" />
  <row Id="10180" PostId="10185" Score="0" Text="Your questioning why Smoldot takes so much memory? What is your question?" CreationDate="2023-10-18T13:39:07.427" UserId="3317" />
  <row Id="10181" PostId="10249" Score="0" Text="Thank you for confirmation! Faucet works perfectly for me" CreationDate="2023-10-18T14:53:51.133" UserId="4806" />
  <row Id="10182" PostId="10230" Score="0" Text="Ah I see. So you're aiming to rely on collator based finalization (just for consumption on UI), rather than wait 12 seconds for the relay chain mechanism? Strictly speaking it does undermine the consensus guarantees provided by the relay chain and it does look like the dApp's source of truth would be the collator blocks and not the relay-chain finalized block in which case, you must have a conflict resolution mechanism. Why then is there a need for the parachain? It seems what you're describing is a traditional blockchain network where the network's validators are the source of truth." CreationDate="2023-10-18T14:59:46.100" UserId="139" />
  <row Id="10183" PostId="10227" Score="0" Text="Each slot belongs to only one collator." CreationDate="2023-10-18T16:45:12.447" UserId="251" />
  <row Id="10184" PostId="10254" Score="0" Text="what rust version are you using?" CreationDate="2023-10-19T04:39:53.750" UserId="354" />
  <row Id="10185" PostId="10230" Score="0" Text="Actually I am working on creating a mechanism that allows decentralized applications (dApps) deployed on parachains to access quasi-finalized blocks that have been validated by collators but have not yet been fully finalized. This way, dApps won't need to wait for extended periods and can access these quasi-finalized blocks. This approach differs from the traditional blockchain setup where blocks are only considered finalized once they are confirmed by the relay chain. We are adding an additional mechanism to enable dApps to view and use quasi-finalized blocks before they are fully finalized." CreationDate="2023-10-19T04:51:44.903" UserId="3414" />
  <row Id="10186" PostId="10128" Score="0" Text="Then you need to use the executor directly. The native runtime is not in any way related to this." CreationDate="2023-10-19T08:11:27.503" UserId="73" />
  <row Id="10187" PostId="10212" Score="1" Text="Run without `--blocks-pruning 100` initially, once it is synced and BEEFY initialized, you can restart node with `--blocks-pruning 100` (and continuing from where it left off)." CreationDate="2023-10-19T08:15:57.433" UserId="382" />
  <row Id="10188" PostId="10257" Score="0" Text="Thank you addressing this issue!!" CreationDate="2023-10-19T08:46:21.177" UserId="522" />
  <row Id="10189" PostId="10246" Score="0" Text="You mean letting any user on an external chain have a sovereign account in Polkadot relay?" CreationDate="2023-10-19T09:23:19.990" UserId="3933" />
  <row Id="10190" PostId="10257" Score="0" Text="I tried the lastest polkadot beta release and the issue persists.&#xA;`&quot;@polkadot/api&quot;: &quot;^8.14.2-12&quot;`&#xA;`DRR: createType(BeefySignedCommitment):: decodeU8a: failed at 0x01046d6880a430184b7172679dd2cb91… on commitment (index 0/2): {&quot;payload&quot;:&quot;BeefyPayload&quot;,&quot;blockNumber&quot;:&quot;BlockNumber&quot;,&quot;validatorSetId&quot;:&quot;ValidatorSetId&quot;}:: decodeU8a: failed at 0x01046d6880a430184b7172679dd2cb91… on payload (index 0/3): Vec&lt;(BeefyPayloadId,Bytes)&gt;:: decodeU8a: failed at 0xbe1473009332000000000000387edaf5… ...`" CreationDate="2023-10-19T10:22:56.717" UserId="522" />
  <row Id="10191" PostId="9914" Score="0" Text="In order for this response to be useful to others, please provide the steps you took to update the metadata @Mark. " CreationDate="2023-10-19T14:10:35.497" UserId="172" />
  <row Id="10194" PostId="10230" Score="0" Text="Sorry but that's not too different from what I wrote. Also a parachain is not considered a traditional blockchain, that place is reserved for nodes acting as executors plus validators. I am still failing to grasp what is the real question you're asking here." CreationDate="2023-10-19T18:27:40.677" UserId="139" />
  <row Id="10195" PostId="10265" Score="1" Text="I'm afraid this is not a complete answer as it misses migrations completely which is more crucial if OP is planning to upgrade which will include updating frame dependencies." CreationDate="2023-10-19T18:30:41.390" UserId="139" />
  <row Id="10196" PostId="10261" Score="0" Text="Solochain already have NPOS consensus, just clone https://github.com/paritytech/polkadot-sdk/tree/master/substrate, and run this why you want the consensus of moonbeam." CreationDate="2023-10-20T04:58:19.800" UserId="354" />
  <row Id="10197" PostId="10259" Score="0" Text="Can you explain a bit more what you are trying to do?" CreationDate="2023-10-20T05:01:14.420" UserId="354" />
  <row Id="10198" PostId="10261" Score="0" Text="we need to use DPOS instead of NPOS. Moonbeams pallet giving DPOS feature" CreationDate="2023-10-20T07:09:05.973" UserId="554" />
  <row Id="10199" PostId="10268" Score="0" Text="What polkadot version that you are working on ? I think you are working on with newer version (polkadot-v1.0.0 or newer). `type BlockNumber` is deprecated in frame_system::Config.&#xA;&#xA;https://paritytech.github.io/polkadot-sdk/master/sp_runtime/traits/trait.BlockNumberProvider.html#associatedtype.BlockNumber" CreationDate="2023-10-20T07:36:01.550" UserId="445" />
  <row Id="10201" PostId="10261" Score="0" Text="If you want DPOS you can cosmos instead of substrate it has DPOS as its consensus, I didn't get any point in changing the current consensus of substrate" CreationDate="2023-10-20T09:08:17.037" UserId="354" />
  <row Id="10202" PostId="10246" Score="0" Text="@FranciscoAguirre well I sure, I'm not sure what is the official name but in the past we've said &quot;Computed Origins&quot; or &quot;Remote Origins&quot;&#xA;&#xA;So that if there is a message received on Polkadot with &quot;DescendOrigin&quot;, Polkadot can compute an account to dispatch from based on:&#xA;&#xA;blake2_256(&quot;ChildChain&quot; | paraId | &quot;AccountKey20&quot; | address)&#xA;&#xA;This is from Moonbeam because of &quot;AccountKey20&quot;." CreationDate="2023-10-20T10:31:27.227" UserId="4805" />
  <row Id="10203" PostId="10266" Score="0" Text="The scope of these unit tests should be strictly limited to the pallet direct dependencies. All tests linked to indirect dependencies should go to integration tests." CreationDate="2023-10-20T12:03:52.060" UserId="3123" />
  <row Id="10204" PostId="10259" Score="0" Text="to create a Runtime to be used inside an application without block authoring and consensus only runtime and state transition with database, without RPC and network activity. I pass extrinsics in memory to Runtime." CreationDate="2023-10-20T14:15:00.040" UserId="697" />
  <row Id="10205" PostId="10259" Score="0" Text="You already compile the runtime separately into a wasm target. Why not use that in your application? I have doubts if it will succeed without a host to call into the runtime so you maybe looking at implementing some kind of runtime interface similar to the outer node. Not sure how complex this would be though." CreationDate="2023-10-21T09:45:10.213" UserId="139" />
  <row Id="10206" PostId="10261" Score="0" Text="Could you elaborate on what do you mean for `parachain-staking pallet` ? Do you refer to the FRAME staking pallet? (https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/staking)" CreationDate="2023-10-23T06:55:50.700" UserId="3285" />
  <row Id="10207" PostId="10293" Score="0" Text="What is the problem you're facing?" CreationDate="2023-10-23T06:56:56.553" UserId="29" />
  <row Id="10208" PostId="10089" Score="0" Text="Could you elaborate on what you are looking for? Aura consensus uses a round-robin scheduling to select which validators should perform some work. In order to be used correctly, it assumes that the validators that will be scheduled have been previously selected from a larger set of validators using, for example, NPoS/DPoS. I'm not sure that you'd like to have a NPoS at the consensus layer where Aura operates." CreationDate="2023-10-23T07:09:51.787" UserId="3285" />
  <row Id="10209" PostId="10293" Score="0" Text="I used the substrated node template, then add some pallets to switch from PoA to PoS. I am then trying to follow this repo: https://github.com/paritytech/substrate-contracts-node/blob/main/runtime/src/lib.rs to add contract pallet..but keep getting errors." CreationDate="2023-10-23T08:11:11.060" UserId="4623" />
  <row Id="10210" PostId="10299" Score="0" Text="Can you share the whole Cargo.toml? It looks there is some error with the imports" CreationDate="2023-10-23T13:53:51.197" UserId="2762" />
  <row Id="10211" PostId="10289" Score="0" Text="@bkchr commented [on github](https://github.com/Off-Narrative-Labs/Tuxedo/pull/130#issuecomment-1774929876) to add `sp_runtime::runtime_logger::RuntimeLogger::init()` which I've tried. It compiles, but still validators print no logs." CreationDate="2023-10-23T14:21:25.387" UserId="372" />
  <row Id="10212" PostId="10289" Score="0" Text="Temporary workaround: put panics like `panic!(&quot;executing else branch&quot;)`, and the validator will print them. But it also immediately stops executing, so you have to re-compile and re-launch the chains to get the next debugging step." CreationDate="2023-10-23T14:23:39.733" UserId="372" />
  <row Id="10213" PostId="10254" Score="0" Text="why v0.23.0? last is v0.33.0" CreationDate="2023-10-23T14:39:08.560" UserId="2762" />
  <row Id="10214" PostId="10255" Score="0" Text="What is are the underlying XCM program I would need to construct without using `xtokens`? I need to know the exact list of XCM instructions which is executed to accomplish this transfer of wrapped DOT to Polkadot." CreationDate="2023-10-23T19:07:30.767" UserId="3850" />
  <row Id="10215" PostId="10295" Score="0" Text="Thanks! I the idea here was so that Moonbeam could offer DOT liquid staking solution without relying on its sovereign account and &quot;utility.asDerivative&quot; as I know in the past there were some concerns and Gavin wanted to limited that specific call but we pushed back as it was the core route to provide a decentralized/trustless way to do remote executions on the relay&#xA;&#xA;Thanks again" CreationDate="2023-10-24T09:12:05.133" UserId="4805" />
  <row Id="10216" PostId="10255" Score="2" Text="Please refer to `orml-xtoken` source code here, which is the case for transferring to the reserve chain. It applies to DOT transfer to Polkadot: https://github.com/open-web3-stack/open-runtime-module-library/blob/b3694e631df7f1ca16b1973122937753fcdee9d4/xtokens/src/lib.rs#L696-L714" CreationDate="2023-10-25T02:00:10.257" UserId="4810" />
  <row Id="10217" PostId="10292" Score="0" Text="As of now I don't think there is any way via `XCM` to interact between contracts on different parachains" CreationDate="2023-10-25T04:53:00.233" UserId="354" />
  <row Id="10218" PostId="10243" Score="0" Text="First of all, I wanted to say thank you for your initial response – it's much appreciated. Being a newcomer to the Polkadot network, I'm genuinely eager to learn more. Could you kindly provide a thorough explanation of each of these steps and their role in determining the 'best block'? If possible, I'd also love to have access to any code examples or be directed to official Polkadot documentation to help me grasp the process better. Your guidance and assistance mean a lot to me, and I want to express my gratitude in advance for your response." CreationDate="2023-10-25T05:09:14.300" UserId="4068" />
  <row Id="10219" PostId="10287" Score="0" Text="After making above changes im getting more errors" CreationDate="2023-10-25T06:04:23.317" UserId="4443" />
  <row Id="10220" PostId="10287" Score="0" Text="May you send me your github link ?" CreationDate="2023-10-25T06:45:01.823" UserId="445" />
  <row Id="10221" PostId="10287" Score="0" Text="This is the node template im cloning ......git clone https://github.com/substrate-developer-hub/substrate-node-template" CreationDate="2023-10-25T06:49:27.900" UserId="4443" />
  <row Id="10222" PostId="10302" Score="0" Text="This doesn't answer the question. It's compiled into the node. Which I stated is already clear - you can use the `state_getMetadata` RPC. The question is not if I have to compile the node, but if I have to *start* the node." CreationDate="2023-10-25T09:30:14.807" UserId="480" />
  <row Id="10223" PostId="10320" Score="0" Text="thanks for the prompt response! &#xA;I'm editing the question to show the errors i got" CreationDate="2023-10-25T09:56:44.560" UserId="3112" />
  <row Id="10224" PostId="10323" Score="0" Text="I know it is possible for use oracle to control the automation transaction (ex: Chainlink Automation in evm-compatible ). Do we have any oracle providers support ink! smart contract ?" CreationDate="2023-10-25T10:10:17.110" UserId="445" />
  <row Id="10225" PostId="10287" Score="0" Text="But I dont see any onchain storage configuration related to the `StorageMap` you captured in the screenshot" CreationDate="2023-10-25T10:13:13.790" UserId="445" />
  <row Id="10226" PostId="10287" Score="0" Text="Then how can i fix this issue are there any other methods" CreationDate="2023-10-25T10:20:01.227" UserId="4443" />
  <row Id="10227" PostId="10326" Score="0" Text="thanks! I would have not guessed this. I did not associate preimageFor with being a map-type storage entry... thanks!" CreationDate="2023-10-25T13:09:22.420" UserId="4835" />
  <row Id="10228" PostId="10324" Score="0" Text="after switching node version, try deleting node_modules directory and yarn.lock file, and rerun the `yarn` command. (and also try `npm install`, maybe the error is more clear)" CreationDate="2023-10-25T14:02:26.657" UserId="1876" />
  <row Id="10230" PostId="10323" Score="0" Text="Potentially [Kylin](https://www.kylin.network/) as they have contracts written in ink! and they are developing an oracle service. Seems they are live on Rococo and Kusama" CreationDate="2023-10-25T15:00:36.870" UserId="380" />
  <row Id="10231" PostId="10308" Score="0" Text="Values from polkadot:&#xA;leasePeriod = 1,209,600&#xA;leaseOffset = 921,600&#xA;slots &gt; leases (2034): `[&#xA;  [&#xA;    13UVJyLnbVp77Z2t6qgGcKzXE67EGerxzucL4BjCph173ncH&#xA;    24,438,735,072,384,654&#xA;  ]&#xA;]`&#xA;&#xA;Number of Lease Periods = Length of List - 1 = 1 - 1 = 0&#xA;Total Lease Time (in blocks) = Current Lease Time (in blocks) + (Number of Lease Periods * leasePeriod) + (Number of Lease Periods * leaseOffset)&#xA;&#xA;What am I missing here?" CreationDate="2023-10-25T15:03:55.110" UserId="560" />
  <row Id="10232" PostId="10322" Score="0" Text="This is installing a two years old version?" CreationDate="2023-10-25T18:21:24.917" UserId="94" />
  <row Id="10233" PostId="2806" Score="0" Text="It is possible to install from cargo now: `cargo install subkey`." CreationDate="2023-10-25T18:21:47.250" UserId="94" />
  <row Id="10234" PostId="10181" Score="0" Text="You can see [here](https://github.com/paritytech/substrate/blob/033d4e86cc7eff0066cd376b9375f815761d653c/frame/balances/src/lib.rs#L762) that the call is only available to root. This means that the chain either needs the `Sudo` pallet, or the call needs to go through a governance proposal and be voted on." CreationDate="2023-10-25T18:23:34.023" UserId="94" />
  <row Id="10235" PostId="10090" Score="0" Text="Yea I guess setting the convert function to zero also works. Then there is a pallet in the runtime without any use, so i would remove it." CreationDate="2023-10-25T18:24:19.140" UserId="94" />
  <row Id="10236" PostId="10308" Score="0" Text="From slots &gt; leases (2034) you get that this parachain only have 1 lease remaining, if you check this page from the wiki to see the numbers, you can see that 1,209,600 equals 12 weeks: https://wiki.polkadot.network/docs/maintain-polkadot-parameters#parachains. Using the leaseOffset to and the link I shared you can calculate exactly how long it has left" CreationDate="2023-10-26T07:17:21.213" UserId="2762" />
  <row Id="10237" PostId="10185" Score="0" Text="My question is what is the different of usage smoldot with and without substrate-connect regarding the resource utilisation." CreationDate="2023-10-26T09:27:30.580" UserId="2420" />
  <row Id="10238" PostId="10322" Score="0" Text="This is for installing the version 2.0.1 since the previous answer was trying to install that specific version but the provided command does not work any more" CreationDate="2023-10-26T12:11:27.990" UserId="4834" />
  <row Id="10240" PostId="5555" Score="0" Text="following along we get an error:  runtime-api/src/lib.rs:5:1&#xA;   &#xA;   | |_^ use of undeclared crate or module `std`" CreationDate="2023-10-26T21:26:52.477" UserId="3070" />
  <row Id="10241" PostId="10332" Score="0" Text="Could you send your current repo link?" CreationDate="2023-10-27T03:54:37.800" UserId="445" />
  <row Id="10242" PostId="10287" Score="0" Text="please give us your github link." CreationDate="2023-10-27T03:55:44.683" UserId="445" />
  <row Id="10243" PostId="10334" Score="0" Text="You should convert `sp_consensus_aura::sr25519::app_sr25519::Public` type and `sp_consensus_grandpa::app::Public` type into `AccountId` type" CreationDate="2023-10-27T09:18:11.093" UserId="445" />
  <row Id="10244" PostId="10287" Score="0" Text="Sir actually im following susbstrate documentation in that im cloning and using code ..." CreationDate="2023-10-27T10:09:10.020" UserId="4443" />
  <row Id="10245" PostId="10287" Score="0" Text="https://github.com/substrate-developer-hub/substrate-node-template/tree/main/pallets/template/src    (this is the github link)" CreationDate="2023-10-27T10:09:20.990" UserId="4443" />
  <row Id="10246" PostId="10334" Score="0" Text="@CocDap Thank you for you answer. Can you please elaborate how can I convert this?" CreationDate="2023-10-27T11:35:35.177" UserId="555" />
  <row Id="10247" PostId="10337" Score="0" Text="Hi @denis-reshetov, you can check how to initialize the module here https://polkadot.js.org/docs/ui-keyring/start/init. Thx!" CreationDate="2023-10-27T18:09:23.677" UserId="279" />
  <row Id="10248" PostId="10328" Score="0" Text="Generally native tokens are only minted on genesis or through consensus, but I suppose you could do it with a [chain extension](https://use.ink/macros-attributes/chain-extension/)." CreationDate="2023-10-27T19:46:06.283" UserId="543" />
  <row Id="10249" PostId="10337" Score="0" Text="@pepoviola thank you for prompt reply, unfortunately keyring is already initialized as the component is used within polkadot.js apps. I tried to reinitialized it as you suggested but it throws an error, that it can't be initialized twice." CreationDate="2023-10-28T02:56:04.223" UserId="2149" />
  <row Id="10250" PostId="10338" Score="0" Text="Do you have code/benchmark weights to share for this extrinsic? Probably exceeding the weight allowed for that extrinsic." CreationDate="2023-10-28T09:56:42.043" UserId="29" />
  <row Id="10251" PostId="10331" Score="1" Text="Can uou share your runtime code? Specifically what is around line 201 in your lib.rs file?" CreationDate="2023-10-28T15:12:47.910" UserId="29" />
  <row Id="10252" PostId="10331" Score="0" Text="https://github.com/capsule-corp-ternoa/ternoa-node/blob/36fc7f8dbaad6d8efc1ee076ceb601efe3c7773d/runtime/alphanet/src/lib.rs#L201" CreationDate="2023-10-29T13:16:24.520" UserId="427" />
  <row Id="10253" PostId="10354" Score="0" Text="For `noteStalled` to work properly you need to remove faulty validators due to which finalization has stopped. You can refer to https://substrate.stackexchange.com/a/9884/354" CreationDate="2023-10-30T07:58:04.577" UserId="354" />
  <row Id="10254" PostId="5555" Score="0" Text="The tutorial it's probably outdated, that's why is giving this error. Let me review it" CreationDate="2023-10-30T08:11:55.287" UserId="2762" />
  <row Id="10255" PostId="10337" Score="0" Text="How are you initializating it?" CreationDate="2023-10-30T08:30:23.033" UserId="2762" />
  <row Id="10256" PostId="10334" Score="0" Text="How is the initial_authorities?" CreationDate="2023-10-30T08:31:55.970" UserId="2762" />
  <row Id="10257" PostId="10354" Score="0" Text="It does make sense. Working on it." CreationDate="2023-10-30T09:05:30.463" UserId="4863" />
  <row Id="10258" PostId="10354" Score="0" Text="@ShubhamGupta Hi, one more thing, the FINALIZED BLOCK is 16448401 now, so the bestFinalizedBlockNumber should be 16448401 when using noteStalled, right? Actually, we got the finality issue last year because binary_search_by_key problem in pallet-offences. We fixed it and used noteStalled too. But at that time the finalized block was 7958680, and we specified the bestFinalizedBlockNumber as 7958682 and it worked. So a little confused about how to specify bestFinalizedBlockNumber and what does it mean." CreationDate="2023-10-30T09:22:33.410" UserId="4863" />
  <row Id="10259" PostId="10354" Score="0" Text="The best finalized block is the last finalized block of your chain, i.e., in your case is `16448401`." CreationDate="2023-10-31T04:50:18.433" UserId="354" />
  <row Id="10260" PostId="10354" Score="1" Text="@ShubhamGupta Hi, replaced some faulty validators and tried grandpa.noteStalled function. Then it was fixed. Everything work fine now. We will also continue to monitor the validator status. Thanks for your help!" CreationDate="2023-10-31T08:12:41.533" UserId="4863" />
  <row Id="10261" PostId="10337" Score="0" Text="I use a keyring from polkadot.js - it's already initialized there" CreationDate="2023-10-31T10:57:41.350" UserId="2149" />
  <row Id="10262" PostId="10347" Score="0" Text="I am not sure if i understand this. I am referreing to the [sample plain chain spec](https://docs.substrate.io/assets/tutorials/relay-chain-specs/plain-local-chainspec.json/) that has been provided in the documentation. I dont' think that this plain chainspec which is a json file is genereated from the node template for this specific example nor is the plain file generated from chain spec of the [release i am using](https://github.com/paritytech/polkadot/blob/v1.0.0/node/service/src/chain_spec.rs#L1185). Also i am not completely sure of what the type for keys would be ." CreationDate="2023-10-31T11:47:49.830" UserId="4862" />
  <row Id="10263" PostId="10347" Score="0" Text="I also checked the [chain spec](https://github.com/paritytech/polkadot-sdk/blob/master/polkadot/node/service/src/chain_spec.rs#L1193]) in the polkadot sdk.&#xA;I think that in chain_spec.rs rococo_local_tesnet is configured for two validator and i would have to make some code changes to use one more validator." CreationDate="2023-10-31T12:13:59.993" UserId="4862" />
  <row Id="10264" PostId="10347" Score="0" Text="And this is what they mean by hardcoding an additional validator and generating chainspec  or i can use wococo since it is configured for more than two validators but then again i would need a wasm binary to generate the chainspec for wococo." CreationDate="2023-10-31T12:27:28.210" UserId="4862" />
  <row Id="10265" PostId="7057" Score="0" Text="Hello, I'm encountering similar requirement issues because we are building an explorer for Ink smart contracts. I'd like to inquire whether you've raised the issue or found a solution for it." CreationDate="2023-11-01T06:45:58.787" UserId="4068" />
  <row Id="10266" PostId="10371" Score="0" Text="thank you, but it still failed after use `branch = &quot;release-polkadot-v1.0.0&quot;`;&#xA;error: failed to get `pallet-node-authorization` as a dependency of package `node-template-runtime v4.0.0-dev (/home/sw/substrate-node-template/runtime)`&#xA;&#xA;Caused by:&#xA;  failed to load source for dependency `pallet-node-authorization`&#xA;&#xA;Caused by:&#xA;  Unable to update https://github.com/paritytech/polkadot-sdk.git?branch=release-polkadot-v1.0.0&#xA;&#xA;Caused by:&#xA;  failed to clone into: /home/sw/.cargo/git/db/polkadot-sdk-cff69157b985ed76&#xA;&#xA;Caused by:&#xA;  SSL error: syscall failure: ; class=Os (2)" CreationDate="2023-11-01T13:44:42.260" UserId="4879" />
  <row Id="10267" PostId="10371" Score="0" Text="Just check your network or maybe use a VPN if you are in China :)" CreationDate="2023-11-01T14:23:20.410" UserId="251" />
  <row Id="10268" PostId="10371" Score="0" Text="yes, I use a vpn; it can't be done by vpn?" CreationDate="2023-11-01T14:34:14.733" UserId="4879" />
  <row Id="10269" PostId="10372" Score="0" Text="Always copy the error messages as text when submitting questions to sites like this." CreationDate="2023-11-02T04:06:19.420" UserId="116" />
  <row Id="10270" PostId="10372" Score="0" Text="What commands are you trying to run?" CreationDate="2023-11-02T05:13:48.520" UserId="116" />
  <row Id="10272" PostId="10379" Score="0" Text="I tried this again. Unfortunately, this doesn't work. So the account is funded with that balance and more already." CreationDate="2023-11-02T06:03:13.430" UserId="2484" />
  <row Id="10274" PostId="10379" Score="0" Text="Could you provide your repo?" CreationDate="2023-11-02T06:50:51.107" UserId="1959" />
  <row Id="10275" PostId="10379" Score="0" Text="Unfortunately I won't post the repo (because it's in private stealth mode for multiple reasons), but I will post my full xcm configuration: https://pastebin.com/7242tXkA" CreationDate="2023-11-02T07:28:35.377" UserId="2484" />
  <row Id="10276" PostId="10320" Score="0" Text="It seems like those are peer dependencies, meaning you should install them into your project manually." CreationDate="2023-11-02T09:04:23.883" UserId="1876" />
  <row Id="10277" PostId="10379" Score="0" Text="However, I am 100% sure that the `pallet-balances` emits this error. So I can exclude the case of `oml-tokens` emitting this error. It can still be `orml-currencies (Currencies)`, though." CreationDate="2023-11-02T09:27:34.740" UserId="2484" />
  <row Id="10278" PostId="10379" Score="0" Text="@Chralt Follow here: https://github.com/paritytech/polkadot-sdk/issues/2130" CreationDate="2023-11-02T10:13:56.130" UserId="1959" />
  <row Id="10279" PostId="6940" Score="0" Text="Hello @OliverTale-Yazdi we have got some serious issue in our mainnet. we are facing this same issue but the thing is our version is polkadot-v0.9.31 in which this utility function is unavailable. and we dont have sudo unchecked weight or anthing. this seems to be like we cant do any RU anymore? any help will be appreciated" CreationDate="2023-11-02T10:18:19.217" UserId="427" />
  <row Id="10280" PostId="6940" Score="1" Text="@ImmanuelJohn i responded over here https://substrate.stackexchange.com/questions/10380 " CreationDate="2023-11-02T12:12:59.543" UserId="94" />
  <row Id="10281" PostId="10382" Score="0" Text="Thanks for putting some lights. Can you let me know how to use this System.set_storage()?" CreationDate="2023-11-02T13:51:47.007" UserId="427" />
  <row Id="10282" PostId="10382" Score="1" Text="OMG this worked like a charm, thank you" CreationDate="2023-11-02T14:14:53.697" UserId="427" />
  <row Id="10283" PostId="9815" Score="0" Text="I was intending on using BLS signatures to implement roll ups as described here: https://vitalik.ca/general/2021/01/05/rollup.html. Why should BLS signatures not be used here? I haven't studied two-round Schnorr but it does not seem to fit my use case." CreationDate="2023-11-02T15:22:03.180" UserId="2761" />
  <row Id="10284" PostId="9815" Score="0" Text="Also, where does https://github.com/w3f/bls fit into all of this? This crate supports all of my needs and I've been using it meanwhile to test my pallet, but it is unclear how this crate and the ones you mentioned all fit together." CreationDate="2023-11-02T16:06:15.733" UserId="2761" />
  <row Id="10285" PostId="9006" Score="0" Text="I'm not sure. When running this extrinsic manually, I always put `0x00` as proof and it works. Also see: https://docs.peaq.network/docs/node-operators/become-collator/generate-session-key/#generate-the-key" CreationDate="2023-11-02T20:31:38.983" UserId="344" />
  <row Id="10286" PostId="10344" Score="0" Text="ACK the test is indeed failing since the CI seems to be misconfigured. I will try to fix it, thanks! If you discover something like this the next time please directly open an issue here https://github.com/paritytech/frontier/issues/new/choose, thanks." CreationDate="2023-11-03T14:38:21.697" UserId="94" />
  <row Id="10287" PostId="10386" Score="0" Text="The chain spec is the chain specification for when you start your chain. In your case, your chain is already running and you want to add pallets. You could look at calling extrinsics (e.g. `set_keys`) to populate your storage and/or perform a migration as part of the runtime upgrade." CreationDate="2023-11-03T22:53:18.067" UserId="29" />
  <row Id="10288" PostId="9939" Score="0" Text="No any chain can do it. The airdrop is something a parachain can do but it is not a requirement. Regarding the tokenomics, I am also interested in that so would love to hear if you found something!" CreationDate="2023-11-05T12:12:32.090" UserId="3317" />
  <row Id="10289" PostId="10397" Score="0" Text="A way to render the sudo unreachable or provably defunct would also work here." CreationDate="2023-11-05T17:52:41.960" UserId="3346" />
  <row Id="10291" PostId="10403" Score="1" Text="Your answer was a bit more on the spot I have accepted it." CreationDate="2023-11-06T00:35:19.180" UserId="116" />
  <row Id="10292" PostId="10403" Score="0" Text="Thanks. I think we should add your Q as FAQ to the pallet docs. It seems to come up often." CreationDate="2023-11-06T00:35:51.423" UserId="94" />
  <row Id="10293" PostId="10403" Score="0" Text="I'm using this in one of my projects, yet I fail to remember why and have to read it carefully every time." CreationDate="2023-11-06T00:38:16.673" UserId="116" />
  <row Id="10294" PostId="10398" Score="1" Text="In POA we were giving aura and grandpa keys in there pallet configuration. Now as we need to give those aura/grandpa keys with there account ids to sessions pallet. So we would need to migrate the that keys." CreationDate="2023-11-06T06:00:00.033" UserId="377" />
  <row Id="10295" PostId="10390" Score="0" Text="Check out this answer https://substrate.stackexchange.com/a/7198/380" CreationDate="2023-11-06T11:23:34.977" UserId="380" />
  <row Id="10296" PostId="10390" Score="0" Text="That's great info! However, it's not the complete solution. I can recover the `SubmittableExtrinsic` with `api.tx(encodedTx)`, but the signature is also obtained in a decoupled manner. So I would need to do something like this: `tx.addSignature(sender, sig, ???)`.&#xA;&#xA;I don't really know what the third param of `addSignature` is supposed to be, though..." CreationDate="2023-11-06T12:55:18.833" UserId="4887" />
  <row Id="10297" PostId="10390" Score="0" Text="I'm not sure I understand. If you don't want to use `signAndSend`, just use `sign`. This gives you a signed transaction that you can broadcast at a later date. You don't need anything else." CreationDate="2023-11-06T13:25:27.310" UserId="380" />
  <row Id="10298" PostId="10399" Score="0" Text="That would be a great feature. I hope that goes through!" CreationDate="2023-11-06T13:36:16.643" UserId="3346" />
  <row Id="10299" PostId="10404" Score="0" Text="Perfect! Thank you! I will study the code changes and follow suit." CreationDate="2023-11-06T13:36:39.660" UserId="3346" />
  <row Id="10300" PostId="10411" Score="0" Text="What are you trying to do? Can you not just sign the transactions as immortal since its testing only?" CreationDate="2023-11-06T15:37:10.940" UserId="94" />
  <row Id="10301" PostId="10409" Score="0" Text="Thanks for the answer. Yes, we were looking only at Polkadot-js. Do you have a recommended way to measure block usage, that also takes in account the storage proof usage? How can I check why are they pruned from transaction pool?" CreationDate="2023-11-06T16:18:06.067" UserId="2106" />
  <row Id="10302" PostId="10411" Score="0" Text="I could, but while I 95% think it is something strange with the test setup and such causing this, I'm worried there is a (very low impact) race condition bug in substrate I'd like to find." CreationDate="2023-11-06T17:22:15.777" UserId="300" />
  <row Id="10303" PostId="10409" Score="0" Text="Polkadot js uses the weight for it, but ignores the `storage_proof` size. You would need to check this as well and write some tool on your own. (Maybe already exists somewhere, but should also not be that hard) https://github.com/paritytech/polkadot-sdk/blob/e99007870090e5d09c5526c18d21aa1e1704dac9/substrate/client/transaction-pool/src/revalidation.rs#L100-L108 looking at this log should help on finding out why the tx pool prunes. `txpool=debug` maybe being a good idea in general." CreationDate="2023-11-07T12:40:20.100" UserId="73" />
  <row Id="10304" PostId="10390" Score="0" Text="My question is: what would the third parameter of `sign` be?" CreationDate="2023-11-07T14:12:07.167" UserId="4887" />
  <row Id="10305" PostId="10390" Score="0" Text="Your payload. This answer may help: https://substrate.stackexchange.com/a/7747/380" CreationDate="2023-11-07T21:28:21.833" UserId="380" />
  <row Id="10306" PostId="10400" Score="0" Text="This does not provide an answer to the question. Once you have sufficient [reputation](https://substrate.stackexchange.com/help/whats-reputation) you will be able to [comment on any post](https://substrate.stackexchange.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/late-answers/3893)" CreationDate="2023-11-08T07:40:03.200" UserId="116" />
  <row Id="10307" PostId="9964" Score="0" Text="Why is not working? any error with the compilation?" CreationDate="2023-11-08T09:05:08.450" UserId="2762" />
  <row Id="10308" PostId="9794" Score="0" Text="Can you share the Cargo.toml?" CreationDate="2023-11-08T09:06:41.587" UserId="2762" />
  <row Id="10309" PostId="10409" Score="0" Text="Hey @NZT, we've been using [evm-tps](https://github.com/paritytech/evm-tps) to stress test networks (it can send EVM txns but also Substrate's extrinsics). We were able to track blocks' weights via pJS using this: https://github.com/paritytech/evm-tps/blob/main/scripts/substrate-tps-server.ts#L323C22-L323C22" CreationDate="2023-11-08T12:40:45.827" UserId="14" />
  <row Id="10310" PostId="10424" Score="0" Text="I am building based on substrate template, all these settings are working. For example, the balances  pallet works, token is setup OK, etc. The question is more related to why UI can detect in some extrinsics that the u128 is a token value and in other extrinsic it does not, when both are typed BalanceOf&lt;T&gt;" CreationDate="2023-11-08T14:23:34.717" UserId="4835" />
  <row Id="10311" PostId="10419" Score="0" Text="Thank you! So really to be sure you would need to check each pallet for storage changes and make sure does are accounted for in the migration logic, and if not implement the migration logic yourself, correct? Is there any place where storage changes are documented?" CreationDate="2023-11-08T16:01:30.787" UserId="3598" />
  <row Id="10312" PostId="10390" Score="0" Text="Cool, I think that's what I need. Thank you!" CreationDate="2023-11-08T17:42:11.407" UserId="4887" />
  <row Id="10314" PostId="10390" Score="0" Text="@forgetso please write that comment in an answer" CreationDate="2023-11-09T00:12:26.790" UserId="116" />
  <row Id="10315" PostId="10422" Score="0" Text="How does the `b&quot;:code&quot;` work? Use sp-io to write the db directly?" CreationDate="2023-11-09T00:26:14.163" UserId="251" />
  <row Id="10316" PostId="10390" Score="1" Text="@Simson Shouldn't it be closed as a duplicate?" CreationDate="2023-11-09T09:47:53.313" UserId="380" />
  <row Id="10317" PostId="10422" Score="0" Text="Exactly. This is why it does not have any metadata. See the key definition [here](https://github.com/paritytech/substrate/blob/a93858a8d80de838e54d286a820ea29d1a353746/primitives/storage/src/lib.rs#L195) and the write in [System](https://github.com/paritytech/polkadot-sdk/blob/d347d68868a38841ba51f2e91cef945a7ea50dd4/substrate/frame/system/src/lib.rs#L1107).  &#xA;This was done before any `storage_alias` existed." CreationDate="2023-11-09T12:18:42.790" UserId="94" />
  <row Id="10319" PostId="10390" Score="0" Text="well maybe ... I personally prefer answers on duplicated questions too and it will take forever to get five votes on this stack" CreationDate="2023-11-09T12:50:11.697" UserId="116" />
  <row Id="10320" PostId="10409" Score="0" Text="Easiest was to track block weight usage is to subscribe to the storage item `System::BlockWeight`. It does show proof size as well." CreationDate="2023-11-09T19:48:47.907" UserId="94" />
  <row Id="10321" PostId="9815" Score="0" Text="It was a naive experiment of mine, which I now consider a mistake, and I wish it'd go away.  We're unfortunately using it ourselves.  &lt;face palm&gt;" CreationDate="2023-11-09T22:46:32.430" UserId="1810" />
  <row Id="10322" PostId="10430" Score="0" Text="Where did you come across this error?" CreationDate="2023-11-10T08:01:10.847" UserId="251" />
  <row Id="10323" PostId="10430" Score="0" Text="While writing a new runtime API." CreationDate="2023-11-10T13:26:00.303" UserId="3991" />
  <row Id="10325" PostId="10434" Score="0" Text="Just install protoc" CreationDate="2023-11-10T18:54:22.577" UserId="251" />
  <row Id="10326" PostId="10434" Score="0" Text="I think it make sense to improve &quot;Before you begin, verify the following:&quot; section of the guide to mention this OS dependency. @AurevoirXavier any idea where I can submit issue for that?" CreationDate="2023-11-10T19:44:22.020" UserId="2540" />
  <row Id="10327" PostId="286" Score="0" Text="@Max Yes Aura and pallet-staking can be used together (with the help of pallet-session or similar). I suggest that before you begin building that, you re-read this answer until you see that it already answered your question." CreationDate="2023-11-11T14:17:08.177" UserId="372" />
  <row Id="10328" PostId="10352" Score="0" Text="I'm also getting the mentioned error, so is it safe to ignore it? why is the error happening?" CreationDate="2023-11-12T00:14:42.907" UserId="3598" />
  <row Id="10329" PostId="9086" Score="0" Text="@jayp you should mark this answer as accepted too." CreationDate="2023-11-13T05:18:58.613" UserId="116" />
  <row Id="10330" PostId="10437" Score="0" Text="That makes sense :)  &#xA;Thanks for the clarification!" CreationDate="2023-11-13T08:36:16.183" UserId="357" />
  <row Id="10331" PostId="10411" Score="0" Text="In the end, I switched to Immortal as Oliver suggested. Still wonder about the issue however. Feels like a possibility of a race condition." CreationDate="2023-11-13T21:16:26.840" UserId="300" />
  <row Id="10332" PostId="8753" Score="0" Text="tried this an it didnt change anything. still cannot find all the types that are generated in the types-lookup.ts" CreationDate="2023-11-13T21:31:05.207" UserId="3070" />
  <row Id="10333" PostId="10352" Score="0" Text="@Sebastian suggest that you try again with the latest version of try-runtume-cli. They have just recently addressed some of these issues." CreationDate="2023-11-13T22:13:57.440" UserId="318" />
  <row Id="10334" PostId="7923" Score="0" Text="we are have a very similar problem. I noticed when i run the generator it gives an error ```ERROR: No lookup definitions found: Unknown file extension &quot;.ts&quot; for src/interfaces/lookup.ts```" CreationDate="2023-11-13T23:01:25.820" UserId="3070" />
  <row Id="10336" PostId="10450" Score="0" Text="can you please add repo ?" CreationDate="2023-11-14T11:58:19.770" UserId="1793" />
  <row Id="10337" PostId="10396" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2023-11-14T22:48:45.813" UserId="-1" />
  <row Id="10340" PostId="10352" Score="0" Text="I'm already using the latest version" CreationDate="2023-11-15T01:49:01.357" UserId="3598" />
  <row Id="10341" PostId="10455" Score="0" Text="run `./target/release/parachain-template-node --help` as it suggests" CreationDate="2023-11-15T02:50:39.580" UserId="116" />
  <row Id="10342" PostId="10455" Score="0" Text="There should be something about `key` or `generate` on the help page" CreationDate="2023-11-15T02:51:12.487" UserId="116" />
  <row Id="10345" PostId="10470" Score="1" Text="Not what I am asking, but yes, dynamic member management of a static collective is there.  What I am asking is dynamic management of the collectives themselves.  Instead of a few defined at runtime, creating hundreds of collectives each with their own management of members.&#xA;&#xA;Unless I am misunderstanding your response, please clarify if so?" CreationDate="2023-11-15T15:43:59.193" UserId="4939" />
  <row Id="10346" PostId="10470" Score="0" Text="This shows you how to change the members from outside. You can define your `dynamic` logic in the `pallet-example`." CreationDate="2023-11-15T17:04:56.340" UserId="251" />
  <row Id="10347" PostId="10376" Score="0" Text="AurevoirXavier,  isn't the template building from a clean checkout?" CreationDate="2023-11-15T23:48:01.860" UserId="116" />
  <row Id="10349" PostId="10370" Score="0" Text="I have the same problem as you, how did you solve it?" CreationDate="2023-11-15T11:48:44.010" UserId="4938" />
  <row Id="10350" PostId="10147" Score="0" Text="How long it's gonna take to sync @DaanvanderPlas?" CreationDate="2023-11-16T05:41:00.523" UserId="2844" />
  <row Id="10351" PostId="10464" Score="0" Text="May I have the code link to reproduce this locally?" CreationDate="2023-11-16T05:55:33.547" UserId="251" />
  <row Id="10352" PostId="10464" Score="0" Text="1 minute I will branch and commit" CreationDate="2023-11-16T05:58:42.367" UserId="116" />
  <row Id="10353" PostId="10464" Score="0" Text="@AurevoirXavier https://github.com/NodleCode/chain/tree/iso/stack10464" CreationDate="2023-11-16T06:21:27.257" UserId="116" />
  <row Id="10354" PostId="10477" Score="0" Text="Added some more context in an edit to the issue, as this is what we're doing currently." CreationDate="2023-11-16T09:26:37.377" UserId="480" />
  <row Id="10355" PostId="10476" Score="0" Text="My understanding is pre and post hooks are to implements tests for try-runtime and the upgrade code to execute on chain goes into OnRuntimeUpgrade" CreationDate="2023-11-16T09:37:55.117" UserId="116" />
  <row Id="10356" PostId="10476" Score="0" Text="@Simson yeah, that's how we're using it. The upgrade code is in `on_runtime_upgrade()` part of the hook, and just the pre and post checks are in the `pre_upgrade` and `post_upgrade` hooks. Currently if I run `try-runtime on_runtime_upgrade` the upgrade runs, but the hooks do not." CreationDate="2023-11-16T09:39:43.760" UserId="480" />
  <row Id="10357" PostId="10476" Score="0" Text="Did you put it in the `pub type Executive = frame_executive::Executive&lt;` ?" CreationDate="2023-11-16T09:46:05.153" UserId="116" />
  <row Id="10358" PostId="10476" Score="0" Text="Put what in there? I added our Executive definition to the OP" CreationDate="2023-11-16T09:48:19.517" UserId="480" />
  <row Id="10359" PostId="10476" Score="0" Text="1 sec I will write it in an answer" CreationDate="2023-11-16T09:51:20.933" UserId="116" />
  <row Id="10361" PostId="10476" Score="1" Text="Perfect @liamaharon updated their answer" CreationDate="2023-11-16T10:28:32.413" UserId="116" />
  <row Id="10362" PostId="10443" Score="0" Text="Which browser are you using? I think some of them blocks access to not secure websockets `ws://`. You should allow that in the browser's config." CreationDate="2023-11-16T14:18:32.347" UserId="14" />
  <row Id="10364" PostId="10479" Score="0" Text="Thank you for making the tool - it removes a lot of tedium!" CreationDate="2023-11-16T15:25:22.460" UserId="85" />
  <row Id="10365" PostId="10443" Score="0" Text="I am using Brave, tried on Firefox now and it does work! Please post your comment as an answer so I can accept it." CreationDate="2023-11-16T15:32:03.400" UserId="2540" />
  <row Id="10366" PostId="10473" Score="0" Text="The try-runtime tool runs the migration twice to check for idempotent test, the upgrade has not yet been applied on my runtime" CreationDate="2023-11-16T15:40:45.760" UserId="3598" />
  <row Id="10367" PostId="10242" Score="0" Text="I encountered the same problem. My Mac os is also 14.0 (23A344). I feel that it is a problem with macos, but I don’t know where to troubleshoot it." CreationDate="2023-11-16T06:09:53.007" UserId="4941" />
  <row Id="10368" PostId="10488" Score="0" Text="DQ: Have you tried to set it to `branch = &quot;release-polkadot-v1.3.0&quot;`?" CreationDate="2023-11-16T22:09:38.980" UserId="14" />
  <row Id="10369" PostId="10482" Score="0" Text="but it does not make try runtime happy see my update above" CreationDate="2023-11-16T22:40:04.160" UserId="116" />
  <row Id="10370" PostId="10242" Score="0" Text="Did you overclock your PC?" CreationDate="2023-11-17T02:20:16.930" UserId="251" />
  <row Id="10371" PostId="10490" Score="0" Text="Did you get a slot on Rococo?" CreationDate="2023-11-17T05:54:08.040" UserId="251" />
  <row Id="10372" PostId="10490" Score="0" Text="yes `4,323` is my rococo slots @AurevoirXavier" CreationDate="2023-11-17T07:16:27.573" UserId="2844" />
  <row Id="10373" PostId="10473" Score="0" Text="Updated my answer." CreationDate="2023-11-17T08:58:33.997" UserId="251" />
  <row Id="10374" PostId="10488" Score="0" Text="@ArturGontijo `branch = &quot;release-polkadot-v1.3.0&quot;` fixes it. Can you please post that as an answer so I can accept it? I've updated my question to explicitly state what I had tried. In your answer, please include the semantics of the release branches vs tags if you know it." CreationDate="2023-11-17T21:37:16.140" UserId="372" />
  <row Id="10375" PostId="10473" Score="0" Text="Thanks for your answer! The issue here is that the pallets with the issue are frame pallets, which I don't want to modify, but I guess is not much of an issue as long as you know what is causing the issue" CreationDate="2023-11-17T23:07:04.427" UserId="3598" />
  <row Id="10376" PostId="10488" Score="0" Text="Could you elaborate on that? I changed to `branch = &quot;release-polkadot-v1.3.0&quot;` on my own code base but I'm still getting the exact same compilation error." CreationDate="2023-11-18T05:54:55.363" UserId="309" />
  <row Id="10377" PostId="10488" Score="0" Text="@KazunobuNdong that's odd =/. Maybe you should run a `cargo clean` and rebuild everything from the ground." CreationDate="2023-11-18T12:41:07.477" UserId="14" />
  <row Id="10379" PostId="10495" Score="0" Text="Indeed, switching to that branch and running `cargo update` worked for me. Thank you.  Regarding updating the tag, I think git tags are supposed to never change once published. [git tag docs](https://git-scm.com/book/en/v2/Git-Basics-Tagging)." CreationDate="2023-11-20T20:19:58.697" UserId="372" />
  <row Id="10380" PostId="10506" Score="0" Text="This seems like a security problem to me if I'm understanding correctly. Normal blockchains rely on their own validators/miners to check the timestamp offchain and then it is trustworthy in the runtime. For parachains, how can they ensure that the validators don't accept a block with an invalid timestamp?&#xA;&#xA;Looking from another perspective, is there any way for a parachain to have a secure timestamp inherent? Or is it better for parachains not to have a timestamp inherent, and instead rely on the relay parent's time?" CreationDate="2023-11-20T21:19:18.430" UserId="372" />
  <row Id="10381" PostId="10504" Score="0" Text="The real problem I was trying to solve was about getting the nonce compensated for pending extrinsics, and we fixed it in this https://github.com/paritytech/subxt/pull/1250 @jsdw if you have a look at my other PR we will have some examples how to use it as well there." CreationDate="2023-11-21T01:40:21.247" UserId="116" />
  <row Id="10382" PostId="10496" Score="0" Text="Nice, this could fit even better if it was phrased as one question and an answer" CreationDate="2023-11-21T01:59:07.383" UserId="116" />
  <row Id="10383" PostId="9432" Score="0" Text="[will this tutorial](https://docs.substrate.io/tutorials/build-a-parachain/acquire-a-testnet-slot/) helps to setup rococo testnet and produce blocks?" CreationDate="2023-11-21T05:13:04.377" UserId="2844" />
  <row Id="10384" PostId="8056" Score="0" Text="Why must the weight calculation be very fast? Do slow computations (or DB accesses) introduce security issues (maybe some possible DoS attacks)? Can't find any info about it :(" CreationDate="2023-11-21T09:09:21.547" UserId="2582" />
  <row Id="10385" PostId="10504" Score="0" Text="Ah ok great, I'm still catching up after some time off :)" CreationDate="2023-11-21T11:37:08.400" UserId="474" />
  <row Id="10386" PostId="10509" Score="0" Text="Makes sense thank you. DQ: Why doesn't the slot worker also extract the slot from the pre-digest? And remove the inherent entirely?" CreationDate="2023-11-21T17:02:51.873" UserId="372" />
  <row Id="10387" PostId="10509" Score="1" Text="The slot worker needs to create the digest, since it's responsible for creating the block, and hence it needs to calculate the current slot. It could do this without relying on `InherentDataProvider` though (i.e. just calculate the slot itself), but this way it can guarantee that whatever slot number it computes, it will be consistent with the timestamp in the `timestamp` inherent (e.g. there could be timing issues/delays that make things go out-of-sync)." CreationDate="2023-11-21T17:07:46.607" UserId="452" />
  <row Id="10388" PostId="8056" Score="0" Text="Yea a slow benchmarking formula with DB accesses can be a DoS vector, since the user does not pay for it in case that the Transaction is invalid." CreationDate="2023-11-21T18:34:07.660" UserId="94" />
  <row Id="10389" PostId="10506" Score="0" Text="The optimal implementation for parachains at this point is to use the relay parent's time. Cumulus consensus was already changed to make this the case. A parachain can still use its inherent for business logic, though there isn't a good reason to do so anymore AFAIK.&#xA;&#xA;It appears that validators still check the accuracy of timestamps against some maximum drift in `check_inherent` of substrate/frame/timestamp/src/lib.rs. So it shouldn't be a security risk, as validators would reject blocks with logic based on invalid timestamps." CreationDate="2023-11-21T23:39:47.500" UserId="3244" />
  <row Id="10392" PostId="10515" Score="0" Text="What kind of test is that and where does it come from? Why is the test not updated to require a v3 interface?" CreationDate="2023-11-22T11:43:08.747" UserId="94" />
  <row Id="10394" PostId="10512" Score="0" Text="Thanks a lot, this really helps me with this issue and `xcmError::TooExpensive` is gone. But, after that i got an error `FailedToTransactAsset` on the receiving chain (trappist). It can be related to unsufficient balance on parachain sovereign account, but I checked all balances and transfer needed amount of tokens on relay chain to: `parachain1000` and `parachain1001` sovereign account, on `parachain1000` to `parachain1001` sovereign account and on `parachain1001` to `parachain1000` sovereign account. Maybe you know something about this error? &#xA;@Guantong" CreationDate="2023-11-22T15:25:45.183" UserId="4532" />
  <row Id="10395" PostId="10496" Score="0" Text="I like it! But you should add this a response, and just the simple question of Recovering a Bricked (no block production) Parachain? otherwise it looks like an unanswer question" CreationDate="2023-11-22T16:10:54.257" UserId="2762" />
  <row Id="10396" PostId="6956" Score="0" Text="Hi @Ganesh11 I am tried all the changing in toml file but code is not working yet." CreationDate="2023-11-22T14:03:27.407" UserId="4952" />
  <row Id="10397" PostId="10525" Score="0" Text="Try using a proxy. It's a network issue." CreationDate="2023-11-23T02:20:20.450" UserId="251" />
  <row Id="10398" PostId="10512" Score="0" Text="It was off topic, cloud you open a new question and add more information?" CreationDate="2023-11-23T04:21:48.363" UserId="1959" />
  <row Id="10400" PostId="10531" Score="0" Text="Hi, thanks for a quick response, but what i need is to get name of the extrinsic and its params in a generic way in node runtime not outside of the node ;/" CreationDate="2023-11-24T05:55:31.550" UserId="3247" />
  <row Id="10401" PostId="10496" Score="0" Text="Yes, I agree, however, it's not as simple as having one matching answer, for every situation, that's why I was trying to get more information.  &#xA;&#xA;There are a few actions that can be done, on the relay chain side,   &#xA;- forceSetCurrentCode (para, newCode)  &#xA;- forceSetCurrentHead (para, newHead)  &#xA;&#xA;And some parts that you can do on the parachain side,  &#xA;&#xA;As I understood you can't revert finalized blocks as a parachain, mostly around modifying the chain-spec.   &#xA;- add bad_blocks  &#xA;- add codeSubstitutes" CreationDate="2023-11-24T07:40:51.750" UserId="707" />
  <row Id="10403" PostId="10431" Score="0" Text="Quick feedback:&#xA;&#xA;&#xA;- The teleport case is expected to fail. General parachains are not meant to be trusted teleporters of the relay chain native asset.&#xA;&#xA;- Can you give more details of the prcessing of the XCM message at Rococo side? What are the emitted events?&#xA;&#xA;- If you are simply using polkadot_XCM pallet's `ReserveAssetTransfer` call from the parachain, it is not going to work. This call is meant to work when the origin chain is the reserve of the transferred asset." CreationDate="2023-11-27T09:58:01.620" UserId="2025" />
  <row Id="10404" PostId="10450" Score="1" Text="seams like so many people have issues with this. https://github.com/polkadot-js/api/issues/4752  , https://substrate.stackexchange.com/questions/7923/ts-type-generation-polkadot-api  ,  just to name a couple" CreationDate="2023-11-27T16:03:08.840" UserId="3070" />
  <row Id="10405" PostId="10532" Score="0" Text="How can I insert the `query_id` into polkadot-xcm::Queries? I can't do it via extrinsics.&#xA;&#xA;And about implementing my response handler, I need to implement the OnResponse trait in my XCM pallet? Then export it to my xcm_config.rs?  &#xA;Can you give me an example of a pallet using the ResponseHandler implementation? &#xA;&#xA;Thanks again for the help :)" CreationDate="2023-11-27T18:43:23.343" UserId="3331" />
  <row Id="10406" PostId="10532" Score="0" Text="Updating.. I've added the ResponseHandler to my pallet config, and in the runtime I used the polkadotXcm, like this: `type ResponseHandler = PolkadotXcm`&#xA;I think now I only need to register the `query_id`in the polkadot-xcm::Queries storage. How could I do that?" CreationDate="2023-11-27T20:05:01.610" UserId="3331" />
  <row Id="10407" PostId="10532" Score="1" Text="There is a public function [`new_notify_query`](https://github.com/paritytech/polkadot-sdk/blob/v1.4.0/polkadot/xcm/pallet-xcm/src/lib.rs#L2094) in pallet-xcm, which calls `do_new_query` and insert the queryId into Queries storage, you can try using it." CreationDate="2023-11-28T01:47:11.453" UserId="1959" />
  <row Id="10408" PostId="10534" Score="1" Text="I had a similar experience except I was able to fill approximately 60% of the block weight on the substrate contracts node before it errored." CreationDate="2023-11-28T09:49:02.207" UserId="380" />
  <row Id="10409" PostId="10544" Score="0" Text="Can i directly call api in the pallet?" CreationDate="2023-11-28T10:08:29.510" UserId="555" />
  <row Id="10410" PostId="10544" Score="0" Text="Example: https://github.com/jimmychu0807/substrate-offchain-worker-demo/blob/master/pallets/ocw/src/lib.rs#L363-#L401" CreationDate="2023-11-28T10:38:18.633" UserId="2762" />
  <row Id="10411" PostId="10544" Score="0" Text="thank you so much for your response.  Can I fetch the data without using the offchain workers?" CreationDate="2023-11-28T10:41:23.747" UserId="555" />
  <row Id="10412" PostId="10544" Score="0" Text="No, the runtime's state transition function must be deterministic, and using it directly wont be" CreationDate="2023-11-28T11:31:53.463" UserId="2762" />
  <row Id="10413" PostId="10409" Score="0" Text="Thanks for the instructions guys. I wanted to return back with latest informations. I had some issues with evm-tps tool, but I created some custom tool that tested basic ERC20 and also heavier EVM transactions that uses 350k of gas on an internally hosted parachain+relay chain. Results are that this tool created enough load that block usage went up to 72% out of 75% which is maximum for regular transactions. I looks like a safe conclusion is that we don't have an issue with proof size. On the other side, we are still confused why we cannot reach this block usage in other environments." CreationDate="2023-11-28T12:24:57.677" UserId="2106" />
  <row Id="10414" PostId="10409" Score="0" Text="On the hardware side, we took couple of directions to optimize collators hardware, which also didn't result in much difference: deployed on other cloud providers and optimized servers, compiled binary to target specific CPU architecture, disabled db-cache (made performance worse). If anyone has any other idea, where we should look into for resolving this issue, we would be very grateful" CreationDate="2023-11-28T12:26:03.293" UserId="2106" />
  <row Id="10415" PostId="10544" Score="0" Text="ok got it thank you so much. Is there any other way to fetch data and integrate an api in our chain?" CreationDate="2023-11-28T13:02:22.230" UserId="555" />
  <row Id="10416" PostId="10544" Score="1" Text="I am not very familiar with Oracles to be honest, but check this SE question: https://substrate.stackexchange.com/questions/965/how-can-i-build-a-price-feed-oracle-for-my-substrate-chain" CreationDate="2023-11-28T14:06:26.593" UserId="2762" />
  <row Id="10418" PostId="10532" Score="0" Text="Thank you a lot for the help, I did a tight coupling to be able to call the function but I'm having issues with the notify parameter. I can't properly create the runtime call without getting a trait not implemented error. I've researched a lot in the repo u sent but only found references of use in a mocked environment.&#xA;I will update the question and would appreciate further help, thanks :)))" CreationDate="2023-11-28T18:49:55.913" UserId="3331" />
  <row Id="10419" PostId="10532" Score="0" Text="Make sure your `fn report` was a call, in `#[pallet:call] imp&lt;T:Config&gt; Pallet&lt;T&gt;{}` like [here](https://github.com/paritytech/polkadot-sdk/blob/v1.4.0/polkadot/runtime/test-runtime/src/lib.rs#L615). I can't identify other errors." CreationDate="2023-11-29T01:26:37.027" UserId="1959" />
  <row Id="10420" PostId="10431" Score="0" Text="@Iker Yeah, teleports not working makes sense. Also yes, I am using ReserveAssetTransfer call from the parachain. What would be the correct message that I need to execute on the parachain to transfer ROC back to the relaychain?" CreationDate="2023-11-29T06:00:18.267" UserId="2065" />
  <row Id="10421" PostId="10450" Score="0" Text="Of course there are problems. But currently I do not have any more problem generting types. Thats why I am asking for the repo I could help. Or at least for which node you need to generate types and I can help there." CreationDate="2023-11-29T08:19:22.313" UserId="1793" />
  <row Id="10422" PostId="10552" Score="0" Text="I didn't get why &quot;the fees for the nominator are being deducted from the total issuance&quot;" CreationDate="2023-11-29T08:29:53.077" UserId="251" />
  <row Id="10423" PostId="10542" Score="0" Text="can we use inherent transactions for fetching data through an api?" CreationDate="2023-11-29T08:37:12.043" UserId="555" />
  <row Id="10424" PostId="10552" Score="0" Text="Suppose the transaction fees allocated to the validator amount to 24 units. My implementation ensures an equitable distribution, splitting the fees evenly between the validator and their nominators. With a total fee of 24, the validator receives 12, while the remaining 12 is allocated to the nominators. Although the distribution to the nominators works as intended, an issue arises where the total issuance is also deducted by 12" CreationDate="2023-11-29T09:48:28.767" UserId="2372" />
  <row Id="10425" PostId="10551" Score="0" Text="thanks for the information. Yes, I can now perform the calculation in u128. Then the issue is to convert from u128 back to BlockNumberOf&lt;T&gt;, but for some reason, that I was unable to deduce DispatchTime&lt;u128&gt; works with the scheduler pallet just fine, and I cannot see how this pallet is converting back to BlockNumberOf&lt;T&gt;, so I am returning a DispatchTime instead as workaround. Will research later on." CreationDate="2023-11-29T10:05:46.333" UserId="4835" />
  <row Id="10426" PostId="10431" Score="0" Text="You will need to build a specific XCM program with the right instructions. Have a look at pallet xTokens in certain production parachains, this pallet have it implemented: https://github.com/open-web3-stack/open-runtime-module-library/blob/5c96d6bf12c5fc2aeac359f2297453ba63140927/xtokens/src/lib.rs#L240" CreationDate="2023-11-29T10:23:42.357" UserId="2025" />
  <row Id="10427" PostId="10551" Score="0" Text="OK, I realized now the other issue, BlockNumberFor&lt;T&gt; can be created from up to u32." CreationDate="2023-11-29T11:21:32.420" UserId="4835" />
  <row Id="10428" PostId="10546" Score="1" Text="Thank you for your explanation! AlreadyBonded is because 0x02000000 ===2 and it is an index in [:pallet] https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/staking/src/pallet/mod.rs#L787 ?" CreationDate="2023-11-29T12:17:34.177" UserId="4806" />
  <row Id="10429" PostId="10546" Score="1" Text="Yes, this is the index of the error" CreationDate="2023-11-29T14:35:34.467" UserId="2762" />
  <row Id="10430" PostId="10557" Score="0" Text="Does it mean that a network without `archive nodes` can't be synced from genesis ?" CreationDate="2023-11-29T14:58:45.550" UserId="386" />
  <row Id="10431" PostId="10532" Score="0" Text="Yes, it is. But still not working, thanks anyways :)" CreationDate="2023-11-29T15:10:02.147" UserId="3331" />
  <row Id="10432" PostId="6032" Score="0" Text="https://substrate.stackexchange.com/questions/10561/genesis-sync-and-history-are-archive-nodes-indispensable" CreationDate="2023-11-29T15:30:43.817" UserId="386" />
  <row Id="10434" PostId="10554" Score="0" Text="https://substrate.stackexchange.com/questions/10561/genesis-sync-and-history-are-archive-nodes-indispensable" CreationDate="2023-11-29T15:49:52.137" UserId="386" />
  <row Id="10435" PostId="10553" Score="0" Text="https://substrate.stackexchange.com/questions/10561/genesis-sync-and-history-are-archive-nodes-indispensable" CreationDate="2023-11-29T15:50:11.683" UserId="386" />
  <row Id="10436" PostId="10532" Score="0" Text="I found what was missing!&#xA;It was the RuntimeCall type. I updated to `type RuntimeCall: IsType&lt;&lt;Self as pallet_xcm::Config&gt;::RuntimeCall&gt; + From&lt;Call&lt;Self&gt;&gt; + Encode;` and it worked fine. &#xA;THanks a lot for all the help :)" CreationDate="2023-11-29T18:56:21.167" UserId="3331" />
  <row Id="10437" PostId="10560" Score="0" Text="Right, forgot to import xxx/std ;/ Thanks!!" CreationDate="2023-11-30T08:37:54.963" UserId="19" />
  <row Id="10438" PostId="5660" Score="0" Text="It may be reasonable to assume that the person asking is trying to build an indexer." CreationDate="2023-11-30T09:21:29.097" UserId="85" />
  <row Id="10439" PostId="10561" Score="0" Text="In the nature, there is no such thing like &quot;equality&quot; and as an idea, I can propose that could be legit to implement some indicator for archive nodes, to show off that they maintain full state of a network." CreationDate="2023-11-30T09:41:26.487" UserId="19" />
  <row Id="10440" PostId="10562" Score="0" Text="Thank you very much! It helped." CreationDate="2023-11-30T17:38:32.697" UserId="2149" />
  <row Id="10441" PostId="10567" Score="0" Text="Well substrate code is quite a bit more complicated than 3*3 vs 3^2.   All I needed to know is whether there was a technical reason (that I might have missed) vs. a stylistic one.  So thank at least for answering that part." CreationDate="2023-11-30T23:52:44.723" UserId="2060" />
  <row Id="10442" PostId="10552" Score="0" Text="I don't think so, the total issuance is guaranteed by the Rust drop mechanism. Could you share your code then I can take a look at how did you implement that?" CreationDate="2023-12-01T02:38:41.373" UserId="251" />
  <row Id="10443" PostId="10570" Score="0" Text="What do you mean by `sign with private key(Not secret key)`? I want to know in what context you are referring private key and secret key." CreationDate="2023-12-01T05:44:22.837" UserId="354" />
  <row Id="10444" PostId="10570" Score="0" Text="private key is the result of &quot;privateKeyToImport.toString(16).padStart(64, '0')&quot; on the source code.&#xA;&#xA;And secret key is the variable of &quot;const { publicKey, secretKey } = ed25519PairFromSeed(seed);&quot;" CreationDate="2023-12-01T06:28:28.317" UserId="4961" />
  <row Id="10445" PostId="7353" Score="0" Text="&gt; &quot;All dispatchables are executed in storage transactions and when the dispatchable returns an error, the storage transaction is thrown away.&quot; ---&gt;&#xA;&#xA;Is it the case for all dispatchables or only the one marked as transactionnal?" CreationDate="2023-12-01T13:47:49.023" UserId="3123" />
  <row Id="10446" PostId="10557" Score="1" Text="@ALeSD collators/validators act as archive nodes" CreationDate="2023-12-01T15:33:38.753" UserId="116" />
  <row Id="10447" PostId="10574" Score="0" Text="You want to make backend for solidity smart contract as pallet on Rust?" CreationDate="2023-12-02T11:26:45.970" UserId="354" />
  <row Id="10448" PostId="8983" Score="0" Text="Interested in doing something similar, have you made any progress?" CreationDate="2023-12-02T12:00:53.947" UserId="3317" />
  <row Id="10449" PostId="10574" Score="0" Text="yes @ShubhamGupta" CreationDate="2023-12-02T14:33:41.920" UserId="2844" />
  <row Id="10450" PostId="10574" Score="0" Text="Wouldn't this be [`pallet_evm`](https://docs.rs/pallet-evm/latest/pallet_evm/)?" CreationDate="2023-12-03T13:23:04.347" UserId="380" />
  <row Id="10451" PostId="10576" Score="0" Text="Using Chain State &gt; Storage &gt; Staking &gt; NominatorSlashInEra I find an example slash for the following nominator stash account with the following numbers: &#xA;      5G1faczTo3Dg7hd8djHJ4GPQAEKZKzhSsaZ4wyFdgsxBczxZ&#xA;    1,528,897,666,972,670 (but these numbers do not work in the cancel deferred slash form.) I suspect I might be looking for the slashing span index instead??" CreationDate="2023-12-03T15:47:20.097" UserId="3346" />
  <row Id="10452" PostId="10576" Score="0" Text="Found it!! On the slashes page in the UI, it is not noted BUT you can guess that the indices start with 0 and each row is numbered as 0, 1, 2, 3, etc." CreationDate="2023-12-03T16:05:51.603" UserId="3346" />
  <row Id="10453" PostId="10574" Score="0" Text="@Ganesh11 you can develop it but I didn't understand why you want to do that, if you want an EVM contract on substrate just use frontier so that you can have the EVM functionalities on your chain." CreationDate="2023-12-04T04:48:21.623" UserId="354" />
  <row Id="10454" PostId="4576" Score="0" Text="I know the root of the cause. due to an incompatible version between polkadotjs api and my runtime version" CreationDate="2023-12-04T09:58:34.637" UserId="445" />
  <row Id="10455" PostId="8983" Score="0" Text="@DaanvanderPlas unfortunately I did not continue down this path and decided to add the full EVM layer as a stopgap" CreationDate="2023-12-04T11:12:07.287" UserId="3395" />
  <row Id="10456" PostId="10579" Score="0" Text="on what basics should we define fix point decimal number for chain? Is it random value or it has some meaning? @Simon" CreationDate="2023-12-04T13:12:26.037" UserId="2844" />
  <row Id="10457" PostId="10575" Score="0" Text="Thanks! Is the blockWeight storage item of the same pallet also cleared with every block? Or does it require a migration?" CreationDate="2023-12-04T14:32:24.957" UserId="3598" />
  <row Id="10458" PostId="10409" Score="0" Text="Also to add info regarding PoV size, we have been observing it, and most of time it is similar to this value: `PoV size { header: 0.7216796875kb, extrinsics: 16.548828125kb, storage_proof: 480.685546875kb }&#xA;Compressed PoV size: 403.5458984375kb`. So it is not even close to the limit of 5MB." CreationDate="2023-12-04T16:07:12.903" UserId="2106" />
  <row Id="10459" PostId="10584" Score="0" Text="per https://github.com/polkadot-js/api/issues/5503 it seems like typegen is actually broken. Would be nice to mention in the documentation at least that the functionality is experimental." CreationDate="2023-12-04T16:33:40.330" UserId="4835" />
  <row Id="10460" PostId="10579" Score="0" Text="@Ganesh11 - there's an unfortunate terminology problem here where it pays to be precise.  The _fixed point_ number can mean two things.  First, when doing any kind of arithmetic, remember it is a _binary_ number - therefore you have the typical problems of representing fractions that you think of as _decimal_ fractions in binary - that is, all the problems that surface with multiples of `0.1`.  So when you _do_ use the bits to the right of the implied &quot;binary point&quot; separating whole from fractional: be careful.  The other use is that all numbers representing amounts of your token are ..." CreationDate="2023-12-04T18:50:55.923" UserId="4986" />
  <row Id="10461" PostId="10579" Score="0" Text="... represented as a whole number of the _smallest_ unit of that token.  In the example in this answer, the precision is _ten decimal digits_ to the right of the decimal point, so an amount of 1 token is actually represented as `10_000_000_000`.  On a chain such as Ethereum, using Uniswap contracts for examples, fractions there - used for computing liquidity equations for example -  are represented as a `128.128` fixed point binary number - which would mean you take your 1 token = `10_000_000_000` &quot;units&quot; (whatever you call them) and multiply _that_ by `2¹²⁸`." CreationDate="2023-12-04T18:55:21.160" UserId="4986" />
  <row Id="10462" PostId="10579" Score="1" Text="If you're asking how you define your fixed point (i.e., number of decimal digits) for your token - that depends on your use case moderated by the fact that the entire expected treasury amount must fit on the _left_ side of the implied point, and the smallest units you expect to use _plus some more digits for arithmetic precision when multiplying by a fraction, or dividing_ need to fit on the _right_ side.  Look around for existing examples, and make an educated guess as to what you need." CreationDate="2023-12-04T18:58:57.257" UserId="4986" />
  <row Id="10463" PostId="10580" Score="0" Text="Why do you want to panic and crash when you can just return an error with a simple `?`" CreationDate="2023-12-05T06:06:15.937" UserId="116" />
  <row Id="10464" PostId="10584" Score="0" Text="can anybody point me to a repo in which parachain types are generated and used with typegen?" CreationDate="2023-12-05T07:35:58.750" UserId="4835" />
  <row Id="10465" PostId="10589" Score="0" Text="Thank you. &#xA;Couldn't that be a way for an attacker to abuse the resources of a collator by spamming that same panicking extrinsic and making the runtime thread restarting over and over ?" CreationDate="2023-12-05T08:45:08.397" UserId="3977" />
  <row Id="10466" PostId="10589" Score="0" Text="Actually, collator won't expose their nodes RPC. Extrinsic would only affect the RPC service nodes. That's why I said hooks would affect all nodes." CreationDate="2023-12-05T09:07:51.870" UserId="251" />
  <row Id="10467" PostId="10592" Score="1" Text="Does this answer your question? [Can you recover the Mnemonic or secret keys from a Polkadot.js JSON backup?](https://substrate.stackexchange.com/questions/6288/can-you-recover-the-mnemonic-or-secret-keys-from-a-polkadot-js-json-backup)" CreationDate="2023-12-05T10:38:10.660" UserId="251" />
  <row Id="10468" PostId="10592" Score="0" Text="@AurevoirXavier looks like a step in the right direction, as a paper backup of a private key would suffice. However, as a non-coder who is experienced in command line and compiling polkadot-sdk, how exactly would I do this? All I see in the linked comment is a piece of code, not a method to recover the private key." CreationDate="2023-12-05T11:51:59.513" UserId="4016" />
  <row Id="10469" PostId="10575" Score="0" Text="It is also cleared, as you can see [here](https://github.com/paritytech/polkadot-sdk/blob/9a111fdc6ed81506033efe29920161f55a34a151/substrate/frame/system/src/lib.rs#L1513)." CreationDate="2023-12-05T13:51:40.263" UserId="94" />
  <row Id="10470" PostId="10594" Score="0" Text="Thank you for the response! we already `config.offchain_worker.enabled` implemented in the service.rs.  Updated the question" CreationDate="2023-12-05T16:27:27.560" UserId="555" />
  <row Id="10474" PostId="10592" Score="0" Text="I have updated my answer at that post. Please check." CreationDate="2023-12-06T10:17:51.207" UserId="251" />
  <row Id="10475" PostId="10596" Score="1" Text="Well, you could extract that part from polkadot-util/crypto actually." CreationDate="2023-12-06T12:11:22.357" UserId="251" />
  <row Id="10476" PostId="10597" Score="0" Text="Hi, Thanks for the comment! However, I've also tried using `state_call` you mentioned, but return the same error.. :(&#xA;I've appended the request &amp; response of `state_call` to my original post as well, thanks!" CreationDate="2023-12-06T12:13:23.537" UserId="4985" />
  <row Id="10477" PostId="10575" Score="1" Text="Thanks for your help!" CreationDate="2023-12-06T14:25:15.273" UserId="3598" />
  <row Id="10478" PostId="10594" Score="0" Text="Based on the added screenshot, I can see the offchain workers are starting and running properly. IDK why the http request is failing." CreationDate="2023-12-06T20:56:31.917" UserId="372" />
  <row Id="10479" PostId="10596" Score="0" Text="True, I already looked into that, however the implementation seemed quite convoluted and containing multiple dependencies." CreationDate="2023-12-06T21:40:53.837" UserId="4993" />
  <row Id="10480" PostId="10600" Score="1" Text="Do you want to use benchmarks someone has created for another project? Or do you want to access the weights in your code?" CreationDate="2023-12-07T04:11:55.923" UserId="116" />
  <row Id="10481" PostId="9210" Score="0" Text="Which tutorial did you use?" CreationDate="2023-12-07T07:09:18.413" UserId="116" />
  <row Id="10482" PostId="10597" Score="1" Text="This looks like a generalized issue, I'll check it out and get back to you" CreationDate="2023-12-07T14:47:23.830" UserId="4314" />
  <row Id="10483" PostId="3640" Score="0" Text="I'm facing the same problem, but I cannot modify the xcm configuration of the destination chain (in your case Moonbase). Is there any other way of solving without adding any configuration?" CreationDate="2023-12-07T15:49:02.983" UserId="3395" />
  <row Id="10484" PostId="10611" Score="1" Text="To my knowledge, you must tweak the staking pallet." CreationDate="2023-12-08T15:36:14.047" UserId="251" />
  <row Id="10485" PostId="10615" Score="0" Text="Thanks! Then how relay chain controls parachain runtime size? Does it? I guess there is a code size limit or something. Is it maxCodeSize from pallet configuration?" CreationDate="2023-12-08T15:39:40.480" UserId="3088" />
  <row Id="10486" PostId="10597" Score="0" Text="hi, thanks for the comment, since it is a generalized issue, do you know if there's an issue  created for Polkadot SDK github repo? or any other place that records this issue? thx" CreationDate="2023-12-08T16:26:41.647" UserId="4985" />
  <row Id="10487" PostId="10609" Score="0" Text="Thank you very much,  I have tried it and had some errors while compiling, but those were related to my old version of the lib.rs file, I somehow have refresh issues that is strange. I did cargo clean command prior compiling, but still the same. I will investigate more deeply over the w-e and come back reporting here!" CreationDate="2023-12-08T23:36:18.240" UserId="4999" />
  <row Id="10488" PostId="684" Score="0" Text="@ShawnTabrizi If we are doing ```FixedU128::saturating_from_rational(5, 10)``` then I'm getting 0 instead of 0.5? how can i get 0.5?" CreationDate="2023-12-09T14:14:43.360" UserId="555" />
  <row Id="10489" PostId="10600" Score="0" Text="None, technically all is setup in my code, I just wanted to know the way to extract the weights data from my weights.rs file, cause I wanna compute the maximum and minimum fees a function will use if we call it in multiple case" CreationDate="2023-12-10T11:38:22.320" UserId="4813" />
  <row Id="10490" PostId="10627" Score="0" Text="How and what do you copy in a case like this?" CreationDate="2023-12-11T08:44:18.167" UserId="4998" />
  <row Id="10491" PostId="10627" Score="0" Text="Just copy everything in the db dir except the db_version file?" CreationDate="2023-12-11T08:51:41.707" UserId="4998" />
  <row Id="10492" PostId="10627" Score="0" Text="If there are any bugs in the new version, I will downgrade my node. Additionally, if the DB version changes, I will copy the entire DB folder from other old nodes to restore its functionality." CreationDate="2023-12-11T09:11:12.447" UserId="251" />
  <row Id="10493" PostId="10616" Score="1" Text="Thanks for the response. I'm eager to see potential use cases for the migrated accounts." CreationDate="2023-12-11T09:40:57.170" UserId="4057" />
  <row Id="10494" PostId="10626" Score="0" Text="The question lacks any philosophical aspect. I simply have never encountered a pallet without FRAME, and I am curious about what exactly constitutes FRAME." CreationDate="2023-12-11T14:00:24.797" UserId="19" />
  <row Id="10495" PostId="10626" Score="0" Text="I just experiment with cargo-expand, thanks for the comment!" CreationDate="2023-12-11T14:07:49.063" UserId="19" />
  <row Id="10496" PostId="3036" Score="0" Text="@NachoPal, your answer is really helpful. I guess `InitiateReserveWithdraw` is more suitable because otherwise, we would end up doubling tokens as they are stored in the sovereign account of the destination chain every time we do `ReserveAssetDeposited`. Or am I wrong?" CreationDate="2023-12-11T17:44:57.813" UserId="3395" />
  <row Id="10497" PostId="10636" Score="0" Text="Maybe try changing to serde `1.0.85` as that seems to be [what the polkadot-v1.0.0 branch is on](https://github.com/paritytech/substrate/blob/948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d/client/cli/Cargo.toml#L29C1-L29C22)" CreationDate="2023-12-11T22:18:00.263" UserId="380" />
  <row Id="10498" PostId="684" Score="0" Text="Please open a new question for this. If you have some rust code, post it, and post your expected result, and we can fix it for you." CreationDate="2023-12-12T00:50:23.563" UserId="28" />
  <row Id="10499" PostId="684" Score="0" Text="I get perfect results:&#xA;&#xA;`use sp_runtime::{FixedPointNumber, FixedU128}; let half = FixedU128::saturating_from_rational(5, 10); let result = half * FixedU128::saturating_from_integer(5); println!(&quot;{:?}, {:?}&quot;, half, result);`&#xA;&#xA;and the output: `FixedU128(0.500000000000000000), FixedU128(2.500000000000000000)`" CreationDate="2023-12-12T00:56:12.790" UserId="28" />
  <row Id="10500" PostId="10643" Score="1" Text="Please paste the L186 here." CreationDate="2023-12-12T07:32:01.383" UserId="251" />
  <row Id="10501" PostId="10636" Score="0" Text="Can you share the link to your code?" CreationDate="2023-12-12T07:46:35.180" UserId="251" />
  <row Id="10502" PostId="10638" Score="1" Text="That was the solution indeed. That also means that there's an error in the nicks pallet tutorial in the documentation, since that's where I got the structure from in the first place.&#xA;&#xA;In the example it says: `pallet-nicks = { version = &quot;4.0.0-dev&quot;, default-features = false, git = &quot;https://github.com/paritytech/polkadot-sdk.git&quot;, branch = &quot;polkadot-v1.0.0&quot; }` of which `polkadot-v1.0.0` should also be `release-polkadot-v1.1.0`." CreationDate="2023-12-12T08:07:42.610" UserId="4556" />
  <row Id="10503" PostId="10636" Score="0" Text="@AurevoirXavier hi [link](https://github.com/nhathuyenqt/debugging). I only add serde = { version = &quot;1.0.119&quot; } in cargo.tolm of pallet template." CreationDate="2023-12-12T09:37:05.080" UserId="4794" />
  <row Id="10505" PostId="10629" Score="0" Text="(I'm just curious.)" CreationDate="2023-12-12T11:06:44.033" UserId="85" />
  <row Id="10507" PostId="10540" Score="0" Text="Nice question. I have struggled with this several times. The solution that I used recently is using `--override-runtime` feature to replace the runtime with the tweaked runtime. Obviously, this is not friendly." CreationDate="2023-12-12T12:30:48.290" UserId="125" />
  <row Id="10508" PostId="10084" Score="0" Text="I suggest to open an issue on the Smoldot repo: https://github.com/smol-dot/smoldot" CreationDate="2023-12-12T13:03:11.960" UserId="3317" />
  <row Id="10509" PostId="10631" Score="0" Text="Hi @Szegoo,  thanks for reporting. I can't reproduce with `polkadot 1.4.0-a3e4fce9d3f` and the latest version of zombienet. Which version os zombienet are you using and which provider? Thx!!" CreationDate="2023-12-12T13:55:43.703" UserId="279" />
  <row Id="10510" PostId="10645" Score="0" Text="I can't see where the assertion is located." CreationDate="2023-12-12T16:29:48.620" UserId="251" />
  <row Id="10511" PostId="10631" Score="1" Text="I had an older version of zombienet . After updating to the latest release I no longer have this issue. However, the parachain, even though registered on the relay chain doesn't produce blocks. This is only happening on `release-1.4.0`." CreationDate="2023-12-12T17:01:29.827" UserId="2163" />
  <row Id="10514" PostId="10605" Score="0" Text="please roll back your last edit and post it as an answer to your own question instead it will make it easier for someone in the future who encounters the same problem to find your solution" CreationDate="2023-12-12T23:54:05.117" UserId="116" />
  <row Id="10515" PostId="10605" Score="0" Text="and post the update you had as an aswer." CreationDate="2023-12-13T00:48:56.850" UserId="116" />
  <row Id="10516" PostId="10631" Score="0" Text="Hi @Szegoo, let me try to reproduce and check the block production. Thx!" CreationDate="2023-12-13T11:27:24.190" UserId="279" />
  <row Id="10517" PostId="4504" Score="0" Text="is it still applied? as far as I understand validators are **full** nodes by default?" CreationDate="2023-12-13T13:59:35.787" UserId="3395" />
  <row Id="10518" PostId="10645" Score="0" Text="@AurevoirXavier , I editted the post, and added some details" CreationDate="2023-12-13T15:12:05.430" UserId="309" />
  <row Id="10519" PostId="10631" Score="1" Text="@Szegoo am getting same errors using latest polkadot binaries as no blocks are being produced for parachains" CreationDate="2023-12-13T21:37:22.560" UserId="351" />
  <row Id="10520" PostId="10645" Score="0" Text="Still need more detail. Was `start_council_session` called from `on_initialize`?" CreationDate="2023-12-14T02:21:20.077" UserId="251" />
  <row Id="10521" PostId="10645" Score="0" Text="@AurevoirXavier, not from `on_initialize`, but from the extrinsic `set_role`. You can see it on line 439: https://github.com/Fair-Squares/fair-squares/blob/optimize_9.40/pallets/roles/src/lib.rs" CreationDate="2023-12-14T06:32:57.637" UserId="309" />
  <row Id="10522" PostId="10654" Score="0" Text="can you explain a bit more." CreationDate="2023-12-14T09:04:08.460" UserId="354" />
  <row Id="10523" PostId="10663" Score="0" Text="Use HTTP would be much better I think." CreationDate="2023-12-15T10:18:09.147" UserId="251" />
  <row Id="10524" PostId="10663" Score="0" Text="for connecting to the Substrate node, yes, for sure. But OP asked specifically about establishing WS connection in offchain-worker, so I suggested this and used WS connection to the node as an example" CreationDate="2023-12-15T10:41:19.403" UserId="2005" />
  <row Id="10525" PostId="10631" Score="0" Text="Hi @Szegoo / @mrisho-lukamba,  looks like your polkadot binary wasn't compile with `fast-runtime` and the epoch is 1hr (you need to wait 2 epoch before the parachain start producing blocks). I tested locally with fast-runtime and works as expected. Thanks!!" CreationDate="2023-12-15T11:54:33.833" UserId="279" />
  <row Id="10526" PostId="10670" Score="0" Text="Thanks for the reply, so for doing peer discovery with Kademlia. I came across the information that I would need to perform a ramdom walk, is there a code sample for the random walk config and running the random walk  as well" CreationDate="2023-12-16T18:33:12.480" UserId="2960" />
  <row Id="10527" PostId="10670" Score="0" Text="https://github.com/paritytech/polkadot-sdk/blob/64d52f225e127575b51ab7fdf677783f5cd497f4/substrate/client/network/src/discovery.rs#L688-L723" CreationDate="2023-12-17T15:33:05.440" UserId="3546" />
  <row Id="10528" PostId="10664" Score="0" Text="hii, Thanks for the answer!&#xA;&#xA;Ok... so now there is no literally way to test Kusama specific related chain-specs from 1.3.0 onward? I used to setup a relay with Kusama vertical and then do the final validations. Mainly because we have some changes that depends on the chain.&#xA;Thanks!" CreationDate="2023-12-18T12:04:05.593" UserId="357" />
  <row Id="10529" PostId="10675" Score="0" Text="can you share the link to the code?" CreationDate="2023-12-18T13:16:11.027" UserId="2005" />
  <row Id="10530" PostId="10664" Score="0" Text="Check this repo https://github.com/polkadot-fellows/runtimes." CreationDate="2023-12-18T14:32:53.567" UserId="251" />
  <row Id="10532" PostId="10679" Score="0" Text="Having the same default ports is irrelevant to the question. The question is about the rpc endpoints and not the url:port.  However, I edited the question to emphasize more on this. Thanks," CreationDate="2023-12-18T20:50:37.390" UserId="5016" />
  <row Id="10533" PostId="10671" Score="0" Text="This issue typically arises when a new pallet is added to the runtime without properly setting its version. Sometimes the pallet author forgot to update the pallet version after adding a migration." CreationDate="2023-12-19T04:31:44.897" UserId="251" />
  <row Id="10534" PostId="10678" Score="0" Text="The getter returns a value of type `ItemMetadata`, not `ItemMetadataOf`. Constructing it in the test doesn't work for the same reason as reading: The fields are private." CreationDate="2023-12-19T06:22:26.087" UserId="4556" />
  <row Id="10535" PostId="10677" Score="0" Text="For as far as I know attributes and metadata isn't the same thing. Also every tutorial or instruction that I have read indicates that I should use metadata and not attributes." CreationDate="2023-12-19T06:25:58.537" UserId="4556" />
  <row Id="10536" PostId="10678" Score="0" Text="you are right. In this case, @Szegoo is correct. You can access the metadata via `&lt;Nfts as Inspect&gt;::attribute(&amp;collection_id, &amp;item_id, [])`. When you pass the key as empty it will access `ItemMetadataOf`, if you pass a non-empty key it will access the `Attribute`&#xA;https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/nfts/src/impl_nonfungibles.rs#L55" CreationDate="2023-12-19T08:58:35.370" UserId="2005" />
  <row Id="10537" PostId="7466" Score="0" Text="@Bruno hi,&#xA;What is the conclusion? How can we solve this?&#xA;Iam also facing the same issue `HTTP serve connection failed hyper::Error(Parse(Method))` while connecting as validator to boot node&#xA;I have launched a substrate-node-template with AWS&#xA;I have opened ports as well, I have confirmed by checking metrics ports of two nodes" CreationDate="2023-12-19T09:52:33.497" UserId="2985" />
  <row Id="10538" PostId="7466" Score="0" Text="@OliverTale-Yazdi could you please help me here by looking above comment" CreationDate="2023-12-19T09:54:16.780" UserId="2985" />
  <row Id="10539" PostId="10663" Score="0" Text="@dastansam Did you use read and write module as well?" CreationDate="2023-12-19T11:33:02.630" UserId="3437" />
  <row Id="10540" PostId="10671" Score="0" Text="There should also be a check in place now to prevent this when the `try-runtime-cli` is used. It errors and reports that some pallet version must be initialized." CreationDate="2023-12-19T12:52:35.753" UserId="94" />
  <row Id="10541" PostId="10687" Score="0" Text="You'd better improving your service structure. Iterating over a map haphazardly is unwise IMO." CreationDate="2023-12-19T14:31:16.777" UserId="251" />
  <row Id="10542" PostId="10687" Score="0" Text="@AurevoirXavier I see, do you know if there is any common pattern? It seems to be an issue that people commonly face" CreationDate="2023-12-19T14:46:49.500" UserId="3395" />
  <row Id="10543" PostId="10689" Score="1" Text="Yeah correct, I have live chain already running and we need to add authorities keys(aura and grandpa) to the chain.&#xA;Can you please share any reference how we can do that?" CreationDate="2023-12-19T18:04:38.707" UserId="377" />
  <row Id="10544" PostId="10663" Score="0" Text="@dastansam Even with this library, we can't bind and open web socket server. We have to use TcpListener and TcpStream, which are available in Rust standard library. Please let me know if I am missing anything." CreationDate="2023-12-20T05:50:05.370" UserId="3437" />
  <row Id="10545" PostId="10689" Score="0" Text="I think if you are using the default implementation of AURA , you are unable to add new authority. You need to have implemented add_authority in pallet aura instead" CreationDate="2023-12-20T07:21:40.590" UserId="445" />
  <row Id="10546" PostId="10609" Score="0" Text="Ok so I can't make it work unfortunately. I tried different approaches including the above.  But so far, I can't even setup the pallet_treasury alone even with all the config traits and have it to compile successfully. I followed that tutorial, but the treasury is far from being simple as the nicks pallet! https://docs.substrate.io/tutorials/build-application-logic/add-a-pallet/ Are there other treasury examples, perhaps on git,  that follow the node template with the recent code (not 3 years old)? Many thanks in advance!" CreationDate="2023-12-21T03:19:48.600" UserId="4999" />
  <row Id="10547" PostId="10695" Score="0" Text="What do you mean by `change criteria of next authorities selection`" CreationDate="2023-12-21T04:55:15.037" UserId="354" />
  <row Id="10548" PostId="10694" Score="0" Text="explain a bit more" CreationDate="2023-12-21T04:56:44.497" UserId="354" />
  <row Id="10549" PostId="10697" Score="0" Text="It results in the following error:&#xA;&#xA;&#xA;error[E0277]: the trait bound `frame_support::dispatch::Pays: WeighData&lt;()&gt;` is not satisfied&#xA;   --&gt; pallets/credentials/src/lib.rs:242:12&#xA;    |&#xA;242 |     #[pallet::call]&#xA;    |               ^^^^ the trait `WeighData&lt;()&gt;` is not implemented for `frame_support::dispatch::Pays`&#xA;&#xA;FYI: First it gave a similar error about the admin argument, so I removed that completely, since it better to have that in Config anyway." CreationDate="2023-12-21T08:53:20.000" UserId="4556" />
  <row Id="10550" PostId="10695" Score="0" Text="@ShubhamGupta I edited the question. I want to find the function where the next set of authorities are picked?" CreationDate="2023-12-21T11:54:23.943" UserId="4794" />
  <row Id="10551" PostId="10703" Score="0" Text="Note: `Privakey != Secretkey`" CreationDate="2023-12-22T02:28:58.617" UserId="251" />
  <row Id="10552" PostId="10695" Score="0" Text="updated my answer do accept it if it solves your problem" CreationDate="2023-12-22T05:12:30.597" UserId="354" />
  <row Id="10553" PostId="10687" Score="0" Text="What's the use case? maybe with the idea of what you need we can see a better solution than iterate the StorageDoubleMap inside the runtime" CreationDate="2023-12-22T09:08:37.307" UserId="2762" />
  <row Id="10554" PostId="10687" Score="0" Text="@AlexBean use case added in the edit section" CreationDate="2023-12-22T21:40:59.513" UserId="3395" />
  <row Id="10555" PostId="4308" Score="0" Text="Isn't Cargo.lock autogenerated and it gets rewritten?" CreationDate="2023-12-22T22:13:56.057" UserId="3384" />
  <row Id="10556" PostId="7077" Score="0" Text="I wrote some more comprehensive notes for constructing types here https://substrate.stackexchange.com/questions/10705/how-can-you-use-polkadot-js-api-to-create-an-xcm-reserve-transfer-assets-xcm-v" CreationDate="2023-12-23T02:22:30.263" UserId="28" />
  <row Id="10557" PostId="4308" Score="1" Text="yeah. you should use `cargo update -p syn --precise 1.0.96` instead of my solution" CreationDate="2023-12-24T16:05:30.243" UserId="445" />
  <row Id="10558" PostId="10703" Score="0" Text="Can you talk more about that? I see that in the specific implementation, schnorrkel's `Keypair` just uses SecretKey object as the private key without further conversion." CreationDate="2023-12-25T01:24:30.473" UserId="5028" />
  <row Id="10559" PostId="10714" Score="0" Text="please elaborate a bit more on your setup in this project. I would guess this is related to an Epoch change failing" CreationDate="2023-12-27T02:25:08.660" UserId="116" />
  <row Id="10560" PostId="8690" Score="0" Text="during branch migration to polkadot-v0.9.38 which type of migration is required? Please summarize some points." CreationDate="2023-12-27T07:16:15.720" UserId="398" />
  <row Id="10561" PostId="10715" Score="0" Text="Any error message or just not receiving response?" CreationDate="2023-12-27T08:16:30.123" UserId="2762" />
  <row Id="10562" PostId="10715" Score="0" Text="I've updated the post describing the error message" CreationDate="2023-12-27T22:27:38.093" UserId="3598" />
  <row Id="10563" PostId="10714" Score="0" Text="It was due to a misconfigured runtime, failing to update the session config to use Babe over periodic sessions." CreationDate="2023-12-28T05:10:48.290" UserId="74" />
  <row Id="10564" PostId="10718" Score="0" Text="What are you trying to accomplish with this? Eg: how will it be used?" CreationDate="2023-12-28T14:36:47.023" UserId="94" />
  <row Id="10565" PostId="10715" Score="0" Text="What's your boot command?" CreationDate="2023-12-28T18:30:22.853" UserId="251" />
  <row Id="10566" PostId="10715" Score="0" Text="I've updated the post with the command" CreationDate="2023-12-28T21:43:36.587" UserId="3598" />
  <row Id="10567" PostId="10726" Score="0" Text="Thank you, I have. I am however confused about the runtime part. call: &lt;T as Config&gt;::RuntimeCall::from(Call::&lt;T&gt;::ping). I though I can use use Self:: but what i see is, that ping uses Call::" CreationDate="2023-12-31T14:57:08.617" UserId="5017" />
  <row Id="10568" PostId="10729" Score="1" Text="Thanks for the reference.&#xA;As this reference is to change the code if chain having gov1 to opengov.&#xA;In my case we don't have any governance for now on our chain. We are just using POA for now. Is there reference specifically for that?" CreationDate="2024-01-01T16:19:04.753" UserId="377" />
  <row Id="10569" PostId="10727" Score="0" Text="Thanks! But why would it be that I'm able to connect at first? it is only after the collator has been running for some time that I have the issue." CreationDate="2024-01-01T20:34:27.553" UserId="3598" />
  <row Id="10571" PostId="10732" Score="0" Text="this is work 4 me^ big thanks" CreationDate="2024-01-02T06:18:25.670" UserId="5044" />
  <row Id="10572" PostId="10728" Score="0" Text="But how i can generate the ethereum types account in the polkadot explorer?" CreationDate="2024-01-02T10:28:07.433" UserId="2372" />
  <row Id="10573" PostId="10704" Score="0" Text="Thanks it makes sense. Although I am finding it very difficult to find projects that use xcm-emulator apart from Polkadot. Do you have any idea why this is the case? Perhaps it's simply because they prefer to use other tools like Chopsticks, which I find curious" CreationDate="2024-01-02T12:14:12.063" UserId="3395" />
  <row Id="10574" PostId="10733" Score="0" Text="Try `&lt;T as frame_system::Config&gt;::RuntimeCall`, otherwise please post the full code." CreationDate="2024-01-02T13:22:12.960" UserId="94" />
  <row Id="10575" PostId="10733" Score="0" Text="I tried it earlier, it doesn't works." CreationDate="2024-01-02T13:23:39.857" UserId="3414" />
  <row Id="10579" PostId="10733" Score="0" Text="Then please post the full code - or better, a link to the GitHub. Otherwise its not possible to investigate." CreationDate="2024-01-03T11:54:15.710" UserId="94" />
  <row Id="10580" PostId="4275" Score="0" Text="I am experiencing the same problem with ALL extrinsic: polkadot-sdk/substrate, master branch. https://github.com/Fair-Squares/fair-squares/tree/optimize_9.40" CreationDate="2024-01-04T11:51:43.770" UserId="309" />
  <row Id="10581" PostId="10211" Score="0" Text="Please mark the response from xavier as &quot;Answer&quot; if it answered your question. This makes it easier for other people to find it." CreationDate="2024-01-04T13:59:41.987" UserId="94" />
  <row Id="10582" PostId="10636" Score="0" Text="This question has been asked countless of times, please use the search and theck the other Qs. Eg: [duplicate lang item in crate \`std\` (which \`my\_crate\` depends on): \`panic\_impl\`](https://substrate.stackexchange.com/questions/3432/duplicate-lang-item-in-crate-std-which-my-crate-depends-on-panic-impl)" CreationDate="2024-01-04T14:56:42.697" UserId="94" />
  <row Id="10583" PostId="10218" Score="0" Text="how about the existing  --rpc-port 9933?" CreationDate="2024-01-04T21:04:33.203" UserId="4794" />
  <row Id="10584" PostId="10636" Score="0" Text="@OliverTale-Yazdi Yes, I did before posting this question. But those answers didn't work with my case." CreationDate="2024-01-04T21:07:06.160" UserId="4794" />
  <row Id="10587" PostId="10743" Score="1" Text="Thank you for your detail comment; the last 3 paragraphs are what I need. I also updated my question. @oliver-tale-yazdi" CreationDate="2024-01-04T22:12:12.457" UserId="4794" />
  <row Id="10588" PostId="10218" Score="0" Text="Yep, that's the right one to use." CreationDate="2024-01-05T00:23:48.887" UserId="251" />
  <row Id="10589" PostId="10742" Score="0" Text="So you want to connect from your frontend application to a Substrate node over P2P? What do you want to do with that P2P connection? Receive block announcements, request blocks, send transactions, identify the Substrate node?" CreationDate="2024-01-05T08:55:53.880" UserId="3546" />
  <row Id="10590" PostId="10748" Score="1" Text="did you try `chmod +x ./zombienet-macos`?" CreationDate="2024-01-05T09:13:07.747" UserId="2005" />
  <row Id="10591" PostId="10749" Score="1" Text="3. `pallet-broker` is in `Coretime` system parachain of `Rococo` https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frococo-coretime-rpc.polkadot.io#/rpc" CreationDate="2024-01-05T09:15:02.010" UserId="2005" />
  <row Id="10592" PostId="10742" Score="0" Text="Yes, receiving block announcements isn't important. I just want my frontend to identify my Substrate network and send transactions without using any hardcoded RPC endpoints." CreationDate="2024-01-05T09:29:32.757" UserId="3538" />
  <row Id="10593" PostId="10742" Score="0" Text="https://github.com/lexnv/subp2p-explorer might be helpful. Sounds a lot like what you want to achieve" CreationDate="2024-01-05T10:12:30.250" UserId="3546" />
  <row Id="10594" PostId="10743" Score="0" Text="Then please mark it as answer, so other people find it." CreationDate="2024-01-05T11:35:50.860" UserId="94" />
  <row Id="10595" PostId="10752" Score="0" Text="Hi. I updated my question. With await, I tried but &quot;Unexpected reserved word 'await'. (32:22)&quot;" CreationDate="2024-01-05T11:54:51.313" UserId="4794" />
  <row Id="10596" PostId="10752" Score="0" Text="you are probably calling it inside a non-async function. Either convert your function to async one or try to unwrap the promise with `then()` https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then" CreationDate="2024-01-05T12:02:48.493" UserId="2005" />
  <row Id="10597" PostId="10752" Score="0" Text="Please test your code here: https://polkadot.js.org/apps/#/js after selecting your local development node on the left dropdown. Copy &amp; pasting my answer should work." CreationDate="2024-01-05T12:47:05.933" UserId="94" />
  <row Id="10598" PostId="10748" Score="1" Text="@dastansam Thanks it works" CreationDate="2024-01-05T13:14:54.237" UserId="3437" />
  <row Id="10599" PostId="4032" Score="0" Text="is there any examples on higher BlockWeights?" CreationDate="2024-01-05T17:18:59.327" UserId="3070" />
  <row Id="10600" PostId="2573" Score="0" Text="i have increased my BlockLength and i still cannot send a single extrinsic with over 4MB of data. is there anything else limiting the size?" CreationDate="2024-01-05T17:24:01.953" UserId="3070" />
  <row Id="10601" PostId="10742" Score="0" Text="is providing boot nodes necessary? or is there any other way too e.g. using Kademlia random walk like [here](https://github.com/paritytech/polkadot-sdk/blob/e5b2adac7ad5c44f0231af808e18258f4599c882/substrate/client/network/src/discovery.rs#L173)" CreationDate="2024-01-05T18:36:12.450" UserId="3538" />
  <row Id="10602" PostId="10742" Score="0" Text="I haven't tried to the tool myself but is it not possible to use your Substrate node as a bootnode?" CreationDate="2024-01-06T08:45:39.707" UserId="3546" />
  <row Id="10603" PostId="4918" Score="0" Text="Hi, could you share your source code?" CreationDate="2024-01-06T08:45:52.750" UserId="4794" />
  <row Id="10604" PostId="10742" Score="0" Text="yes, it is. I was just wondering about another possibility for the network discovery." CreationDate="2024-01-06T11:02:09.763" UserId="3538" />
  <row Id="10605" PostId="10742" Score="0" Text="However, thank you for sharing this, I believe I can utilize it for my network." CreationDate="2024-01-06T11:02:41.487" UserId="3538" />
  <row Id="10609" PostId="10775" Score="0" Text="And specifically, Substrate uses clap's derive macros (formerly known as structopt)" CreationDate="2024-01-09T05:28:23.920" UserId="372" />
  <row Id="10611" PostId="9721" Score="0" Text="Please add the params as provided above - in order to get the logs, of why the error occurs. Are you sure that the running node contains all pallets needed etc?" CreationDate="2024-01-09T11:22:10.687" UserId="629" />
  <row Id="10612" PostId="10776" Score="0" Text="Moved to GH issue." CreationDate="2024-01-09T11:30:18.870" UserId="139" />
  <row Id="10613" PostId="10783" Score="0" Text="sure &lt;minimum comment length&gt;" CreationDate="2024-01-09T11:30:54.100" UserId="139" />
  <row Id="10614" PostId="10767" Score="0" Text="do you want to map the nodes to their on-chain accounts?" CreationDate="2024-01-09T13:01:48.640" UserId="2005" />
  <row Id="10615" PostId="10767" Score="0" Text="Yes @dastansam, Do you have any suggestions for it?" CreationDate="2024-01-09T13:46:29.800" UserId="3538" />
  <row Id="10616" PostId="10331" Score="0" Text="@ImmanuelJohn did you manage to fix this?" CreationDate="2024-01-09T15:02:36.133" UserDisplayName="user5062" />
  <row Id="10617" PostId="10775" Score="0" Text="Could you please tell me if --dev is a built-in feature of clap? Also, is there a way for the node to determine if the user has provided this flag in the CLI?" CreationDate="2024-01-10T06:05:17.000" UserId="4129" />
  <row Id="10618" PostId="10775" Score="0" Text="First question clap is a cli framework, `--dev` is a custom flag that they use this framework to build. Second question https://github.com/substrate-developer-hub/substrate-node-template/blob/41ad4a6c9d712ac4b6e16e79a8b3837af8234f46/node/src/command.rs#L43." CreationDate="2024-01-10T06:26:37.633" UserId="251" />
  <row Id="10619" PostId="10331" Score="0" Text="Would appreciate if this one is answered, I'm getting the same error" CreationDate="2024-01-10T10:02:28.620" UserId="2747" />
  <row Id="10620" PostId="10783" Score="0" Text="Hey @Purple_Turtle, we are thinking on replace whitespaces with dashes as a workaround for this and I want to ask you if that ok for you or you need the whitespaces in the name for some reason? Thx (note: can you reply in the issue please)" CreationDate="2024-01-10T12:27:31.863" UserId="279" />
  <row Id="10621" PostId="10790" Score="0" Text="Cannot really read your post but try to replace `T::AccountId` with `&lt;T as frame_system::Config&gt;::AccountId` in the `StorageMap` definition." CreationDate="2024-01-10T14:40:29.133" UserId="94" />
  <row Id="10622" PostId="10789" Score="0" Text="You wan to in information from the node into a pallet or the other way around extract information from a pallet into the node?" CreationDate="2024-01-10T14:42:18.443" UserId="94" />
  <row Id="10623" PostId="4057" Score="0" Text="Can you help is adding substrate-validator-set pallet after Genesis?" CreationDate="2024-01-10T15:02:10.233" UserId="398" />
  <row Id="10624" PostId="10789" Score="0" Text="Actually I want information of the node/miner who authorise the block at the time of block authorisation. I'm thinking if i can build a pallet which contains miner/node information and we can fetch that on the block production time." CreationDate="2024-01-10T15:31:48.217" UserId="555" />
  <row Id="10625" PostId="10742" Score="0" Text="@AaroAltonen I just needed one more confirmation, please. Does this libp2p crawler get only one node if more than one node is running on the same IP?" CreationDate="2024-01-11T06:48:48.817" UserId="3538" />
  <row Id="10626" PostId="10797" Score="0" Text="Hope you are not passing a `Vec&lt;u8&gt;` where a `[u8; 16]` is expected. Writing a test in Rust first can also help to ensure that the extrinsic works as expected." CreationDate="2024-01-11T12:51:12.263" UserId="94" />
  <row Id="10627" PostId="10800" Score="0" Text="For what are you trying to use batch insertions?" CreationDate="2024-01-11T14:05:38.833" UserId="94" />
  <row Id="10628" PostId="10398" Score="0" Text="@Pankaj can you share some example code to change aura/grandpa keys with session pallet?" CreationDate="2024-01-11T16:33:23.697" UserId="398" />
  <row Id="10629" PostId="10791" Score="0" Text="Thanks for the answer. So based on https://github.com/paritytech/substrate/issues/6742 to get the finalized block hash, we are calling local node chain_getFinalizedHead rpc from OCW and using frame_system::block_hash trying to match retrieved finalized block hash with a block number. It's hacky but gets the job done. If you know a better way of passing finalized block number/hash to OCW please let me know." CreationDate="2024-01-11T18:15:55.227" UserId="3053" />
  <row Id="10630" PostId="10742" Score="0" Text="What do you mean by &quot;getting a node&quot;? I'm not author of the tool nor familiar with it so it maybe a good idea to open issue in the repository," CreationDate="2024-01-12T06:24:56.780" UserId="3546" />
  <row Id="10632" PostId="10806" Score="0" Text="actually I tried this but it was still the same. running 0 tests" CreationDate="2024-01-12T15:42:11.310" UserId="4794" />
  <row Id="10633" PostId="10805" Score="0" Text="I found the problem, I need to add ```pub mod mock;&#xA;mod tests;``` in the ```lib.rs``` file. I made it be comment before." CreationDate="2024-01-12T16:42:51.157" UserId="4794" />
  <row Id="10634" PostId="10805" Score="0" Text="That would be it. It's a pity IDEs don't warn about files not being included. Actually I think the intellij rust plugin probably does warn you about this." CreationDate="2024-01-13T07:27:04.307" UserId="85" />
  <row Id="10635" PostId="10789" Score="0" Text="Have a look at pallet_authorship ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/authorship/src/lib.rs ) and the FindAuthor trait https://github.com/paritytech/polkadot-sdk/blob/bd80dcf6858a0ec9e61b5aceab933979f7258d2b/substrate/frame/support/src/traits/validation.rs#L55" CreationDate="2024-01-13T07:30:32.317" UserId="85" />
  <row Id="10636" PostId="10805" Score="0" Text="@Squirrel i use VS code. :( Rust-analyzer sometimes just makes me more confused." CreationDate="2024-01-13T16:10:13.613" UserId="4794" />
  <row Id="10638" PostId="10783" Score="0" Text="@Purple_Turtle as note, this is already fixed by https://github.com/paritytech/zombienet/issues/1659 and will be part of the next release. Thanks for your feedback!" CreationDate="2024-01-14T16:57:14.070" UserId="279" />
  <row Id="10639" PostId="10689" Score="0" Text="hi @Josh&#xA;I have added the pallet_session and pallet_validator_set to a running solo chain. But i am getting Aura authority errors. Can you please help me in setting Runtime Migration ?" CreationDate="2024-01-14T17:45:54.547" UserId="398" />
  <row Id="10640" PostId="10816" Score="0" Text="Though not merged, you can use this if you want `polkadot-v1.5.0` exclusively : https://github.com/paritytech/extended-parachain-template/pull/100" CreationDate="2024-01-15T10:16:32.957" UserId="139" />
  <row Id="10641" PostId="3813" Score="0" Text="i am also planning to add validator-set pallet in running solo chain. can you please guide me about setting its storage ?" CreationDate="2024-01-15T14:04:22.973" UserId="398" />
  <row Id="10642" PostId="10825" Score="1" Text="Great question, but I'd suggest raising this in the issue tracker (if it's not there already)." CreationDate="2024-01-15T15:22:33.077" UserId="85" />
  <row Id="10643" PostId="10825" Score="1" Text="Btw I love that you're load testing with is that 5,000tps?" CreationDate="2024-01-15T15:23:56.117" UserId="85" />
  <row Id="10644" PostId="10825" Score="3" Text="Where does the error appear? In Polkadot or in something interfacing with a Polkadot node? I tested blocks with 300K+ events in the past and they were processed. But maybe PolkadotJS or indexers are assuming a u16 where it should be a u64." CreationDate="2024-01-15T16:05:11.557" UserId="94" />
  <row Id="10645" PostId="6735" Score="0" Text="i am also stuck in the same problem. i have added the pallet_session in running solo chain and now want to configure this OnRuntimeUpgrade to add initial authorities but unable to do so. please need some guidence" CreationDate="2024-01-15T16:20:27.180" UserId="398" />
  <row Id="10646" PostId="10825" Score="0" Text="Indeed, we got to pump the numbers ." CreationDate="2024-01-16T09:07:31.267" UserId="2135" />
  <row Id="10647" PostId="10825" Score="1" Text="@OliverTale-Yazdi thank you for your answer, as mentionned, the block is process correctly, the issue is from interfacing with the node." CreationDate="2024-01-16T09:08:21.550" UserId="2135" />
  <row Id="10648" PostId="10830" Score="2" Text="Using Subxt, I managed to decode the events si the issue is polkadot api related.&#xA;From here in particular : https://github.com/polkadot-js/api/blob/master/packages/types-codec/src/base/Vec.ts#L12&#xA;&#xA;I opened an issue on their repo : https://github.com/polkadot-js/api/issues/5782" CreationDate="2024-01-16T09:09:04.237" UserId="2135" />
  <row Id="10649" PostId="2979" Score="0" Text="Hi. Which function that calculate the amount of staking and determine candidates for the block producers?" CreationDate="2024-01-16T10:02:40.713" UserId="4794" />
  <row Id="10650" PostId="9511" Score="0" Text="hi @DaanvanderPlas what if we need to add pallet-session in running solo chain ?" CreationDate="2024-01-16T10:31:17.100" UserId="398" />
  <row Id="10651" PostId="9511" Score="0" Text="Please make separate question" CreationDate="2024-01-16T13:26:28.940" UserId="3317" />
  <row Id="10652" PostId="10242" Score="0" Text="Any udpate ? I am facing the same issue on my mac." CreationDate="2024-01-14T12:04:03.163" UserId="320" />
  <row Id="10653" PostId="10835" Score="0" Text="Does this answer your question? [After restarting a chain I get a ClientImport(&quot;Unexpect epoch change&quot;) error. What does this mean in English?](https://substrate.stackexchange.com/questions/707/after-restarting-a-chain-i-get-a-clientimportunexpect-epoch-change-error-wh)" CreationDate="2024-01-16T14:03:29.617" UserId="3331" />
  <row Id="10654" PostId="5194" Score="0" Text="hi @AurevoirXavier i want to call pallet_session set_keys. can you please guide me" CreationDate="2024-01-16T16:16:34.577" UserId="398" />
  <row Id="10655" PostId="3270" Score="0" Text="if i need to add pallet_session in a running chain how can i set authorities from AURA to session ?" CreationDate="2024-01-16T17:25:37.287" UserId="398" />
  <row Id="10656" PostId="10835" Score="0" Text="Partially, because when I used the time warp method (copied all of the data, revert the unfinalized block, setup time on my local system), it showed the error&#xA;&#xA;```&#xA;2024-01-15 12:08:00 Skipping chain: unable to gather info about imported block (0x4aee7d7263413bc5502369e47e58b9cf84ace05ed12635150f7a6001cd245f25, 3180951): block is from an ancient session&#xA;```" CreationDate="2024-01-16T23:17:46.720" UserId="162" />
  <row Id="10657" PostId="10670" Score="0" Text="I am facing a similar problem. Is it possible to connect my network to IPFS and then query the participating nodes in my network from IPFS using a `protocol-id` without providing any bootnodes?" CreationDate="2024-01-17T05:16:04.260" UserId="3538" />
  <row Id="10658" PostId="10670" Score="0" Text="If you want to use Kademlia for peer discovery, you must a priori knowledge of at least one node because you send that node the first `FIND_NODE` message which will then contain new 20 peers. Is there a particular issue you take with bootnodes?" CreationDate="2024-01-17T06:43:04.640" UserId="3546" />
  <row Id="10659" PostId="10842" Score="0" Text="How did you get the `accountData.total`? There isn't such a field in Substrate native code. I believe there is something wrong while you calculating this `total`." CreationDate="2024-01-17T08:54:52.993" UserId="251" />
  <row Id="10660" PostId="4652" Score="0" Text="Can you please tell me what the reason is for splitting?" CreationDate="2024-01-17T09:04:12.257" UserId="3729" />
  <row Id="10661" PostId="10838" Score="0" Text="The shared example describes the change in session_keys but i am adding pallet_session first time. can you please share such example." CreationDate="2024-01-17T10:07:02.403" UserId="398" />
  <row Id="10662" PostId="10391" Score="0" Text="I tried with zombie net and it worked" CreationDate="2024-01-17T10:44:05.417" UserId="4862" />
  <row Id="10663" PostId="10842" Score="0" Text="I did free + reserved = Total &#xA;&#xA;https://github.com/DOTisDED/snapshot/blob/9c2697c10332578bdb90ed800ed344faec11aa60/snapshot/snapshot-dot.cjs#L114C11-L114C11&#xA;&#xA;I also checked by adding all free and all reserve then adding after, still the same discrepency." CreationDate="2024-01-17T11:02:02.837" UserId="298" />
  <row Id="10664" PostId="10670" Score="0" Text="Yes, I want to connect my frontend application with the Substrate network (details [here](https://substrate.stackexchange.com/questions/10742/connect-a-frontend-application-with-a-substrate-blockchain-as-a-backend-without)), and providing bootnodes might not be helpful in this scenario if those nodes go out of the network." CreationDate="2024-01-17T11:13:49.813" UserId="3538" />
  <row Id="10665" PostId="10842" Score="1" Text="Hm, could be a bug. I re-measured it and got `21446.7999589735`." CreationDate="2024-01-17T13:18:08.730" UserId="94" />
  <row Id="10666" PostId="10842" Score="0" Text="thanks for measuring yourself... what kind of bug are you referring to? did you measure with my script or with your own script? and what was the blocknumber you measured it at?" CreationDate="2024-01-17T13:21:30.407" UserId="298" />
  <row Id="10667" PostId="10842" Score="1" Text="Own script. Not sure what it could be, maybe its also expected. I asked some other people. But there were some migrations in the past that could mess with stuff. Block number must have been 30 min old or so." CreationDate="2024-01-17T13:22:10.497" UserId="94" />
  <row Id="10668" PostId="10842" Score="0" Text="ok interesting. perhaps it was from genesis let me snapshot block 1 lol" CreationDate="2024-01-17T13:23:26.110" UserId="298" />
  <row Id="10670" PostId="10842" Score="0" Text="block 1 was 0 with6  accounts &#xA;block 100,000 was 150,633, 844 and totalIssuance shows the same. which proves that &quot;its not me its you polkadot&quot;" CreationDate="2024-01-17T13:39:16.700" UserId="298" />
  <row Id="10671" PostId="10842" Score="0" Text="Can you find the first block where it fails with binary search on the block number? That would help, thanks!" CreationDate="2024-01-17T13:44:19.140" UserId="94" />
  <row Id="10672" PostId="10843" Score="0" Text="Yeah worked!, But why we need to put phantom type? and why we get unconstrained error?" CreationDate="2024-01-17T13:54:26.193" UserId="555" />
  <row Id="10673" PostId="10838" Score="0" Text="should i need to set Aura authorities again during migration ?" CreationDate="2024-01-17T14:52:09.077" UserId="398" />
  <row Id="10674" PostId="10838" Score="0" Text="Follow that example. Replace `storage::translate` with `storage::put` or `storage::insert`, depending on your needs." CreationDate="2024-01-17T16:25:27.613" UserId="251" />
  <row Id="10675" PostId="10842" Score="0" Text="at block 313222, an account(s) lost almost exactly 20,000 DOT. Before this time, the discrepancy is 0 and after this time, the discrepancy differs." CreationDate="2024-01-17T16:59:43.917" UserId="298" />
  <row Id="10676" PostId="10854" Score="1" Text="Thanks for the block number! I see account `11gh7WpYe5CKN82opEkrZUJsHeaFZa3pdEkEZFSMkV3k1Xj` was deleted with that much balance." CreationDate="2024-01-17T17:31:39.327" UserId="94" />
  <row Id="10677" PostId="10854" Score="0" Text="if we can find out why we should propose a tip to replenish the account (minus finders fee : D)" CreationDate="2024-01-17T17:56:31.827" UserId="298" />
  <row Id="10678" PostId="10838" Score="0" Text="Based on my current understanding, you don't need to reset the AURA authorities. However, you should always test these on your testnet first." CreationDate="2024-01-17T20:24:05.720" UserId="251" />
  <row Id="10680" PostId="2184" Score="0" Text="@peilin I am aslo facing the same issue, can you help me with how you resolved it." CreationDate="2024-01-18T14:01:29.643" UserId="2348" />
  <row Id="10681" PostId="10860" Score="1" Text="Thanks for your answer!" CreationDate="2024-01-18T15:44:24.497" UserId="5081" />
  <row Id="10683" PostId="10872" Score="0" Text="how to check it via ``cargo tree``" CreationDate="2024-01-20T14:56:32.203" UserId="4794" />
  <row Id="10684" PostId="10872" Score="0" Text="not sure about that, but you can use `cargo-featalign` to check for missing features https://github.com/hack-ink/cargo-featalign" CreationDate="2024-01-20T19:37:45.120" UserId="2005" />
  <row Id="10685" PostId="10876" Score="0" Text="Thanks, I missed this bit." CreationDate="2024-01-22T07:44:06.873" UserId="4121" />
  <row Id="10686" PostId="6594" Score="0" Text="What is the difference between a local and live machine?" CreationDate="2024-01-22T12:55:39.250" UserId="2372" />
  <row Id="10687" PostId="10865" Score="0" Text="how about BABEAuthorityWeight?" CreationDate="2024-01-22T13:16:09.850" UserId="4794" />
  <row Id="10688" PostId="4910" Score="0" Text="@kianenigma hi, and how to update the BabeAuthorityWeight from a custom pallet?" CreationDate="2024-01-22T13:41:55.710" UserId="4794" />
  <row Id="10689" PostId="10882" Score="0" Text="yes, I use api.query.staking.ledger to get unbonding info. but now I want to get the bond balance of nominator pool with specific pool member address which is different from the staking in validator." CreationDate="2024-01-23T02:05:40.733" UserId="5090" />
  <row Id="10690" PostId="10883" Score="0" Text="Which version substrate are you working on ?" CreationDate="2024-01-23T02:51:41.950" UserId="445" />
  <row Id="10692" PostId="10885" Score="0" Text="That works indeed. The only issue I have is that, when trying to import the type, I get the error: &#xA;```&#xA;Module '&quot;../../interfaces/lookup&quot;' has no exported member 'PalletNftsItemMetadata'. Did you mean to use 'import PalletNftsItemMetadata from &quot;../../interfaces/lookup&quot;' instead?&#xA;```&#xA;&#xA;It's strange, because PalletNftsItemMetadata is under export default." CreationDate="2024-01-23T10:24:49.263" UserId="4556" />
  <row Id="10693" PostId="10885" Score="0" Text="yeah, it could be the case. Did you also include the new types/interfaces in the `tsconfig.json`? If you have included them, they should be available from normal `@polkadot/types` package" CreationDate="2024-01-23T13:19:21.520" UserId="2005" />
  <row Id="10694" PostId="10885" Score="0" Text="Yes, I followed the instructions and added paths to tsconfig.json:&#xA;&#xA;&quot;paths&quot;: {&#xA;      // this is the package name we use (in the interface imports, --package for generators)&#xA;      &quot;incentiverse/*&quot;: [&quot;./src/*&quot;],&#xA;      // here we replace the @polkadot/api augmentation with our own, generated from chain&#xA;      &quot;@polkadot/api/augment&quot;: [&quot;./src/interfaces/augment-api.ts&quot;],&#xA;      // replace the augmented types with our own, as generated from definitions&#xA;      &quot;@polkadot/types/augment&quot;: [&quot;./src/interfaces/augment-types.ts&quot;]&#xA;    }" CreationDate="2024-01-23T14:01:02.467" UserId="4556" />
  <row Id="10695" PostId="10885" Score="0" Text="Also trying to import as `import type { PalletNftsItemMetadata } from '@polkadot/types';` results in the same no exported member error." CreationDate="2024-01-23T14:04:11.227" UserId="4556" />
  <row Id="10699" PostId="10890" Score="0" Text="Check [this](https://substrate.stackexchange.com/questions/7896/using-app-crypto-public-type-as-accountid-in-the-runtime/8026#8026) answer, it might help" CreationDate="2024-01-24T10:45:44.120" UserId="3395" />
  <row Id="10700" PostId="10890" Score="0" Text="@magecnion: it said &quot;= note: `Public` and `sp_consensus_babe::app::Public` have similar names, but are actually distinct types&#xA;  note: `Public` is defined in crate `sp_core`&quot;" CreationDate="2024-01-24T11:49:39.383" UserId="4794" />
  <row Id="10703" PostId="8026" Score="0" Text="Hi, it has an error at ''into''. Could you please check my code? https://github.com/kajqt/pos-node/blob/dev/frame/babe/src/lib.rs" CreationDate="2024-01-25T09:37:35.847" UserId="4794" />
  <row Id="10704" PostId="10719" Score="0" Text="peer count 0 means it can't see the bootnode (note also 0 network activity). If the public key was different it would tell you in the error message. So check you can ping the IP and check that the port is open and not blocked." CreationDate="2024-01-25T10:37:23.687" UserId="85" />
  <row Id="10705" PostId="10351" Score="1" Text="Thanks for reporting this, it's a bug / limitation with the technique used by try-runtime-cli to generate the compact proof. Tracked here, https://github.com/paritytech/try-runtime-cli/issues/76 I hope to fix it soon." CreationDate="2024-01-25T14:13:02.020" UserId="3991" />
  <row Id="10706" PostId="10547" Score="1" Text="FYI, this already happened for Kusama ecosystem with the 1.1.0 runtime upgrade, and will follow in the next couple of weeks in Polkadot (when the runtime upgrade is enacted)." CreationDate="2024-01-25T14:36:24.467" UserId="2025" />
  <row Id="10707" PostId="1437" Score="0" Text="Maybe you can answer this. I'm looking at how `offchain_indexing_enabeld` is used specifically, when I see BasicExternalities, I see the `set_offchain_storage` function is unimplemented. So wondering where I can find the actual implementation of `set_offchain_storage` and how `offchain_indexing_enabeld` flag changes the behavior" CreationDate="2024-01-26T07:51:27.887" UserId="2055" />
  <row Id="10708" PostId="10613" Score="0" Text="Did you managed to solve this, I'm experiencing the same issue" CreationDate="2024-01-26T13:04:34.190" UserId="4081" />
  <row Id="10709" PostId="10613" Score="0" Text="No, I haven't, still looking for a solution" CreationDate="2024-01-26T15:37:23.293" UserId="3598" />
  <row Id="10711" PostId="10910" Score="0" Text="Which setup are you using, because the answer is &quot;it depends... &quot; as you asked the question right now." CreationDate="2024-01-29T01:07:43.143" UserId="116" />
  <row Id="10712" PostId="10910" Score="0" Text="In you genesis block there is probably a section for default validators" CreationDate="2024-01-29T01:09:34.640" UserId="116" />
  <row Id="10713" PostId="10351" Score="1" Text="This will be fixed in https://github.com/paritytech/try-runtime-cli/pull/77 and released in v0.5.4 today." CreationDate="2024-01-29T07:21:09.210" UserId="3991" />
  <row Id="10714" PostId="10915" Score="0" Text="Yeah got it!.Thank you so much. I'm working on substrate pow chain and if i want to change some logic of miners selection, what all files I need to look into(any rough idea)?" CreationDate="2024-01-29T17:04:25.420" UserId="555" />
  <row Id="10715" PostId="10904" Score="0" Text="When I add the relaychain.genesis configuration items to the zombinet config file, the network fails to start, I get the following error: &quot;Error parsing spec file: expected value at line 199 column 5&quot; do you know why might this be?" CreationDate="2024-01-29T18:39:47.723" UserId="3598" />
  <row Id="10716" PostId="10913" Score="1" Text="Nodes usually have a certain maximum value of transactions allowed in the transaction pool. Configured via `--pool-limit` and defaults to `8192`. But this might not be the problem, I'm just speaking from the top of my head." CreationDate="2024-01-30T02:08:25.610" UserId="165" />
  <row Id="10717" PostId="10913" Score="0" Text="You might want to check the logs of the node. `-ltxpool=trace` should give you more information" CreationDate="2024-01-30T02:10:33.537" UserId="165" />
  <row Id="10718" PostId="10913" Score="0" Text="thanks, seems like i should run my own RPC if i want to change the limit and check logs." CreationDate="2024-01-30T09:54:34.583" UserId="298" />
  <row Id="10719" PostId="10913" Score="0" Text="however i am not sure --pool-limit is the issue because i am feeding in 1 TX at a time. I am waiting until the TX is included in block then i am feeding another." CreationDate="2024-01-30T10:11:31.440" UserId="298" />
  <row Id="10720" PostId="7466" Score="0" Text="I have this same problem with default 1.5.0 binaries and zombienet 1.3.91" CreationDate="2024-01-30T14:23:16.110" UserId="380" />
  <row Id="10721" PostId="10919" Score="0" Text="Do you know the specific changes I need to make. Preety new to substrate and it is becoming extremely hard to  figure out the changes." CreationDate="2024-01-30T18:36:55.833" UserId="5108" />
  <row Id="10722" PostId="10919" Score="0" Text="Your pallet is pretty simple.&#xA;Just put your logic into the template part by part, then everything should work." CreationDate="2024-01-30T19:47:34.893" UserId="251" />
  <row Id="10723" PostId="10919" Score="0" Text="And if you encounter an error after modifying a part. Search that error in this site. For example, `Event` to `RuntimeEvent`, there were already a lot of existing answers." CreationDate="2024-01-30T19:49:33.203" UserId="251" />
  <row Id="10724" PostId="10904" Score="0" Text="What version of rococo are you using?? It has to be 1.3.0 or higher" CreationDate="2024-01-30T19:56:16.147" UserId="4081" />
  <row Id="10725" PostId="10904" Score="0" Text="I'm using version 1.6.0" CreationDate="2024-01-31T00:07:36.793" UserId="3598" />
  <row Id="10726" PostId="10905" Score="0" Text="Were you able to solve it? I'm having a similar issue" CreationDate="2024-01-31T08:15:22.350" UserId="3538" />
  <row Id="10727" PostId="10925" Score="0" Text="So if we doing some storage updation inside the `on_finalize` that will validated by the validators. right?" CreationDate="2024-01-31T13:38:07.570" UserId="555" />
  <row Id="10728" PostId="10913" Score="0" Text="if i submit a transaction after finalization it works very well, just a little bit slower of course." CreationDate="2024-01-31T13:47:23.957" UserId="298" />
  <row Id="10729" PostId="10905" Score="0" Text="@Discardo Yes, I've solved it by using sp_io::crypto::ecdsa_sign_prehashed to correspond sp_io::crypto::secp256k1_ecdsa_recover, but I modified the EthereumSigner this way pub struct EthereumSigner([u8; 20], Option&lt;ecdsa::Public&gt;) and impled all the From and Into traits neccessary." CreationDate="2024-01-31T14:25:47.570" UserId="5079" />
  <row Id="10730" PostId="10905" Score="0" Text="@Discardo before using sp_io::crypto::ecdsa_sign_prehashed, I encryptoed my payload message with keccak_256 as what the verify method of EthereumSignature does" CreationDate="2024-01-31T14:33:01.750" UserId="5079" />
  <row Id="10731" PostId="10925" Score="1" Text="Yea. Same as `on_initialize`." CreationDate="2024-01-31T15:04:15.623" UserId="94" />
  <row Id="10732" PostId="10926" Score="1" Text="Would be nice to have, yes. Dont know if its maybe possible as impromptu pallet, but the previous idea was to allow parachains to read each others' full states: https://github.com/paritytech/polkadot-sdk/issues/1960" CreationDate="2024-01-31T16:35:55.590" UserId="94" />
  <row Id="10733" PostId="10925" Score="0" Text="Thank you so much for the help" CreationDate="2024-01-31T17:17:46.160" UserId="555" />
  <row Id="10734" PostId="10931" Score="0" Text="Can you show us the full code maybe? It seems correct so far." CreationDate="2024-02-01T11:24:21.007" UserId="94" />
  <row Id="10735" PostId="10931" Score="0" Text="@OliverTale-Yazdi, Added a bit more code as you asked. Hope it will be helpful." CreationDate="2024-02-01T11:37:07.870" UserId="309" />
  <row Id="10736" PostId="10934" Score="0" Text="can you explain a bit more what you are trying to acheive?" CreationDate="2024-02-01T14:57:35.380" UserId="354" />
  <row Id="10737" PostId="10934" Score="0" Text="If let's say we have at block 10 and if this block is finalised then i need to find the list of validators who approve this 10th block." CreationDate="2024-02-01T16:23:05.570" UserId="555" />
  <row Id="10738" PostId="10937" Score="0" Text="What about not using an offchain worker with an API call? Wouldn't this be a huge risk if the API call + computation doesn't complete by the end of the block?" CreationDate="2024-02-01T16:49:42.053" UserId="5023" />
  <row Id="10739" PostId="5395" Score="0" Text="will it work in pow substrate chain?" CreationDate="2024-02-01T17:08:08.947" UserId="555" />
  <row Id="10740" PostId="10937" Score="0" Text="I see, so basically you're saying instead of calling through http, just require users to send the data in? because it technically works this way.  instead of calling, we could allow a gasless tx with slashing if not honest" CreationDate="2024-02-01T18:49:27.427" UserId="5023" />
  <row Id="10741" PostId="10938" Score="0" Text="You need to install the protobuf compiler for your system." CreationDate="2024-02-01T19:25:12.630" UserId="139" />
  <row Id="10742" PostId="10933" Score="0" Text="Do validators have enough time to propagate the transaction before it becomes invalid?" CreationDate="2024-02-02T00:59:22.763" UserId="270" />
  <row Id="10743" PostId="10937" Score="0" Text="Pallet method that accepts data, offchain worker makes api call and calls the pallet with the data it fetched. From the POV of the pallet it doesn't know it's an offchain worker that'll usually be calling it. The offchain worker just automates what would otherwise be a laborious manual task of periodically calling the pallet." CreationDate="2024-02-02T05:36:41.950" UserId="3991" />
  <row Id="10745" PostId="10941" Score="0" Text="How to get these validators data in a pallet?" CreationDate="2024-02-02T07:36:00.607" UserId="555" />
  <row Id="10749" PostId="10941" Score="0" Text="One solution is to add a new associated type in the config trait of the pallet and bound the trait FindAuthor. The trait FindAuthor is implemented inside the pallet session onto some structure. When user will configure its runtime he will put the correct type in the configuration of the pallet." CreationDate="2024-02-03T08:43:52.363" UserId="270" />
  <row Id="10750" PostId="10905" Score="0" Text="Unfortunately, I'm still getting the `BadProof` error even after using the `ecdsa_sign_prehashed` in the the `sign` method of the `AppCrypto` trait" CreationDate="2024-02-03T13:04:28.817" UserId="3538" />
  <row Id="10751" PostId="10905" Score="0" Text="Do I need to make some changes in the `verify` method too?" CreationDate="2024-02-03T13:05:02.870" UserId="3538" />
  <row Id="10754" PostId="10952" Score="0" Text="Actually we are working on pow consensus, so we don't have aura or babe. We are passing default as a block author as you can see here: https://github.com/Polkadot-Blockchain-Academy/Academy-PoW/blob/b522da48f928101c1b05060af7efbbe0c71ccc76/node/src/service.rs#L105C11-L107C1" CreationDate="2024-02-04T18:05:06.393" UserId="555" />
  <row Id="10755" PostId="10952" Score="0" Text="How to add actual bock author instead of Default?" CreationDate="2024-02-04T18:06:07.737" UserId="555" />
  <row Id="10756" PostId="10947" Score="0" Text="The target folder does not come only from downloading, part of it are the compiled files created by the compiler.&#xA;&#xA;That said I don't know how much it downloads.&#xA;Also downloads can actually be downloaded to `.cargo/` folder (on linux at least)&#xA;&#xA;But I don't have solutions. Maybe connecting to a remote server and doing development from there can cost less bandwidth?" CreationDate="2024-02-05T03:54:16.303" UserId="270" />
  <row Id="10757" PostId="10937" Score="1" Text="I ended up going with the route of not using an offchain worker and instead requiring multiple users to send the data in using Pays::No tx so its gasless with rate limiters. this allows to blockchain to know whos calling it and whos allowed and how often. using offchain + unsigned leaves all the functions public" CreationDate="2024-02-05T15:06:39.590" UserId="5023" />
  <row Id="10760" PostId="10964" Score="0" Text="Thank you so much for your response. What you said, totally make sense. Can you please confirm when you tried to pass the block author from digest?" CreationDate="2024-02-06T14:28:33.977" UserId="555" />
  <row Id="10761" PostId="10965" Score="0" Text="Does not build for me with `use of undeclared crate or module imp`. On commits `d516799` and `16192d`." CreationDate="2024-02-06T15:16:28.373" UserId="94" />
  <row Id="10762" PostId="10965" Score="0" Text="yes, I saw that a while ago, but it disappeared.&#xA;that actually makes me suspect feature propagation issues, but zepter is happy" CreationDate="2024-02-06T16:23:35.670" UserId="360" />
  <row Id="10763" PostId="10965" Score="0" Text="Can you delete your target folder and check if the issue still appears?  &#xA;I assume maybe its not re-building the WASM? Since it looks more like a build error.  &#xA;I also see that `pallet-teerex` is enabling `test-utils` for benchmarking?  &#xA;You can check a bit with `zepter` `never-enables` or `never-implies`, but its a bit buggy. `--precondition runtime-benchmarks` or `default` and then `--stays-disabled std`." CreationDate="2024-02-06T17:09:37.213" UserId="94" />
  <row Id="10765" PostId="10966" Score="0" Text="Thanks! Is the issue also on Polkadot? Is there an ETA for the fix? Do you have the link to the issue?" CreationDate="2024-02-06T20:21:43.077" UserId="3598" />
  <row Id="10766" PostId="10964" Score="0" Text="To pass the block author from digest you could take inspiration from chains with Babe consensus. in Babe pallet the author index is passed through digest: https://github.com/paritytech/polkadot-sdk/blob/53f615de503c8936c2639f51b99019c64eab1018/substrate/frame/babe/src/lib.rs#L497-L511" CreationDate="2024-02-07T01:45:07.273" UserId="270" />
  <row Id="10767" PostId="9766" Score="0" Text="can you please me some link or info of how can i covert  struct into the valid hash as it is showing invalid identity" CreationDate="2024-02-07T05:43:16.293" UserId="2348" />
  <row Id="10768" PostId="10971" Score="0" Text="What linux are you using? Any WSL? And what version of the repo is it? Just tested on Ubuntu 23.10 and it works both." CreationDate="2024-02-07T11:29:43.400" UserId="94" />
  <row Id="10769" PostId="10965" Score="1" Text="your hint was very helpful: we indeed leaked std through test-utils. thank you very much!" CreationDate="2024-02-07T12:03:45.530" UserId="360" />
  <row Id="10772" PostId="10971" Score="0" Text="Maybe WSL is the issue, I'm running Ubuntu 20.04 on WSL. Thanks for confirming, will check my local env" CreationDate="2024-02-07T12:37:25.473" UserId="5131" />
  <row Id="10773" PostId="10971" Score="1" Text="@OliverTale-Yazdi thanks that was it" CreationDate="2024-02-07T12:47:31.753" UserId="5131" />
  <row Id="10774" PostId="10974" Score="0" Text="Not sure what the issue with 20.04 was, but it has already reached its EOL. But it might be better to add handling for the panic using `runtime/debug`" CreationDate="2024-02-07T12:53:08.830" UserId="5131" />
  <row Id="10775" PostId="10966" Score="0" Text="Updated the answer to add links to the issue" CreationDate="2024-02-07T14:11:16.193" UserId="3933" />
  <row Id="10776" PostId="10972" Score="1" Text="Yes the Polkadot-SDK Zepter config only checks that everything that needs to be enabled is also enabled.  &#xA;It does *not* check if too much is enabled... for example like leaking std. But i can add it :)" CreationDate="2024-02-07T15:16:19.367" UserId="94" />
  <row Id="10777" PostId="10972" Score="1" Text="I also think that there is a but somewhere in the WASM builder which is why it sometimes does not rebuild..." CreationDate="2024-02-07T15:20:27.723" UserId="94" />
  <row Id="10778" PostId="10966" Score="0" Text="Thanks Francisco!" CreationDate="2024-02-07T15:39:12.713" UserId="3598" />
  <row Id="10780" PostId="10962" Score="0" Text="I believe you can find the answer to your question [here](https://wiki.polkadot.network/docs/learn-auction#lease-extension-with-non-overlapping-slots)." CreationDate="2024-02-07T22:18:49.283" UserId="167" />
  <row Id="10781" PostId="10973" Score="0" Text="Hey Branislav, here is code: https://github.com/ParaSpell-Research-Foundation/polkadot-sdk-nft-pallet/blob/master/cumulus/parachain-template/pallets/xnft/src/lib.rs" CreationDate="2024-02-08T14:37:04.570" UserId="5119" />
  <row Id="10782" PostId="10973" Score="0" Text="To test code pull the repo, then compile parachain template using&#xA;&quot;cargo b -r -p parachain-template-node&quot; then compile polkadot node using&#xA;&quot;cd Polkadot &amp;&amp; cargo build --release&quot; , then launch via Zombienet: Navigate to binaries via &quot;cd binaries&quot; add your zombienet binary and run the command: &quot;./zombienet-macos -p native -c 1 spawn config.toml&quot;" CreationDate="2024-02-08T14:37:17.703" UserId="5119" />
  <row Id="10784" PostId="10984" Score="0" Text="Is this not the same as you asked last week https://substrate.stackexchange.com/q/10934/116 Please elaborate more how this is a different question" CreationDate="2024-02-09T13:26:41.877" UserId="116" />
  <row Id="10785" PostId="10984" Score="0" Text="Does this answer your question? [How to get the validators list?](https://substrate.stackexchange.com/questions/10934/how-to-get-the-validators-list)" CreationDate="2024-02-09T13:26:59.047" UserId="116" />
  <row Id="10787" PostId="10984" Score="0" Text="Who is the validator who &quot;approved&quot; the current block? Do you mean the block author? in this case: https://substrate.stackexchange.com/questions/5394/how-to-get-the-current-block-author/5395" CreationDate="2024-02-09T15:38:36.310" UserId="167" />
  <row Id="10788" PostId="10984" Score="0" Text="@kianenigma The validator who validate the current block" CreationDate="2024-02-09T15:54:36.100" UserId="555" />
  <row Id="10789" PostId="10984" Score="0" Text="@Simson this question(https://substrate.stackexchange.com/questions/10934/how-to-get-the-validators-list) does not have the answer what I'm expecting" CreationDate="2024-02-09T15:59:12.497" UserId="555" />
  <row Id="10790" PostId="10984" Score="0" Text="@DeepakChaudhary edit the question to tell us that, and give us a bit more context." CreationDate="2024-02-10T00:16:49.260" UserId="116" />
  <row Id="10792" PostId="10984" Score="0" Text="@Simson update the question, please let me know if you find something not understandable." CreationDate="2024-02-10T14:38:06.977" UserId="555" />
  <row Id="10793" PostId="10984" Score="1" Text="I have to ask the same. What do you mean by &quot;validated the current block&quot;? The only meaning of &quot;validate&quot; I know is the author, but I am not sure if that is what you mean." CreationDate="2024-02-10T15:18:00.690" UserId="167" />
  <row Id="10795" PostId="10984" Score="1" Text="@kianenigma sorry about that, let's say we have 10 validators which is going to participate in grandpa finality of the current block and out of 10 validators, 6 validators validate and approve the current block during grandpa finality process. So I need the public address of these 6 validators." CreationDate="2024-02-10T17:05:21.463" UserId="555" />
  <row Id="10796" PostId="10993" Score="0" Text="This is a very useful explanation of FRAME account abstractions, thank you for taking the time. &#xA;&#xA;&#xA;If i can just describe  my specific requirement i'm checking whether its possible currently to give for example MediumSpender the `Issuer` privilege of an asset on asset hub, so that `mint` can only happen through a referendum track. To mint requires `let origin = ensure_signed(origin)?;` which then has to be the issuer which must be `AccountIdLookupOf&lt;T&gt;,`... So i am wondering whether we can get the location of the MediumSpender and make it a AccountIdLookupOf&lt;T&gt; and make it pass as signed?" CreationDate="2024-02-10T18:30:21.377" UserId="298" />
  <row Id="10797" PostId="10993" Score="0" Text="And if not, is there any other way to do this where only the polkadot governance can execute the mint function but avoiding Root referendum which requires 100k DOT DD?&#xA;&#xA;i have asked this question here:&#xA;&#xA;https://substrate.stackexchange.com/questions/10988/how-to-give-a-polkadot-referendum-track-the-authority-to-mint-an-asset-on-asset" CreationDate="2024-02-10T18:30:27.983" UserId="298" />
  <row Id="10798" PostId="10986" Score="1" Text="I observe the same when upgrading from Polkadot-sdk 1.0.0 to 1.6.0" CreationDate="2024-02-11T16:07:01.287" UserId="360" />
  <row Id="10799" PostId="10993" Score="0" Text="I see, the way `pallet-assets` is designed right now, it is not possible for it to permit this. Currently, the pallet permits any signed origin to initiate a mint, and later on checks that it matches a given account-id that is stored as a part of an asset. See [here](https://github.com/paritytech/polkadot-sdk/blob/0ce506ef1bde225a55b056070e5e5f357a829c91/substrate/frame/assets/src/functions.rs#L415)." CreationDate="2024-02-12T09:01:07.287" UserId="167" />
  <row Id="10800" PostId="10993" Score="0" Text="You can represent &quot;the entirety of Polkadot&quot; on AH by assigning the Polkadot svreign account to be the minter in AH. Then, I suppose there is a way to let Polkadot send an XCM to AH with its sovereign account, if it is a mint operation (` Transact { call: pallet_asset::mint { .. } }`). &#xA;&#xA;But in general, there is no way to represent Polkadot's Medium Spender track on AH as an origin, as far as I know." CreationDate="2024-02-12T09:09:37.477" UserId="167" />
  <row Id="10801" PostId="10994" Score="0" Text="how do i check if the metadata is up to date ?&#xA;&#xA;what is metaHex and do i get it ?" CreationDate="2024-02-12T10:06:48.173" UserId="4577" />
  <row Id="10802" PostId="11002" Score="0" Text="Hey @Branislav, I have not yet implemented XcmSender to mock.rs only to Runtime. You can compile the Parachain template with the commands I sent in a comment where I sent a link for the code." CreationDate="2024-02-12T11:06:46.287" UserId="5119" />
  <row Id="10803" PostId="11002" Score="0" Text="I see, ok, so you are starting zombienet with two parachains (1000 and 1001) here https://github.com/ParaSpell-Research-Foundation/polkadot-sdk-nft-pallet/blob/master/binaries/config.toml#L21-L29. But in your example you use destination=2000. Also the runtime uses XcmRouter with XcmpQueue. So, if you want send XCM between parachain from 1000 -&gt; 1001 you need to open HRMP channel between paras (as I said in the previous comments) and change destination to 2000." CreationDate="2024-02-12T11:19:01.497" UserId="3445" />
  <row Id="10804" PostId="11003" Score="0" Text="Yep. The error should go away on its own after the next runtime upgrade, should open another issue if it doesn't." CreationDate="2024-02-12T12:03:43.580" UserId="3991" />
  <row Id="10805" PostId="10994" Score="1" Text="`metaHex` is just the metadata value is as a scale encoded hexadecimal. You can get it by calling `const metaHex = (await api.rpc.state.getMetadata()).toHex()`. As for updating the metadata, here is a concise answer on checking the version of the metadata: https://substrate.stackexchange.com/a/1359/1786 One way you can go about this is everytime there is a runtime change, to just update the metadata." CreationDate="2024-02-12T14:01:07.033" UserId="1786" />
  <row Id="10806" PostId="10993" Score="0" Text="I am/was thinking it could it possibly be convertable to an account id with `LocationToAcccountId`, similar to this test here: :&#xA;&#xA;https://github.com/paritytech/polkadot-sdk/blob/master/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/fellowship_treasury.rs#L31" CreationDate="2024-02-12T14:52:24.980" UserId="298" />
  <row Id="10807" PostId="11005" Score="1" Text="As a side feedback, I think your question is more a description of &quot;*what your understanding is*&quot;, rather than what you &quot;*wish to know*&quot;. It might help to formulate your question in a more concise and direct way. I am working on an answer nonetheless." CreationDate="2024-02-12T20:39:21.640" UserId="167" />
  <row Id="10808" PostId="10950" Score="0" Text="can you provide:&#xA;1. the full sudo call screen?&#xA;2. xnftPallet extrinsic code?&#xA;3. your `xcm_executor::Config` details?&#xA;4. where (from which chain) are you trying to execute that sudo call?" CreationDate="2024-02-05T08:49:22.157" UserId="3445" />
  <row Id="10809" PostId="10950" Score="0" Text="Hey Branislav, I use the standard Parachain template so xcm_executor is default. I am calling this instruction from a locally launched parachain template via Zombienet. Do you mean the entire call of the xnft function?  The part I sent handles XCM, there is no other code to regard XCM in that function. Looking forward to your answer. Thanks!" CreationDate="2024-02-06T17:18:20.070" UserId="5119" />
  <row Id="10810" PostId="10950" Score="0" Text="&gt; I execute it with sudo.&#xA;&#xA;I just wanted to now &quot;how and what did you execute exactly&quot;? I mean, e.g. could you add screenshot with full extrinsic call from polkadot.js.org/apps or unit-test code snippet?&#xA;&#xA;&gt; &quot;Transport&quot; error&#xA;&#xA;My guess is that you need to open HRMP channel to the `Parachain(2000)` at first.&#xA;E.g,. you can check hrmp channels like this:&#xA;https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frococo-bridge-hub-rpc.polkadot.io#/chainstate&#xA;`parachainSystem` -&gt; `relevantMessagingState`." CreationDate="2024-02-07T12:18:15.543" UserId="3445" />
  <row Id="10811" PostId="10950" Score="0" Text="This does not provide an answer to the question. Once you have sufficient [reputation](https://substrate.stackexchange.com/help/whats-reputation) you will be able to [comment on any post](https://substrate.stackexchange.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/low-quality-posts/4080)" CreationDate="2024-02-09T13:22:26.380" UserId="116" />
  <row Id="10812" PostId="11006" Score="0" Text="This is definitely super helpful, thanks !" CreationDate="2024-02-12T22:13:36.370" UserId="2135" />
  <row Id="10813" PostId="11003" Score="0" Text="We start to get into the mindset, if there is an error in try-runtime we should fix it not ignore it, so if this kind of false positives are common it is problematic for this work flow." CreationDate="2024-02-12T23:30:12.543" UserId="116" />
  <row Id="10814" PostId="10984" Score="0" Text="I don't think that information is available on-chain." CreationDate="2024-02-13T01:44:53.697" UserId="3991" />
  <row Id="10815" PostId="11003" Score="0" Text="Yeah it sucks. This should be a one-off occurrence we couldn't avoid due to how the HostConfig stuff works. In the future should not happen again." CreationDate="2024-02-13T01:47:09.567" UserId="3991" />
  <row Id="10816" PostId="11000" Score="1" Text="Your question is too abstract. Can you elaborate more on what you're looking to do?" CreationDate="2024-02-13T10:28:57.763" UserId="29" />
  <row Id="10817" PostId="10629" Score="0" Text="I couldn't find docs explaining this.  :P" CreationDate="2024-02-13T13:27:43.257" UserId="5070" />
  <row Id="10818" PostId="11013" Score="0" Text="Thanks&#xA;So, I should restart my node without cleaning state just add this parameter to startup script?!" CreationDate="2024-02-13T13:43:33.930" UserId="4532" />
  <row Id="10819" PostId="11007" Score="0" Text="when you say &quot;promoted to mainnet version 1&quot;, do you mean you did a runtime upgrade? If yes, did the problems start after the upgrade?" CreationDate="2024-02-13T22:50:52.017" UserId="2005" />
  <row Id="10820" PostId="11013" Score="0" Text="@ArtemLevchuk yes!" CreationDate="2024-02-14T00:26:43.683" UserId="116" />
  <row Id="10821" PostId="11015" Score="0" Text="i know it can be implemented can you please tell how to implement it." CreationDate="2024-02-14T05:04:03.230" UserId="2348" />
  <row Id="10822" PostId="11016" Score="0" Text="can you provide the code of the contract and the function that is causing the trouble?:)" CreationDate="2024-02-14T08:53:49.717" UserId="170" />
  <row Id="10824" PostId="11007" Score="0" Text="No, the issue occurred after block 7,344,161. When it reached that point, there were no more finalizations, and the blocks continue to be opened. At the moment I am writing this, they are at 7,349,912. All validators were slashed. What we did was stop the network, change the session keys of the nodes, etc. All the nodes we brought up are penalized." CreationDate="2024-02-14T12:08:06.587" UserId="4243" />
  <row Id="10825" PostId="11007" Score="0" Text="I mean, did you change anything in the runtime at or before block #7,344,161? also it would help a lot if you could share your code or at least link to public RPC endpoint (to see it from the Polkadot.js explorer)." CreationDate="2024-02-14T13:04:41.660" UserId="2005" />
  <row Id="10826" PostId="11007" Score="0" Text="We haven't made any changes. Our repository is: https://github.com/lunes-platform/lunes-nightly. The public RPC endpoint is: wss://ws.lunes.io/" CreationDate="2024-02-14T13:51:19.837" UserId="4243" />
  <row Id="10827" PostId="11016" Score="0" Text="Here’s the GitHub for the contract that is getting trapped: https://github.com/GuruKathryn/geode_social_openbrush ... The first message that gets trapped after some use is Get_Public_Feed. The second message that gets trapped later is get_messages_by_keyword." CreationDate="2024-02-14T14:12:13.637" UserId="3346" />
  <row Id="10828" PostId="11016" Score="0" Text="Testing this contract on our test net suggests that when we get a contract revert (which is built in to prevent users from doing certain things), it is altering the memory/storage in funny ways. I think contract reverts are creating memory corruption. What I don't know is what to do about it." CreationDate="2024-02-14T15:03:02.883" UserId="3346" />
  <row Id="10830" PostId="11021" Score="0" Text="We will try increasing ref time and proof size for the call in the front end code. We don't have enough data in the unbound vectors yet to overflow any one cell. BUT am I correct that - even if this is not the current problem - I will need to rewrite how I store data on this contract using LazyVec or Mappings in place of Vectors to avoid major problems in the future as users scale?" CreationDate="2024-02-14T17:28:31.770" UserId="3346" />
  <row Id="10831" PostId="11021" Score="0" Text="yes, you should definitely take that into account. Mapping usage will be more suitable (since LazyVec would still be Packed, if I'm not mistaken). Also, could you expand your question with steps to reproduce the issue (e.g. from beginning when its working to the case when the contract starts panicking, that would be also helpful for the investigation)" CreationDate="2024-02-14T17:57:41.133" UserId="170" />
  <row Id="10832" PostId="11021" Score="0" Text="We are able to reproduce the issue by having any two accounts create enough interaction (posts, replies and endorsements). At that point, anyone following a feed big enough (a feed with enough posts, replies and endorsements) will get a ContractTrapped error when they try to use the message get_public_feed. With enough content to return we also get ContractTrapped on get_messages_by_keyword." CreationDate="2024-02-14T18:13:51.560" UserId="3346" />
  <row Id="10833" PostId="11021" Score="0" Text="It is not the level of interaction between users in the feed (such as replies to posts or endorsements). It matters the total size of the data being retrieved. That being said, it does not take much data, about 6 posts with a couple of reply posts and a few endorsements will do it. A single post (or message as we call them in the contract) is fairly small." CreationDate="2024-02-14T18:13:56.083" UserId="3346" />
  <row Id="10834" PostId="11021" Score="0" Text="Looks like Lazy Vec is un-packed... https://use.ink/datastructures/storage-layout/#eager-loading-vs-lazy-loading" CreationDate="2024-02-14T18:19:58.253" UserId="3346" />
  <row Id="10835" PostId="11020" Score="0" Text="We made the change on the testnet, but I saw in the article you sent that updating SLOT_DURATION is not so simple. Do you have any idea how we can do this safely? Is there any article with the steps? We wouldn't want to reset the mainnet and lose the data." CreationDate="2024-02-14T23:07:45.547" UserId="4243" />
  <row Id="10836" PostId="11020" Score="0" Text="exactly, it's not really simple to change the slot duration with runtime upgrade, and I don't have any resources for this. Did you change the max available block weight?" CreationDate="2024-02-15T00:16:47.120" UserId="2005" />
  <row Id="10837" PostId="10996" Score="0" Text="Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking." CreationDate="2024-02-15T00:23:10.623" UserId="-1" />
  <row Id="10838" PostId="11021" Score="0" Text="judging from what you are saying you are retrieving a lot of data from the blockchain in one message - that will be the issue. As per the Lazy vec - the Lazy will point to another storage location (e.g. Lazy is unpacked) but the Vec inside the Lazy will be in one memory cell (so the restriction still holds) - you can also read this under the code block in the link you shared. For the retrieval of the data I would suggest using events, and doing the heavy stuff off-chain (so either reading events or contract state in a loop - do it offchain)" CreationDate="2024-02-15T08:49:17.587" UserId="170" />
  <row Id="10839" PostId="11020" Score="1" Text="We were changing both the slot and the weight, but as we haven't found any information yet, we will test only updating the block size. After that, send me your wallet, and after the correction, I will send you some tokens. Thank you very much. I'll get back to you with a response if we manage to resolve it." CreationDate="2024-02-15T12:35:37.250" UserId="4243" />
  <row Id="10840" PostId="11020" Score="0" Text="feel free to upvote or accept as an answer if the answer was useful" CreationDate="2024-02-15T12:47:37.600" UserId="2005" />
  <row Id="10841" PostId="11022" Score="1" Text="I don't think updating this constant is possible without a hard fork, as it is both a node and runtime upgrade. But if your primary worry is data loss, it is not an issue. You can always take a snapshot of the network, and make that be the genesis of the new one." CreationDate="2024-02-15T15:10:50.053" UserId="167" />
  <row Id="10842" PostId="11025" Score="0" Text="are you mutating for every `new_user` in some vector/array `users`?" CreationDate="2024-02-15T16:36:26.807" UserId="2005" />
  <row Id="10843" PostId="11025" Score="0" Text="it's new data that resets and needs to restore every so often. i just retested it and actually `total_users` doesn't increase." CreationDate="2024-02-15T16:42:27.173" UserId="5023" />
  <row Id="10844" PostId="11025" Score="0" Text="Okay im not sure what's happening, if the build is not compiling correct.  but now its pushing in the data. maybe i need to clean it up" CreationDate="2024-02-15T17:01:09.150" UserId="5023" />
  <row Id="10845" PostId="11025" Score="0" Text="Please include all the types that are involved in your question, most importantly `DataParams`." CreationDate="2024-02-15T19:50:45.963" UserId="167" />
  <row Id="10846" PostId="11025" Score="0" Text="Moreover, please be aware that iterating over a map, if the map keys can be unbounded is a dangerous operation." CreationDate="2024-02-15T19:51:09.190" UserId="167" />
  <row Id="10847" PostId="11025" Score="0" Text="@kianenigma unbounded as in possibly infinite? There are limitations to who and how often this can be done so that would solve that issue" CreationDate="2024-02-15T22:47:44.953" UserId="5023" />
  <row Id="10848" PostId="11026" Score="0" Text="Thanks. This is in a Zombienet setup, I will edit the question to clarify this." CreationDate="2024-02-16T07:55:55.233" UserId="2168" />
  <row Id="10849" PostId="11026" Score="1" Text="And thanks for: https://github.com/paritytech/polkadot-sdk/pull/3349 !" CreationDate="2024-02-16T09:20:56.583" UserId="2168" />
  <row Id="10850" PostId="11027" Score="0" Text="Users can batch their transactions, even 10000 in one by using `Utility::Batch`." CreationDate="2024-02-16T13:58:29.410" UserId="94" />
  <row Id="10851" PostId="11027" Score="0" Text="Please better explain the situation and the environment in which you are working, considering that those who want to answer don't know _anything_ about your chain and requirements. Given the data that you have given so far, I can create a remark chain with substrate that can probably support a very large tps." CreationDate="2024-02-16T14:58:16.667" UserId="167" />
  <row Id="10852" PostId="11026" Score="1" Text="No problem! Hope it gets merged soon!" CreationDate="2024-02-16T15:43:45.280" UserId="426" />
  <row Id="10853" PostId="11025" Score="0" Text="@bobbydy unbounded as in may produce a block that exceeds the PoV or ref time limit. It is strongly advised to bound how many items can be iterated on in a single extrinsic." CreationDate="2024-02-16T23:50:16.610" UserId="3991" />
  <row Id="10854" PostId="11029" Score="0" Text="which `on_transfer` hook are you referring to?" CreationDate="2024-02-18T12:51:33.480" UserId="2005" />
  <row Id="10855" PostId="11027" Score="0" Text="@kianenigma i have  my layer 0 blockchain build on polkadot -.9.36 version .i have came through a condition in which i want 10000 tps . i want to know about  the methods through  which i can achieve this in my layer 0 chain . &#xA;Utility batch method will not be feasible in my case &#xA;and i cannot add multiple parachains in this." CreationDate="2024-02-19T06:05:08.833" UserId="2348" />
  <row Id="10856" PostId="11032" Score="1" Text="Check this answer:&#xA;https://substrate.stackexchange.com/questions/1307/how-to-resolve-duplicate-lang-item-error" CreationDate="2024-02-19T16:48:17.400" UserId="567" />
  <row Id="10857" PostId="11039" Score="0" Text="Are there any constraints? Can your oracle just encrypt the data before putting it on-chain?" CreationDate="2024-02-20T05:32:26.257" UserId="3991" />
  <row Id="10858" PostId="11039" Score="0" Text="Yes. We have to send data without encrypt it." CreationDate="2024-02-20T05:36:43.240" UserId="3437" />
  <row Id="10859" PostId="8492" Score="0" Text="I am encountering this issue. Any ideas ?" CreationDate="2024-02-20T11:30:37.140" UserId="445" />
  <row Id="10860" PostId="11042" Score="0" Text="I have updated the description." CreationDate="2024-02-20T11:47:33.950" UserId="3437" />
  <row Id="10862" PostId="11021" Score="0" Text="Got it. I also noticed that ink 5.0-rc just came out and has a StorageVec option. I am going to explore that one also." CreationDate="2024-02-20T23:47:09.630" UserId="3346" />
  <row Id="10863" PostId="11022" Score="0" Text="hi @kianenigma. How do we take a snapshot of the network? How do we run the chain with the new genesis spec but still keep the old ledger from the snapshot?" CreationDate="2024-02-21T06:19:39.233" UserId="445" />
  <row Id="10864" PostId="10236" Score="0" Text="Can you send us your GitHub code link?" CreationDate="2024-02-21T08:29:21.380" UserId="445" />
  <row Id="10865" PostId="11054" Score="0" Text="Is this `0x790003010100a10f031400040001000002093d0013000002043205e5140002093d000006010300286bee823801001c000710deadbeef140d0100010100411f` the encoded call in `Transact`? for what chain? I can not decode it" CreationDate="2024-02-21T12:57:35.020" UserId="527" />
  <row Id="10866" PostId="11057" Score="1" Text="Try to add `runtime-log-level: 5` in your Chopsticks's config file" CreationDate="2024-02-21T12:59:28.103" UserId="527" />
  <row Id="10867" PostId="11057" Score="0" Text="Thanks, that certainly adds more logs! Beforehand, I just used `LOG_LEVEL=debug` which was not helpful. Unfortunately, the XCM error is not expanded. AFAICS, I need to build an AssetHub WASM with log lines added by myself. Trying this now." CreationDate="2024-02-21T15:13:59.693" UserId="2713" />
  <row Id="10868" PostId="11054" Score="0" Text="Sorry about that. This hex is the entire `polkadot_xcm::send` call crafted on a custom chain which is not public and would exceed the scope of your help. I know that `send` is usually restricted to root, on my custom chain it is not though. The v1.1.2 Polkadot Runtimes release enables remote accounts to be recognised." CreationDate="2024-02-21T15:17:04.367" UserId="2713" />
  <row Id="10869" PostId="11054" Score="0" Text="Can you share the encoded call inside the `Transact`?" CreationDate="2024-02-21T15:44:21.287" UserId="527" />
  <row Id="10870" PostId="10966" Score="0" Text="Is there a way to know when this fix will be implemented in rococo?" CreationDate="2024-02-21T17:54:50.527" UserId="3598" />
  <row Id="10871" PostId="11015" Score="0" Text="The original question was on &quot;why&quot;, if you want to learn &quot;how&quot;, you can check out the implementation on mock: https://github.com/paritytech/polkadot-sdk/blob/cd91c6b782b60906597ed28c4e4a4fdddd8428c9/bridges/modules/grandpa/src/mock.rs#L41. &#xA;&#xA;There's also lots of parachains that use this: https://github.com/search?q=Grandpa%3A+grandpa%3A%3A%7BPallet&amp;type=code&#xA;&#xA;Basically, the steps are to include GRANDPA in your runtime and configure the chain spec. Note that your validators also need to generate their keys and pass that in as a flag." CreationDate="2024-02-21T23:36:47.573" UserId="5131" />
  <row Id="10872" PostId="11039" Score="0" Text="You want to send data unencrypted data to a public blockchain, but at the same time have it be confidential / private? It sounds like there's a problem here :)" CreationDate="2024-02-22T00:24:48.887" UserId="3991" />
  <row Id="10873" PostId="10343" Score="0" Text="This problem is also in py-substrate-interface and exactly changing the call_function:transfer to call_function:transfer_allow_death solves the problem,&#xA;Thank you." CreationDate="2024-02-22T01:09:26.503" UserId="5168" />
  <row Id="10874" PostId="11058" Score="0" Text="Design considerations: https://forum.polkadot.network/t/offchain-workers-design-assumptions-vulnerabilities" CreationDate="2024-02-22T05:50:14.903" UserId="29" />
  <row Id="10875" PostId="11058" Score="0" Text="Examples: https://github.com/paritytech/substrate/pull/14280" CreationDate="2024-02-22T05:50:46.477" UserId="29" />
  <row Id="10876" PostId="11058" Score="0" Text="Specifically logic, as Kian mentioned, can go here: https://github.com/paritytech/substrate/blob/4abbf7f64222f0a47331624c0d0042d888cf6b10/frame/examples/offchain-worker-ping-pong/src/lib.rs#L253-L259" CreationDate="2024-02-22T05:51:28.610" UserId="29" />
  <row Id="10878" PostId="11062" Score="0" Text="Can `cumulus-pallet-aura-ext` be skipped, as I see that it passes a `ConsensusHook` to `cumulus-pallet-parachain-system` and `execute_block` for `validate_block` runtime function?" CreationDate="2024-02-22T07:51:55.407" UserId="4114" />
  <row Id="10879" PostId="11054" Score="0" Text="The `Transact` is a simple `remarkWithEvent` call for testing purposes: `0x000710deadbeef`" CreationDate="2024-02-22T07:52:42.717" UserId="2713" />
  <row Id="10880" PostId="11061" Score="0" Text="Yeah, Now I'm able to see this: `'$ netstat -tuln | grep 9944&#xA;tcp        0      0 0.0.0.0:9944            0.0.0.0:*               LISTEN '` But on polkadot UI connection is not successful, getting this - `Waiting to establish a connection with the remote endpoint.`" CreationDate="2024-02-22T08:10:11.253" UserId="555" />
  <row Id="10881" PostId="11054" Score="0" Text="The same error (`FailedToTransact(&quot;AccountIdConversionFailed&quot;)`) occurs when I try to transfer DOT from Polkadot to a remote account on AssetHub `{ parents: 0, interior: X1(AccountId32: { network: Some(...), id: ALICE })}`. Here's the call hex for Polkadot: `0x630903000100a10f0300010101002e36c499d14939b1c69dce0594a78b1534404e7e2e767fa69be3f7eb35a3b2e3d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d0304000000000b008cb6611e010000000000`" CreationDate="2024-02-22T08:35:45.980" UserId="2713" />
  <row Id="10882" PostId="11061" Score="0" Text="You may need to allow ingress traffic to those ports in GCP, since ingress could be disable by default." CreationDate="2024-02-22T10:31:37.527" UserId="279" />
  <row Id="10883" PostId="11060" Score="0" Text="Oh, thanks a lot for this detailed answer. &#xA;My main goal is to make a HTTP request to the API and use response inside my runtime code to create extrinsic call. &#xA;So, the flow of this OCW execution is:&#xA;1. User call the extrinsic.&#xA;2. OCW make a HTTP request and get response.&#xA;3. Extrinsic is send to the blockchain for execution.&#xA;&#xA;Therefore I want to call it only when user triggers some extrinsic. &#xA;&#xA;Actually, I have an idea that I can trigger some event when user send me request and after that OCW starts to execute its code. But if we have faster solution for this I would use it." CreationDate="2024-02-22T12:52:47.123" UserId="4532" />
  <row Id="10884" PostId="11060" Score="0" Text="Have you explored then doing this purely using JS/TS libraries?" CreationDate="2024-02-22T13:28:04.753" UserId="167" />
  <row Id="10885" PostId="11033" Score="0" Text="Based on this, the answer is [no](https://docs.substrate.io/reference/how-to-guides/parachains/add-hrmp-channels/) as both parachains have to send messages and you cannot do that unless you deploy a shell parachain with at least abilities to send UMPs to the relay chain." CreationDate="2024-02-22T13:53:11.953" UserId="167" />
  <row Id="10886" PostId="11060" Score="0" Text="I'll have this JS/TS functionality on the FE just to get approve from user of the response. But I want to get the last updated info directly from the blockchain. Blockchain should be the source of truth." CreationDate="2024-02-22T14:33:21.007" UserId="4532" />
  <row Id="10887" PostId="11065" Score="0" Text="To mix my answer with this: under normal cases, you would need a parachain, because you have to call  `hrmp_init_open_channel` and there is no easy way to obtain `ensure_parachain` if the message is not coming from the parachain. But since it is with a system chain, they actually need `ChannelManager`, since you have to call `force_open_hrmp_channel`." CreationDate="2024-02-22T15:32:03.907" UserId="167" />
  <row Id="10889" PostId="11061" Score="0" Text="Checked! all the ports are open.still facing the same issue. Updated the question with logs which get generated when UI tries to connect." CreationDate="2024-02-23T07:12:23.440" UserId="555" />
  <row Id="10890" PostId="11061" Score="1" Text="By UI you mean `https://polkadot.js.org`? Also, the ws connection should be something like `ws://external-ip:9945`. You can also trying adding  the flag `--rpc-cors all` to allow all origins" CreationDate="2024-02-23T10:05:38.683" UserId="279" />
  <row Id="10891" PostId="11061" Score="0" Text="If I use `ws://external-ip:9945` then I got: `Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.`. But when I try to setup a unsecure connection from WebSocket Tester then it got connected" CreationDate="2024-02-23T12:39:48.873" UserId="555" />
  <row Id="10892" PostId="11065" Score="0" Text="I do not think it will work without an onboarded para: https://github.com/paritytech/polkadot-sdk/blob/release-crates-io-v1.7.0/polkadot/runtime/parachains/src/hrmp.rs#L1390" CreationDate="2024-02-23T13:05:54.550" UserId="527" />
  <row Id="10893" PostId="11064" Score="0" Text="Both of your statements are correct. I changed the extrinsic to a transfer and used `SovereignAccount` which lead the call to succeed! Thanks so much!" CreationDate="2024-02-23T14:39:31.893" UserId="2713" />
  <row Id="10894" PostId="11061" Score="1" Text="That because the browser have a security restriction, there are a few ways to resolve this like create a tunnel that allow to use localhost to initialize the ws connection. For example with &#xA;`ssh -g -L 9945:localhost: 9945 -f -N user@gcp-intance` and then you can just use ws://localhost:9945 to connect." CreationDate="2024-02-23T16:14:47.097" UserId="279" />
  <row Id="10895" PostId="11061" Score="0" Text="yeah that's working now! thank you so much for your time" CreationDate="2024-02-23T16:37:37.070" UserId="555" />
  <row Id="10896" PostId="11061" Score="0" Text="awesome, I will update the answer to add this info." CreationDate="2024-02-23T16:47:06.290" UserId="279" />
  <row Id="10897" PostId="11068" Score="0" Text="Im not aware we did so, but will share with the team!" CreationDate="2024-02-26T08:31:35.593" UserId="357" />
  <row Id="10898" PostId="11072" Score="0" Text="Thanks for the answer!&#xA;Since the aggregated bitfields stored in blocks are not signed, wouldn't it be an attack vector regarding the availability claims? E.g., a malicious validator falsely claiming all bitfield items are available (stored by 2/3 validators)." CreationDate="2024-02-26T09:01:24.327" UserId="5148" />
  <row Id="10899" PostId="11068" Score="0" Text="hey @bkchr,&#xA;I got a confirmation from a team member that maybe caused this, It's sad that we messed up and spent time on both sides, but its great that we found this on rococo instead of kusama!" CreationDate="2024-02-26T10:50:00.870" UserId="357" />
  <row Id="10900" PostId="11062" Score="0" Text="Yes, you can delete it if you're using an alternative consensus mechanism like GRANDPA" CreationDate="2024-02-26T15:15:22.030" UserId="5131" />
  <row Id="10901" PostId="11062" Score="0" Text="Thanks.&#xA;Isn't `pallet-xcm` necessary as well? I see that `cumulus-pallet-xcm` expects an [xcm executor](https://github.com/paritytech/polkadot-sdk/blob/master/cumulus/pallets/xcm/src/lib.rs#L45)." CreationDate="2024-02-26T15:52:59.530" UserId="4114" />
  <row Id="10902" PostId="11070" Score="0" Text="Can you please provide exact instructions to reproduce?" CreationDate="2024-02-26T23:59:16.657" UserId="3991" />
  <row Id="10903" PostId="11079" Score="0" Text="Can you provide more information? I'm not sure what you mean &quot;I want to add keys from a pallet in the keystore&quot;." CreationDate="2024-02-27T00:02:13.910" UserId="3991" />
  <row Id="10904" PostId="11085" Score="0" Text="&quot;initialisation of the system&quot; do you mean in genesis?" CreationDate="2024-02-27T09:52:07.647" UserId="2005" />
  <row Id="10905" PostId="11089" Score="0" Text="Does this answer your question? [How can I add logs to the runtime for debugging since \`--execution native\` has been removed?](https://substrate.stackexchange.com/questions/10540/how-can-i-add-logs-to-the-runtime-for-debugging-since-execution-native-has-b)" CreationDate="2024-02-28T03:12:39.027" UserId="251" />
  <row Id="10906" PostId="11087" Score="0" Text="I have a pallet called `pallet_society `with a genesis value in version A. In version B, I remove the `pallet_society` from both the runtime and the GenesisConfig of `pallet-society` in `chain_spec.rs`. The runtime upgrade works fine, and the new client binary contains an updated chain spec. How do I handle future client updates when configuring a new service for the client, considering the updated chain spec?" CreationDate="2024-02-28T03:13:11.037" UserId="445" />
  <row Id="10907" PostId="11087" Score="0" Text="I am attempting to update the client service with the modified chain spec beforehand, not trying to update the chain spec itself." CreationDate="2024-02-28T03:15:30.883" UserId="445" />
  <row Id="10908" PostId="11079" Score="0" Text="@liamaharon it means that he want to add account keys which can participate in the consensus, like we do from terminal[cli command] to add keys into the keystore and these keys/accounts can participate in the network for consensus. same thing can we perform from the pallet?" CreationDate="2024-02-28T06:21:07.657" UserId="555" />
  <row Id="10909" PostId="11085" Score="0" Text="In consider the genesis for sure a part of initialisation of the system, but does the creation of such a collection for a pallet belong at genesis? The genesis is also a one-time action, just as the creation of this pallet, so I do see an analogue here.&#xA;&#xA;Thus if it's good practise to do this at genesis then that's fine for me. The question remains how I can do that though." CreationDate="2024-02-28T06:35:04.677" UserId="4556" />
  <row Id="10910" PostId="11087" Score="0" Text="The chain_spec do not need to be updated for new clients. They still need to use the original chain_spec. `pallet-society` will be remove when the client sync with the blockchain." CreationDate="2024-02-28T09:48:06.830" UserId="527" />
  <row Id="10911" PostId="11087" Score="0" Text="yeah but new binary is incompatible with old chain spec" CreationDate="2024-02-28T09:58:48.893" UserId="445" />
  <row Id="10912" PostId="11087" Score="0" Text="This is my error:&#xA;`Error: Service(Client(Storage(&quot;Error parsing spec file: unknown field `society`, expected one of...`" CreationDate="2024-02-28T09:59:40.640" UserId="445" />
  <row Id="10913" PostId="11085" Score="0" Text="do you want the pallet itself to be the owner, i.e `PalletId::into_account()`?" CreationDate="2024-02-28T10:42:16.370" UserId="2005" />
  <row Id="10914" PostId="11078" Score="1" Text="It didn't work for us because srtool (with the latest docker image) overrides the installed chain with its own, hence the workaround that I explained before.&#xA;&#xA;It probably also depends on the project's architecture, as I have noticed that simple projects with only one runtime don't suffer from this problem.&quot;" CreationDate="2024-02-28T10:53:27.790" UserId="4121" />
  <row Id="10915" PostId="11078" Score="0" Text="hmm, makes sense. for me, the issue was raised in CI and adding this line to toolchain installation command fixed it. I am also working with two runtimes, so probably it's more `srtool` specific" CreationDate="2024-02-28T11:03:26.233" UserId="2005" />
  <row Id="10916" PostId="11078" Score="0" Text="The issue was also raised in your GitLab CI, likely from an incomplete tool chain installation in the Docker image. In fact, with polkadot-v1.7.1, other components are also missing." CreationDate="2024-02-28T11:11:46.367" UserId="4121" />
  <row Id="10917" PostId="11089" Score="1" Text="No, it's about using logs. I know about the logs already and specifically made it bold to emphasis that." CreationDate="2024-02-28T11:47:32.210" UserId="1966" />
  <row Id="10919" PostId="11072" Score="0" Text="In polkadot, no all validators check the signatures.  If you mean in my hypothetical &quot;stripped&quot; block idea.  No:  Assuming 2/3rd hoenst, there exists a finalized block where everything was signed, given they signed the BEEFY statments, but the &quot;stripped&quot; block is a light client proof of the block without all that stuff.  Anyways, my point is that whatever you do to threshold sign would look like this stripped block at some level, because you'd need all the concensus machenery to get there." CreationDate="2024-02-28T20:38:58.967" UserId="1810" />
  <row Id="10921" PostId="10994" Score="0" Text="could you explain me how do i check if there is a runtime change ?&#xA;&#xA;i want to:&#xA;1. check if i need to update the metadata in my dapp using polkadot.js&#xA;2. show popup asking to if i want to update the metadata&#xA;3. click update and in the background update the metadata to the latest version&#xA;&#xA;can you wrtie me down the code i need to run to do this ?" CreationDate="2024-02-29T11:53:23.527" UserId="4577" />
  <row Id="10922" PostId="7184" Score="0" Text="Any solution found??" CreationDate="2024-02-29T17:30:22.553" UserId="213" />
  <row Id="10925" PostId="11021" Score="0" Text="I don't think this is a storage issue (although the upgrades to storage are important) - I upgraded the contract to ink 5.0 where I can use StorageVec (a kind of Mapping), and on relatively little data, submitting a read-only message, we are still getting ContractTrapped BUT ONLY after we have maybe 10 total entries to work with. It is definitely triggering on having a certain amount of data that the message is working with, but the total amount of data that triggers the error is not that big. I tried increasing refTime, proofSize, and executionTime and none of these made a difference." CreationDate="2024-03-04T18:52:29.150" UserId="3346" />
  <row Id="10926" PostId="10270" Score="0" Text="I see this is an option in ink 5.0-rc but I have not figured out how to use it yet." CreationDate="2024-03-04T20:02:38.977" UserId="3346" />
  <row Id="10927" PostId="11117" Score="0" Text="AND... what is the largest you could reasonably make the static buffer?" CreationDate="2024-03-05T00:26:49.783" UserId="3346" />
  <row Id="10928" PostId="11115" Score="0" Text="Could you provide a RPC for testing? I guess this might be a JS limitation?" CreationDate="2024-03-05T09:25:00.940" UserId="251" />
  <row Id="10929" PostId="11115" Score="0" Text="wss://wallet-l0.pstuff.net" CreationDate="2024-03-05T10:38:38.677" UserId="5199" />
  <row Id="10930" PostId="11123" Score="0" Text="I guess a direction that could be taken is that, which sidecar api I could use to search this xcm id: `0xe2d1652ebad3249e2559d96c7320f2bc6eac9bb1601e4c64b629bce0311b97a5`?" CreationDate="2024-03-06T03:00:13.053" UserId="131" />
  <row Id="10931" PostId="10966" Score="0" Text="It seems that the problem we are having is not related to the mentioned issue, as supposedly the issue is fixed in rococo, but we are still having the same problem" CreationDate="2024-03-06T19:40:43.920" UserId="3598" />
  <row Id="10932" PostId="11120" Score="0" Text="My question could've been clearer--I am seeking to build an independent chain, not parachain (hence having NPOS). I am debating the merits of modifying the existing staking pallet to so the NPOS-staked amounts can qualify an Oracle data provider, versus creating another staking pool just for the Oracle." CreationDate="2024-03-06T22:39:38.940" UserId="3871" />
  <row Id="10933" PostId="11130" Score="0" Text="This is incredibly helpful! Thanks" CreationDate="2024-03-07T16:26:05.127" UserId="1786" />
  <row Id="10934" PostId="11020" Score="0" Text="We made the changes but the same problem came back. We regenerated the network, but the same problem reappeared. @dastansam do you have any idea what it could be?" CreationDate="2024-03-08T18:06:27.163" UserId="4243" />
  <row Id="10935" PostId="11115" Score="1" Text="This is not related to PJS but to the node configuration. The node placed a limit on the size of the RPC responses, and this entry exceeds that size, so it fails. Usually it's meant to avoid DDoS attacks." CreationDate="2024-03-09T20:32:31.903" UserId="4314" />
  <row Id="10936" PostId="11131" Score="0" Text="Thanks @philoniare. For instance I am trying to follow the https://docs.substrate.io/tutorials/collectibles-workshop/ &#xA;There (https://docs.substrate.io/tutorials/collectibles-workshop/runtime-and-pallets/) it says I have to checkout branch &quot;polkadot-v1.0.0&quot;, but polkadot-sdk doesnt event have that branch, maybe i have to checkout https://github.com/paritytech/polkadot-sdk/tree/mergebase-polkadot-v1.0.0  but there is such a branch on &#xA;https://github.com/paritytech/substrate/tree/polkadot-v1.0.0" CreationDate="2024-03-10T00:35:03.850" UserId="5193" />
  <row Id="10937" PostId="11131" Score="0" Text="Then it tells me to set up my node_template (https://docs.substrate.io/tutorials/collectibles-workshop/01-prepare/) which points to https://github.com/substrate-developer-hub/substrate-node-template/tags/ and the Quick-start link leads me to 404. The entire 'substrate-node-template' points to the outdated repo, see for instance here: https://github.com/substrate-developer-hub/substrate-node-template/blob/main/node/Cargo.toml" CreationDate="2024-03-10T00:38:52.820" UserId="5193" />
  <row Id="10938" PostId="11131" Score="0" Text="The entire substrate-node-template points to the outdated repo. Every branch that I checked out points to it. For instance on main the run-time crates https://github.com/substrate-developer-hub/substrate-node-template/blob/main/runtime/Cargo.toml , the node-crates (see above) and the pallet creates https://github.com/substrate-developer-hub/substrate-node-template/blob/main/pallets/template/Cargo.toml point to old repo. Of course i could try to swap out the deprecated code manually and I tried, but the dependence jungle is too deep for a novice. If I wasnt a noob, I wouldnt visit the tutorial." CreationDate="2024-03-10T00:47:15.303" UserId="5193" />
  <row Id="10939" PostId="11134" Score="0" Text="in what part of it have you faced an issue or have a question? adding `pallet_balances` to the runtime already means you have created your `crypto coin` :)" CreationDate="2024-03-10T16:08:58.597" UserId="167" />
  <row Id="10940" PostId="11136" Score="0" Text="Thanks it helped a lot. So in chain_spec where should i customize to give the blockchain a new total supply" CreationDate="2024-03-11T09:09:08.790" UserId="5209" />
  <row Id="10941" PostId="11138" Score="0" Text="Does this answer your question? [sp-io v7.0.0 not compiling](https://substrate.stackexchange.com/questions/7655/sp-io-v7-0-0-not-compiling)" CreationDate="2024-03-11T09:48:05.267" UserId="251" />
  <row Id="10942" PostId="11128" Score="0" Text="You can see the details of the incident there: https://moonsonglabs.notion.site/2024-01-Stagenet-Alphanet-Finality-stall-8e2e6513347a48229151363cf13788d5?pvs=4&#xA;What happened was the same as on Westend (and Rococo maybe?), where the migration concatenated the beefy key to the session keys of each validator. The issue was that this migration was included in multiple release without a versioning system to protect multiple runs" CreationDate="2024-03-11T10:03:13.903" UserId="699" />
  <row Id="10943" PostId="11128" Score="0" Text="Also, we are currently mostly interested in finding a solution for nodes to catch-up with finalization, as nodes cannot sync it (even from scratch) anymore" CreationDate="2024-03-11T10:03:57.173" UserId="699" />
  <row Id="10944" PostId="11136" Score="0" Text="in genesis, your total supply/issuance is the sum of all balances of endowed accounts in the `balances` config" CreationDate="2024-03-11T10:15:46.053" UserId="2005" />
  <row Id="10945" PostId="11135" Score="1" Text="I tried contact them and see if I can help with maintaining those repos. Parity is under a big refactoring now. A lot of things doesn't work well as before and I'm pretty sad with current situation." CreationDate="2024-03-11T10:46:17.267" UserId="251" />
  <row Id="10946" PostId="11133" Score="0" Text="I'm aware of this, but I can't recall the details. Could you share the complete error log here?" CreationDate="2024-03-11T10:49:39.777" UserId="251" />
  <row Id="10947" PostId="11136" Score="0" Text="@Md.RaisulIslamRony you can define the prefunded accounts in the `chain_spec` file like [this](https://github.com/substrate-developer-hub/substrate-node-template/blob/2ad9b78c7b56434c8036d1447120f4566583e54e/node/src/chain_spec.rs#L96C1-L109C7) and fund them from `BalancesConfig` in `RuntimeGenesisConfig` like [this](https://github.com/substrate-developer-hub/substrate-node-template/blob/2ad9b78c7b56434c8036d1447120f4566583e54e/node/src/chain_spec.rs#L141C1-L144C5). Different types of impls can be found in different chains, I'm just referencing the node template." CreationDate="2024-03-11T11:40:07.737" UserId="253" />
  <row Id="10948" PostId="11136" Score="0" Text="Also pls consider upvoting and accepting the answer if you found it useful." CreationDate="2024-03-11T11:41:07.777" UserId="253" />
  <row Id="10949" PostId="11128" Score="0" Text="In the incident writeup there are only 2 keys shown, so it doesn't allow me to figure out if all of the other validators have the same (invalid) GRANDPA key. But since they were able to finalize, I assume that's probably the case. I am not really sure how to recover from this since all grandpa invariants have been broken, it finalized something with an invalid set of keys. This would require some manual hacks to revert finality, in which case all nodes on the network would have to resync anyway." CreationDate="2024-03-11T14:44:12.503" UserId="452" />
  <row Id="10955" PostId="11140" Score="1" Text="thank you solved" CreationDate="2024-03-12T00:48:02.380" UserId="4093" />
  <row Id="10956" PostId="11138" Score="0" Text="No i am not using &quot;sp-std&quot;" CreationDate="2024-03-13T08:07:05.440" UserId="5154" />
  <row Id="10957" PostId="11072" Score="0" Text="My comment was mainly about the ensuring the availability of the blocks (without the collection of the signatures). I assume that is done by the random validator checks." CreationDate="2024-03-14T18:25:08.723" UserId="5148" />
  <row Id="10958" PostId="11163" Score="0" Text="`TotalSpacePledged` does not need a runtime API to be exposed. You can query it in PolkadotJS developer-&gt;chainstate-&gt;constants https://polkadot.js.org/apps/#/chainstate/constants" CreationDate="2024-03-14T23:12:45.207" UserId="94" />
  <row Id="10959" PostId="11163" Score="0" Text="But, I need to access this via.....`client.runtime_api().total_space_pledged()`." CreationDate="2024-03-14T23:26:49.043" UserId="2795" />
  <row Id="10960" PostId="11163" Score="0" Text="Ah okay. Was not sure what you were trying to do :)" CreationDate="2024-03-15T10:52:35.227" UserId="94" />
  <row Id="10961" PostId="11166" Score="1" Text="Some pallet seems to depent on that account to be alive, since it has a `consumer` ref. Is it maybe used as Proxy etc? Otherwise please post the on-chain address. Can also do this privately for investigation purpose only `oliver.tale-yazdi@parity.io`." CreationDate="2024-03-15T11:17:17.280" UserId="94" />
  <row Id="10962" PostId="11157" Score="0" Text="What version of the Solidity compiler are you using?&#xA;1. It should be &#xA;2. Frontier version v0.9.37 is compatible with `polkadot-v0.9.37`" CreationDate="2024-03-15T11:24:06.853" UserId="445" />
  <row Id="10963" PostId="11060" Score="0" Text="Hi there. Just want to know if you have maybe some ideas what is the best way to solve this? As I understand, it's difficult to query runtime events and search for the event that I need, because it's overload the runtime and block size. So, I decided try to use onchain storage (but it's also not the best way). I wanna write to the storage some value when user call extrinsic and after use this value in OCW to make an HTTP request and in this way I should clean up the storage sometimes. But extrinsics may be called by user anytime, so I can clean some info that haven't processed. @ kianenigma" CreationDate="2024-03-16T14:58:14.950" UserId="4532" />
  <row Id="10964" PostId="11072" Score="0" Text="We place the bitfields on the relay chain, so all validators check all those signatures.  Approvals checks by 30ish validators ensure validity, but we can trust the signed bitfields thanks to our 2/3 honesty assumption.  We've no availability sampling because this causes a worse undecodable ratio of 1/4th, vs our 2/3rd." CreationDate="2024-03-16T18:42:53.427" UserId="1810" />
  <row Id="10965" PostId="11166" Score="1" Text="No proxy here. What we did is transfer some tokens with vesting (`vesting.vestedTransfer(...)`) to `A`, then cancel the vesting (`vesting.forceRemoveVestingSchedule(...)`) and transfer funds back to `B`. I sent an e-mail with real data. Thanks!" CreationDate="2024-03-17T06:44:35.120" UserId="2738" />
  <row Id="10966" PostId="11173" Score="0" Text="Thanks. It helped a lot" CreationDate="2024-03-17T11:48:34.140" UserId="5213" />
  <row Id="10967" PostId="11157" Score="0" Text="@CocDap i'm using 0.8.24 version of Solidity and Polkadot polkadot-v0.9.37 is not compatible with latest version of solidity." CreationDate="2024-03-18T06:39:07.830" UserId="3752" />
  <row Id="10968" PostId="11157" Score="0" Text="yeah i guess that. you can try older version like 0.8.0" CreationDate="2024-03-18T07:44:58.197" UserId="445" />
  <row Id="10969" PostId="11157" Score="0" Text="@CocDap yes, it's working on older versions of Solidity but i want my chain compatible with new version of Solidity like 0.8.24. &#xA;That's the only reason to update chain." CreationDate="2024-03-18T08:07:25.543" UserId="3752" />
  <row Id="10970" PostId="11111" Score="0" Text="Hey, could you please provide a repo with the code that's failing to compile?" CreationDate="2024-03-18T22:41:23.973" UserId="3991" />
  <row Id="10971" PostId="11128" Score="0" Text="I didn't write all the keys but all of them except the first one were broken. The finality went on on one of the network because of the 500 limit of finality lag, and on the other one because of &quot;forced&quot; finalization using grandpa.noteStalled and para force approval.&#xA;&#xA;You are suggesting a manual hack, do you know how ?" CreationDate="2024-03-19T06:31:34.650" UserId="699" />
  <row Id="10972" PostId="11128" Score="0" Text="Resyncing from scratch is not solving the issue as the node will refuse the finalization and get stuck. I suppose it requires modifying the code to force the node to bypass it but I was hoping there would already be a solution for that" CreationDate="2024-03-20T08:58:14.510" UserId="699" />
  <row Id="10973" PostId="11175" Score="1" Text="your question does not belong here, this site is for technical questions about Substrate chains and Polkadot Ecosystem." CreationDate="2024-03-20T13:21:52.743" UserId="2025" />
  <row Id="10974" PostId="11171" Score="0" Text="Thank you, I tried to implement the stubs for the removed sandbox as you suggested and provided a nearly empty implementation for the mentioned functions. It helps to get rid of the first error (about missing imports). However, after the synchronization is started with `--sync full`, when the node reaches the block where the functions were applied, the process fails with the error `Storage root must match that calculated.`, i.e. the empty stubs lead to an inconsistent state. I guess the only way to fix it is to provide the original implementation of the sandbox environment that was removed." CreationDate="2024-03-20T14:34:41.500" UserId="4024" />
  <row Id="10975" PostId="11194" Score="0" Text="Do you mean you want augmented type support in your IDE, or are there no keys under `api.tx` when you run `Object.keys(api.tx)`. Do you get an empty array?" CreationDate="2024-03-21T17:55:08.787" UserId="1786" />
  <row Id="10976" PostId="11073" Score="0" Text="Also awaiting for answer." CreationDate="2024-03-21T18:24:01.687" UserId="3752" />
  <row Id="10977" PostId="11179" Score="0" Text="Can you try to log the error on the `.map_err` line?" CreationDate="2024-03-22T04:20:01.677" UserId="3991" />
  <row Id="10978" PostId="11200" Score="0" Text="Just on upgrade, but the chain stops after." CreationDate="2024-03-22T08:04:37.030" UserId="5231" />
  <row Id="10979" PostId="11202" Score="1" Text="Not only this fix but also a follow-up: https://github.com/paritytech/polkadot-sdk/pull/3510/files" CreationDate="2024-03-22T09:11:47.373" UserId="5244" />
  <row Id="10980" PostId="11201" Score="1" Text="That makes perfect sense. If you have a new feature in your runtime, you first need the supermajority of network nodes to upgrade to the version supporting that feature, and then you can upgrade the runtime. That still holds for the parachains: if a parachain runtime introduces a new feature, you need to upgrade your collators before going for the runtime upgrade." CreationDate="2024-03-22T09:15:00.433" UserId="5244" />
  <row Id="10981" PostId="11202" Score="0" Text="Like many parachain projects (I think), our `node/service.rs` file is structured based on the one provided by the parachain template. The polkadot-parachain `node/service.rs` file is different and contains additional complexity. It is therefore not so easy to make the suggested adjustment. We will work on it though and hopefully can share it here." CreationDate="2024-03-22T12:02:17.503" UserId="5231" />
  <row Id="10982" PostId="11128" Score="0" Text="No I don't really have any clear suggestion that could be applied for this in a generic way. Any hack would have to be applied directly in the GRANDPA code (either upstream or on a fork you maintain), and would have to stay there forever for people resyncing. I think the root issue is that critical invariants have been violated, and the node produced an invalid finality proof since there were a majority of duplicate validator keys in the set AFAIU." CreationDate="2024-03-22T16:42:35.993" UserId="452" />
  <row Id="10985" PostId="11128" Score="0" Text="Thank you André. In that case, should we remove the forced finality after 500 blocks? As we don't provide solution to recover from it after" CreationDate="2024-03-23T17:46:48.553" UserId="699" />
  <row Id="10986" PostId="11194" Score="0" Text="I receive this array as a response to Object.keys(api.tx) : [&quot;system&quot;, &quot;babe&quot;, &quot;timestamp&quot;, &quot;indices&quot;, &quot;balances&quot;,...&quot;rootTesting&quot;, &quot;sudo&quot;]. When I try to access an object from the array for transaction purposes, I get this error message: api.tx.balances is 'undefined'. @TarikGul" CreationDate="2024-03-25T01:50:28.153" UserId="5218" />
  <row Id="10987" PostId="11207" Score="1" Text="https://wiki.polkadot.network/docs/learn-index, and https://docs.substrate.io/learn/welcome-to-substrate/" CreationDate="2024-03-25T04:01:05.280" UserId="83" />
  <row Id="10988" PostId="11205" Score="0" Text="Thanks. But, I don't have impl of `Checkable` directly in my code, I just use `sp_runtime::generic::UncheckedExtrinsic` that already have this impl. Should I do/check  something else?" CreationDate="2024-03-25T08:59:33.783" UserId="4532" />
  <row Id="10989" PostId="11191" Score="0" Text="Does your account show up correctly in the extension? Is it an account created on PJS or imported? The problem doesn't show up every time, right? Then it might be just a matter of the delay the browser has for loading up the info." CreationDate="2024-03-25T12:23:12.897" UserId="4314" />
  <row Id="10990" PostId="11216" Score="0" Text="I tried  first approach  but it gives &#xA;&#xA;error[E0369]: cannot add `{integer}` to `&lt;T as pallet::Config&lt;I&gt;&gt;::ItemId`&#xA;    --&gt; pallets/neos_uniques/src/lib.rs:1579:40&#xA;     |&#xA;1579 |                 let next_nft_id = (current_item_id + num_nft) + sp_runtime::traits::One::one();&#xA;     |                                    --------------- ^ ------- {integer}&#xA;     |                                    |&#xA;     |                                    &lt;T as pallet::Config&lt;I&gt;&gt;::ItemId&#xA;     |&#xA;In 2nd approach the trait SaturatedCoversion is not available" CreationDate="2024-03-26T04:53:02.997" UserId="1950" />
  <row Id="10991" PostId="11216" Score="0" Text="use sp_runtime::traits::SaturatedCoversion this is what gets from ChatGPT seems incorrect" CreationDate="2024-03-26T05:00:55.343" UserId="1950" />
  <row Id="10992" PostId="11205" Score="0" Text="@ kianenigma&#xA;Hi there! Do you have any ideas considering comment above? &#xA;Thanks!" CreationDate="2024-03-26T07:59:55.090" UserId="4532" />
  <row Id="10993" PostId="11216" Score="0" Text="2. https://paritytech.github.io/polkadot-sdk/master/sp_runtime/traits/trait.SaturatedConversion.html" CreationDate="2024-03-26T08:49:02.170" UserId="251" />
  <row Id="10994" PostId="11216" Score="0" Text="You missed something on 1. Without the full log I can't help you." CreationDate="2024-03-26T08:50:40.330" UserId="251" />
  <row Id="10995" PostId="11205" Score="0" Text="This `impl` is coming in from `sp-runtime`, you can use this technique to use a local version of this crate such that you can do your debugging: https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#testing-a-bugfix" CreationDate="2024-03-26T09:09:04.063" UserId="167" />
  <row Id="10996" PostId="10691" Score="1" Text="Perfect, thank you." CreationDate="2024-03-26T17:33:20.620" UserId="28" />
  <row Id="10997" PostId="11219" Score="0" Text="That correct, by `default` zombienet will try to run your test using the `k8s` provider. Also, worth mention that zombienet will try to replace those` {{SOME_VALUE}}` in the network definition file (`toml`) with looking at your env variables." CreationDate="2024-03-26T22:34:26.467" UserId="279" />
  <row Id="10998" PostId="11205" Score="0" Text="Thank you. It's really works. But currently I'm confused a bit, because when I used a local version and try to build - everything worked without any changes. I removed patch and tried to build again - also worked. What it can be? I think it's solved for now, but not clear for me - why?" CreationDate="2024-03-27T08:26:04.667" UserId="4532" />
  <row Id="10999" PostId="11128" Score="0" Text="I don't think so because the root problem wasn't the forced finality, but the fact that the validator set was in an invalid state (due to the borked session keys migration). If the validator set was in a good state and finality had stalled for some other reason, the system would have handled the forced finality after 500 blocks fine AFAIU." CreationDate="2024-03-28T13:00:31.267" UserId="452" />
  <row Id="11000" PostId="9603" Score="0" Text="Hi, thanks for your answer. I have the similar problem but different solution that I don't understand now:). So, my setup is: Westend relay, Westmint and custom parachains. Both paras have assets with id 1984. Westmint asset has been made sufficient and registered on custom parachain as on screenshot but in my case `assetId` - 1984 and `GeneralIndex` - 1984. When I initiate `polkadotXcm.limitedReserveTransfer` on Westmint I got an error `TooExpensive` on custom para. And I changed trader as you mentioned to support more tokens: `X3(Parachain(1000), PalletInstance(50), GeneralIndex(1984)`" CreationDate="2024-03-29T15:33:15.597" UserId="4532" />
  <row Id="11001" PostId="11042" Score="0" Text="It is still not clear. Confidential to *whom*? To the runtime business logic of the chain, to the OCW, to the other party?  &#xA;Who encrypts the data and who should be able to decode it?  &#xA;I dont think the question can be answered like this since &quot;confidential&quot; is not sufficiently explained here." CreationDate="2024-03-30T15:34:27.373" UserId="94" />
  <row Id="11002" PostId="11233" Score="0" Text="But `0x00071054657374` is a SCALE encoded Polkadot Call. So what are you trying to do with it now?  &#xA;Are you trying to encode a Transaction (Extrinsic)?" CreationDate="2024-03-30T15:53:11.613" UserId="94" />
  <row Id="11003" PostId="11236" Score="0" Text="Value submitted as a HexEncoded json. and stored in a bounded vec, if you try to decode this it gives incorrect results for values" CreationDate="2024-03-30T18:45:41.150" UserId="1950" />
  <row Id="11004" PostId="11236" Score="0" Text="I have updated question" CreationDate="2024-03-30T20:29:06.080" UserId="1950" />
  <row Id="11005" PostId="11195" Score="0" Text="Which repo is this from? Is it substrate-node-template?" CreationDate="2024-03-31T10:50:50.410" UserId="1870" />
  <row Id="11006" PostId="11195" Score="0" Text="Yes it is, exactly" CreationDate="2024-03-31T14:46:15.533" UserId="5239" />
</comments>