Questions tagged [block]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
0 answers
127 views

Unable to fully utilize block capacity when performing load testing

I'm currently running load tests on my local parachain which includes Frontier integration for EVM compatibility. During these tests, I'm sending thousands of transactions via the RPC endpoint. ...
magecnion's user avatar
  • 148
1 vote
1 answer
59 views

while building an application logic (use macros in a custom pallet)

[][in build an application logic im facing this error im new to substrate please help me fix this.]
Preethi M's user avatar
0 votes
0 answers
22 views

Build a blockchain

I'm following substrate documentation in that build a blockchain tutorial while following the monitoring node metrics tutorial. I got stuck while installing prometheus on my ec2 instance is there any ...
Preethi M's user avatar
1 vote
1 answer
27 views

I got this error while building a blockchain (building a local blockchain)

when i run node template without --ws external its producing blocks but when i run with --ws external its giving me error please help me fix this im new to substrate.
Preethi M's user avatar
3 votes
0 answers
36 views

How to add custom process without exceeding the block time?

The question can seem weird but here is the geist of it : In a custom chain with 20 sec block time, we have a different format of header that includes more information. At the end of the block, we ...
Leouarz's user avatar
  • 189
0 votes
0 answers
20 views

Collator starts after more than 10 hours on Azure cloud

I am migrating from AWS to Azure Cloud. I have two parachain collators running. One on AWS (yet to migrate) and another on Azure Cloud (migrated). Whenever I restart the service on AWS, it hardly ...
Nitesh B.'s user avatar
  • 101
3 votes
1 answer
26 views

How I use Database Snapshot Services correct

I want use Database Snapshot Services, because making genesis to last block takes too much time.... so I used POLKACHU site, the code is. " curl -o - -L https://snapshots.polkachu.com/snapshots/...
jay p's user avatar
  • 61
3 votes
1 answer
71 views

What exactly is `indexed_body` and how to deal with it?

The IncomingBlock struct has a field called indexed_body, containing a Vec<Vec<u8>>. As far as I can tell this is sometimes sent with a block, although only when specifically requested. If ...
Tomasz Kisielewski's user avatar
0 votes
1 answer
27 views

Do data in events increase the size of the block?

On one hand, if we emit extrinsic event with no data and other hand we emit the extrinsic event with data. Will the second option will increase the block size or on both cases the block-size will be ...
Pankaj's user avatar
  • 1,896
1 vote
1 answer
42 views

What's the difference between the runtime Block type and the opaque::Block type?

In a substrate runtime, take the node-template as an example, we have two definitions from Block, among other types such as BlockId but let's focus on Block.. : // runtime/src/lib.rs pub type Block = ...
Purple_Turtle's user avatar
4 votes
1 answer
54 views

What is the difference between `RuntimeBlockWeights` vs `BlockWeights`?

I notice that in the node-template there is BlockWeights and some differences in weights compared to the "kitchensink" runtime where we have RuntimeBlockWeights. What is the difference ...
Bruno's user avatar
  • 8,140
3 votes
3 answers
65 views

why blocks could contain failed transaction

After building and running substrate-node-template i started the local node with --dev flag : ./target/release/node-template --dev i opened https://polkadot.js.org/apps/#/extrinsics and selected the ...
dadzerlaze's user avatar
  • 1,073
3 votes
2 answers
35 views

How to check if a `StorageMap` changed after the last access?

I am currently trying to iterate over a storage map over multiple blocks. For this I need to ensure that the StorageMap was not modified. My plan is to derive a hash from the current StorageMap and ...
Chralt's user avatar
  • 503
2 votes
1 answer
119 views

Parachain doesn't producing block

I was building a Parachain using Zombienet. However, I was having trouble generating blocks on Parachain. Does anyone have any idea why this might be? Relaychain and Parachain using v0.9.37 version ...
Cute_Wisp's user avatar
4 votes
1 answer
201 views

what is the maximum size of a block?

Just for some analysis purpose i need to know what can be the maximum size limit of a block can have like 2MB or 5MB and is there any doc how we can customise it as per our need if its possible?
Deepak Chaudhary's user avatar
0 votes
0 answers
38 views

Get block number range for selected era in polkadot.js/api [duplicate]

I want to get block number range for selected era. So, I want to get start, end block number for specific era. How can I get them using polkadot.js/api? I can know from explorer, I need to get from ...
Heindrick's user avatar
  • 183
1 vote
1 answer
90 views

how to transform OpaqueExtrinsic to get the variables within the transaciton?

I'm writing a custom BlockImport and I need to decode the transactions within the block,as we know a transaction is simply a pallet method call for example store_value(value), but at the point where I'...
dadzerlaze's user avatar
  • 1,073
2 votes
1 answer
83 views

how to run custom block validation logic when importing a block?

I am trying to execute some logic whenever a block is received, specifically i want to create custom transactions validation of a received block. can someone provide a clear example (simple code) on ...
dadzerlaze's user avatar
  • 1,073
3 votes
1 answer
153 views

Why is 5MB the limit for the block length?

The length limit for each block in Polkadot is set to 5Mb as seen in the code. But why exactly 5Mb? Could you point me to the decision process or the benchmark results for that exact value? Thanks!
Saccharo's user avatar
5 votes
1 answer
306 views

Parachain not syncing with peers

An instance is already running a parachain collator node and is producing block. Is collating: yes [Relaychain] 🏷 Local node identity is: 12D3KooWLhkaoFSGV2JfXea1BGTEAv2R5PE4v2b1nHZMo1ZGtXDG [...
Sudip Ghimire's user avatar
1 vote
1 answer
44 views

How to query the current consumed weight in an extrinsic?

Hi Substrate Community, is there any way to get the current block weight? This is especially useful, when deciding in on_finalize if there is space left to put in some logic. I know, that on_finalize ...
Chralt's user avatar
  • 503
2 votes
3 answers
139 views

JSON-RPC getBlockHash Request

I am trying to request a block hash for a specific block using the Polkadot JSON-RPC but no matter how I construct the request (with Python), it always returns the latest block and not the one I want. ...
Teodor's user avatar
  • 21
3 votes
1 answer
72 views

What prevents a primary staker from holding off staking to wait for a specific outcome they want in BABE?

One of the issues of PoS as far as I understand is the randomness that selects a staker. Ouroboros Praos, and also BABE use VRFs (Verifiable Random Functions) to assign primary and secondary leaders ...
The Quantum Physicist's user avatar
3 votes
1 answer
44 views

manually creating new blocks with Babe

Currently my consensus engine is Babe, and my finality gadget is Grandpa. But for testing environments I'm wondering if that there is a way to manually force the engine to produce a new block when I ...
Alex Won's user avatar
6 votes
2 answers
601 views

Why could we find the same transaction hash in 3 different blocks?

We found that this transaction 0xf35238b1ef440e2a04576c8264ca8288100091a3d4c71069f0336c72078f366b was included into the following three different blocks : 10219793 10219254 10218427 Could you ...
dominique's user avatar
  • 1,633
2 votes
2 answers
200 views

What is an empty block's size?

Could you please help me to understand how much space in a node does an empty block with no extrinsics/transactions take up?
cocokick's user avatar
  • 165
0 votes
1 answer
80 views

Get a byte size of single extrinsic/transaction

I am trying to calculate how many transactions can fit into a single block. I have a block limit of 5mb. How can i learn the byte size of a single submitted transaction so i can estimate how many ...
cocokick's user avatar
  • 165
1 vote
0 answers
37 views

Custom Transaction type

I'm trying to create a layer 2 blockchain. In this blockchain, I do some computing to add to a transaction. Basically, I want to add a custom type to store in the block alongside Extrinsics. Are there ...
Burak's user avatar
  • 893
8 votes
2 answers
552 views

Transactions lifecycle

I was wondering what is the process of a transaction being removed or dropped from a transaction pool. When a transaction is submitted to the network, It is validated by a node and then gossiped to ...
andresvsm's user avatar
  • 1,104
6 votes
1 answer
78 views

How can I get a deeper / lower level insight into how my transaction is processed with sidecar?

How can I see in more detail what operations are executed when my transaction is submitted ? If there is a way to see all operations/extrinsics/calls that happened in a specific block then that could ...
dominique's user avatar
  • 1,633
6 votes
1 answer
71 views

fee economics around remark

From looking at the source code, it looks like system pallet's remark extrinsic has null weight. Even though remarks don't add anything in terms of block execution, one could argue it's still having ...
Bernardo Rodrigues's user avatar
4 votes
1 answer
75 views

How to compute the fees of a block

Having a block with all the extrinsics/events, what code should I write (preferably using polkadotJs) to compute the total amount of fees paid?
Crystalin's user avatar
  • 781
6 votes
1 answer
54 views

Is it clear what is behind the block time slow down we're seeing in Kusama Parachains, and how close is it to being solved?

We've seen a significant slow down of block time on Kusama. It seems that this may be related to the deployment od client v0.9.16. It is clear what is behind the slow down? If so, how close are we to ...
Matt Moroz's user avatar
7 votes
2 answers
157 views

What is the internal logic of `--force-authoring` flag?

From where do I get the internal logic of --force-authoring flag? Here is my scenario: I've added a custom chain-spec that is similar to the default one where we are setting the environment for --dev ...
Pawan Bisht's user avatar
2 votes
1 answer
170 views

How to retrieve the block author of a specific block using Polkadot JS API?

In their docs, they showed how to get the author of the newest blocks, but I want to get the author of a specific block. How can I do that?
Minh Mốc's user avatar
3 votes
3 answers
218 views

Can we query blocks by (extrinsics) timestamp?

Can we query block data by timestamp? If so what time is the correct one to use? For a typical block object, there's a time property that seems to always be undefined, but the first extrinsic (index 0)...
John Otu's user avatar
  • 385
10 votes
4 answers
348 views

How to configure a Substrate Network with Injected Block History from a snapshot or database backup?

Is it possible to use the chain specification file or some other mechanism to configure a Substrate network with injected block history? In this case, the motivation is CI/CD/testing, but I can see ...
Dan Forbes's user avatar
4 votes
2 answers
109 views

Can the metadata of Polkadot change?

As far as I know, the metadata of Polkadot is version 14. Assuming that the metadata version is not updated, Can the metadata of the recent block be different? ex) Block(#9135844)'s metadata != Block(#...
PaperFrog's user avatar
  • 495