Questions tagged [grandpa]
Any questions relating to the Grandpa pallet or block finality in Substrate chains.
65 questions
0
votes
1
answer
28
views
Validator goes offline after setting wrong session keys
I am running solo chain with 4 validators.
What I did wrong: I rotated session keys of second validator and by mistake, I set those keys as a part of first validator>>Session Keys.
After that, ...
3
votes
1
answer
41
views
Could not cast prevote: previously known block 0x_ has disappeared
The finalization is blocked on our development chain and I have these logs:
2024-07-12 19:37:00 ✨ Imported #2208390 (0x85e0…1a0a)
2024-07-12 19:37:01 💤 Idle (14 peers), best: #2208390 (0x85e0…...
1
vote
0
answers
35
views
Why does a block in Substrate-based blockchain have no author and no reward points?
We encountered an issue in our Substrate-based blockchain network where a block has no author and no reward points were given to any validator. This block was finalised. The block was an era-...
2
votes
0
answers
58
views
Recovering chain from a backup
Prerequisites:
A small subset of validators controlled by my company and a much larger set of external validators.
A backup of the db folder was created 4 hours (1 epoch) before an incident.
...
1
vote
1
answer
87
views
How to recover finality after validator "forced" it due to high finality lag (500+ blocks)
Following a relay runtime upgrade for westend 103000 (which contained a broken migration of the beefy keys), our chain stopped finalizing blocks (all validators, except 1, had the wrong keys on-chain)....
0
votes
0
answers
11
views
grandpa: maximum length of finalized blocks
In Grandpa finality protocol, blocks are finalized in chunks. Is there a limit of how many blocks can be in 1 array of blocks. Is there a way to estimate this amount?
2
votes
0
answers
21
views
How to add validators node on running chain in pow substrate chain with grandpa?
I'm working on pow substrate chain with grandpa. How can i add the grandpa validators in the running chain?
0
votes
1
answer
92
views
Solochain mainnet experiencing problems finalizing blocks after a few months
We are operating a custom Solochain NPOS blockchain with Substrate. After running a stable testnet for months, we promoted to mainnet version 1.
Initially the mainnet was operating normally, with ...
1
vote
0
answers
27
views
How do I disable grandpa in polkadot-parachain?
There is a flag that you can add when running polkadot-parachain
--no-grandpa
Disable GRANDPA.
Disables voter when running in validator mode, otherwise disable the ...
4
votes
1
answer
69
views
Why does Grandpa not use sr25519?
I note that Grandpa uses ed25519 keys rather than the substrate standard of sr25519.
Is it because sr25519 signatures are non-deterministic? ( Why are sr25519 signatures non-deterministic? ) or is ...
1
vote
0
answers
37
views
Replace GRANDPA finanlity
Hello can someone please help me understand all steps and all functions needed to be implemented for replacing finality gadget in experimental substrate chain?
5
votes
0
answers
62
views
Is there any good way to keep an intermediate state for an operation between several transactions/blocks in a BABE/GRANDPA-based chain?
I know that the best practices suggest designing transactions (pallet calls) in a way that executes the operation atomically and doesn't keep any intermediate states. This guarantees, that in case a ...
1
vote
1
answer
84
views
thread 'tokio-runtime-worker' has overflowed its stack fatal runtime error: stack overflow Aborted (core dumped) [closed]
we are running a stand alone Blockchain network by using POA consensus mechanism. The chain was working fine and after producing 8 Lac Blocks the nodes we down and now i have tried to re-execute same ...
0
votes
1
answer
55
views
Can we use AccountId20 with babe and other pallets?
As frontier now integrate natively the AccountId20 type, I wonder if it is compatible with all other pallets like BABE, Staking, ... Is there a place where we can check it or do we know some ...
2
votes
1
answer
49
views
Grandpa AuthorityWeights
There's code in Grandpa to have different "Authority Weights" assigned to each validator. It doesn't appear to be accessible beyond in a genesis block. Does someone know the intended purpose ...
1
vote
1
answer
136
views
how to solve Detected prevote equivocation in the finality worker issue?
I am getting this issue after performing the solution of this issue
How can we restart the chain if it becomes stuck during data migration?
Tried to run the existing chain with new chain spec with bad ...
2
votes
2
answers
271
views
Block finalization stalled
I have been running a testing network recently and they have encountered a very strange situation:
the finalized has stopped at # 107379 and cannot be further confirmed.
The logs of each consensus ...
3
votes
2
answers
143
views
How is an external observer supposed to reliably know when the GRANDPA authorities have changed?
The grandpa.proveFinality rpc provides the justification for the last block by a GRANDPA authorities set (of some set_id) and ancestry headers to prove the finality of a block within the same set_id. ...
5
votes
1
answer
179
views
Local Relay Stops Finalizing
I've been working on getting a test relay up and running in the cloud (Docker containers running on Debian virtual machines) for remote testing, and we've got everything running. The relay chain is ...
9
votes
2
answers
252
views
Grandpa stuck at "Polling"
I am trying to spin up a small BABE PoS network of four nodes and not able to get GRANDPA to start.
It's hard to know what exact pieces of information to provide, here are some notes.
A few notes:
I ...
4
votes
1
answer
141
views
GRANDPA finality proofs validation and equivocations
I was exploring GRANDPA verification algorithm and stumbled upon this code by the link
https://github.com/paritytech/finality-grandpa/blame/master/src/lib.rs#L494
Source
This is the part of method ...
6
votes
1
answer
89
views
How to achieve instant finality with substrate?
Ideally, I would like to build a chain with Substrate but using Tendermint as the consensus engine.
The problem is that it's a lot of work to implement it correctly.
But what if I use AURA (round ...
11
votes
1
answer
152
views
Understanding service.rs in substrate-node-template
Recently, I have been trying to understand the block import for Aura and Grandpa but I don't understand some parts in substrate-node-template/node/service.rs:
1- In the new_partial() method when ...
2
votes
0
answers
86
views
Switching from `Aura` to `Babe` consensus causes error "Incomplete block import pipeline" on genesis block
I am trying to switch from Aura to Babe consensus. After successful building and node start I am getting an error "Block import error: Incomplete block import pipeline.". This happens with ...
2
votes
2
answers
107
views
No authoring in network using custom keys, a local Rococo chain specification, and a modified substrate-parachain-template
I have read through the documentation on Substrate.io and have created a network of nodes in both a relay and parachain with custom keys. The network is running in Kubernetes (I would like to have ...
1
vote
1
answer
93
views
How to start a GRANDPA blockchain without any initial voters?
I've tried modifying the repository so initial voters for the grandpa pallet. In doing so, I noticed there are many checks to prevent that modification.
The reason why we do not want any initial ...
4
votes
1
answer
92
views
The flow of a GRANDPA round
I am curious about some details regarding a GRANDPA round (explained in detail).
An elected validator that is designated as the primary broadcasts the highest block that it thinks could be final from ...
0
votes
1
answer
97
views
How to list waiting validators?
We can list the active set with session::validators() and/or babe::authorities()
How to list waiting validators though?
0
votes
1
answer
28
views
Node template based network runs with multiple peers using the same identity
I noticed some interesting behavior while running a local test net on my machine. I booted up a network between the default Alice and Bob accounts that are used in all the tutorials, and they ...
1
vote
1
answer
197
views
Is it possible to start a substrate BABE blockchain with no Grandpa authorities and BABE validators?
I'm trying to implement a PoS network on substrate using substrate provided pallets - pallet_session, pallet_staking, pallet_babe, etc. The current Runtime and chain spec implementation is similar to ...
2
votes
0
answers
74
views
Finality lagging
After about 50 blocks my block production slows down because none of the nodes are voting in the finality rounds. I'm working off a codebase that I added the grandpa pallet to, so it's possible I may ...
4
votes
1
answer
274
views
are justification in the Block the actual votes cast by validators in GRANDPA?
Correct me if i'm wrong: In GRANDPA, validators cast votes for the next finalized Block, which is as far as i understand the Block hash signed + metadata(round number,...etc).
My questions are:
Are ...
2
votes
1
answer
28
views
Equivocations error causing some nodes to crash (Follow up question)
We've been investigating an issue that's most likely related to this post, and this issue. But unsure if the underlying cause is the same, I'm looking for some help to confirm my understanding of this ...
0
votes
1
answer
38
views
Are Periodic Grandpa Voter Errors To Be Expected?
We have been losing anywhere from one to three nodes at a time with Grandpa Voter Errors at random block numbers ranging from 1600 to over 183K. Thus far we have not found any configuration in the ...
0
votes
1
answer
137
views
How To Prevent "Grandpa Voter Error" And Randomly Deleted Keystore
We have been experimenting with lots of different configurations to avoid this error, with no luck. Eventually, this error takes the entire network down. The most interesting part is that the ...
1
vote
1
answer
211
views
Is the random number generation safe for pallet_lottery?
I read this post of Shawn https://substrate.stackexchange.com/a/128/2484 and found out, that random numbers for lotteries are not reliable, even with VRF on GRANDPA since the validators could earn ...
2
votes
1
answer
133
views
Where the GRANDPA round state stored at?
I'm writing a tool to build a fork-off chain. But the new chain can not get finalized.
I've skipped the Babe/Grandpa/Session's storage.
I also check the chain state, that no historical storage under ...
2
votes
1
answer
59
views
Currently, does substrate/polkadot make use of PrimaryProposal stage?
While observing the GRANDPA communication between 2 Substrates nodes and 1 Gossamer node I notice that only Prevotes and Precommmits were being exchanged. Currently, are the PrimaryProposal messages ...
0
votes
1
answer
121
views
Essential task failed [closed]
2022-08-02 18:53:10 〽️ Prometheus exporter started at 127.0.0.1:9616
2022-08-02 18:53:10 🥩 run BEEFY worker, best grandpa: #13709439.
2022-08-02 18:53:10 creating instance on iface 65.21.88.129
2022-...
2
votes
1
answer
93
views
How to benchmark pallet Grandpa?
at the moment I struggle a bit with the question of "How to benchmark the Grandpa pallet". Like it seems it's not possible to auto-generate weights at the moment (see here: https://github....
0
votes
1
answer
200
views
NPoS with Aura - no planned era
UPDATE: The election always finalizes with Election Fallback and set of validators doesnt't and neither does the Era, but sessions keep increasing.
I understand that an era is just a couple of ...
1
vote
1
answer
103
views
Why is App_Crypto not building in frame system runtime [closed]
When building I am running into this error:
error: cannot find macro `format` in this scope
--> /Users/jackson/.cargo/git/checkouts/substrate-7e08433d4c370a21/22d40c7/primitives/finality-...
3
votes
1
answer
54
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 ...
1
vote
0
answers
51
views
Can I Delete AURA and GRANDPA?
In this tutorial it is explained how to create a PoW node. Neither AURA nor GRANDPA are used throughout the tutorial. Also here it's stated that such node will not finalize produced blocks.
The ...
2
votes
1
answer
73
views
Is it possible to have multiple GRANDPA Pause/Resume for one fork?
While reading the spec polkadot-host-spec_v0.1.1.pdf is not clear if the host should track multiple or just one GRANDPA Pause/Resume consensus message per fork until the target block is finalized/...
10
votes
1
answer
187
views
Are Offences ever pruned?
In our runtime we have a custom implementation of offence reporting. I want to write an adapter for grandpa equivocation offences (implementing the ReportOffence trait), and have been using the ...
5
votes
0
answers
163
views
Why has finalization stopped?
So I have a validator_count of 2, and 1 as minimum_validator_count. My validator is always online. I had my friend make another validator, had it enter the active validator set, and then join in as a ...
1
vote
2
answers
131
views
Grandpa + Babe finality issues
Starting with the node-template, I switched my chains block authoring from Aura to Babe, which compiles fine but does not manage to finalize any blocks. I suspect it's a wrong genesis configuration. ...
4
votes
1
answer
67
views
In substrate, does the genesis block get finalised the same way as the subsequent blocks?
In substrate, does the genesis block get finalised the same way as the subsequent blocks, or is finalisation of the genesis block a special case?
2
votes
0
answers
29
views
Grandpa authorities in the context of pallet-staking
In pallet-staking's genesis config there are two items :
pub validator_count: u32,
pub minimum_validator_count: u32,
Question : How are we to interpret them in the context of Grandpa finality? I know ...