Questions tagged [block]
The block tag has no summary.
42 questions
0 votes
1 answer
19 views
MockBlockU32 vs MockBlock (u64), explain why use of u64?
In polkadot and substrate chains by default, blocks seem to be u32, but most test cases in pallets seem to use u64, but in the Runtime they use u32. For example, if you look up MockBlockU32 in the ...
1 vote
0 answers
30 views
chain stopped running while throwing error in nodes console?
i have my layer 0 chain running on version 1.11 .and suddenly all the nodes stopped running while throwing this error Error while i try to rerun my nodes 0: Error at calling runtime api: Failed to ...
0 votes
0 answers
8 views
How to deploy the parascan-subql-starter project https://github.com/parascan-xyz/parascan-subql-starter.git?
I am following the steps in the medium article, https://subquery.medium.com/parascan-creates-open-source-block-explorer-with-the-power-of-subquery-f1dcbf886438. Its outdated, but I want to know is ...
0 votes
0 answers
57 views
Is it possible to fetch the validator's public address who participate during the grandpa finality of the current block?[updated]
I'm working on a chain where I need to gather the validator's public address who participates in the grandpa finality process and validate the current block. For ex: let's say we have 10 validators ...
2 votes
2 answers
93 views
How to find the block author in pow substrate chain?
How to find the block author in pow substrate chain?
0 votes
2 answers
96 views
How to get the validators list?
Is it possible to get the list of validators which validate a particular block? For instance, let's say we have at block 10 and if this block is finalised then I need to find the list of validators ...
3 votes
1 answer
60 views
How to add vector fields in the block header? [closed]
I want to add a vector fields in the block header of substrate chain. Is this possible? If yes, How can i do that? Do we have any reference code for it? Thanks in advance
3 votes
0 answers
137 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. ...
1 vote
1 answer
69 views
while building an application logic (use macros in a custom pallet) [duplicate]
[][in build an application logic im facing this error im new to substrate please help me fix this.]
1 vote
1 answer
54 views
I got this error while building a blockchain (building a local blockchain) [closed]
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.
3 votes
0 answers
53 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 ...
3 votes
1 answer
73 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/...
3 votes
1 answer
77 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 ...
0 votes
1 answer
42 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 ...
1 vote
1 answer
65 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 = ...