Questions tagged [block]
The block tag has no usage guidance.
35
questions
1
vote
1
answer
14
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.
3
votes
0
answers
34
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 ...
0
votes
0
answers
19
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 ...
3
votes
1
answer
20
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
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 ...
0
votes
1
answer
24
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
39
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 = ...
4
votes
1
answer
44
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 ...
3
votes
3
answers
55
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 ...
3
votes
2
answers
33
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 ...
2
votes
1
answer
105
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
...
4
votes
1
answer
121
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?
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 ...
1
vote
1
answer
82
views
how to transform OpaqueExtrinsic to get the variables within the transaciton?
im 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 im ...
2
votes
1
answer
76
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 ...
3
votes
1
answer
136
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!
5
votes
1
answer
261
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
[...
1
vote
1
answer
37
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 ...
2
votes
3
answers
105
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. ...
2
votes
1
answer
69
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 ...
2
votes
1
answer
39
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 ...
6
votes
2
answers
516
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 ...
2
votes
2
answers
179
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?
0
votes
1
answer
67
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 ...
1
vote
0
answers
36
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 ...
8
votes
2
answers
505
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 ...
6
votes
1
answer
74
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 ...
6
votes
1
answer
65
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 ...
4
votes
1
answer
73
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?
6
votes
1
answer
50
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 ...
6
votes
2
answers
138
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 ...
2
votes
1
answer
143
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?
3
votes
3
answers
213
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)...
10
votes
4
answers
297
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 ...
4
votes
2
answers
96
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(#...